{"id":18695343,"url":"https://github.com/smartthingscommunity/virtual-solar-smart-meter","last_synced_at":"2025-06-12T03:09:52.568Z","repository":{"id":167423925,"uuid":"643008423","full_name":"SmartThingsCommunity/virtual-solar-smart-meter","owner":"SmartThingsCommunity","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-19T21:30:26.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-05-19T00:12:38.466Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SmartThingsCommunity.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-05-19T21:28:05.000Z","updated_at":"2023-05-19T23:45:36.000Z","dependencies_parsed_at":"2023-07-26T09:46:22.883Z","dependency_job_id":null,"html_url":"https://github.com/SmartThingsCommunity/virtual-solar-smart-meter","commit_stats":null,"previous_names":["smartthingscommunity/virtual-solar-smart-meter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SmartThingsCommunity/virtual-solar-smart-meter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartThingsCommunity%2Fvirtual-solar-smart-meter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartThingsCommunity%2Fvirtual-solar-smart-meter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartThingsCommunity%2Fvirtual-solar-smart-meter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartThingsCommunity%2Fvirtual-solar-smart-meter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SmartThingsCommunity","download_url":"https://codeload.github.com/SmartThingsCommunity/virtual-solar-smart-meter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartThingsCommunity%2Fvirtual-solar-smart-meter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259388091,"owners_count":22849755,"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-11-07T11:14:40.768Z","updated_at":"2025-06-12T03:09:52.562Z","avatar_url":"https://github.com/SmartThingsCommunity.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Virtual Solar Smart Meter\n\nThis SmartApp is an example of how to use the SmartThings API to create a virtual device that\nrepresents the current power usage of a home. It also shows how to create a virtual device that\nrepresents the power production of a home's solar panels. These devices integrate with the\nSmartThings Energy service in the SmartThings mobile app.\n\n## File Structure\n\n* definitions\n    * apps\n      * lambda.json \u0026mdash; example Lambda SmartApp definition\n      * webhook.json \u0026mdash; example WebHook SmartApp definition\n    * profiles\n      * i18n\n        * en.json \u0026mdash; defines friendly names for the power meter device profile components\n      * power-meter.json \u0026mdash; power meter device profile definition\n      * solar-panel.json \u0026mdash; solar panel device profile definition\n* locales\n    * en.json \u0026mdash; English version of the app configuration page text\n* src\n  * handlers\n      * monthly-reset.js \u0026mdash; scheduled event handler that resets the energy usage at the first of each month\n      * page1.js \u0026mdash; handler for SmartApp configuration page\n      * uninstaled.js \u0026mdash; handler called when the app is removed from a location\n      * updated.js \u0026mdash; handler called when the app is installed or updated\n  * lib\n    * device.js \u0026mdash; creates energy meter and solar panel devices\n    * house-model.js \u0026mdash; simulates house energy usage\n    * solar-panel-model.js \u0026mdash; simulates solar panel energy production\n  * index.js \u0026mdash; AWS Lambda handler that calls the SmartApp\n  * server.js \u0026mdash; web server that calls the SmartApp\n  * smartapp.js \u0026mdash; the SmartApp implementation\n* test \u0026mdash; unit tests\n* .env \u0026mdash; environment variables used by the server\n* .env.example \u0026mdash; example .env file\n* .gitignore \u0026mdash; files to be ignored by git\n* package.json \u0026mdash; NodeJS package definition\n* README.md \u0026mdash; this file\n* serverless.yml \u0026mdash; Serverless configuration file for deploying to AWS Lambda\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartthingscommunity%2Fvirtual-solar-smart-meter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmartthingscommunity%2Fvirtual-solar-smart-meter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartthingscommunity%2Fvirtual-solar-smart-meter/lists"}