cant connect to emoncms web app with emonpi

Hi

I set up my emon pi and got everything working localy but I cant get any data show ing on https://emoncms.org/myip/list.

Hope you can help me.

 

2016-03-19 08:46:54,895 DEBUG RFM2Pi 1364 From Node : 5 2016-03-19 08:46:54,896 DEBUG RFM2Pi 1364 Values : [34, 41, 75, 230, 26, 26.200000000000003, 26.3, 0, 0, 0, 13] 2016-03-19 08:46:54,897 INFO RFM2Pi Publishing: emonhub/rx/5/values 34,41,75,230,26,26.2,26.3,0,0,0,13 2016-03-19 08:46:54,899 INFO RFM2Pi Publishing: emonhub/rx/5/rssi 0 2016-03-19 08:46:54,901 DEBUG RFM2Pi 1364 adding frame to buffer => [1458377214, 5, 34, 41, 75, 230, 26, 26.200000000000003, 26.3, 0, 0, 0, 13] 2016-03-19 08:46:54,902 DEBUG RFM2Pi 1364 Sent to channel' : ToEmonCMS 2016-03-19 08:46:59,876 DEBUG RFM2Pi 1365 NEW FRAME : OK 5 34 0 41 0 75 0 216 89 4 1 6 1 7 1 0 0 0 0 0 0 13 0 0 0 (-0) 2016-03-19 08:46:59,880 DEBUG RFM2Pi 1365 Timestamp : 1458377219.88 2016-03-19 08:46:59,881 DEBUG RFM2Pi 1365 From Node : 5 2016-03-19 08:46:59,882 DEBUG RFM2Pi 1365 Values : [34, 41, 75, 230, 26, 26.200000000000003, 26.3, 0, 0, 0, 13] 2016-03-19 08:46:59,883 INFO RFM2Pi Publishing: emonhub/rx/5/values 34,41,75,230,26,26.2,26.3,0,0,0,13 2016-03-19 08:46:59,885 INFO RFM2Pi Publishing: emonhub/rx/5/rssi 0 2016-03-19 08:46:59,887 DEBUG RFM2Pi 1365 adding frame to buffer => [1458377219, 5, 34, 41, 75, 230, 26, 26.200000000000003, 26.3, 0, 0, 0, 13] 2016-03-19 08:46:59,888 DEBUG RFM2Pi 1365 Sent to channel' : ToEmonCMS 2016-03-19 08:47:04,953 DEBUG RFM2Pi 1366 NEW FRAME : OK 5 34 0 42 0 76 0 216 89 4 1 7 1 7 1 0 0 0 0 0 0 13 0 0 0 (-0) 2016-03-19 08:47:04,957 DEBUG RFM2Pi 1366 Timestamp : 1458377224.95 2016-03-19 08:47:04,958 DEBUG RFM2Pi 1366 From Node : 5 2016-03-19 08:47:04,959 DEBUG RFM2Pi 1366 Values : [34, 42, 76, 230, 26, 26.3, 26.3, 0, 0, 0, 13] 2016-03-19 08:47:04,960 INFO RFM2Pi Publishing: emonhub/rx/5/values 34,42,76,230,26,26.3,26.3,0,0,0,13 2016-03-19 08:47:04,962 INFO RFM2Pi Publishing: emonhub/rx/5/rssi 0 2016-03-19 08:47:04,964 DEBUG RFM2Pi 1366 adding frame to buffer => [1458377224, 5, 34, 42, 76, 230, 26, 26.3, 26.3, 0, 0, 0, 13] 2016-03-19 08:47:04,965 DEBUG RFM2Pi 1366 Sent to channel' : ToEmonCMS 2016-03-19 08:47:09,916 DEBUG RFM2Pi 1367 NEW FRAME : OK 5 34 0 42 0 76 0 216 89 4 1 7 1 7 1 0 0 0 0 0 0 13 0 0 0 (-0) 2016-03-19 08:47:09,920 DEBUG RFM2Pi 1367 Timestamp : 1458377229.92 2016-03-19 08:47:09,921 DEBUG RFM2Pi 1367 From Node : 5 2016-03-19 08:47:09,923 DEBUG RFM2Pi 1367 Values : [34, 42, 76, 230, 26, 26.3, 26.3, 0, 0, 0, 13] 2016-03-19 08:47:09,924 INFO RFM2Pi Publishing: emonhub/rx/5/values 34,42,76,230,26,26.3,26.3,0,0,0,13 2016-03-19 08:47:09,926 INFO RFM2Pi Publishing: emonhub/rx/5/rssi 0 2016-03-19 08:47:09,928 DEBUG RFM2Pi 1367 adding frame to buffer => [1458377229, 5, 34, 42, 76, 230, 26, 26.3, 26.3, 0, 0, 0, 13] 2016-03-19 08:47:09,929 DEBUG RFM2Pi 1367 Sent to channel' : ToEmonCMS

 

