IoT Clock: Difference between revisions
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
'''Look Obama, I made a clock.''' | |||
== BOM == | == BOM == | ||
Revision as of 01:21, 21 November 2015
Look Obama, I made a clock.
BOM
- Particle Photon
- Adafruit neoPixel Ring 60 Pixels
Code
Hacky and stuff... but working.
https://gist.github.com/morgulbrut/ed29a2c7a000f6117db1
Settings
Some parameter could be set trough webrequests.
Some curl examples:
Normal clock
curl https://api.particle.io/v1/devices/43002e001147343339383037/setHaTrails -d access_token=68ac7f91a8d33a696ad5d84d7f3d7d6c104c87d3 -d params=0
Binary clock
curl https://api.particle.io/v1/devices/43002e001147343339383037/setHaTrails -d access_token=68ac7f91a8d33a696ad5d84d7f3d7d6c104c87d3 -d params=2
Hour marks on/off
On:
curl https://api.particle.io/v1/devices/43002e001147343339383037/setHMarks -d access_token=68ac7f91a8d33a696ad5d84d7f3d7d6c104c87d3 -d params=1
Off:
curl https://api.particle.io/v1/devices/43002e001147343339383037/setHMarks -d access_token=68ac7f91a8d33a696ad5d84d7f3d7d6c104c87d3 -d params=0
TODO
- clean up code.
- defining a useful API.