Beginner: test on a variable

I ask "weathermap" and it gives me this information.
I want to test (minutely [0] .0.precipitation with minutely [0] .1.precipitation) and one of the 2 is different from 0 then display a message "attention rain"

fetching data from weathermap output works fine.

we cannot write that;
let var1 = msg.payload.minutely [0] .0.precipitation;
Why ?

Yes it does work fine, but you are not accessing the data in the return right,. I can not help if i do not have the data.

So please copy the full returned object, You can do this but pressing copy value, to the right of the payload object in the debug node.

Then i can see the path.

or use copy path to get the correct path to the data you require.

Because .0. is invalid
try
msg.payload.minutely[0].precipitation

yes, it is not 0 indeed! it is [0… 9] .precipitation

please just copy full object and then i can tell you the correct path. Things will work easier if you can answer my questions and give me the information i need to help.
please watch this it will help you understand how messages work

erreur excusez

I want the full returned json from openweathermap. So i can see the message structure. Then i can identify the full path to the data you wish to compare.

21/11/2020 à 15:08:34node: 87adfc8.da81msg.payload : string[3]
"yes"
21/11/2020 à 15:08:58node: 87adfc8.da81msg.payload : string[3]
"yes"
21/11/2020 à 15:23:18node: 36b1116f.d8be2emsg.payload : Object
object
lat: 49.02
lon: -0.94
timezone: "Europe/Paris"
timezone_offset: 3600
current: object
dt: 1605968575
sunrise: 1605943389
sunset: 1605975399
temp: 11
feels_like: 6.3
pressure: 1030
humidity: 76
dew_point: 6.94
uvi: 0.88
clouds: 90
visibility: 10000
wind_speed: 5.7
wind_deg: 210
weather: array[1]
0: object
id: 804
main: "Clouds"
description: "couvert"
icon: "04d"
minutely: array[61]
[0 … 9]
0: object
dt: 1605968580
precipitation: 0
1: object
dt: 1605968640
precipitation: 0
2: object
dt: 1605968700
precipitation: 0
3: object
dt: 1605968760
precipitation: 0
4: object
dt: 1605968820
precipitation: 0
5: object
dt: 1605968880
precipitation: 0
6: object
dt: 1605968940
precipitation: 0
7: object
dt: 1605969000
precipitation: 0
8: object
dt: 1605969060
precipitation: 0
9: object
[10 … 19]
[20 … 29]
[30 … 39]
[40 … 49]
[50 … 59]
[60 … 60]
daily: array[8]
0: object
dt: 1605956400
sunrise: 1605943389
sunset: 1605975399
temp: object
day: 11
min: 5.02
max: 11
night: 7.25
eve: 9.23
morn: 5.02
feels_like: object
day: 7.04
night: 4.41
eve: 6.9
morn: 1.14
pressure: 1030
humidity: 76
dew_point: 6.94
wind_speed: 4.64
wind_deg: 230
weather: array[1]
0: object
clouds: 90
pop: 0
uvi: 0.88
1: object
2: object
3: object
4: object
5: object
6: object
7: object

ok i need info i can copy and paste. If you use the copy value in the debug node, then i can copy it and paste it into an inject.
Then i could give you an example.

