A Python client library for Phant. See data.sparkfun.com for more information.
Either
- copy the
phant.py
module into you source tree or - run
python setup.py install
or - install with
pip install phant
.
p = Phant('xyzpublickey', 'temp', 'humid', private_key='abcprivatekey')
p.log(33.4, 10.2)
print(p.remaining_bytes, p.cap)
data = p.get()
print(data['temp'])