Skip to content

Python interface for the SensorPush API

License

Notifications You must be signed in to change notification settings

ZyberSE/pysensorpush

 
 

Repository files navigation

pysensorpush - Python interface for the SensorPush API

Python implementation of the SensorPush temperature and humidity/hygrometer sensors cloud API which supports both temperature (°F) and humidity (Rh) sensors.

PyPi License Donate

NOTE: Ideally SensorPush sensors would be located within range of a SensorPush G1 WiFi Gateway for continously collecting and publishing data from the sensors to the SensorPush cloud. However, SensorPush sensors can also synchronize historical data over Bluetooth when nearby to an iOS or Android device with the SensorPush app.

Installation

pip3 install pysensorpush

Enable the SensorPush API

While the SensorPush API is in beta, you may need to contact [email protected] to get access to the API for your account. Here are details direct from SensorPush:

If you're ready to use the beta of the SensorPush API, please review the updated Terms of Service at this link on our website (http://www.sensorpush.com/legal/info).

These Terms are based largely on the Terms of Service already in place. The primary difference is that we added language to cover the API, so if you accept these terms, please respond to [email protected] with the following:

1.) Confirmation: "Yes, I accept these Terms of Service" 2.) Your Gateway email address

We need these two things so we can grant you access to the API.

If you have any questions. Please just send them to [email protected] and include "[api]" in the subject

Examples

sensorpush = PySensorPush(username, password)

sensorpush.gateways

sensorpush.sensors

sensorpush.samples(10)

See also example-client.py for a working example.

See Also

Hardware

Future Enhancements

  • improve error handling/edge conditions

  • allow fetching data directly from the sensor via Bluetooth (no cloud dependency required)

About

Python interface for the SensorPush API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%