Code Monkey home page Code Monkey logo

Comments (3)

bemasher avatar bemasher commented on July 20, 2024

Have you tried using the provided systemd services?

from rtlamr-collect.

poorredneck avatar poorredneck commented on July 20, 2024

Yes, but kept having issues with rtl_tcp not wanting to start. rtl_ctp was in /usr/local/bin not /usr/bin so fixed that now service is working great!

I have an un-related question, didn't want to open an "issue" on it...

How does rtlamr-collect handle "down time"? Since the total consumption is monitored over time, it never really "loses track" of how much has been consumed.

So for example: my OrangePi locked up ths morning (still trying to figure out why this is happening every couple days). So it was an hour or so before I got home and was able to power cycle the machine.

Once everything re-started, the "dead space" in grafana is all of a sudden filled in, but not with a flat line like I would have expected. Since there wasn't any data written to the database in over an hour, I figured next time it gets a consumption reading, it'll be like an "average" but there are "valid" (are they valid?) data points written to the database in the dead time.

See the screenshot. The box highlighted red is when the system was down, so no data was being recorded to the influxdb but once rtlamr-collect was restarted the data points pop up. Again, I was expecting a "flat line" between dead time and current, since it doesn't know what the consumption was during that down time.

How is the down time handled?

capture

from rtlamr-collect.

bemasher avatar bemasher commented on July 20, 2024

Interval Data Messages contain differential consumption information. Each packet contains 47x5 minute intervals, each of which are the difference in consumption from one interval to the next, so rtlamr-collect can back-fill 3 hours 55 minutes worth of power usage if there is an interruption in messages.

This is nice because you don't need to hear every message in order to maintain full consumption history. rtlamr-collect will also pay attention to data it has already written to the database, so when it starts, it preloads the last 3h55m worth of data from influxdb to avoid writing duplicate points.

from rtlamr-collect.

Related Issues (20)

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.