Search found 4 matches
- Wednesday 29 April 2020 9:29
- Forum: Heating/cooling
- Topic: mqtt temperature and humidity
- Replies: 14
- Views: 4927
Re: mqtt temperature and humidity
thank you that has solved my problem 
- Tuesday 28 April 2020 17:11
- Forum: Heating/cooling
- Topic: mqtt temperature and humidity
- Replies: 14
- Views: 4927
Re: mqtt temperature and humidity
i have been trying to get this to work for hours, i can send each value separately.
var hum=msg.payload.humidity;
var temp=msg.payload.air_temp;
var hum=JSON.stringify(hum);
var temp=JSON.stringify(temp);
msg.payload = {
"idx":8,
"nvalue":0,
"svalue":hum, temp
};
return msg;
the log entry from ...
var hum=msg.payload.humidity;
var temp=msg.payload.air_temp;
var hum=JSON.stringify(hum);
var temp=JSON.stringify(temp);
msg.payload = {
"idx":8,
"nvalue":0,
"svalue":hum, temp
};
return msg;
the log entry from ...
- Tuesday 28 April 2020 16:13
- Forum: Heating/cooling
- Topic: mqtt temperature and humidity
- Replies: 14
- Views: 4927
Re: mqtt temperature and humidity
hi thanks, i tried that it it doesn't send the values the log only shows the string in quotes.
- Tuesday 28 April 2020 14:51
- Forum: Heating/cooling
- Topic: mqtt temperature and humidity
- Replies: 14
- Views: 4927
mqtt temperature and humidity
hi
i have been trying to send temperature and humidity from node-red but get stuck with sending with semicolon between them, how is it done?
msg={
payload:
{
"dtype" : "Temp ; Humidity",
"idx": 8,
"nvalue": 0,
"svalue": hum ; temp
}}
return msg;
Thanks
i have been trying to send temperature and humidity from node-red but get stuck with sending with semicolon between them, how is it done?
msg={
payload:
{
"dtype" : "Temp ; Humidity",
"idx": 8,
"nvalue": 0,
"svalue": hum ; temp
}}
return msg;
Thanks