Help: Meta data for phpfiwa feed is missing the base layer

Is this bad? When I request the meta data for one of my phpfiwa feeds, it shows the number of layers as 3, and is apparently missing the base layer. I'm using the feed in the MySolar app and it seems to be functioning normally.

http://.../emoncms/feed/getmeta.json&id=85722
{"id":85722,"start_time":1437530820,"nlayers":3,"npoints":[333794,33381,5564],"interval":[60,600,3600]}
TrystanLea's picture

Re: Help: Meta data for phpfiwa feed is missing the base layer

Thats fine, it will only create 3 layers if you select that the feed should have an interval of 60s at when its created. If you wish to record at 10s you will need to create a new feed unfortunately.

baldockery's picture

Re: Help: Meta data for phpfiwa feed is missing the base layer

In case anyone is searching for similar questions in the future, here was the source of my confusion:

The Feeds page on emoncms will show has a column showing a value for the feed, and that column will update at the rate the corresponding inputs are updating, which is likely more frequent than the interval at which you are logging the input to the feed.

SO, when I looked at my Feeds page, I could see new values every 10 seconds and figured that's what I had chosen as my interval (9 months ago when I set this all up.) If that were true, then my metadata should have indicated 4 layers and intervals of (10, 60, 600, 3600). But in fact the metadata was correct, and my interval was 60 seconds. 

Note the MySolar app has the same ability to refresh the current power readings more frequently than the inputs are logging to the feed. Which is awesome. But not what I would have guessed until I read the code.

 

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.