Sorry I disappeared yesterday, I “just popped out” and ended up not getting back til late.
What do you get with
wget -O - "http://192.168.1.15/emoncms/input/post.json?node=2&json={humidity:93%,pressure:1010,wind:0,temp:0.2,dewpoint:-1,visibility:N/A,rain: 0,windchill:0,feelslike:0,windgust:0,raintoday:0}&apikey=XXXXXXXXX"
from the commandline of the pi?
I suggest this test just to confirm if the same url works from the same “local” machine as we know it works from your desktop PC.
I tested your url with my emoncms and found it works fine via wget on the host commandline (and via it’s local browser too), you do get an error message about the “json not numeric” but the data is still posted. I tested this further by removing a char from my apikey and I got “username or password empty error” as expected.
If this is successful it helps confirm there are no dns or routing issues, which would point towards the php script.
You could also try wrapping the apikey in double quotes '}&apikey="XXXXXXXX" ' ;
, the error code returned seems quite specific to the authentication/authorization
The “json not numeric” errors are caused by the “visibility:N/A”, this is the 412 error error Bill refers to. When I parse weather wunderground json I include tests so that only fields that exist and have numeric data are added to the url string. The json passed by each weather station can differ and key:value pairs can come and go or be “N/A”, “none” and “null” etc.rather than numeric, in the case of “visibility:N/A” I would expect that to mean visibility isn’t impaired, but emoncms records that as “0” visibility.
The percent symbol doesn’t seem to upset emoncms and the value is accepted, but you probably shouldn’t rely on it,