{"id":19471617,"url":"https://github.com/aaronpowell/sunshine","last_synced_at":"2025-07-28T16:31:24.173Z","repository":{"id":55875833,"uuid":"177671331","full_name":"aaronpowell/sunshine","owner":"aaronpowell","description":"Sunshine is an application I use to monitor my solar panels, and is a demo of building an IoT project using Azure.","archived":false,"fork":false,"pushed_at":"2020-12-10T04:56:13.000Z","size":2752,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-17T19:47:12.321Z","etag":null,"topics":["azure-functions","azure-iot-edge","azure-iothub","azure-storage-table","fsharp","iot"],"latest_commit_sha":null,"homepage":"","language":"F#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aaronpowell.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}},"created_at":"2019-03-25T22:02:05.000Z","updated_at":"2023-09-08T17:52:00.000Z","dependencies_parsed_at":"2022-08-15T08:20:41.539Z","dependency_job_id":null,"html_url":"https://github.com/aaronpowell/sunshine","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronpowell%2Fsunshine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronpowell%2Fsunshine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronpowell%2Fsunshine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronpowell%2Fsunshine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aaronpowell","download_url":"https://codeload.github.com/aaronpowell/sunshine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227777694,"owners_count":17818455,"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":["azure-functions","azure-iot-edge","azure-iothub","azure-storage-table","fsharp","iot"],"created_at":"2024-11-10T19:02:45.861Z","updated_at":"2024-12-03T13:53:31.939Z","avatar_url":"https://github.com/aaronpowell.png","language":"F#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003cimg width=\"200\" height=\"200\"\n      src=\"noun_solar_72144.svg\"\u003e\n  \u003ch1\u003eSunshine - My Home Grown IoT Project\u003c/h1\u003e\n  \u003cp\u003eSunshine is a project I started to learn how someone would go about building an IoT project. My use case was to connect to my solar inverter and export the data to store where I could produce my own reporting against it.\u003c/p\u003e\n\u003c/div\u003e\n\n## How it works\n\nThe project is made up of 3 components:\n\n* Downloader\n  * .NET Core application written in F#\n  * Deployed as a Docker image\n  * Pulls the data from the inverter and pushes it to [Azure IoT Hub](https://azure.microsoft.com/services/iot-hub/?WT.mc_id=javascript-0000-aapowell)\n* Functions\n  * [Azure Functions](https://azure.microsoft.com/services/functions/?WT.mc_id=javascript-0000-aapowell) for processing the data, written in F# against the v2 runtime\n  * Listens to a set of [Event Hubs](https://azure.microsoft.com/services/event-hubs/?WT.mc_id=javascript-0000-aapowell) for incoming messages\n  * Writes to [Table Storage](https://azure.microsoft.com/services/storage/tables/?WT.mc_id=javascript-0000-aapowell)\n* Mock API\n  * A fake implementation of my inverter API so I can dev when I'm not at home\n  * Implemented using Saturn, a F# web framework\n\nThe Downloader runs in a Docker container and will either talk to the Mock API (local dev) or the inverter (production) and push the data up to [Azure IoT Hub](https://azure.microsoft.com/services/iot-hub/?WT.mc_id=javascript-0000-aapowell). IoT Hub will then route the data to one of several [Event Hubs](https://azure.microsoft.com/services/event-hubs/?WT.mc_id=javascript-0000-aapowell) which the Functions are subscribed to for processing and storage in [Table Storage](https://azure.microsoft.com/services/storage/tables/?WT.mc_id=javascript-0000-aapowell).\n\nDeployments are orchestrated using [Azure Pipelines](https://azure.microsoft.com/services/devops/pipelines/?WT.mc_id=javascript-0000-aapowell) to build the images, push to [Azure Container Registry](https://azure.microsoft.com/services/container-registry/?WT.mc_id=javascript-0000-aapowell) and then use [Azure IoT Edge](https://azure.microsoft.com/services/iot-edge/?WT.mc_id=javascript-0000-aapowell) to deploy onto either my test device or my production device.\n\nYou'll find more information on the process on my blog through the series [Home Grown IoT](https://www.aaron-powell.com/posts/2019-05-30-home-grown-iot-prologue).\n\n## Acknowledgements\n\nLogo: solar by iconsmind.com from the Noun Project\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaronpowell%2Fsunshine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faaronpowell%2Fsunshine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaronpowell%2Fsunshine/lists"}