Yep, it's me again! :D
I'm uploading data every 5 minutes do EmonCMS. 17 different devices.
All the values I'm sending are floats but in Emon only the temperature is a decimal number. All other being showed as integers. Does this occur because the values are too big?
I'm sending the accumulated kWh so, my General Electricity value is 1360030.34 kWh but in Emon it only shows as 1360030. Is there any way to have de decimal here?
Now the Feeds:
I saw in the following thread (http://openenergymonitor.org/emon/node/5325) that a "normal" process list for this kind of input would be "log to feed, *1000, wh accumulator, *0.001, kWh to Power".
I've setted that in one of my input entry to test it but the kwhpwr is inactive in the Feed list. The log is working thoug, but that graph isn't interesting as it only shows the accumulated kWh...
What I want to see in a graph is the electricity consumed every 5 minutes or something like that.
The current software I'm using, receives my data in accumulated kWh (same data I'm sending to EmonCMS). Then I can choose to see the graph with kWh for every 15 minutes, hour, day, week or month (you can see it in the attachment).
How can I have something similar here?
Re: Inputs and Feeds
Hi.
Another questions:
Since I'm sending accumulated kWh to Emon, shouldn't the kWh to Power feed work? Why is the feedvalue always 0?
I'm sending data using a link like this - http://xxx/xxx/input/post.json?time=%s&node=1&csv=%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f&apikey=6ae15ad0fe8bd43be407031c6507ffeb' % (epoch, float(dados_alterados[2]), float(dados_alterados[3]), float(dados_alterados[4]), float(dados_alterados[5]), float(dados_alterados[6]), float(dados_alterados[7]), float(dados_alterados[8]), float(dados_alterados[9]), float(dados_alterados[10]), float(dados_alterados[11]), float(dados_alterados[12]), float(dados_alterados[13]), float(dados_alterados[14]), float(dados_alterados[15]), float(dados_alterados[16]), float(dados_alterados[17]), float(dados_alterados[18]))
Edit:
I'm almost going crazy with this...
I'm using a local EmonCMS and, has said above, not being able to generate kWh to Power feeds.
I've tested now on emoncms.org to see if it works there and, you know what, it does! So I've narrowed the problem down to my local emoncms instalation. I would appreciate further assistance on this, if someone can help me :)
Edit of Abril 7th:
I've installed emonCMS again using wampserver. The result is the same. Can't generate kWh to Power feeds
I've attached 2 jpegs. wwwemoncms.jpg is the process order on emoncms.org. wampserver.jpg is the process order on localhost/emoncms
Feedvalue always 0 :( I'm completely lost right now
Re: Inputs and Feeds
Which version (branch) of emoncms are you using? did you follow a guide?
One thing that is essential for that particular processor is redis ( it simply steps out of the processor if redis isn't found ) Is redis installed? is it running ?
Paul
Re: Inputs and Feeds
I've installed the Master branch.
I've followed the Windows Install guide - https://github.com/emoncms/emoncms/blob/master/docs/WindowsInstall.md
I have that line in my process_model.php too.
Re: Inputs and Feeds
Does your local system has the right time? , if not emoncms isn't calculating data older 2 hours ...
Re: Inputs and Feeds
It has the same time as emoncms.org. I'm sending data with timestamp and on all instalations (local, server and global) the time are the same.
Re: Inputs and Feeds
Did you check Redis?
I don't use windows emoncms nor that processor so I can't test anything or speak from experience.
I believe I'm right in saying Redis doesn't natively install or run on windows, so it's unlikely you'll have it, therefore that may render that processor unavailable to you. I don't know for sure so maybe someone can confirm.
I believe there are windows ports of redis by Microsoft but know absolutely nothing about how of even if you could use something like that. I don't recall any mention on the forum.
I don't even know for sure that's your problem but it seems too coincidental that the same "redis-dependent" processor runs on emoncms.org but not on a windows PC when redis isn't native to windows.
If there isn't a better solution to be found maybe it's possible to create a linux virtual machine (VM) on the windows PC ?
Paul
Re: Inputs and Feeds
How can I check if redis is running?
The emonCMS is running in linux in the server where I installed it. I have it running both in linux (in the webserver) and in windows in my local instalation using the WAMPserver.
In both instalations kwh to power or kwh to kwh/d aren't working.
Re: Inputs and Feeds
Ok, that changes things quite significantly !
to test for redis on the linux machine type
at the command prompt, the return should be "PONG"
The "kwh to kwh/d" processor also depends on redis so that could still support a redis theory, however the additional linux server revelation throws a spanner in the works as redis should run on linux. Are the installs and symptoms exactly the same?
Paul
Re: Inputs and Feeds
All installs are Master branch EmonCMS copy/pasted from the github. And the symptons are the same for all too.
I can only access the emonCMS installation in the server by FTP. I know it is on linux because I asked the provider on what machine was it running. I don't have a command prompt (I think).
Recapitulating:
My pc has windows 7. I access the folders in the server using FTP. That server runs in linux. I've copy/pasted the emonCMS master branch from github. Changed the settings.php like it is said in the guide (had to change Modules/feeds/engines/phpfina.php phpfiwa.php phptimeseries.php and phptimestore.php also to be able to create feeds, otherwise I had an error while trying to create them (error couldn't create feed, undefined)).
The other installation I have is with wampserver on my pc. Installed wampserver and followed the complete guide step by step. In this installation I didn't need to change those files in Modules/feeds/engines folder.
In both installs the same problem happens.
Re: Inputs and Feeds
Again as I don't use a shared server I cannot speak from experience but I suspect the linux server is not running redis, you could ask your provider.
There may also be away of writing/uploading a php script to just test if redis is running if you cannot access the command line, but PHP isn't my strong point either, sorry I'm not proving very useful !!!
Paul
Re: Inputs and Feeds
I really thank your effort on trying to solve my problem! Thank you :)
I've searched in the forum for topics regarding problems with feeds or redis (also searched in google) and I can't seem to find anyone with same problem as mine.
I can't be the first to have this problem using EmonCMS in WAMPserver or shared server can I? I mean, there's a whole tutorial on how to install EmonCMS using WAMPserver so there must be more people using windows with Emon.
We've bought a raspberry pi to start playing with it. I've already manage to install EmonCMS in it (used raspbian then followed the tutorial (https://github.com/emoncms/emoncms/blob/master/docs/LinuxInstall.md + youtube tutorial by jhon). tryed to use the ready-to-go image but since I'm starting with raspbian not having a GUI isn't really an option)
And those feeds are working properly. The only place I really need this to work (server) isn't :/
Re: Inputs and Feeds
Bruno, You say you have an accumulating energy (kwh) value arriving in emoncms from which you wish to calculate a power (kw) value. Can you confirm this is the case as the image attached to your OP shows a graph that shows a value plotted between ~20kwh and ~40kwh depending on time of day. Firstly that isn't an accumulating amount but it is labeled kwh not kw which is confusing. The graph suggests either you have a extremely well balanced PV array and consumption or that you consistently consume between 20 and 40 kw's even at night! neither sounds right. either is possible I guess but unlikely.
Looking at you other thread I wonder if you would be better off performing some calculations in your "upload script" prior to sending to emoncms. It shold be quite easy to retain the kw readings and subtractthem from the new incoming values to get a "used since last update" combined with a similar subtraction of timestamps you could calculate and send a power reading to emoncms. Then you would not need the kwh to power feed and you could use a power to kwh/d instead of a kwh to kwh/d so redis wouldn't be needed either..
Paul
Re: Inputs and Feeds
The image I attached is the energy consumption (kWh) every 15 minutes (it's what I want to have in EmonCMS). This is a consumption in a hotel, that's why there's a lot of energy consumption.
That can be a solution but I'm not a fan of it since my programming skills are very (very!) limited!
Re: Inputs and Feeds
Ok, So the energy consumption for any given 15mins can be over 40kwh's which means a load averaging over 160kw. I can see why you would want to monitor that !
The calc external to emoncms isn't ideal no, but I think it's the best you will get without root access to a linux host. because of redis. Unless of course you use an emoncms.org account.
I think that scale of consumption could easily justify the expense of a Pi and a emonTx, that would give you near instantaneous power readings at 5-10 second intervals rather than 15mins, and with more CT's plus your existing values too you could get a more detailed view of where the powers going. Plus it's scalable.
Paul
Re: Inputs and Feeds
Hi Paul,
For future projects that can be the solution (I've already have the pi to start testing it) but in this local we already have all the meters and they're being used in the scada system so we can't get read of them.
Re: Inputs and Feeds
Can you not just set up a Pi as a (linux) emoncms server to receive the FTP/CSV data from those meters the same way are currently trying to achieve on a windows server?
This can be done remotely or locally, I was merely suggesting if done local to the hotel you have the option to add emontx to it (or not) which would give you greater detail.
Paul