https://github.com/philipdaubmeier/graphiot
Visualizes IoT sensor data in time series graphs. Includes .NET Core clients for Digitalstrom, Viessmann, Netatmo, Sonnen and WeConnect APIs.
https://github.com/philipdaubmeier/graphiot
c-sharp digitalstrom dotnetcore grafana graphs netatmo sensor-data sonnen time-series viessmann weconnect
Last synced: 7 months ago
JSON representation
Visualizes IoT sensor data in time series graphs. Includes .NET Core clients for Digitalstrom, Viessmann, Netatmo, Sonnen and WeConnect APIs.
- Host: GitHub
- URL: https://github.com/philipdaubmeier/graphiot
- Owner: philipdaubmeier
- License: mit
- Created: 2019-10-08T19:45:26.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-12-03T13:46:49.000Z (over 1 year ago)
- Last Synced: 2025-04-09T16:04:05.567Z (12 months ago)
- Topics: c-sharp, digitalstrom, dotnetcore, grafana, graphs, netatmo, sensor-data, sonnen, time-series, viessmann, weconnect
- Language: C#
- Homepage:
- Size: 2.27 MB
- Stars: 24
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://ci.appveyor.com/project/philipdaubmeier/graphiot/branch/master)

# GraphIoT
GraphIoT is a .NET 9 project for polling and storing historical IoT and smart home sensor data and providing it for visualization as time series graphs.
The main server application consists of these two major parts for this purpose:
1. **Data Gathering**
* A set of timed hosted services that regularly poll data from other servers, e.g. home servers of smart home systems or cloud apis of smart home device manufacturers. These values are stored in a configurable database. Currently it supports polling from:
* Digitalstrom DSS (home server)
* Netatmo (Cloud API)
* Sonnen (Cloud API)
* Viessmann (Cloud API)
* WeConnect (Cloud API)
2. **Data Visualization**
* A set of RESTful APIs to retrieve the time series data
* Grafana visualization via:
* a grafana hosted service that starts and monitors the grafana server process
* a reverse proxy middleware that redirects to the grafana server
* a REST+json api that loads, aggregates and preprocesses the stored data and outputs it in a grafana JSON datasource compatible format
## Screenshots
[](https://philip.daubmeier.de/github/graphiot/screenshots/screenshot1.png)
[](https://philip.daubmeier.de/github/graphiot/screenshots/screenshot2.png)
[](https://philip.daubmeier.de/github/graphiot/screenshots/screenshot3.png)
[](https://philip.daubmeier.de/github/graphiot/screenshots/screenshot4.png)
[](https://philip.daubmeier.de/github/graphiot/screenshots/screenshot5.png)
[](https://philip.daubmeier.de/github/graphiot/screenshots/screenshot6.png)
## Code Structure
GraphIoT consists of several subprojects, some of which are independent of GraphIoT dependencies and can be used within other applications as nuget packages.
It is structured as follows:
* **Client Libaries** for communicating with a specific IoT device type:
* [](https://www.nuget.org/packages/PhilipDaubmeier.DigitalstromClient/) [DigitalstromClient](src/DigitalstromClient)
* [](https://www.nuget.org/packages/PhilipDaubmeier.DigitalstromTwin/) [DigitalstromTwin](src/DigitalstromTwin)
* [](https://www.nuget.org/packages/PhilipDaubmeier.NetatmoClient/) [NetatmoClient](src/NetatmoClient)
* [](https://www.nuget.org/packages/PhilipDaubmeier.SonnenClient/) [SonnenClient](src/SonnenClient)
* [](https://www.nuget.org/packages/PhilipDaubmeier.ViessmannClient/) [ViessmannClient](src/ViessmannClient)
* [](https://www.nuget.org/packages/PhilipDaubmeier.WeConnectClient/) [WeConnectClient](src/WeConnectClient)
* **Shared Libraries** for common functionality:
* [](https://www.nuget.org/packages/PhilipDaubmeier.CompactTimeSeries/) [CompactTimeSeries](src/CompactTimeSeries)
* [](https://www.nuget.org/packages/PhilipDaubmeier.TokenStore/) [TokenStore](src/TokenStore)
* **Core Library** for all GraphIoT Host libraries:
* [GraphIoT.Core](src/GraphIoT.Core)
* **Host Libraries** for a specific IoT device type:
* [GraphIoT.Digitalstrom](src/GraphIoT.Digitalstrom)
* [GraphIoT.Netatmo](src/GraphIoT.Netatmo)
* [GraphIoT.Sonnen](src/GraphIoT.Sonnen)
* [GraphIoT.Viessmann](src/GraphIoT.Viessmann)
* [GraphIoT.WeConnect](src/GraphIoT.WeConnect)
* **Visualization Library**:
* [GraphIoT.Grafana](src/GraphIoT.Grafana) as Grafana reverse proxy
* [GraphIoT.Graphite](src/GraphIoT.Graphite) as Grafana datasource
* **Main Host Application**:
* [GraphIoT.App](src/GraphIoT.App)
## Setup
Follow these steps to set up the development environment, publish the application to your own server and create Grafana dashboards with the actual graphs.
#### Setup application
* [Setup dev environment](doc/setup/setup_development.md)
* [Setup production environment](doc/setup/setup_production.md)
* [Backup database](doc/setup/backup_database.md)
#### Configure Grafana
* [Configure datasource](doc/grafana/configure_datasource.md)
* [Create dashboard and panels](doc/grafana/configure_dashboard.md)
* [Add variables and annotations](doc/grafana/configure_variables_annotations.md)
## Platform Support
GraphIoT is targeted for .NET 9.0 or higher.
## License
The MIT License (MIT)
Copyright (c) 2019-2024 Philip Daubmeier
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.