Code Monkey home page Code Monkey logo

powermon's Introduction

powermon

Simplistic Power Monitor for LS110 devices republishing information to MQTT

Cronjobs:

* * * * * flock -n ~/github-c-base-powermon/powermon.lock ~/github-c-base-powermon/powermon.py `* * * * * cd ~/github-c-base-powermon ; flock -n ~/github-c-base-powermon/graphloop.lock ~/github-c-base-powermon/graphloop.sh

Will automatically try to (re-)start the long-running daemons.

powermon's People

Contributors

berlincount avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

powermon's Issues

Convert to volkszaehler.org data format

The new power meter needs a different setup. In order to get data from the device we now need to GET this URL

http://powermon/middleware/data.json?from=now&uuid[]=4c4a5c20-af95-11ec-9138-79e7db79c828

Which results in a JSON response like this that contains only the last measurement:

{
  "version": "0.3",
  "data": [
    {
      "tuples": [
        [
          1649638646280,
          2732.448,
          1
        ]
      ],
      "uuid": "4c4a5c20-af95-11ec-9138-79e7db79c828",
      "from": 1649638645226,
      "to": 1649638646280,
      "min": [
        1649638646280,
        2732.4478076576506
      ],
      "max": [
        1649638646280,
        2732.4478076576506
      ],
      "average": 2732.448,
      "consumption": 0.8,
      "rows": 2
    }
  ]
}

The existing powermon.py needs to be updated and then should send to both MQTT and RRD-Tool exactly as it was done before.

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.