Skip to main content

Python interface for the SensorPush API

Project description

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 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

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pysensorpush-0.1.8-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file pysensorpush-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: pysensorpush-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.6

File hashes

Hashes for pysensorpush-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 866af81266e6ad01212cc96112d5eb78220b53f28a9bc7d1bd8310aa8ff95922
MD5 d85170fc5c0c1710a2637caa94382725
BLAKE2b-256 1baa57d22a3b263e6d76e28ead97a59b32721067768e2432aff270628b868faf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page