Community
OpenEnergyMonitor

Community

Log emonPi remotely - doesn't work for me

Log emonPi remotely - doesn’t work for me

I have a 2016 emonPi running locally.
emonPi Build: emonSD-26Oct17

Now I want to use emoncms.org to log feeds.
I have inserted my API write key from emoncms.org into the local EmonHub Config, under the [emoncmsorg] section and press save.

Still, I don’t see any active input feeds at emoncms.org

What have I overlooked, or is there anything else I need to do?

Hello @Bielefeldt, is the emonPi working fine for local logging? I assume your seeing the inputs update fine locally?

Does the emoncms section look like this (but with your apikey?)

[[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

Hi TrystanLea

The EmonPi local works very well :slight_smile:

The API key from my emoncms.org account is properly inserted into the EmonHUB configuration editor. Look at the picture. (Some of the keys are hidden)
Is’s look like yours.

At emoncms.org I can see old input feeds from years ago.

Seems I’ve done it right, but can’t see what’s going wrong.

Local Dashboard (It’s cold in Denmark right now :frowning: )

Local Config with API key

Input feed from emoncms.org (No new data)

Input feed from emonPi local (Okay with new data)

Thanks @Bielefeldt, what does your emonhub log show? Click on “View log” to bring it up, it should show attempts at posting data to emoncms.org every 30s…

Here we have something

2019-11-22 17: 37: 21,421 WARNING emoncmsorg emoncmsorg couldn’t send to server, URLError: timed out

2019-11-22 17: 37: 21,423 WARNING emoncmsorg send failure: wanted ‘ok’ but got ‘’
2

But the URL looks good in EmonHUB / Config

[[emoncmsorg]]
Type = EmonHubEmoncmsHTTPInterfacer
[[[init_settings]]]
[[[runtimesettings]]]
pubchannels = ToRFM12,
subchannels = ToEmonCMS,
url = https://emoncms.org
apikey = f4bb5f82d224170504c49xxxxxxxxxxxx
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

If i insert the url = https://emoncms.org in my browser i see this:

I’m trying to send a Feed to emoncms.org, from an ESP8266.
However, there is no visible data in my emoncms.org account.

Is it possible that the account can / should be reset so that I can start over?

Data i sendt to the emoncms server:

{"char_server_emoncms":"serveremoncms.com","char_port_emoncms":"80","char_apikey_emoncms":"f4bb5f82d224170504c491e6xxxxxxxx","char_updatedata_emoncms":"60","char_input_emoncms":"Sensor_01","char_node_emoncms":"1"}

SSID Now
Bielefeldt_Waoo2
Parameters
serveremoncms.com
80
60
Sensor_01
1

Looks like serveremoncms.com should be emoncms.org

Thanks Bill Thomsen
I managed to send Temperature data to both my local emonPi and emoncms.org, from an ESP8266 with DS18B20 temperature sensor.

Now I just need to find out why my emonPi will not communicate with emoncms.org?

EmonPi local

emoncms.org (Cloud)

Is this just a home grown system? How is the ESP8266 sending the data to the local EmonPi? MQTT?

You say;

and then you say

Those 2 statements appear to be contradictory.

I couldn’t get my emonPi to send data to emoncms.org Friday d. 21-11-2019

In trying to clarify why I couldn’t get my emonPi to send data to emoncms.org, I have tried to send a data feed from an ESP8266. Not MQTT data.

I managed to send data to both my local emonPi and to emoncms.org from this ESP8266 device with DS18B20 sensor.

Now I can see that something has happened to my emoncms.org account.
Sensor data from emonPi now enters emoncms.org.

I think someone has done something to fix the problem on the account.
The fact is that it works now, and that I can set up new feeds myself.

I don’t know who helped solve the problem, but I’m happy and happy that it works.

ESP8266 device with WiFi manager and emoncms
I’ve used an instructables to set up an ESP8266 device that can send data to emonPi or emoncms.org. Using the WiFi manager, I do not need hardcode credentials, and server parameters. This is done on a webpage in the ESP8266 device, during setup.

It works really well, and has taught me a lot to implement.

On my phone that connects to a website on the ESP8266 device, I can fill in the following eight parameters:

  • SSID
  • Code
  • Server address: emoncms.org
  • Server port: 80
  • API Key: xxxxxxxxxxxxxxxxxxxxx
  • Update interval: 60 Sec.
  • Device name
  • emoncms node ID

That is quite interesting. It is simply a bit of code that is sending the data using the Input API to emoncms.org.

Glad it works.

1 Like