Python implementation of the SensorPush temperature and humidity/hygrometer sensors cloud API which supports both temperature (°F) and humidity (Rh) sensors.
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.
pip3 install pysensorpush
While the SensorPush API is in beta, you may need to contact support@sensorpush.com 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 support@sensorpush.com 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 support@sensorpush.com and include "[api]" in the subject
sensorpush = PySensorPush(username, password)
sensorpush.gateways
sensorpush.sensors
sensorpush.samples(10)
See also example-client.py for a working example.
- SensorPush Wireless Thermometer/Hygrometer - Humidity & Temperature Smart Sensor
- SensorPush G1 WiFi Gateway
- SensorPush (official product page)
-
improve error handling/edge conditions
-
allow fetching data directly from the sensor via Bluetooth (no cloud dependency required)