Comments (3)
Have you tried using the provided systemd services?
from rtlamr-collect.
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?
from rtlamr-collect.
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)
- Using 2 instances on rtlamr-collect HOT 1
- Error parsing encapsulated message HOT 4
- Runtime error due to no PowerOutageFlags in NetIDM meters HOT 3
- invalid memory address HOT 2
- main.go:427: json unmarshal: json: Unmarshal(nil) HOT 6
- 404 Error HOT 5
- InfluxDB 2 support HOT 3
- Error Message Install HOT 1
- Print collected data to stdout HOT 5
- stumped on "COLLECT_INFLUXDB_TOKEN" undefined HOT 4
- Diagnosing Influx issues HOT 2
- Invalid character error HOT 4
- Can you give us some info on how to set up influxdb? HOT 1
- Where to set envinronment variables (Using Windows) HOT 2
- Depeding on grafana zoom level, water meter gallons used is different HOT 2
- unexpected end of JSON input main.main invalid character C /f E M C E . HOT 3
- Unable to build / install HOT 2
- endpoint_type varying for R900 water meter
- Go install instructions fail
- Grafana Dashboards HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rtlamr-collect.