Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

What am I doing wrong with this subject variable?

Featured Replies

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

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.)

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

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.

  • Author

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

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.

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

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.