{"id":13414386,"url":"https://github.com/mongoose-os-apps/example-shadow-js","last_synced_at":"2025-04-23T21:44:32.974Z","repository":{"id":103984543,"uuid":"115927717","full_name":"mongoose-os-apps/example-shadow-js","owner":"mongoose-os-apps","description":null,"archived":false,"fork":false,"pushed_at":"2020-08-20T19:03:13.000Z","size":26888,"stargazers_count":4,"open_issues_count":3,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-18T06:51:20.945Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mongoose-os-apps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-01-01T15:27:06.000Z","updated_at":"2022-10-09T20:34:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"dd9af7a0-4a91-4138-8b3a-8b352958be29","html_url":"https://github.com/mongoose-os-apps/example-shadow-js","commit_stats":null,"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongoose-os-apps%2Fexample-shadow-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongoose-os-apps%2Fexample-shadow-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongoose-os-apps%2Fexample-shadow-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongoose-os-apps%2Fexample-shadow-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mongoose-os-apps","download_url":"https://codeload.github.com/mongoose-os-apps/example-shadow-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250522292,"owners_count":21444509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T21:00:20.387Z","updated_at":"2025-04-23T21:44:32.958Z","avatar_url":"https://github.com/mongoose-os-apps.png","language":"JavaScript","readme":"# Mongoose OS device shadow demo - JavaScript\n\nThis is the Mongoose OS demo app that demonstrates how to use device\nshadow to control devices. It implements a simple switch on/off logic,\nand allows to switch an LED on or off using a shadow. Also it shows how\nto use shadow to report stats metrics.\n\nNote that Mongoose OS shadow implementation is cross-cloud. It works the same\nway on\n[Mongoose OS device management dashboard](https://dash.mongoose-os.com/#/),\n[AWS IoT](https://aws.amazon.com/iot/). Support for\n[Google IoT core](https://cloud.google.com/iot-core/) is coming soon.\nYou can switch between clouds without changing your device logic, and it'll\ncontinue to work.\n\nSee `fs/init.js` file for the idiomatic usage of shadow objects.\n\n## Screenshot on management dashboard\n\nThis is an animated recording on\n[device management dashboard](https://dash.mongoose-os.com) . ESP8266 NodeMCU\nwas used - note that built-in blue LED is inverted: it turns on when GPIO\nis pulled down, and turns off when it is pulled high:\n\n![](img2.gif)\n\n## Screenshot on AWS IoT\n\nSame device, same app, no code changes, works on AWS IoT the same way:\n\n![](img1.gif)\n","funding_links":[],"categories":["Awesome Mongoose OS [![Awesome](https://awesome.re/badge.svg)](https://awesome.re)"],"sub_categories":["Official Examples"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongoose-os-apps%2Fexample-shadow-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmongoose-os-apps%2Fexample-shadow-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongoose-os-apps%2Fexample-shadow-js/lists"}