Code Monkey home page Code Monkey logo

sonnenbatterydatacollector's Introduction

SonnenBatteryDataCollector

Python-Script that collects data from „Sonnen-Batterie“ through the REST-API and pushes it to different data storages.

Usage

Configuration

Currentely done through environment variables:

  • SAMPLE_TIME: Interval in which the battery shall be queried in seconds
  • BATTERY_IP: IP-address / hostname of the battery
  • DB_HOST: Hostname / IP-address of the PostgreSQL database
  • DB_NAME: database name of the PostgreSQL database
  • DB_USER:User for the PostgreSQL database
  • DB_PWD: Password of DB_USER
  • CSV_FILE: Path to write the data in CSV format to

Run it

  • Either directely as a Python-Script: "python3 main.py"
  • As a docker image: "docker run -d yolani/sbdc[:latest]"

Output

  • Data is pushed to PostgreSQL database if provided connection details are valid (can be used additionally to csv output)
  • Data is written / appended to CSV file if provided file path can be written (can be used additionally to database output)
  • Data is written to stdout if neither database nor CSV file are available

sonnenbatterydatacollector's People

Contributors

yolani avatar

Stargazers

Michelangelo Camaioni avatar

Watchers

 avatar Harald avatar dremwilly avatar

sonnenbatterydatacollector's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.