Hello,
I have installed emoncms on my shared linux server. I can access to this emoncms. I copy the read write api and paste it to my emonpi. I write the right http address of the server. When I look the emonhub log, I have a WARNING with an httperror 410. Someboby can help me? Thank you
News: When I do that with the browser and it function:
https://www.gftechnology.ch/emoncms/input/post.json?node=1&json={power:200}&apikey=xxxxxxxxMyAPIKeyxxxxxxxxx
News2: The log of emonhub:
2017-06-05 13:34:35,351 INFO gftechnology sending: https://www.gftechnology.ch/emoncms/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[[1496662449.488229,11,306,151,682,0,226.06,18.7,301,301,301,301,301,0,0,-22],[1496662460.322888,11,304,151,680,0,226.3,18.8,301,301,301,301,301,0,0,-28],[1496662471.166822,11,303,147,680,0,226.45000000000002,18.8,301,301,301,301,301,0,0,-22]]&sentat=1496662475
2017-06-05 13:34:35,574 WARNING gftechnology gftechnology couldn't send to server, HTTPError: 410
2017-06-05 13:34:35,576 WARNING gftechnology send failure: wanted 'ok' but got ''
News 3: and that is the error on my linux shared server:
[Mon Jun 05 14:19:10.232574 2017] [core:info] [pid 797284] [client 83.76.121.9:47856] AH00128: File does not exist: /home/wd1wugvx/public_html/410.shtm
News 4: I try this line (the one with error) in my web browser and it function. I understand nothing…:
https://www.gftechnology.ch/emoncms/input/bulk.json?apikey=******MYAPIKEY*******&data=[[1496662449.488229,11,306,151,682,0,226.06,18.7,301,301,301,301,301,0,0,-22],[1496662460.322888,11,304,151,680,0,226.3,18.8,301,301,301,301,301,0,0,-28],[1496662471.166822,11,303,147,680,0,226.45000000000002,18.8,301,301,301,301,301,0,0,-22]]&sentat=1496662475
So when I try manually to do a bulk in the web browser it function. But when the bulk is done with emonpi it don’z function. It is exactly the same line? When I post on emoncms.or all is ok…???
here my emonhub.conf:
[[emoncmsorg]]
Type = EmonHubEmoncmsHTTPInterfacer
[[[init_settings]]]
[[[runtimesettings]]]
pubchannels = ToRFM12,
subchannels = ToEmonCMS,
url = https://emoncms.org
apikey = xxxx
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
[[emoncmsgfte]]
Type = EmonHubEmoncmsHTTPInterfacer
[[[init_settings]]]
[[[runtimesettings]]]
pubchannels = ToRFM12,
subchannels = ToEmonCMS,
url = https://www.gftechnology.ch/emoncms
apikey = xxxxx
senddata = 1 # Enable sending data to Emoncms.org
sendinterval= 30 # Bulk send interval to Emoncms.org in seconds