Hi, i followed the example shown here to send temperature data to Librato.
creating the webhook
Now, I am trying to send two metrics to Librato: temperature and humidity. But I’m having trouble. This is the code in my firmware:
snprintf(payload2, sizeof(payload2), "[{ \"name\":\"Temperature\",\"value\": " + tempStr + " }, { \"name\":\"Humidity\",\"value\": " + humidityStr + " }] ");
Spark.publish("librato_ss0807", payload2);
The webhook has the following code:
"json": {
"gauges": [
{
"name": "Temperature",
"value": "{{tempStr}}",
"source": "{{SPARK_DEVICE_ID}}"
},
{
"name": "Humidity",
"value": "{{humidityStr}}",
"source": "{{SPARK_DEVICE_ID}}"
},
]
}
Please help me figure out what I’m going wrong. Thanks!