SYNHAK / spiff

Spaceman Spiff Manages Spaces
GNU Affero General Public License v3.0
13 stars 5 forks source link

Sensors API #9

Closed tdfischer closed 11 years ago

tdfischer commented 11 years ago

It should be possible for low-cost sensors to report to the site and then be made available through the API and SpaceAPI.

Possible sensor types:

Sensors can update their data with a simple POST of their raw contents to https://your-space.org/api/sensors/

The app should keep a log of sensor values (to some configured resolution i.e. daily) and generate pretty charts on the site as well.

When a sensor is updated, internal django hooks can be dispatched allowing spaces to run custom code such as tweeting that the space is active. Alternatively, the sensors can be configured to relay the sensor data to a URL.

tdfischer commented 11 years ago

Implemented in 20f13be772412c99f5b38c22f9c061676369a978

Still todo: django hooks when sensors are updated.

tdfischer commented 11 years ago

Sensor hooks are implemented now.