I am taking data from a DHT22 to push it to WUnderground via Webhook.
So far the particle.publish is working out ok
Particle.publish("app/output/data", String::format(
"{"
"\"d\":["
"["
"%5.2f,"
"%5.2f,"
"%4.2f,"
"]"
"]"
"}",
tempF,
humidityRH,
dewptf
), 60, PRIVATE);
And the data is arriving in the event log ok
{"d":[[36.32,74.80,-1.61,]]}
However when it comes to the webhook, my array isnt translating to the query parameters. The temp, humidity and dew point values are blank.
GET /weatherstation/updateweatherstation.php?ID=xxxxx&PASSWORD=xxxxx&dateutc=now&tempf=&dewptf=&humidity=&softwaretype=Particle-Argon&action=updateraw&realtime=1&rtfreq=5 HTTP/1.1
User-Agent: ParticleBot/1.1 (https://docs.particle.io/webhooks)
host: rtupdate.wunderground.com
Connection: keep-alive
heres my webhook request
{
"event": "app/output/data",
"deviceID": "xxxxx",
"responseTopic": "hook/wu/success",
"errorResponseTopic": "hook/wu/error",
"url": "http://rtupdate.wunderground.com/weatherstation/updateweatherstation.php",
"requestType": "GET",
"noDefaults": true,
"rejectUnauthorized": false,
"query": {
"rtfreq": "5",
"realtime": "1",
"action": "updateraw",
"softwaretype": "Particle-Argon",
"humidity": "{{d.0.1}}",
"dewptf": "{{d.0.2}}",
"tempf": "{{d.0.0}}",
"dateutc": "now",
"PASSWORD": "xxxxx",
"ID": "xxxxx"
}
}