Search found 4 matches

by redkooga
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 :D
by redkooga
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 ...
by redkooga
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.
by redkooga
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