I’m a bit lost where we are.
Your system is still not working?
If not, try replacing the current node [[14]]
definition with the old one, restart emonhub and see if that works (posting the emonhub log will be useful).
I’m a bit lost where we are.
Your system is still not working?
If not, try replacing the current node [[14]]
definition with the old one, restart emonhub and see if that works (posting the emonhub log will be useful).
OK, I’ll try again.
But what causes the linux screen of the EmonBase not showing the “emonpi login:” line, about 5 seconds after completing reboot?
Why is the raspberry not ready after reboot and has it removed the line “emonpi login:” and only shows cursor blinking?
Do you have a mouse and keyboard plugged in?
no, only the hdmi
I think it Raspbian might detect there is no input device now.
This is indeed pretty difficult and still not working allthough this is I think the 10th attempt.
Hereby in short what I did now and attached the emonhub log:
emonhub log.txt (545,1 KB)
Model :- Raspberry Pi 3 Model B Rev 1.2 - 1GB (Sony UK)
Serial num. :- 670D57CB
Temperature :- 52.62°C - 52.1°C
emonpiRelease :- emonSD-17Oct19
File-system :- read-write
And the emon conf:
#######################################################################
####################### emonhub.conf #########################
#######################################################################
### emonHub configuration file, for info see documentation:
### https://github.com/openenergymonitor/emonhub/blob/emon-pi/conf/emonhub.conf
#######################################################################
####################### emonHub settings #######################
#######################################################################
[hub]
### loglevel must be one of DEBUG, INFO, WARNING, ERROR, and CRITICAL
loglevel = DEBUG
### Uncomment this to also send to syslog
# use_syslog = yes
#######################################################################
####################### Interfacers #######################
#######################################################################
[interfacers]
### This interfacer manages the RFM12Pi/RFM69Pi/emonPi module
[[RFM2Pi]]
Type = EmonHubJeeInterfacer
[[[init_settings]]]
com_port = /dev/ttyAMA0
com_baud = 38400 # 9600 for old RFM12Pi
[[[runtimesettings]]]
pubchannels = ToEmonCMS,
subchannels = ToRFM12,
group = 210
frequency = 433
baseid = 5 # emonPi / emonBase nodeID
calibration = 230V # (UK/EU: 230V, US: 110V)
quiet = true # Disable quite mode (default enabled) to enable RF packet debugging, show packets which fail crc
# interval = 300 # Interval to transmit time to emonGLCD (seconds)
[[MQTT]]
Type = EmonHubMqttInterfacer
[[[init_settings]]]
mqtt_host = 127.0.0.1
mqtt_port = 1883
mqtt_user = emonpi
mqtt_passwd = emonpimqtt2016
[[[runtimesettings]]]
pubchannels = ToRFM12,
subchannels = ToEmonCMS,
# emonhub/rx/10/values format
# Use with emoncms Nodes module
node_format_enable = 1
node_format_basetopic = emonhub/
# emon/emontx/power1 format - use with Emoncms MQTT input
# http://github.com/emoncms/emoncms/blob/master/docs/RaspberryPi/MQTT.md
nodevar_format_enable = 1
nodevar_format_basetopic = emon/
[[emoncmsorg]]
Type = EmonHubEmoncmsHTTPInterfacer
[[[init_settings]]]
[[[runtimesettings]]]
pubchannels = ToRFM12,
subchannels = ToEmonCMS,
url = https://emoncms.org
apikey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
senddata = 1 # Enable sending data to Emoncms.org
sendstatus = 1 # Enable sending WAN IP to Emoncms.org MyIP > https://emoncms.org/myip/list
sendinterval= 30 # Bulk send interval to Emoncms.org in seconds
#######################################################################
####################### Nodes #######################
#######################################################################
[nodes]
## See config user guide: https://github.com/openenergymonitor/emonhub/blob/emon-pi/conf/emonhub.conf
[[7]]
nodename = emontx4
[[[rx]]]
names = power1, power2, power3, power4, vrms, temp1, temp2, temp3, temp4, temp5, temp6, pulse
datacodes = h,h,h,h,h,h,h,h,h,h,h,L
scales = 1,1,1,1,0.01,0.1,0.1, 0.1,0.1,0.1,0.1,1
units = W,W,W,W,V,C,C,C,C,C,C,p
[[10]]
nodename = emontx2
[[[rx]]]
names = P1, P2, P3, P4, batt, temp1, temp2, temp3, temp4, temp5, temp6, pulse
datacodes = h
scales = 1,1,1,1,0.01,0.01,0.01,0.01,0.01,0.01,0.01,1
units = W,W,W,W,V,C,C,C,C,C,C,p
[[14]]
nodename = emontx1
[[[rx]]]
names = P1, P2, P3, P4, batt, temp1, temp2, temp3, temp4, temp5, temp6,temp7,temp8,temp9,temp10,temp11,temp12,temp13,temp14,temp15,temp16,temp17,temp18,temp19,temp20,temp21,temp22,temp23,temp24,pulse
datacode = h
scales = 1,1,1, 0.11, 0.01, 0.1,0.1,0.1,0.1,0.1, 0.1,0.1,0.1,0.1,0.1, 0.1,0.1,0.1,0.1,0.1, 0.1,0.1,0.1,0.1,0.1, 0.1,0.1,0.1,0.1, 1
units = W,W,W,W, V, C,C,C,C,C, C,C,C,C,C, C,C,C,C,C, C,C,C,C,C, C,C,C,C, N
[[15]]
nodename = emontx3cm15
[[[rx]]]
names = MSG, Vrms, P1, P2, P3, P4, E1, E2, E3, E4, T1, T2, T3, pulse
datacodes = L,h,h,h,h,h,L,L,L,L,h,h,h,L
scales = 1,0.01,1,1,1,1,1,1,1,1,0.01,0.01,0.01,1
units = n,V,W,W,W,W,Wh,Wh,Wh,Wh,C,C,C,p
whitening = 1
If the data being sent from the emonTx is compatible with Node 14, then Nodes 8 and 10 will not work because the default definition is not correct for your emonTx as Node 8, and node 10 definition is not legal - therefore it does not know how to decode the data so it will be rejected as “interference”.
In order to decode and use the data, you must have either all the data sent as signed 2-byte integers, or a Node ID defined in emonhub.conf that either exactly matches the format of the data being sent, or uses one of the “universal” specifiers, e.g. “datacode = h” - meaning that every value comes as a signed 2-byte integer, with no exceptions. Note “datacode”, not “datacodes” - which is why Node 10 does not work.
Node 14 will probably not work also, because I think the pulse count will be an unsigned long 4-byte integer, needing code “L”, therefore you must specify a code for every variable coming in since they are not all the same.
All the details:
Are you processing the Inputs to Feeds? You can only graph feeds (note there is a delay of 5 minutes as the data is only written to disk once every 5 minutes).
Not sure why you would expect the definitions of node 8 / 9 to wok - only node 14 matches your data string - as it used to do.
Question:
Do you see Inputs for each of the EmonTXs?
Does the EmonBase have internet connectivity?
Yes you always seem to get one error of a failed connection followed immediately by a connection accepted message.
To answer the three questions:
Are you processing the Inputs to Feeds ? Yes
Do you see Inputs for each of the EmonTXs? Yes
Does the EmonBase have internet connectivity? Yes I think so, I enabled SSH and can access the emonBase now with Putty.
But about the internet connectivity: I tried to use
sudo su
apt-get update
This causes errors and says something about a autorisation for the internet connection.
Do you know why apt-get is not working?
Assume nothing.
Yes, it does not have connection to the internet!
First thing to do is restart your router. Likely to be confused because of the new SD Card.
Can you post the Inputs page please (for both emontx inputs) - clearly no data is getting to the feed as it says inactive.
Not that it matters a great deal, but if you’re logged on as root,
the sudo su
command isn’t needed before running apt-get update
Actually that is quite difficult to do on a Pi as the root account is disabled by default I thought.
Might be part of the problem. Should be logged in as user pi
.
All I’ve ever had to do to get around that, was give the root account a password.
True, but not really necessary and can have unexpected consequences in terms of permissions if used all the time. Generally on Raspbian, you are better off with logging in as Pi and using sudo
.
If by that, you mean logging on as root
all the time, YES!
I wasn’t advocating that, just saying it’s easy to circumvent.
It’s never a good idea with any OS to use the root account
in the manner one would use an “unpriviliged” user acount.