You are being very secretive. What board? Which emonCMS? How are you trying to connect? What are you trying to send? Does your data conform to the format that emonHub expects?
All the instructions for emonCMS are in the “Guide” section. This assumes you are using our standard set-up - an emonPi or emonBase, optionally receiving data from one or more emonTx or emonTH.
If you have anything different, then you must arrange to send your data in a compatible format. You should probably not change anything other than the configuration files in the standard emonHub/emonCMS combination to suit your sketch, but rather make your sketch compatible with our standard. That way, you will be able to update emonCMS without having to rewrite it every time.
what board?
A single phase emonpi based on atmega328P micro controller., which is consist of three CT input (CT1 = pin 26, CT2 = pin 19 and CT3 = pin 22) and a AC-AC reference voltage ( pin 23).
2.Which emonCMS?
Local
3.How are you trying to connect?
With RasberryPI 3 MODEL B
4.What are you trying to send?
Current, Voltage and Power
Does your data conform to the format that emonHub expects?
Don’t know
Hello @Robert.Wall, I am working on the same PCB with @irfiee.
Here, we have not used the RFM12 module on our PCB (emonpi board), is there any other way to send the data to the local host emoncms?
Thank you for your prompt reply, But our PCB doesnot have esp8266, as we are using the inbuilt wifi feature on raspberry pi3.
The thing is, when I program the single phase pcb, I can view the realtime data on the linux terminal from PI, but sending data to emoncms localhost is a pickle as I am not able to figure that out.
In that case, look at emonhub.conf and set that up with the correct settings for the serial input, and that and your sketch with a consistent data format, according to the links in post no.19.
You must not have two processes (i.e. minicom and emonhub) trying to read the serial port at the same time.
Okay so how do I get the pi to read data from the board for emonhub?
Because,l when I upload the code to the emonpi board, I can see the output on serial monitor just fine (for atmega328p) , I just cant get it to show up on the localhost.
Also, in reference to the post 19 I have formatted the data as per function send_emonpi_serial();
Have you set up the serial interfacer, which is where emonHub receives the serial data from the “emon” part of the emonPi, for the correct data format from your Arduino? - baud rate, port, etc?
Look at
Hello @Robert.Wall ,
Thank you for your help, I was able to fix the issue and finally getting some data on EmonCMS.
The only thing I am struggling with now is, I am not able to change the date and time and I have tried following:
a)follow the steps to set the date
sudo raspi-config
Internationalization options
Change Time Zone
Select geographical area
Select city or region.
Reboot your pi.
(gives me error: there was an error running option i2 change timezone)
b) via ntp
sudo service ntp stop
sudo ntpd -gq
sudo service ntp start
(freezes on the second command)
c) manual commands
date +%Y%m%d -s “20120418”
date +%T -s “11:14:00”
It just keeps saying,
“date : cannot set date :operation not permitted”
Also i did put my pi in rw mode before trying these by using rpi-rw.
I don’t know the Raspberry Pi and emonCMS very well at all, but I understand you need to set the time (and timezone) in two places - in the Raspberry Pi and in emonCMS.
Thank you for your reply…!
I am able to update all feeds now locally and online. When I first started testing the data logging, (locally and remotely) it was working fine with the real-time graphs and everything.
I also wrote a new config for the nodes as i wanted fewer parameters to compare;
This is what i wrote:
I mean, Like the first time i configured it (Emonhub config on local emonpi) to get the data remotely, everything was working fine.
I could see the real time graphs and everything.
But now, I cant seem to get the data to be viewed graphically. But I can see it receiving live data on the inputs page.