Hi,
I followed the steps LinuxInstall for Debian with PHP7
All went fine but when data arrives on the emonESP i don’t get a connected state and data doesn’t arrive at emonCMS.
when i check the apache logs: (tail /var/log/apache2/access.log)
192.168.1.35 - - [24/Feb/2019:10:10:56 +0100] "GET /emoncms/input/post.json?json={ct1:62.13,ct2: 0.0,ct3:-44.47,ct4:0.00,vrms:238.85,t1:300.00,t2:300.00,t3:300.00,t4:300.00,t5:300.00,t6:300.00,pulses:0,psent:26,psuccess:0,freeram:27160}&node=TX1&apikey=xxxxxxxxxx" 400 0 "-" "-"
When i enter
http://192.168.1.24//emoncms/input/post.json?json={ct1:452.50,ct2:%200.0,ct3:-67.37,ct4:0.00,vrms:235.50,t1:300.00,t2:300.00,t3:300.00,t4:300.00,t5:300.00,t6:300.00,pulses:0,psent:6,psuccess:0,freeram:26488}&node=TX1&apikey=xxxxxxxxx
in a webbrowser, data enters emonCMS properly.
log apache:
192.168.1.30 - - [24/Feb/2019:10:12:52 +0100] "GET //emoncms/input/post.json?json={ct1:452.50,ct2:%200.0,ct3:-67.37,ct4:0.00,vrms:235.50,t1:300.00,t2:300.00,t3:300.00,t4:300.00,t5:300.00,t6:300.00,pulses:0,psent:6,psuccess:0,freeram:26488}&node=TX1&apikey=xxxxxxxxxx HTTP/1.1" 200 204 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0"
all devices in same subnet network.
EDIT: added a new VM with Ubuntu server, procedure with PHP7.2 till the end… And same problem with posting data with error 400.
some kind of bug with emonESP? Check log below. when CT2 is 0.0 there is a space before and not a %20