Jump to content

Displaying OpenWeatherMap json Temperature element to $variable in email


rayg

Recommended Posts

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

Link to comment

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.

Link to comment

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.

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...