Display kWh/d after massive import

Hello,

I am using Emoncms V9 build 26-01-16

I have massively import from csv files data recorded during the last 2 days

I am using the following command in a batch to import data :

http://localhost/emoncms/input/post.json?"&node=%s&time=%s&apikey=%s&jso... % (node, timestamp_epoch, apikey, json_str))

I have 3 feeds :

Log feed : W

W to kWh

W to kWh/d

I would like to display : the production /day /month /year 

I tried the following solutions but none are correct :

1/ Using the Display/Bargraph graphic =>  I have only one bar at the today's date (see picture). 

Could you tell me please if the feeds "W => kWh/d" and "W=>kWh" are working when you import massively data import from a batch ?

2/ Using the Display/Timestore graphic with kWh   => The graph seems correct but I don't have the value in the bar. Is it possible to display the value in the bar  ?

I have also the following question :

Is it possible to display in a Widget/Feedvalue  the current production kWh/d and kWh/month ?

Thank you in advance for your help,

BR

 

 

Paul Reed's picture

Re: Display kWh/d after massive import

You will have to build your kwh feed using the appropriate script in the emoncms/usefulscripts repo. Using your log feed to generate your kwh/d feed.

Paul

gfo's picture

Re: Display kWh/d after massive import

Hello Paul,

Thank you for your answer.

I am sorry but I don't have enough background with emoncms to be able to do what you say. Could you please give me the name of the script and how to install and use it ?

Thank's again.

BR

gfo

Paul Reed's picture

Re: Display kWh/d after massive import

This is the script.

First stop emonhub;

sudo service emonhub stop

Install & run usefulscripts;

git clone https://github.com/emoncms/usefulscripts.git
cd usefulscripts/process && sudo php power_to_kwh.php

follow the onscreen prompts.

Flush Redis;

sudo redis-cli flushall

Restart emonhub;

sudo service emonhub start

Paul

Comment viewing options

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