Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dgp1130/puck-demo
Playing around with Puck.js.
https://github.com/dgp1130/puck-demo
Last synced: 12 days ago
JSON representation
Playing around with Puck.js.
- Host: GitHub
- URL: https://github.com/dgp1130/puck-demo
- Owner: dgp1130
- Created: 2022-12-14T19:35:23.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-14T19:35:54.000Z (almost 2 years ago)
- Last Synced: 2024-10-05T07:41:10.100Z (about 1 month ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Puck.js Temperature and Accelerometer
Just playing around with [Puck.js](https://www.puck-js.com/). This snippet
includes two apps:* Single press => Displays the current temperature.
* Colors:
* Red = hot
* Yellow = normal
* Blue = cold
* Temperature detector doesn't seem very accurate to ambient temperature, but
works as a proof of concept.
* Double press => Displays the current accelerometer status.
* Colors:
* Red = stationery
* Green = movingEither app can be stopped with a simple press. Afterwards the device is
effectively disabled and the next press / double press will start one of the
above apps.The device should probably clean up all the listeners and should be pretty
memory efficient. Leaving it in the disabled state for a long time should be
viable without killing the battery, but I haven't tested it.