But the info you have posted i can not cop and paste as it is not a valid json. I could fix it but it would be easier for me if you posted a valid json., as i do not wish to spend 15min adding { [ " and ,

So to the right of where it says payload, inthe debug node, if you hover your cursor, three icons appear one says copy value. use that and post the valid json


where my cursor is.
and it will look similar to this

{"payload":{"id":804,"weather":"Clouds","detail":"overcast clouds","icon":"04d","tempk":284.82,"tempc":11.6,"temp_maxc":12.2,"temp_minc":11.1,"humidity":82,"pressure":1029,"maxtemp":285.37,"mintemp":284.26,"windspeed":4.02,"winddirection":221,"location":"Eastbourne","sunrise":1605943487,"sunset":1605974715,"clouds":100,"description":"The weather in Eastbourne at coordinates: 50.77, 0.28 is Clouds (overcast clouds)."},"location":{"lon":0.28,"lat":50.77,"city":"Eastbourne","country":"GB"},"data":{"coord":{"lon":0.28,"lat":50.77},"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"base":"stations","main":{"temp":284.82,"feels_like":281.71,"temp_min":284.26,"temp_max":285.37,"pressure":1029,"humidity":82},"visibility":10000,"wind":{"speed":4.02,"deg":221,"gust":9.83},"clouds":{"all":100},"dt":1605971033,"sys":{"type":3,"id":2012607,"country":"GB","sunrise":1605943487,"sunset":1605974715},"timezone":0,"id":2650497,"name":"Eastbourne","cod":200},"time":"2020-11-21T15:03:53.000Z","title":"Current Weather Information","description":"Current weather information at coordinates: 50.77, 0.28","_msgid":"442e9de2.6b4184"}

{"lat":49.02,"lon":-0.94,"timezone":"Europe/Paris","timezone_offset":3600,"current":{"dt":1605968575,"sunrise":1605943389,"sunset":1605975399,"temp":11,"feels_like":6.3,"pressure":1030,"humidity":76,"dew_point":6.94,"uvi":0.88,"clouds":90,"visibility":10000,"wind_speed":5.7,"wind_deg":210,"weather":[{"id":804,"main":"Clouds","description":"couvert","icon":"04d"}]},"minutely":[{"dt":1605968580,"precipitation":0},{"dt":1605968640,"precipitation":0},{"dt":1605968700,"precipitation":0},{"dt":1605968760,"precipitation":0},{"dt":1605968820,"precipitation":0},{"dt":1605968880,"precipitation":0},{"dt":1605968940,"precipitation":0},{"dt":1605969000,"precipitation":0},{"dt":1605969060,"precipitation":0},{"dt":1605969120,"precipitation":0},{"dt":1605969180,"precipitation":0},{"dt":1605969240,"precipitation":0},{"dt":1605969300,"precipitation":0},{"dt":1605969360,"precipitation":0},{"dt":1605969420,"precipitation":0},{"dt":1605969480,"precipitation":0},{"dt":1605969540,"precipitation":0},{"dt":1605969600,"precipitation":0},{"dt":1605969660,"precipitation":0},{"dt":1605969720,"precipitation":0},{"dt":1605969780,"precipitation":0},{"dt":1605969840,"precipitation":0},{"dt":1605969900,"precipitation":0},{"dt":1605969960,"precipitation":0},{"dt":1605970020,"precipitation":0},{"dt":1605970080,"precipitation":0},{"dt":1605970140,"precipitation":0},{"dt":1605970200,"precipitation":0},{"dt":1605970260,"precipitation":0},{"dt":1605970320,"precipitation":0},{"dt":1605970380,"precipitation":0},{"dt":1605970440,"precipitation":0},{"dt":1605970500,"precipitation":0},{"dt":1605970560,"precipitation":0},{"dt":1605970620,"precipitation":0},{"dt":1605970680,"precipitation":0},{"dt":1605970740,"precipitation":0},{"dt":1605970800,"precipitation":0},{"dt":1605970860,"precipitation":0},{"dt":1605970920,"precipitation":0},{"dt":1605970980,"precipitation":0},{"dt":1605971040,"precipitation":0},{"dt":1605971100,"precipitation":0},{"dt":1605971160,"precipitation":0},{"dt":1605971220,"precipitation":0},{"dt":1605971280,"precipitation":0},{"dt":1605971340,"precipitation":0},{"dt":1605971400,"precipitation":0},{"dt":1605971460,"precipitation":0},{"dt":1605971520,"precipitation":0},{"dt":1605971580,"precipitation":0},{"dt":1605971640,"precipitation":0},{"dt":1605971700,"precipitation":0},{"dt":1605971760,"precipitation":0},{"dt":1605971820,"precipitation":0},{"dt":1605971880,"precipitation":0},{"dt":1605971940,"precipitation":0},{"dt":1605972000,"precipitation":0},{"dt":1605972060,"precipitation":0},{"dt":1605972120,"precipitation":0},{"dt":1605972180,"precipitation":0}],"daily":[{"dt":1605956400,"sunrise":1605943389,"sunset":1605975399,"temp":{"day":11,"min":5.02,"max":11,"night":7.25,"eve":9.23,"morn":5.02},"feels_like":{"day":7.04,"night":4.41,"eve":6.9,"morn":1.14},"pressure":1030,"humidity":76,"dew_point":6.94,"wind_speed":4.64,"wind_deg":230,"weather":[{"id":804,"main":"Clouds","description":"couvert","icon":"04d"}],"clouds":90,"pop":0,"uvi":0.88},{"dt":1606042800,"sunrise":1606029878,"sunset":1606061742,"temp":{"day":10.42,"min":5.44,"max":10.42,"night":7.72,"eve":9.14,"morn":5.44},"feels_like":{"day":7.89,"night":5.54,"eve":7.03,"morn":2.38},"pressure":1029,"humidity":83,"dew_point":7.78,"wind_speed":2.83,"wind_deg":231,"weather":[{"id":804,"main":"Clouds","description":"couvert","icon":"04d"}],"clouds":100,"pop":0.22,"uvi":0.83},{"dt":1606129200,"sunrise":1606116366,"sunset":1606148088,"temp":{"day":10.87,"min":5.94,"max":10.87,"night":6.25,"eve":7.05,"morn":5.94},"feels_like":{"day":8.4,"night":3.49,"eve":4.62,"morn":3.39},"pressure":1028,"humidity":82,"dew_point":8.07,"wind_speed":2.84,"wind_deg":222,"weather":[{"id":800,"main":"Clear","description":"ciel dégagé","icon":"01d"}],"clouds":6,"pop":0.22,"uvi":0.8},{"dt":1606215600,"sunrise":1606202853,"sunset":1606234436,"temp":{"day":9.86,"min":5.01,"max":9.86,"night":6.31,"eve":6.79,"morn":5.01},"feels_like":{"day":5.27,"night":1.5,"eve":1.98,"morn":1.38},"pressure":1019,"humidity":75,"dew_point":5.64,"wind_speed":5.14,"wind_deg":171,"weather":[{"id":804,"main":"Clouds","description":"couvert","icon":"04d"}],"clouds":87,"pop":0,"uvi":0.8},{"dt":1606302000,"sunrise":1606289339,"sunset":1606320787,"temp":{"day":10.29,"min":5.63,"max":10.29,"night":7.13,"eve":7.11,"morn":5.74},"feels_like":{"day":6.89,"night":4.58,"eve":4.43,"morn":1.78},"pressure":1013,"humidity":82,"dew_point":7.37,"wind_speed":3.98,"wind_deg":178,"weather":[{"id":804,"main":"Clouds","description":"couvert","icon":"04d"}],"clouds":95,"pop":0,"uvi":0.78},{"dt":1606388400,"sunrise":1606375824,"sunset":1606407141,"temp":{"day":11.87,"min":5.98,"max":11.87,"night":6.63,"eve":7.3,"morn":5.98},"feels_like":{"day":11.07,"night":4.87,"eve":5.66,"morn":4.49},"pressure":1021,"humidity":79,"dew_point":8.36,"wind_speed":0.6,"wind_deg":90,"weather":[{"id":800,"main":"Clear","description":"ciel dégagé","icon":"01d"}],"clouds":10,"pop":0,"uvi":0.79},{"dt":1606474800,"sunrise":1606462307,"sunset":1606493497,"temp":{"day":10.88,"min":5.39,"max":10.88,"night":6.01,"eve":6.79,"morn":5.39},"feels_like":{"day":9.46,"night":4.34,"eve":5.48,"morn":3.58},"pressure":1021,"humidity":79,"dew_point":7.54,"wind_speed":1.15,"wind_deg":158,"weather":[{"id":804,"main":"Clouds","description":"couvert","icon":"04d"}],"clouds":100,"pop":0,"uvi":0.79},{"dt":1606561200,"sunrise":1606548789,"sunset":1606579856,"temp":{"day":9.56,"min":4.44,"max":9.56,"night":4.44,"eve":5.13,"morn":4.7},"feels_like":{"day":7.18,"night":0.31,"eve":1.58,"morn":3},"pressure":1021,"humidity":80,"dew_point":6.43,"wind_speed":2.17,"wind_deg":130,"weather":[{"id":803,"main":"Clouds","description":"nuageux","icon":"04d"}],"clouds":72,"pop":0,"uvi":0.78}]}

{"dt":1605968580,"precipitation":0}

ok, if there is no rain msg.payload.current.weather[0].precipitation will not exist. so i added some checks
and in the rain inject i added the property
as below

[{"id":"eba62f66.92f26","type":"inject","z":"8d22ae29.7df6d","name":"no rain","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"lat\":49.02,\"lon\":-0.94,\"timezone\":\"Europe/Paris\",\"timezone_offset\":3600,\"current\":{\"dt\":1605968575,\"sunrise\":1605943389,\"sunset\":1605975399,\"temp\":11,\"feels_like\":6.3,\"pressure\":1030,\"humidity\":76,\"dew_point\":6.94,\"uvi\":0.88,\"clouds\":90,\"visibility\":10000,\"wind_speed\":5.7,\"wind_deg\":210,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"couvert\",\"icon\":\"04d\"}]},\"minutely\":[{\"dt\":1605968580,\"precipitation\":0},{\"dt\":1605968640,\"precipitation\":0},{\"dt\":1605968700,\"precipitation\":0},{\"dt\":1605968760,\"precipitation\":0},{\"dt\":1605968820,\"precipitation\":0},{\"dt\":1605968880,\"precipitation\":0},{\"dt\":1605968940,\"precipitation\":0},{\"dt\":1605969000,\"precipitation\":0},{\"dt\":1605969060,\"precipitation\":0},{\"dt\":1605969120,\"precipitation\":0},{\"dt\":1605969180,\"precipitation\":0},{\"dt\":1605969240,\"precipitation\":0},{\"dt\":1605969300,\"precipitation\":0},{\"dt\":1605969360,\"precipitation\":0},{\"dt\":1605969420,\"precipitation\":0},{\"dt\":1605969480,\"precipitation\":0},{\"dt\":1605969540,\"precipitation\":0},{\"dt\":1605969600,\"precipitation\":0},{\"dt\":1605969660,\"precipitation\":0},{\"dt\":1605969720,\"precipitation\":0},{\"dt\":1605969780,\"precipitation\":0},{\"dt\":1605969840,\"precipitation\":0},{\"dt\":1605969900,\"precipitation\":0},{\"dt\":1605969960,\"precipitation\":0},{\"dt\":1605970020,\"precipitation\":0},{\"dt\":1605970080,\"precipitation\":0},{\"dt\":1605970140,\"precipitation\":0},{\"dt\":1605970200,\"precipitation\":0},{\"dt\":1605970260,\"precipitation\":0},{\"dt\":1605970320,\"precipitation\":0},{\"dt\":1605970380,\"precipitation\":0},{\"dt\":1605970440,\"precipitation\":0},{\"dt\":1605970500,\"precipitation\":0},{\"dt\":1605970560,\"precipitation\":0},{\"dt\":1605970620,\"precipitation\":0},{\"dt\":1605970680,\"precipitation\":0},{\"dt\":1605970740,\"precipitation\":0},{\"dt\":1605970800,\"precipitation\":0},{\"dt\":1605970860,\"precipitation\":0},{\"dt\":1605970920,\"precipitation\":0},{\"dt\":1605970980,\"precipitation\":0},{\"dt\":1605971040,\"precipitation\":0},{\"dt\":1605971100,\"precipitation\":0},{\"dt\":1605971160,\"precipitation\":0},{\"dt\":1605971220,\"precipitation\":0},{\"dt\":1605971280,\"precipitation\":0},{\"dt\":1605971340,\"precipitation\":0},{\"dt\":1605971400,\"precipitation\":0},{\"dt\":1605971460,\"precipitation\":0},{\"dt\":1605971520,\"precipitation\":0},{\"dt\":1605971580,\"precipitation\":0},{\"dt\":1605971640,\"precipitation\":0},{\"dt\":1605971700,\"precipitation\":0},{\"dt\":1605971760,\"precipitation\":0},{\"dt\":1605971820,\"precipitation\":0},{\"dt\":1605971880,\"precipitation\":0},{\"dt\":1605971940,\"precipitation\":0},{\"dt\":1605972000,\"precipitation\":0},{\"dt\":1605972060,\"precipitation\":0},{\"dt\":1605972120,\"precipitation\":0},{\"dt\":1605972180,\"precipitation\":0}],\"daily\":[{\"dt\":1605956400,\"sunrise\":1605943389,\"sunset\":1605975399,\"temp\":{\"day\":11,\"min\":5.02,\"max\":11,\"night\":7.25,\"eve\":9.23,\"morn\":5.02},\"feels_like\":{\"day\":7.04,\"night\":4.41,\"eve\":6.9,\"morn\":1.14},\"pressure\":1030,\"humidity\":76,\"dew_point\":6.94,\"wind_speed\":4.64,\"wind_deg\":230,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"couvert\",\"icon\":\"04d\"}],\"clouds\":90,\"pop\":0,\"uvi\":0.88},{\"dt\":1606042800,\"sunrise\":1606029878,\"sunset\":1606061742,\"temp\":{\"day\":10.42,\"min\":5.44,\"max\":10.42,\"night\":7.72,\"eve\":9.14,\"morn\":5.44},\"feels_like\":{\"day\":7.89,\"night\":5.54,\"eve\":7.03,\"morn\":2.38},\"pressure\":1029,\"humidity\":83,\"dew_point\":7.78,\"wind_speed\":2.83,\"wind_deg\":231,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"couvert\",\"icon\":\"04d\"}],\"clouds\":100,\"pop\":0.22,\"uvi\":0.83},{\"dt\":1606129200,\"sunrise\":1606116366,\"sunset\":1606148088,\"temp\":{\"day\":10.87,\"min\":5.94,\"max\":10.87,\"night\":6.25,\"eve\":7.05,\"morn\":5.94},\"feels_like\":{\"day\":8.4,\"night\":3.49,\"eve\":4.62,\"morn\":3.39},\"pressure\":1028,\"humidity\":82,\"dew_point\":8.07,\"wind_speed\":2.84,\"wind_deg\":222,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"ciel dégagé\",\"icon\":\"01d\"}],\"clouds\":6,\"pop\":0.22,\"uvi\":0.8},{\"dt\":1606215600,\"sunrise\":1606202853,\"sunset\":1606234436,\"temp\":{\"day\":9.86,\"min\":5.01,\"max\":9.86,\"night\":6.31,\"eve\":6.79,\"morn\":5.01},\"feels_like\":{\"day\":5.27,\"night\":1.5,\"eve\":1.98,\"morn\":1.38},\"pressure\":1019,\"humidity\":75,\"dew_point\":5.64,\"wind_speed\":5.14,\"wind_deg\":171,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"couvert\",\"icon\":\"04d\"}],\"clouds\":87,\"pop\":0,\"uvi\":0.8},{\"dt\":1606302000,\"sunrise\":1606289339,\"sunset\":1606320787,\"temp\":{\"day\":10.29,\"min\":5.63,\"max\":10.29,\"night\":7.13,\"eve\":7.11,\"morn\":5.74},\"feels_like\":{\"day\":6.89,\"night\":4.58,\"eve\":4.43,\"morn\":1.78},\"pressure\":1013,\"humidity\":82,\"dew_point\":7.37,\"wind_speed\":3.98,\"wind_deg\":178,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"couvert\",\"icon\":\"04d\"}],\"clouds\":95,\"pop\":0,\"uvi\":0.78},{\"dt\":1606388400,\"sunrise\":1606375824,\"sunset\":1606407141,\"temp\":{\"day\":11.87,\"min\":5.98,\"max\":11.87,\"night\":6.63,\"eve\":7.3,\"morn\":5.98},\"feels_like\":{\"day\":11.07,\"night\":4.87,\"eve\":5.66,\"morn\":4.49},\"pressure\":1021,\"humidity\":79,\"dew_point\":8.36,\"wind_speed\":0.6,\"wind_deg\":90,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"ciel dégagé\",\"icon\":\"01d\"}],\"clouds\":10,\"pop\":0,\"uvi\":0.79},{\"dt\":1606474800,\"sunrise\":1606462307,\"sunset\":1606493497,\"temp\":{\"day\":10.88,\"min\":5.39,\"max\":10.88,\"night\":6.01,\"eve\":6.79,\"morn\":5.39},\"feels_like\":{\"day\":9.46,\"night\":4.34,\"eve\":5.48,\"morn\":3.58},\"pressure\":1021,\"humidity\":79,\"dew_point\":7.54,\"wind_speed\":1.15,\"wind_deg\":158,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"couvert\",\"icon\":\"04d\"}],\"clouds\":100,\"pop\":0,\"uvi\":0.79},{\"dt\":1606561200,\"sunrise\":1606548789,\"sunset\":1606579856,\"temp\":{\"day\":9.56,\"min\":4.44,\"max\":9.56,\"night\":4.44,\"eve\":5.13,\"morn\":4.7},\"feels_like\":{\"day\":7.18,\"night\":0.31,\"eve\":1.58,\"morn\":3},\"pressure\":1021,\"humidity\":80,\"dew_point\":6.43,\"wind_speed\":2.17,\"wind_deg\":130,\"weather\":[{\"id\":803,\"main\":\"Clouds\",\"description\":\"nuageux\",\"icon\":\"04d\"}],\"clouds\":72,\"pop\":0,\"uvi\":0.78}]}","payloadType":"json","x":140,"y":1880,"wires":[["267294cc.c4bbf4"]]},{"id":"267294cc.c4bbf4","type":"function","z":"8d22ae29.7df6d","name":"","func":"let rainCurrent = msg.payload.current.precipitation || 0,\nrainMinutely =msg.payload.minutely[0].precipitation || 0\nif (rainMinutely !== 0 || rainCurrent !== 0){\n    msg.payload =\"yes\" ;\n}else{\n    msg.payload =\"no\";\n}\nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":170,"y":1960,"wires":[["89a270b6.33bd7"]]},{"id":"89a270b6.33bd7","type":"template","z":"8d22ae29.7df6d","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"<div layout=\"column\" style=\"padding:10px\" layout-align=\"center center\">\n<span {{payload}} style=\"color:#F89606;font-size:30px!important\">Pluie dans 10mn </span>","output":"str","x":370,"y":1980,"wires":[["1eecd41b.a1a76c"]]},{"id":"25a0a069.697bd8","type":"inject","z":"8d22ae29.7df6d","name":"rain","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"lat\":49.02,\"lon\":-0.94,\"timezone\":\"Europe/Paris\",\"timezone_offset\":3600,\"current\":{\"dt\":1605968575,\"sunrise\":1605943389,\"sunset\":1605975399,\"temp\":11,\"feels_like\":6.3,\"pressure\":1030,\"humidity\":76,\"dew_point\":6.94,\"uvi\":0.88,\"clouds\":90,\"visibility\":10000,\"wind_speed\":5.7,\"wind_deg\":210,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"couvert\",\"precipitation\":1.5,\"icon\":\"04d\"}]},\"minutely\":[{\"dt\":1605968580,\"precipitation\":1.5},{\"dt\":1605968640,\"precipitation\":0},{\"dt\":1605968700,\"precipitation\":0},{\"dt\":1605968760,\"precipitation\":0},{\"dt\":1605968820,\"precipitation\":0},{\"dt\":1605968880,\"precipitation\":0},{\"dt\":1605968940,\"precipitation\":0},{\"dt\":1605969000,\"precipitation\":0},{\"dt\":1605969060,\"precipitation\":0},{\"dt\":1605969120,\"precipitation\":0},{\"dt\":1605969180,\"precipitation\":0},{\"dt\":1605969240,\"precipitation\":0},{\"dt\":1605969300,\"precipitation\":0},{\"dt\":1605969360,\"precipitation\":0},{\"dt\":1605969420,\"precipitation\":0},{\"dt\":1605969480,\"precipitation\":0},{\"dt\":1605969540,\"precipitation\":0},{\"dt\":1605969600,\"precipitation\":0},{\"dt\":1605969660,\"precipitation\":0},{\"dt\":1605969720,\"precipitation\":0},{\"dt\":1605969780,\"precipitation\":0},{\"dt\":1605969840,\"precipitation\":0},{\"dt\":1605969900,\"precipitation\":0},{\"dt\":1605969960,\"precipitation\":0},{\"dt\":1605970020,\"precipitation\":0},{\"dt\":1605970080,\"precipitation\":0},{\"dt\":1605970140,\"precipitation\":0},{\"dt\":1605970200,\"precipitation\":0},{\"dt\":1605970260,\"precipitation\":0},{\"dt\":1605970320,\"precipitation\":0},{\"dt\":1605970380,\"precipitation\":0},{\"dt\":1605970440,\"precipitation\":0},{\"dt\":1605970500,\"precipitation\":0},{\"dt\":1605970560,\"precipitation\":0},{\"dt\":1605970620,\"precipitation\":0},{\"dt\":1605970680,\"precipitation\":0},{\"dt\":1605970740,\"precipitation\":0},{\"dt\":1605970800,\"precipitation\":0},{\"dt\":1605970860,\"precipitation\":0},{\"dt\":1605970920,\"precipitation\":0},{\"dt\":1605970980,\"precipitation\":0},{\"dt\":1605971040,\"precipitation\":0},{\"dt\":1605971100,\"precipitation\":0},{\"dt\":1605971160,\"precipitation\":0},{\"dt\":1605971220,\"precipitation\":0},{\"dt\":1605971280,\"precipitation\":0},{\"dt\":1605971340,\"precipitation\":0},{\"dt\":1605971400,\"precipitation\":0},{\"dt\":1605971460,\"precipitation\":0},{\"dt\":1605971520,\"precipitation\":0},{\"dt\":1605971580,\"precipitation\":0},{\"dt\":1605971640,\"precipitation\":0},{\"dt\":1605971700,\"precipitation\":0},{\"dt\":1605971760,\"precipitation\":0},{\"dt\":1605971820,\"precipitation\":0},{\"dt\":1605971880,\"precipitation\":0},{\"dt\":1605971940,\"precipitation\":0},{\"dt\":1605972000,\"precipitation\":0},{\"dt\":1605972060,\"precipitation\":0},{\"dt\":1605972120,\"precipitation\":0},{\"dt\":1605972180,\"precipitation\":0}],\"daily\":[{\"dt\":1605956400,\"sunrise\":1605943389,\"sunset\":1605975399,\"temp\":{\"day\":11,\"min\":5.02,\"max\":11,\"night\":7.25,\"eve\":9.23,\"morn\":5.02},\"feels_like\":{\"day\":7.04,\"night\":4.41,\"eve\":6.9,\"morn\":1.14},\"pressure\":1030,\"humidity\":76,\"dew_point\":6.94,\"wind_speed\":4.64,\"wind_deg\":230,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"couvert\",\"icon\":\"04d\"}],\"clouds\":90,\"pop\":0,\"uvi\":0.88},{\"dt\":1606042800,\"sunrise\":1606029878,\"sunset\":1606061742,\"temp\":{\"day\":10.42,\"min\":5.44,\"max\":10.42,\"night\":7.72,\"eve\":9.14,\"morn\":5.44},\"feels_like\":{\"day\":7.89,\"night\":5.54,\"eve\":7.03,\"morn\":2.38},\"pressure\":1029,\"humidity\":83,\"dew_point\":7.78,\"wind_speed\":2.83,\"wind_deg\":231,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"couvert\",\"icon\":\"04d\"}],\"clouds\":100,\"pop\":0.22,\"uvi\":0.83},{\"dt\":1606129200,\"sunrise\":1606116366,\"sunset\":1606148088,\"temp\":{\"day\":10.87,\"min\":5.94,\"max\":10.87,\"night\":6.25,\"eve\":7.05,\"morn\":5.94},\"feels_like\":{\"day\":8.4,\"night\":3.49,\"eve\":4.62,\"morn\":3.39},\"pressure\":1028,\"humidity\":82,\"dew_point\":8.07,\"wind_speed\":2.84,\"wind_deg\":222,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"ciel dégagé\",\"icon\":\"01d\"}],\"clouds\":6,\"pop\":0.22,\"uvi\":0.8},{\"dt\":1606215600,\"sunrise\":1606202853,\"sunset\":1606234436,\"temp\":{\"day\":9.86,\"min\":5.01,\"max\":9.86,\"night\":6.31,\"eve\":6.79,\"morn\":5.01},\"feels_like\":{\"day\":5.27,\"night\":1.5,\"eve\":1.98,\"morn\":1.38},\"pressure\":1019,\"humidity\":75,\"dew_point\":5.64,\"wind_speed\":5.14,\"wind_deg\":171,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"couvert\",\"icon\":\"04d\"}],\"clouds\":87,\"pop\":0,\"uvi\":0.8},{\"dt\":1606302000,\"sunrise\":1606289339,\"sunset\":1606320787,\"temp\":{\"day\":10.29,\"min\":5.63,\"max\":10.29,\"night\":7.13,\"eve\":7.11,\"morn\":5.74},\"feels_like\":{\"day\":6.89,\"night\":4.58,\"eve\":4.43,\"morn\":1.78},\"pressure\":1013,\"humidity\":82,\"dew_point\":7.37,\"wind_speed\":3.98,\"wind_deg\":178,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"couvert\",\"icon\":\"04d\"}],\"clouds\":95,\"pop\":0,\"uvi\":0.78},{\"dt\":1606388400,\"sunrise\":1606375824,\"sunset\":1606407141,\"temp\":{\"day\":11.87,\"min\":5.98,\"max\":11.87,\"night\":6.63,\"eve\":7.3,\"morn\":5.98},\"feels_like\":{\"day\":11.07,\"night\":4.87,\"eve\":5.66,\"morn\":4.49},\"pressure\":1021,\"humidity\":79,\"dew_point\":8.36,\"wind_speed\":0.6,\"wind_deg\":90,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"ciel dégagé\",\"icon\":\"01d\"}],\"clouds\":10,\"pop\":0,\"uvi\":0.79},{\"dt\":1606474800,\"sunrise\":1606462307,\"sunset\":1606493497,\"temp\":{\"day\":10.88,\"min\":5.39,\"max\":10.88,\"night\":6.01,\"eve\":6.79,\"morn\":5.39},\"feels_like\":{\"day\":9.46,\"night\":4.34,\"eve\":5.48,\"morn\":3.58},\"pressure\":1021,\"humidity\":79,\"dew_point\":7.54,\"wind_speed\":1.15,\"wind_deg\":158,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"couvert\",\"icon\":\"04d\"}],\"clouds\":100,\"pop\":0,\"uvi\":0.79},{\"dt\":1606561200,\"sunrise\":1606548789,\"sunset\":1606579856,\"temp\":{\"day\":9.56,\"min\":4.44,\"max\":9.56,\"night\":4.44,\"eve\":5.13,\"morn\":4.7},\"feels_like\":{\"day\":7.18,\"night\":0.31,\"eve\":1.58,\"morn\":3},\"pressure\":1021,\"humidity\":80,\"dew_point\":6.43,\"wind_speed\":2.17,\"wind_deg\":130,\"weather\":[{\"id\":803,\"main\":\"Clouds\",\"description\":\"nuageux\",\"icon\":\"04d\"}],\"clouds\":72,\"pop\":0,\"uvi\":0.78}]}","payloadType":"json","x":110,"y":2040,"wires":[["267294cc.c4bbf4"]]},{"id":"1eecd41b.a1a76c","type":"debug","z":"8d22ae29.7df6d","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":570,"y":2000,"wires":[]}]

thank you for your patience, i will try to understand your programming, but there is nothing easy for me. Thank you again for your help.

The first two lines check if properties exists, if they do not it sets their values to 0. i.e. no rain

ok, i testing

I haven't read the full thread, but has it already been suggested that you spend an hour watching the Node Red Essentials videos linked from the node-red docs? That would be time well spent. Also read carefully the docs page Working with Messages, that will tell a lot that you need to know to save you having to ask basic questions here, and so that you understand the requests made of you (such as using the little buttons in the debug pane).

yes it works, thank you again, but it's not easy when you start and I can't find a tutorial in French for this language. Besides, what exactly is this scripted Jave language? http? node java cripte? ? I am confused !

yes, I would like to see the tutorials. . . but in French! ! ! I don't understand English, so very difficult (even with translate!)