Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mongoose-os-apps/example-shadow-js
https://github.com/mongoose-os-apps/example-shadow-js
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mongoose-os-apps/example-shadow-js
- Owner: mongoose-os-apps
- License: other
- Created: 2018-01-01T15:27:06.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-20T19:03:13.000Z (over 4 years ago)
- Last Synced: 2024-07-31T21:52:54.983Z (6 months ago)
- Language: JavaScript
- Size: 25.6 MB
- Stars: 4
- Watchers: 6
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mongoose-os - example-shadow-js
README
# Mongoose OS device shadow demo - JavaScript
This is the Mongoose OS demo app that demonstrates how to use device
shadow to control devices. It implements a simple switch on/off logic,
and allows to switch an LED on or off using a shadow. Also it shows how
to use shadow to report stats metrics.Note that Mongoose OS shadow implementation is cross-cloud. It works the same
way on
[Mongoose OS device management dashboard](https://dash.mongoose-os.com/#/),
[AWS IoT](https://aws.amazon.com/iot/). Support for
[Google IoT core](https://cloud.google.com/iot-core/) is coming soon.
You can switch between clouds without changing your device logic, and it'll
continue to work.See `fs/init.js` file for the idiomatic usage of shadow objects.
## Screenshot on management dashboard
This is an animated recording on
[device management dashboard](https://dash.mongoose-os.com) . ESP8266 NodeMCU
was used - note that built-in blue LED is inverted: it turns on when GPIO
is pulled down, and turns off when it is pulled high:![](img2.gif)
## Screenshot on AWS IoT
Same device, same app, no code changes, works on AWS IoT the same way:
![](img1.gif)