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.

Displaying OpenWeatherMap json Temperature element to $variable in email

Featured Replies

Posted

I cannot seem to find the right structure for accessing the Node Server Data Element for OpenWeatherMap Temperature in my email body.

Is it possible (or upcoming) to Store this value into an internal ISY variable?  

Thanks

...Ray

Disclaimer: I'm not using that particular node server so I didn't double check that the temp is available to set as a variable.

Generally however, variables can be set to numeric values available from Node Servers:

image.png.bbec5ba99b5014c81004d57414c972ad.png

Set the first drop down to "Variable", then the Variable you wish to set then use the arrow to the right of = to cycle until you reach the node view, then select the node and which value you want to save from the node.   (make certain the precision (number of decimal places) of the variable matches the value being stored.)

  • Author

Thanks Mr Bill, Worked a charm and I now understand what the play button does in that UI.   lol

As for emails, these are the results I got. 

Adding this to email body:

  Current Temperature Reading = ${sys.node.n001_weather.CLITEMP}

Resulted in:

  Current Temperature Reading = 4.6°C
 

So variable substitution from Node Server works.

Edited by rayg

Since I don't use that nodesever I don't know but lets tag @bpwwer since he wrote the nodeserver.

All of the valid values are in the documentation here:  https://github.com/bpaauwe/udi-owm-poly/blob/master/README.md

Current condition node

  • sys.node.[address].ST (Node sever online)
  • sys.node.[address].CLITEMP (current temperature)
  • sys.node.[address].CLIHUM (current humidity)
  • sys.node.[address].BARPRES (current barometric pressure)
  • sys.node.[address].WINDDIR (current wind direction )
  • sys.node.[address].DISTANC (current visibility)
  • sys.node.[address].DEWPT (current dew point temperature)
  • sys.node.[address].UV (current UV index)
  • sys.node.[address].GV2 (current feels like temperature)
  • sys.node.[address].GV4 (current wind speed)
  • sys.node.[address].GV6 (current rain rate)
  • sys.node.[address].GV7 (current snow rate)
  • sys.node.[address].GV13 (current conditions)
  • sys.node.[address].GV14 (current percent cloud coverage)
  • sys.node.[address].GV18 (current percent chance of precipitation)

Forecast node

  • sys.node.[address].CLIHUM (forecasted humidity)
  • sys.node.[address].BARPRES (forecasted barometric pressure)
  • sys.node.[address].DEWPT (forecasted dew point temperature)
  • sys.node.[address].UV (forecasted max UV index)
  • sys.node.[address].GV19 (day of week forecast is for)
  • sys.node.[address].GV0 (forecasted high temperature)
  • sys.node.[address].GV1 (forecasted low temperature)
  • sys.node.[address].GV2 (forecasted daytime feels like temperature)
  • sys.node.[address].GV13 (forecasted conditions)
  • sys.node.[address].GV14 (forecasted percent cloud coverage)
  • sys.node.[address].GV4 (forecasted wind speed)
  • sys.node.[address].GV6 (forecasted rain)
  • sys.node.[address].GV7 (forecasted snow)
  • sys.node.[address].GV18 (forecasted percent chance of precipitation)
  • sys.node.[address].GV20 (calculated ETo for the day)

Your 'address' is n001_weather for current conditions so just substitute n001_weather for [address] above.  For the forecast nodes, it's probably n001_forecast_0, n001_forecast_1, etc.

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.