Hello,
I’m using emoncms as a repository for data from a dozen ds18b20. I am currently receiving the inputs and have those going in to one feed.
I am logging every 15 minutes currently and I can display the results in a daily graph / data viewer. However, when I switch to the weekly view I don’t see any data.
What needs to happen to see the data over a period longer than a day? Do I need to create a virtual feed?
It would be helpful if you can describe (or show pictures) of your config.
I believe each Input should go to individual Feeds (unless you’re making calculations with the inputs before logging) and those feeds would then be used in the Daily Graphs.
seeing the section at the bottom of the page makes me think I need to do some sort of aggregating of the feed? Ideally, I’m just looking for something like the first graph but just over more than a 24 hour period.
Thanks, I installed emoncms locally last year to try and interface with my pv system but I couldn’t get the data out of it so it sat dormant. I did upgrade it recently and as far as I can tell it’s at 10.2.0
Thanks Brian,
The unit sending the feeds is only sending every 15 minutes - I’m thinking that’s what I need to change, to say every minute?
I did try zooming in and adding show missing data but it still shows no data.
I’ve just realised that was utter and total garbage! I’ve got a Speedtest result I am logging on an hourly basis and it works fine! Doh! No idea what I was thinking.
I haven’t been recording it too long, several days. Your comment about zoom level did inspire me though … If I click on the ‘D’ for where I see data, I can then change the start date. My data only starts 8th March but I can go back to March 1st. After that though I get:
If I go back to the ‘D’ button it resets to the preceding 24 hours, but if I hit the ‘-’ button it goes blank and tries to show the preceding 48 hours.
Though … experimenting more, some progress. Not knowing any better, when I set the feeds up for the inputs I set the fixed rate at 120 seconds.
I noticed that on the graph, hitting the zoom level changed the fixed interval setting to 180. If I change that setting to a multiple of 120 I get data displaying.
A similar thing for ‘M’ - it changes the interval to 3600. Now I would have thought that would work being a multiple of 120 but it doesn’t. 3849 does though as does 1920 and 960.
Zooming with + and - changes the interval to numbers the graph doesn’t like. I’m not sure what the reasoning is but it feels like progress
To the best of my knowledge, the reasoning is:
If the data point the graph wants exists, it uses it.
If the data point doesn’t exist, it uses the nearest.
If the data point nearest contains a null value, it uses it.
The catch is, the way it records data is:
The data arrives. If a new value arrives before that one is logged, the first gets overwritten.
If no data arrives before the time comes to log, it records a null value.
So your data should arrive the same as or faster than the logging times in order to not record null values.
What you’re seeing then is if your zoom level happens to land on non-null values, you see data. Otherwise you’re looking at nulls.
So I’d say you need to log every 15 minutes, if that’s the rate at which data comes in. Or 15m 1 s if you want to be sure never to have a null recorded, but the cost is you lose a data point once in a while. Of course, if the incoming data just misses a recording slot, it’s logged as arriving 15 mins later than it actually did.
The cure for that, given the data rate is so slow, may be to use the PHPTimeseries, which stores the time as well as the value for each data item. We normally don’t use that with energy data arriving every 5 or 10 s, because it costs dearly in data storage space, but for your purpose, it might be ideal.
Thanks for your everyones assistance. I think this is the solution. I added a feed with the PHPTimeseries and it’s been running for a few hours and I can use the +/- buttons as well as the W, M & Y buttons.
I don’t want this to sound whiney - but I have had difficulty finding good user documentation - and I know this isn’t the typical use case for the project. I’m not sure if I just haven’t looked in the right places.
Thanks @montgomeryb, its important with PHPFina feeds to use a feed interval that matches your post interval. So if your posting the data every 15 mins the feed interval needs to be 15 mins otherwise you will see empty graphs (if averaging is turned off).