2016-3-19 08:46:54 MQTT INFO Received mqtt message: emonhub/rx/5/values 34,41,75,230,26,26.2,26.3,0,0,0,13 2016-3-19 08:46:55 MQTT INFO Received mqtt message: emonhub/rx/5/rssi 0 2016-3-19 08:46:57 MQTT INFO Reloading config 2016-3-19 08:47:00 MQTT INFO Received mqtt message: emonhub/rx/5/values 34,41,75,230,26,26.2,26.3,0,0,0,13 2016-3-19 08:47:00 MQTT INFO Received mqtt message: emonhub/rx/5/rssi 0 2016-3-19 08:47:02 FEEDWRITER INFO PHPTimeSeries bytes written: 0 2016-3-19 08:47:02 FEEDWRITER INFO PHPFina bytes written: 252 2016-3-19 08:47:03 MQTT INFO Reloading config 2016-3-19 08:47:05 MQTT INFO Received mqtt message: emonhub/rx/5/values 34,42,76,230,26,26.3,26.3,0,0,0,13 2016-3-19 08:47:05 MQTT INFO Received mqtt message: emonhub/rx/5/rssi 0 2016-3-19 08:47:09 MQTT INFO Reloading config 2016-3-19 08:47:10 MQTT INFO Received mqtt message: emonhub/rx/5/values 34,42,76,230,26,26.3,26.3,0,0,0,13 2016-3-19 08:47:10 MQTT INFO Received mqtt message: emonhub/rx/5/rssi 0 2016-3-19 08:47:15 MQTT INFO Reloading config 2016-3-19 08:47:15 MQTT INFO Received mqtt message: emonhub/rx/5/values 34,42,76,230,26,26.3,26.3,0,0,0,13 2016-3-19 08:47:15 MQTT INFO Received mqtt message: emonhub/rx/5/rssi 0 2016-3-19 08:47:19 MQTT INFO Received mqtt message: emonhub/rx/5/values 34,41,75,230,26,26.3,26.3,0,0,0,13 2016-3-19 08:47:20 MQTT INFO Received mqtt message: emonhub/rx/5/rssi 0 2016-3-19 08:47:21 MQTT INFO Reloading config 2016-3-19 08:47:25 MQTT INFO Received mqtt message: emonhub/rx/5/values 33,40,73,230,26,26.3,26.3,0,0,0,13 2016-3-19 08:47:25 MQTT INFO Received mqtt message: emonhub/rx/5/rssi 0 2016-3-19 08:47:27 MQTT INFO Reloading config 2016-3-19 08:47:30 MQTT INFO Received mqtt message: emonhub/rx/5/values 34,43,77,230,26,26.2,26.3,0,0,0,13 2016-3-19 08:47:30 MQTT INFO Received mqtt message: emonhub/rx/5/rssi 0 2016-3-19 08:47:33 MQTT INFO Reloading config 2016-3-19 08:47:35 MQTT INFO Received mqtt message: emonhub/rx/5/values 34,41,75,230,26,26.3,26.3,0,0,0,13 2016-3-19 08:47:35 MQTT INFO Received mqtt message: emonhub/rx/5/rssi 0 2016-3-19 08:47:39 MQTT INFO Reloading config 2016-3-19 08:47:40 MQTT INFO Received mqtt message: emonhub/rx/5/values 34,43,77,230,26,26.3,26.3,0,0,0,13 2016-3-19 08:47:40 MQTT INFO Received mqtt message: emonhub/rx/5/rssi 0

 

Cheers Rob

thertheotheb's picture

Re: cant connect to emoncms web app with emonpi

My Local IP

Local emonBase and port forwarding needs to be configured to use this feature

WAN: If your away LAN: If your at home Last updated
http://undefined http://false/emoncms
ssh pi@false 1458380811s ago

API Example:

https://emoncms.org/myip/set.json?apikey=cd89295e412672b05c5a0a51ec86d563

To view your local emonBase emoncms opening firewall http port 80 on your router is required.

glyn.hudson's picture

Re: cant connect to emoncms web app with emonpi

Do you have sendstatus=1 in the emonhub.conf emoncms interfacer section? 

thertheotheb's picture

Re: cant connect to emoncms web app with emonpi

yes I got that!

[[emoncmsorg]]
    Type = EmonHubEmoncmsHTTPInterfacer
    [[[init_settings]]]
    [[[runtimesettings]]]
        pubchannels = ToRFM12,
        subchannels = ToEmonCMS,
        url = http://emoncms.org
        apikey = https://emoncms.org/myip/set.json?apikey=cd89295e41********86d563
        senddata = 1
        sendstatus = 1

 

[APIKey obscured - Moderator (RW)]

thertheotheb's picture

Re: cant connect to emoncms web app with emonpi

EmonPi ip is 192.168.1.2

Still no connection.

Edit - resized image - Moderator, BT

Robert Wall's picture

Re: cant connect to emoncms web app with emonpi

What have you got for your APIKey? - no wonder it won't connect, you have the entire URL in there as well. All you need is the APIkey itself.

        url = http://emoncms.org
        apikey = cd89295e41....[etc - fill in the full 32 digits]
        senddata = 1
 

thertheotheb's picture

Re: cant connect to emoncms web app with emonpi

Thanks a Lot

I was so stupid and used the sample key!

Cheers for your help!

Much appreciated

glyn.hudson's picture

Re: cant connect to emoncms web app with emonpi

Yup, what Robert said. 

Also if you want to post via secure SSL (htts rather than http) highly recommended you will need outward port 443 open. This should be open by standard. You don't need any incoming ports open (unless you want to connect to your emonPi from the outside.

Comment viewing options

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