Not sending data to Emoncms - Printable Version +- vThings Forums (http://forum.vair-monitor.com) +-- Forum: vThings (http://forum.vair-monitor.com/forumdisplay.php?fid=1) +--- Forum: vAir Monitor (CO2, Dust, Tempereature, etc..) (http://forum.vair-monitor.com/forumdisplay.php?fid=2) +--- Thread: Not sending data to Emoncms (/showthread.php?tid=39) |
Not sending data to Emoncms - mattG - 12-21-2016 We have been trying to get a new vAir Monitor to send its readings to a account on the Emoncms.org site. Apart from a couple of initial readings after we have setup key values for each senor, we have not received any data. The vThings Configuration Utility does show it getting readings, and if I send the call_url, with the line found under the http section of the utility, replacing the %TEMP% with fixed value it will update Emoncms.org account. Can you advise if we have missed something in setup it? Thanks RE: Not sending data to Emoncms - admin - 12-21-2016 hmmm does it send anything or just some initial values ? can you enable debug from the Settings menu and then send me some logs from the output screen when you test using the Test button = does it work correctly RE: Not sending data to Emoncms - mattG - 12-22-2016 It not sending anything since setting up the Emoncms input keys values. The output log when I press the test button in the debug mode is-: [Scheduling command: crc4AsendNow Scheduling command: nop crc4AsendNow Scheduling command: sendNow PowerManager timeout: 0 PowerManager disabled sendNow --- DestHanlder: sendValue --- 1] [BME280 - init failed! Found BMP085 - Temperature/Pressure Sensor] [16,5,1,3,15,1,67,64,2A,4,0,0,C,2,10,40,E0,16,FF,3F,7C,9E,21,40, sss:789] [TSL2561 - init failed!] [BH1750 - init failed! CustomHTTPDest::process SerialDumpDest::process IP : 0.0.0.0 CHIPID : 2481C7 RUNTIME : 811 TEMP : 21.30 TEMPR : 20.80 PRES : 1017.92 CO2 : 788.00 MQTTDest::process RFDest::process Heap : 31320 ready >] I have been able to send data using call_url http://emoncms.org/input/post.json?json={1:10,2:35}&apikey=9531fbc41d3d5137b47b2122719e07d8 We have also just tried renaming with a total different name and it is now sending the data! With the log details-: [Scheduling command: sendNowCond sendNowCond --- DestHanlder: sendValue --- 1] [BME280 - init failed! Found BMP085 - Temperature/Pressure Sensor] [16,5,1,9,FB,1,E3,FC,D3,3,0,0,C,2,10,40,E0,16,FF,3F,7C,9E,21,40, sss:2555] [TSL2561 - init failed!] [BH1750 - init failed! CustomHTTPDest::process Calling HTTP: [http://emoncms.org/input/post.json?json={left:2854.00,right:23.40}&apikey=9531fbc41d3d5137b47b2122719e07d8]] [Response Code: 200 Payload: [ok] CLOSED SerialDumpDest::process IP : 192.168.8.101 CHIPID : 2481C7 RUNTIME : 3026 TEMP : 23.40 TEMPR : 22.90 PRES : 1018.19 CO2 : 2854.00 MQTTDest::process RFDest::process Heap : 31896 ready >] And have just tried which did not send the data call_url http://emoncms.org/input/post.json?json={CO2:10,TEMP:35}&apikey=9531fbc41d3d5137b47b2122719e07d8 I have changed the Input keys for the to 1 to 7 and it appears to be now logging the data to the server. The vAir does not seem to transmit if the first input key in the url (CO2:%CO2%) is the same as the name of the field it is logging. RE: Not sending data to Emoncms - admin - 12-23-2016 hmmm, this is strange why it does like that... in general there are a couple of checks to filter bad data coming from the sensors one of them being in case after doing all replacements for the placeholders there is one of those remaining %CO2%, %TEMP%,%HUM% nothing is sent. There are three ways this can happen 1. the CM1106 needs two minutes to warmup, until then it doesn't report values, so %CO2% will not be replaced and nothing will be sent 2. if you placed id fields in all fields, also for %HUM% - it would never be replaced, so data would not be sent 3. Some other weird stuff that is rather a bug it is yet on my task list to improve the communication between the config tool and the device, so that it displays configuration only for the sensors that are there |