Jump to content

What am I doing wrong with this subject variable?


Recommended Posts

Posted

Trying to use a variable in the subject line without much success.  This is what I entered but just returns the text vs the value. Thanks in advance.

image.png.a6c57b1b7c436944d5c059fb0ab23f53.png

image.thumb.png.a9a6304fc260d9ccd9ff1a28b6da4804.png

Posted

Does it work if you try the same variable in the body instead?   (this will suggest if there's an issue with where it's used and opposed to not working at all.)

  • Like 1
Posted (edited)

In your subject line, try using .raw after CLIHUM. Also, be sure there are no spaces in the node server string, from $ to the last }.

As an example: 

Hum ${sys.node.n001_81668.CLIHUM.raw}%

For troubleshooting, I would also suggest, just using either the subject or the body for the variable, not both.

 

Edited by DennisC
Added info
Posted
1 hour ago, DennisC said:

For troubleshooting, I would also suggest, just using either the subject or the body for the variable, not both.

I agree, and I would suggest body... i can't remember why I think this, but it seems like there is/was/might be a long standing bug around displaying variables in the subject line.  Once it's working them move to putting it where you want it.

Posted
2 minutes ago, pjjameso said:

As far as I can tell the ambient weather nodes do not show up with the above https

I would wait for @Jimbo.Automatesto confirm, but I would suggest reinstalling the node server in the same slot.

It sounds like to me the node server didn't install correctly.

Posted

Using Open Weather to do the same thing and mine works fine.  Both Subject and Body. This is PG2.  Guess they started using crazy strings for the address of the node instead of words like "weather".  

image.png.5cfc940cbf3e50e314a742c05b41e30c.png

Posted

I am using the Notification NS to get my Ambient Weather sensors with no problem. I am not home so can not copy my body of text but here is the end result. 

Inside Tempature 85.8°F
Inside Humidity 51%
Outside Tempature 88.3°F
Outside Humidity 81%
Feels Like Temp 107.95°F
Wind Speed 0 mph
Wind Dir 192°
Wind Gust 2.2 mph
windspdmph_avg10m 0 mph
winddir_avg10m 247°
Max Daily Gust 3.4 mph
Rain Rate 0 inches/hour
Rain Event 0.047 Inches
Rain Daily 0 Inches
Rain Weekly 0.047 Inches
Rain Monthly 2.378 Inches
Rain Yearly 23.307 Inches
Lightening Strikes Per Hour 0
Lightning Strikes Per Day 0
Lightning Distance 19.26 Miles
Solor Rad 438.94 Watts/m²
UV Rays 4 UV Index 

Guest
This topic is now closed to further replies.

×
×
  • Create New...