c5te1n / node-red-contrib-dwd-local-weather

Node Red node to retrieve local weather forecast from DWD (Germany)
Apache License 2.0
13 stars 11 forks source link

how to use precipitation% #9

Closed dueni0 closed 5 years ago

dueni0 commented 5 years ago

I can use all fields except precipitation%. It seems that the percent sign in msg.payload.precipitation% is the problem, is there a way to escape it?

c5te1n commented 5 years ago

It should work without escaping it, but depends on what you are doing in subsequent nodes and how they are programmed. To avoid issues, you can pass the result of this node to a change node to set an additional 'precipitation_perc' field to the value of 'precipitation%'.

c5te1n commented 4 years ago

The name has been changed to 'precipitation_perc' in v0.1.8 to make this easier to use. 'precipitation%' stays available for backward compatibility.