Search an openweathermap array for "temp"

Is it possible to search an array containing hourly data fromopenweathermap?

What I want is the "temp" predictions for the period of one day (24 hours) to produce a chart of today's temperature.

What are peoples thoughts/suggestions on how to get "temp". I have given this thought but it seems over complicated, is that just my lack of understanding? I have tried using a for loop to work through the array hoping to increment from payload.hourly[0] to payload.hourly[1] etc but that isn't permissible.

Thanks for your knowledge

{"current":{"dt":1643732472,"sunrise":1643699330,"sunset":1643736392,"temp":17.13,"feels_like":15.79,"pressure":1025,"humidity":34,"dew_point":1.16,"uvi":0.37,"clouds":0,"visibility":10000,"wind_speed":0.45,"wind_deg":227,"wind_gust":2.68,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}]},"hourly":[{"dt":1643731200,"temp":17.13,"feels_like":15.79,"pressure":1025,"humidity":34,"dew_point":1.16,"uvi":0.37,"clouds":0,"visibility":10000,"wind_speed":2.09,"wind_deg":128,"wind_gust":1.72,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"pop":0},{"dt":1643734800,"temp":16.46,"feels_like":15.15,"pressure":1025,"humidity":38,"dew_point":2.11,"uvi":0,"clouds":0,"visibility":10000,"wind_speed":3.12,"wind_deg":148,"wind_gust":3.72,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"pop":0},{"dt":1643738400,"temp":14.82,"feels_like":13.58,"pressure":1025,"humidity":47,"dew_point":3.63,"uvi":0,"clouds":1,"visibility":10000,"wind_speed":2.56,"wind_deg":143,"wind_gust":2.67,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"pop":0},{"dt":1643742000,"temp":13,"feels_like":11.84,"pressure":1026,"humidity":57,"dew_point":4.69,"uvi":0,"clouds":0,"visibility":10000,"wind_speed":1.86,"wind_deg":169,"wind_gust":1.91,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"pop":0},{"dt":1643745600,"temp":11.02,"feels_like":9.95,"pressure":1027,"humidity":68,"dew_point":5.35,"uvi":0,"clouds":0,"visibility":10000,"wind_speed":1.04,"wind_deg":169,"wind_gust":1.2,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"pop":0},{"dt":1643749200,"temp":9.38,"feels_like":8.76,"pressure":1028,"humidity":77,"dew_point":5.1,"uvi":0,"clouds":0,"visibility":10000,"wind_speed":1.68,"wind_deg":214,"wind_gust":1.72,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"pop":0},{"dt":1643752800,"temp":9.14,"feels_like":8.5,"pressure":1029,"humidity":78,"dew_point":5.05,"uvi":0,"clouds":0,"visibility":10000,"wind_speed":1.66,"wind_deg":240,"wind_gust":1.69,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"pop":0},{"dt":1643756400,"temp":9.11,"feels_like":8.2,"pressure":1029,"humidity":79,"dew_point":5.09,"uvi":0,"clouds":0,"visibility":10000,"wind_speed":1.95,"wind_deg":229,"wind_gust":1.99,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"pop":0},{"dt":1643760000,"temp":9.1,"feels_like":7.69,"pressure":1028,"humidity":79,"dew_point":5.22,"uvi":0,"clouds":0,"visibility":10000,"wind_speed":2.59,"wind_deg":241,"wind_gust":2.59,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"pop":0},{"dt":1643763600,"temp":8.89,"feels_like":7.51,"pressure":1028,"humidity":80,"dew_point":5.12,"uvi":0,"clouds":0,"visibility":10000,"wind_speed":2.5,"wind_deg":253,"wind_gust":2.41,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"pop":0},{"dt":1643767200,"temp":8.86,"feels_like":7.44,"pressure":1028,"humidity":77,"dew_point":4.66,"uvi":0,"clouds":0,"visibility":10000,"wind_speed":2.54,"wind_deg":255,"wind_gust":2.52,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"pop":0},{"dt":1643770800,"temp":8.94,"feels_like":7.42,"pressure":1027,"humidity":72,"dew_point":3.66,"uvi":0,"clouds":0,"visibility":10000,"wind_speed":2.71,"wind_deg":252,"wind_gust":2.63,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"pop":0},{"dt":1643774400,"temp":9.15,"feels_like":7.58,"pressure":1027,"humidity":66,"dew_point":2.57,"uvi":0,"clouds":0,"visibility":10000,"wind_speed":2.86,"wind_deg":249,"wind_gust":2.75,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"pop":0},{"dt":1643778000,"temp":9.3,"feels_like":7.74,"pressure":1026,"humidity":61,"dew_point":1.55,"uvi":0,"clouds":0,"visibility":10000,"wind_speed":2.88,"wind_deg":252,"wind_gust":2.78,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"pop":0},{"dt":1643781600,"temp":9.23,"feels_like":7.8,"pressure":1026,"humidity":59,"dew_point":1.02,"uvi":0,"clouds":0,"visibility":10000,"wind_speed":2.67,"wind_deg":245,"wind_gust":2.62,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"pop":0},{"dt":1643785200,"temp":9.19,"feels_like":7.68,"pressure":1026,"humidity":58,"dew_point":0.85,"uvi":0,"clouds":0,"visibility":10000,"wind_speed":2.77,"wind_deg":257,"wind_gust":2.74,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"pop":0},{"dt":1643788800,"temp":10.46,"feels_like":8.95,"pressure":1026,"humidity":53,"dew_point":0.93,"uvi":0.28,"clouds":0,"visibility":10000,"wind_speed":2.73,"wind_deg":260,"wind_gust":2.81,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"pop":0},{"dt":1643792400,"temp":13.36,"feels_like":11.93,"pressure":1026,"humidity":45,"dew_point":1.28,"uvi":0.94,"clouds":0,"visibility":10000,"wind_speed":2.73,"wind_deg":257,"wind_gust":4.09,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"pop":0},{"dt":1643796000,"temp":15.96,"feels_like":14.6,"pressure":1026,"humidity":38,"dew_point":1.35,"uvi":1.84,"clouds":0,"visibility":10000,"wind_speed":3.15,"wind_deg":259,"wind_gust":4.5,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"pop":0},{"dt":1643799600,"temp":18.15,"feels_like":16.88,"pressure":1025,"humidity":33,"dew_point":1.33,"uvi":2.67,"clouds":0,"visibility":10000,"wind_speed":3.3,"wind_deg":262,"wind_gust":4.57,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"pop":0},{"dt":1643803200,"temp":19.98,"feels_like":18.79,"pressure":1024,"humidity":29,"dew_point":1.16,"uvi":3.04,"clouds":0,"visibility":10000,"wind_speed":3.6,"wind_deg":261,"wind_gust":4.61,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"pop":0},{"dt":1643806800,"temp":21.46,"feels_like":20.34,"pressure":1023,"humidity":26,"dew_point":1.02,"uvi":2.71,"clouds":0,"visibility":10000,"wind_speed":3.69,"wind_deg":263,"wind_gust":4.51,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"pop":0},{"dt":1643810400,"temp":22.39,"feels_like":21.34,"pressure":1023,"humidity":25,"dew_point":1,"uvi":1.96,"clouds":0,"visibility":10000,"wind_speed":3.31,"wind_deg":268,"wind_gust":3.98,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"pop":0},{"dt":1643814000,"temp":22.73,"feels_like":21.71,"pressure":1022,"humidity":25,"dew_point":1.31,"uvi":1.05,"clouds":0,"visibility":10000,"wind_speed":3.42,"wind_deg":262,"wind_gust":4.14,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"pop":0},{"dt":1643817600,"temp":22.08,"feels_like":21.1,"pressure":1022,"humidity":29,"dew_point":2.72,"uvi":0.38,"clouds":0,"visibility":10000,"wind_speed":3.1,"wind_deg":247,"wind_gust":4.44,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"pop":0},{"dt":1643821200,"temp":18.73,"feels_like":17.62,"pressure":1022,"humidity":37,"dew_point":3.11,"uvi":0,"clouds":0,"visibility":10000,"wind_speed":3.19,"wind_deg":231,"wind_gust":3.22,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"pop":0},{"dt":1643824800,"temp":16.16,"feels_like":14.95,"pressure":1022,"humidity":43,"dew_point":3.16,"uvi":0,"clouds":0,"visibility":10000,"wind_speed":3.32,"wind_deg":226,"wind_gust":3.26,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"pop":0},{"dt":1643828400,"temp":15.12,"feels_like":13.94,"pressure":1022,"humidity":48,"dew_point":3.74,"uvi":0,"clouds":0,"visibility":10000,"wind_speed":3.4,"wind_deg":229,"wind_gust":3.35,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"pop":0},{"dt":1643832000,"temp":14.57,"feels_like":13.41,"pressure":1022,"humidity":51,"dew_point":4.01,"uvi":0,"clouds":0,"visibility":10000,"wind_speed":3.23,"wind_deg":240,"wind_gust":3.13,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"pop":0},{"dt":1643835600,"temp":14.22,"feels_like":13.03,"pressure":1023,"humidity":51,"dew_point":3.7,"uvi":0,"clouds":0,"visibility":10000,"wind_speed":2.62,"wind_deg":244,"wind_gust":2.62,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"pop":0},{"dt":1643839200,"temp":14.21,"feels_like":12.94,"pressure":1023,"humidity":48,"dew_point":3.01,"uvi":0,"clouds":0,"visibility":10000,"wind_speed":2.48,"wind_deg":256,"wind_gust":2.57,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"pop":0},{"dt":1643842800,"temp":14.02,"feels_like":12.68,"pressure":1022,"humidity":46,"dew_point":2.24,"uvi":0,"clouds":0,"visibility":10000,"wind_speed":2.31,"wind_deg":267,"wind_gust":2.34,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"pop":0},{"dt":1643846400,"temp":13.64,"feels_like":12.29,"pressure":1022,"humidity":47,"dew_point":2.09,"uvi":0,"clouds":0,"visibility":10000,"wind_speed":2.07,"wind_deg":276,"wind_gust":2.13,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"pop":0},{"dt":1643850000,"temp":13.38,"feels_like":12.03,"pressure":1022,"humidity":48,"dew_point":2.28,"uvi":0,"clouds":5,"visibility":10000,"wind_speed":2.2,"wind_deg":275,"wind_gust":2.22,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"pop":0},{"dt":1643853600,"temp":12.9,"feels_like":11.55,"pressure":1021,"humidity":50,"dew_point":2.2,"uvi":0,"clouds":6,"visibility":10000,"wind_speed":2.14,"wind_deg":274,"wind_gust":2.15,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"pop":0},{"dt":1643857200,"temp":12.63,"feels_like":11.25,"pressure":1021,"humidity":50,"dew_point":2.03,"uvi":0,"clouds":14,"visibility":10000,"wind_speed":2.33,"wind_deg":280,"wind_gust":2.33,"weather":[{"id":801,"main":"Clouds","description":"few clouds","icon":"02n"}],"pop":0},{"dt":1643860800,"temp":12.33,"feels_like":10.92,"pressure":1021,"humidity":50,"dew_point":1.88,"uvi":0,"clouds":36,"visibility":10000,"wind_speed":2.31,"wind_deg":277,"wind_gust":2.31,"weather":[{"id":802,"main":"Clouds","description":"scattered clouds","icon":"03n"}],"pop":0},{"dt":1643864400,"temp":12.14,"feels_like":10.72,"pressure":1021,"humidity":50,"dew_point":1.7,"uvi":0,"clouds":49,"visibility":10000,"wind_speed":2.38,"wind_deg":279,"wind_gust":2.39,"weather":[{"id":802,"main":"Clouds","description":"scattered clouds","icon":"03n"}],"pop":0},{"dt":1643868000,"temp":11.88,"feels_like":10.43,"pressure":1021,"humidity":50,"dew_point":1.49,"uvi":0,"clouds":57,"visibility":10000,"wind_speed":2.31,"wind_deg":279,"wind_gust":2.31,"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04n"}],"pop":0},{"dt":1643871600,"temp":11.86,"feels_like":10.41,"pressure":1021,"humidity":50,"dew_point":1.25,"uvi":0,"clouds":92,"visibility":10000,"wind_speed":2.58,"wind_deg":278,"wind_gust":2.53,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04n"}],"pop":0},{"dt":1643875200,"temp":13.05,"feels_like":11.59,"pressure":1021,"humidity":45,"dew_point":1.04,"uvi":0.27,"clouds":63,"visibility":10000,"wind_speed":2.17,"wind_deg":274,"wind_gust":2.16,"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04d"}],"pop":0},{"dt":1643878800,"temp":16.02,"feels_like":14.7,"pressure":1022,"humidity":39,"dew_point":1.53,"uvi":0.87,"clouds":75,"visibility":10000,"wind_speed":2.37,"wind_deg":270,"wind_gust":3.45,"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04d"}],"pop":0},{"dt":1643882400,"temp":18.31,"feels_like":17.03,"pressure":1022,"humidity":32,"dew_point":1.01,"uvi":1.57,"clouds":81,"visibility":10000,"wind_speed":2.51,"wind_deg":279,"wind_gust":3.63,"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04d"}],"pop":0},{"dt":1643886000,"temp":20,"feels_like":18.79,"pressure":1021,"humidity":28,"dew_point":0.78,"uvi":2.28,"clouds":85,"visibility":10000,"wind_speed":2.66,"wind_deg":275,"wind_gust":3.6,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"pop":0},{"dt":1643889600,"temp":21.5,"feels_like":20.38,"pressure":1021,"humidity":26,"dew_point":0.7,"uvi":2.59,"clouds":87,"visibility":10000,"wind_speed":3.05,"wind_deg":273,"wind_gust":3.7,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"pop":0},{"dt":1643893200,"temp":22.57,"feels_like":21.51,"pressure":1020,"humidity":24,"dew_point":0.67,"uvi":2.4,"clouds":100,"visibility":10000,"wind_speed":3.13,"wind_deg":272,"wind_gust":3.64,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"pop":0},{"dt":1643896800,"temp":23.08,"feels_like":22.04,"pressure":1019,"humidity":23,"dew_point":0.62,"uvi":1.74,"clouds":100,"visibility":10000,"wind_speed":3.24,"wind_deg":275,"wind_gust":3.76,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"pop":0},{"dt":1643900400,"temp":23.2,"feels_like":22.18,"pressure":1018,"humidity":23,"dew_point":0.73,"uvi":0.94,"clouds":100,"visibility":10000,"wind_speed":2.73,"wind_deg":281,"wind_gust":3.28,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"pop":0}],"daily":[{"dt":1643716800,"sunrise":1643699330,"sunset":1643736392,"moonrise":1643701200,"moonset":1643737560,"moon_phase":0,"temp":{"day":15.55,"min":9.14,"max":17.13,"night":9.14,"eve":14.82,"morn":9.65},"feels_like":{"day":14.23,"night":8.5,"eve":13.58,"morn":6.61},"pressure":1026,"humidity":41,"dew_point":2.36,"wind_speed":8.1,"wind_deg":319,"wind_gust":13.25,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":0,"pop":0,"uvi":2.99},{"dt":1643803200,"sunrise":1643785679,"sunset":1643822860,"moonrise":1643789940,"moonset":1643828340,"moon_phase":0.05,"temp":{"day":19.98,"min":8.86,"max":22.73,"night":14.21,"eve":16.16,"morn":9.23},"feels_like":{"day":18.79,"night":12.94,"eve":14.95,"morn":7.8},"pressure":1024,"humidity":29,"dew_point":1.16,"wind_speed":3.69,"wind_deg":263,"wind_gust":4.61,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":0,"pop":0,"uvi":3.04},{"dt":1643889600,"sunrise":1643872026,"sunset":1643909329,"moonrise":1643878260,"moonset":1643918940,"moon_phase":0.08,"temp":{"day":21.5,"min":11.86,"max":23.2,"night":15.22,"eve":16.85,"morn":11.88},"feels_like":{"day":20.38,"night":13.84,"eve":15.58,"morn":10.43},"pressure":1021,"humidity":26,"dew_point":0.7,"wind_speed":3.24,"wind_deg":275,"wind_gust":3.76,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"clouds":87,"pop":0,"uvi":2.59},{"dt":1643976000,"sunrise":1643958372,"sunset":1643995797,"moonrise":1643966340,"moonset":1644009300,"moon_phase":0.12,"temp":{"day":19.32,"min":11.23,"max":20.24,"night":12,"eve":13.92,"morn":11.23},"feels_like":{"day":18.17,"night":11.29,"eve":13.04,"morn":9.84},"pressure":1022,"humidity":33,"dew_point":2.33,"wind_speed":2.99,"wind_deg":131,"wind_gust":2.93,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":4,"pop":0,"uvi":2.37},{"dt":1644062400,"sunrise":1644044716,"sunset":1644082265,"moonrise":1644054240,"moonset":1644099540,"moon_phase":0.15,"temp":{"day":16.51,"min":9.25,"max":16.51,"night":13.18,"eve":12.55,"morn":9.25},"feels_like":{"day":15.84,"night":12.51,"eve":12.05,"morn":8.67},"pressure":1024,"humidity":62,"dew_point":8.7,"wind_speed":5.46,"wind_deg":81,"wind_gust":5.42,"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04d"}],"clouds":64,"pop":0,"uvi":2.54},{"dt":1644148800,"sunrise":1644131058,"sunset":1644168733,"moonrise":1644142140,"moonset":0,"moon_phase":0.18,"temp":{"day":15.65,"min":10.57,"max":15.65,"night":10.57,"eve":12.12,"morn":12.84},"feels_like":{"day":14.92,"night":10.03,"eve":11.53,"morn":12.06},"pressure":1028,"humidity":63,"dew_point":8.25,"wind_speed":5.57,"wind_deg":87,"wind_gust":5.74,"weather":[{"id":500,"main":"Rain","description":"light rain","icon":"10d"}],"clouds":99,"pop":0.2,"rain":0.34,"uvi":3},{"dt":1644235200,"sunrise":1644217399,"sunset":1644255201,"moonrise":1644230100,"moonset":1644189600,"moon_phase":0.21,"temp":{"day":13.94,"min":9.47,"max":14.74,"night":12.63,"eve":12.94,"morn":9.47},"feels_like":{"day":13.17,"night":11.93,"eve":12.2,"morn":9.08},"pressure":1030,"humidity":68,"dew_point":7.63,"wind_speed":4.58,"wind_deg":84,"wind_gust":6.37,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"clouds":98,"pop":0,"uvi":3},{"dt":1644321600,"sunrise":1644303738,"sunset":1644341669,"moonrise":1644318120,"moonset":1644279720,"moon_phase":0.25,"temp":{"day":16.31,"min":10.08,"max":16.51,"night":10.3,"eve":11.93,"morn":10.08},"feels_like":{"day":15.3,"night":9.63,"eve":11.24,"morn":9.13},"pressure":1031,"humidity":50,"dew_point":5.35,"wind_speed":5.63,"wind_deg":84,"wind_gust":5.33,"weather":[{"id":802,"main":"Clouds","description":"scattered clouds","icon":"03d"}],"clouds":29,"pop":0,"uvi":3}],"minutely":[{"dt":1643732520,"precipitation":0},{"dt":1643732580,"precipitation":0},{"dt":1643732640,"precipitation":0},{"dt":1643732700,"precipitation":0},{"dt":1643732760,"precipitation":0},{"dt":1643732820,"precipitation":0},{"dt":1643732880,"precipitation":0},{"dt":1643732940,"precipitation":0},{"dt":1643733000,"precipitation":0},{"dt":1643733060,"precipitation":0},{"dt":1643733120,"precipitation":0},{"dt":1643733180,"precipitation":0},{"dt":1643733240,"precipitation":0},{"dt":1643733300,"precipitation":0},{"dt":1643733360,"precipitation":0},{"dt":1643733420,"precipitation":0},{"dt":1643733480,"precipitation":0},{"dt":1643733540,"precipitation":0},{"dt":1643733600,"precipitation":0},{"dt":1643733660,"precipitation":0},{"dt":1643733720,"precipitation":0},{"dt":1643733780,"precipitation":0},{"dt":1643733840,"precipitation":0},{"dt":1643733900,"precipitation":0},{"dt":1643733960,"precipitation":0},{"dt":1643734020,"precipitation":0},{"dt":1643734080,"precipitation":0},{"dt":1643734140,"precipitation":0},{"dt":1643734200,"precipitation":0},{"dt":1643734260,"precipitation":0},{"dt":1643734320,"precipitation":0},{"dt":1643734380,"precipitation":0},{"dt":1643734440,"precipitation":0},{"dt":1643734500,"precipitation":0},{"dt":1643734560,"precipitation":0},{"dt":1643734620,"precipitation":0},{"dt":1643734680,"precipitation":0},{"dt":1643734740,"precipitation":0},{"dt":1643734800,"precipitation":0},{"dt":1643734860,"precipitation":0},{"dt":1643734920,"precipitation":0},{"dt":1643734980,"precipitation":0},{"dt":1643735040,"precipitation":0},{"dt":1643735100,"precipitation":0},{"dt":1643735160,"precipitation":0},{"dt":1643735220,"precipitation":0},{"dt":1643735280,"precipitation":0},{"dt":1643735340,"precipitation":0},{"dt":1643735400,"precipitation":0},{"dt":1643735460,"precipitation":0},{"dt":1643735520,"precipitation":0},{"dt":1643735580,"precipitation":0},{"dt":1643735640,"precipitation":0},{"dt":1643735700,"precipitation":0},{"dt":1643735760,"precipitation":0},{"dt":1643735820,"precipitation":0},{"dt":1643735880,"precipitation":0},{"dt":1643735940,"precipitation":0},{"dt":1643736000,"precipitation":0},{"dt":1643736060,"precipitation":0},{"dt":1643736120,"precipitation":0}]}

I have used this flow to display Open Weather Data on a Dashboard page.

You should be able to break it down easily to see how to extract the data.

Here is a JSONata example of how to return temps first 24., and how to convert those to a line chart data.

[{"id":"e7a51daf.ee981","type":"inject","z":"c791cbc0.84f648","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"current\":{\"dt\":1643732472,\"sunrise\":1643699330,\"sunset\":1643736392,\"temp\":17.13,\"feels_like\":15.79,\"pressure\":1025,\"humidity\":34,\"dew_point\":1.16,\"uvi\":0.37,\"clouds\":0,\"visibility\":10000,\"wind_speed\":0.45,\"wind_deg\":227,\"wind_gust\":2.68,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}]},\"hourly\":[{\"dt\":1643731200,\"temp\":17.13,\"feels_like\":15.79,\"pressure\":1025,\"humidity\":34,\"dew_point\":1.16,\"uvi\":0.37,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.09,\"wind_deg\":128,\"wind_gust\":1.72,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643734800,\"temp\":16.46,\"feels_like\":15.15,\"pressure\":1025,\"humidity\":38,\"dew_point\":2.11,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.12,\"wind_deg\":148,\"wind_gust\":3.72,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643738400,\"temp\":14.82,\"feels_like\":13.58,\"pressure\":1025,\"humidity\":47,\"dew_point\":3.63,\"uvi\":0,\"clouds\":1,\"visibility\":10000,\"wind_speed\":2.56,\"wind_deg\":143,\"wind_gust\":2.67,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643742000,\"temp\":13,\"feels_like\":11.84,\"pressure\":1026,\"humidity\":57,\"dew_point\":4.69,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":1.86,\"wind_deg\":169,\"wind_gust\":1.91,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643745600,\"temp\":11.02,\"feels_like\":9.95,\"pressure\":1027,\"humidity\":68,\"dew_point\":5.35,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":1.04,\"wind_deg\":169,\"wind_gust\":1.2,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643749200,\"temp\":9.38,\"feels_like\":8.76,\"pressure\":1028,\"humidity\":77,\"dew_point\":5.1,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":1.68,\"wind_deg\":214,\"wind_gust\":1.72,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643752800,\"temp\":9.14,\"feels_like\":8.5,\"pressure\":1029,\"humidity\":78,\"dew_point\":5.05,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":1.66,\"wind_deg\":240,\"wind_gust\":1.69,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643756400,\"temp\":9.11,\"feels_like\":8.2,\"pressure\":1029,\"humidity\":79,\"dew_point\":5.09,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":1.95,\"wind_deg\":229,\"wind_gust\":1.99,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643760000,\"temp\":9.1,\"feels_like\":7.69,\"pressure\":1028,\"humidity\":79,\"dew_point\":5.22,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.59,\"wind_deg\":241,\"wind_gust\":2.59,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643763600,\"temp\":8.89,\"feels_like\":7.51,\"pressure\":1028,\"humidity\":80,\"dew_point\":5.12,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.5,\"wind_deg\":253,\"wind_gust\":2.41,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643767200,\"temp\":8.86,\"feels_like\":7.44,\"pressure\":1028,\"humidity\":77,\"dew_point\":4.66,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.54,\"wind_deg\":255,\"wind_gust\":2.52,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643770800,\"temp\":8.94,\"feels_like\":7.42,\"pressure\":1027,\"humidity\":72,\"dew_point\":3.66,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.71,\"wind_deg\":252,\"wind_gust\":2.63,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643774400,\"temp\":9.15,\"feels_like\":7.58,\"pressure\":1027,\"humidity\":66,\"dew_point\":2.57,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.86,\"wind_deg\":249,\"wind_gust\":2.75,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643778000,\"temp\":9.3,\"feels_like\":7.74,\"pressure\":1026,\"humidity\":61,\"dew_point\":1.55,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.88,\"wind_deg\":252,\"wind_gust\":2.78,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643781600,\"temp\":9.23,\"feels_like\":7.8,\"pressure\":1026,\"humidity\":59,\"dew_point\":1.02,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.67,\"wind_deg\":245,\"wind_gust\":2.62,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643785200,\"temp\":9.19,\"feels_like\":7.68,\"pressure\":1026,\"humidity\":58,\"dew_point\":0.85,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.77,\"wind_deg\":257,\"wind_gust\":2.74,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643788800,\"temp\":10.46,\"feels_like\":8.95,\"pressure\":1026,\"humidity\":53,\"dew_point\":0.93,\"uvi\":0.28,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.73,\"wind_deg\":260,\"wind_gust\":2.81,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643792400,\"temp\":13.36,\"feels_like\":11.93,\"pressure\":1026,\"humidity\":45,\"dew_point\":1.28,\"uvi\":0.94,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.73,\"wind_deg\":257,\"wind_gust\":4.09,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643796000,\"temp\":15.96,\"feels_like\":14.6,\"pressure\":1026,\"humidity\":38,\"dew_point\":1.35,\"uvi\":1.84,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.15,\"wind_deg\":259,\"wind_gust\":4.5,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643799600,\"temp\":18.15,\"feels_like\":16.88,\"pressure\":1025,\"humidity\":33,\"dew_point\":1.33,\"uvi\":2.67,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.3,\"wind_deg\":262,\"wind_gust\":4.57,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643803200,\"temp\":19.98,\"feels_like\":18.79,\"pressure\":1024,\"humidity\":29,\"dew_point\":1.16,\"uvi\":3.04,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.6,\"wind_deg\":261,\"wind_gust\":4.61,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643806800,\"temp\":21.46,\"feels_like\":20.34,\"pressure\":1023,\"humidity\":26,\"dew_point\":1.02,\"uvi\":2.71,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.69,\"wind_deg\":263,\"wind_gust\":4.51,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643810400,\"temp\":22.39,\"feels_like\":21.34,\"pressure\":1023,\"humidity\":25,\"dew_point\":1,\"uvi\":1.96,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.31,\"wind_deg\":268,\"wind_gust\":3.98,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643814000,\"temp\":22.73,\"feels_like\":21.71,\"pressure\":1022,\"humidity\":25,\"dew_point\":1.31,\"uvi\":1.05,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.42,\"wind_deg\":262,\"wind_gust\":4.14,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643817600,\"temp\":22.08,\"feels_like\":21.1,\"pressure\":1022,\"humidity\":29,\"dew_point\":2.72,\"uvi\":0.38,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.1,\"wind_deg\":247,\"wind_gust\":4.44,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643821200,\"temp\":18.73,\"feels_like\":17.62,\"pressure\":1022,\"humidity\":37,\"dew_point\":3.11,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.19,\"wind_deg\":231,\"wind_gust\":3.22,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643824800,\"temp\":16.16,\"feels_like\":14.95,\"pressure\":1022,\"humidity\":43,\"dew_point\":3.16,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.32,\"wind_deg\":226,\"wind_gust\":3.26,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643828400,\"temp\":15.12,\"feels_like\":13.94,\"pressure\":1022,\"humidity\":48,\"dew_point\":3.74,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.4,\"wind_deg\":229,\"wind_gust\":3.35,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643832000,\"temp\":14.57,\"feels_like\":13.41,\"pressure\":1022,\"humidity\":51,\"dew_point\":4.01,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.23,\"wind_deg\":240,\"wind_gust\":3.13,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643835600,\"temp\":14.22,\"feels_like\":13.03,\"pressure\":1023,\"humidity\":51,\"dew_point\":3.7,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.62,\"wind_deg\":244,\"wind_gust\":2.62,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643839200,\"temp\":14.21,\"feels_like\":12.94,\"pressure\":1023,\"humidity\":48,\"dew_point\":3.01,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.48,\"wind_deg\":256,\"wind_gust\":2.57,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643842800,\"temp\":14.02,\"feels_like\":12.68,\"pressure\":1022,\"humidity\":46,\"dew_point\":2.24,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.31,\"wind_deg\":267,\"wind_gust\":2.34,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643846400,\"temp\":13.64,\"feels_like\":12.29,\"pressure\":1022,\"humidity\":47,\"dew_point\":2.09,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.07,\"wind_deg\":276,\"wind_gust\":2.13,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643850000,\"temp\":13.38,\"feels_like\":12.03,\"pressure\":1022,\"humidity\":48,\"dew_point\":2.28,\"uvi\":0,\"clouds\":5,\"visibility\":10000,\"wind_speed\":2.2,\"wind_deg\":275,\"wind_gust\":2.22,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643853600,\"temp\":12.9,\"feels_like\":11.55,\"pressure\":1021,\"humidity\":50,\"dew_point\":2.2,\"uvi\":0,\"clouds\":6,\"visibility\":10000,\"wind_speed\":2.14,\"wind_deg\":274,\"wind_gust\":2.15,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643857200,\"temp\":12.63,\"feels_like\":11.25,\"pressure\":1021,\"humidity\":50,\"dew_point\":2.03,\"uvi\":0,\"clouds\":14,\"visibility\":10000,\"wind_speed\":2.33,\"wind_deg\":280,\"wind_gust\":2.33,\"weather\":[{\"id\":801,\"main\":\"Clouds\",\"description\":\"few clouds\",\"icon\":\"02n\"}],\"pop\":0},{\"dt\":1643860800,\"temp\":12.33,\"feels_like\":10.92,\"pressure\":1021,\"humidity\":50,\"dew_point\":1.88,\"uvi\":0,\"clouds\":36,\"visibility\":10000,\"wind_speed\":2.31,\"wind_deg\":277,\"wind_gust\":2.31,\"weather\":[{\"id\":802,\"main\":\"Clouds\",\"description\":\"scattered clouds\",\"icon\":\"03n\"}],\"pop\":0},{\"dt\":1643864400,\"temp\":12.14,\"feels_like\":10.72,\"pressure\":1021,\"humidity\":50,\"dew_point\":1.7,\"uvi\":0,\"clouds\":49,\"visibility\":10000,\"wind_speed\":2.38,\"wind_deg\":279,\"wind_gust\":2.39,\"weather\":[{\"id\":802,\"main\":\"Clouds\",\"description\":\"scattered clouds\",\"icon\":\"03n\"}],\"pop\":0},{\"dt\":1643868000,\"temp\":11.88,\"feels_like\":10.43,\"pressure\":1021,\"humidity\":50,\"dew_point\":1.49,\"uvi\":0,\"clouds\":57,\"visibility\":10000,\"wind_speed\":2.31,\"wind_deg\":279,\"wind_gust\":2.31,\"weather\":[{\"id\":803,\"main\":\"Clouds\",\"description\":\"broken clouds\",\"icon\":\"04n\"}],\"pop\":0},{\"dt\":1643871600,\"temp\":11.86,\"feels_like\":10.41,\"pressure\":1021,\"humidity\":50,\"dew_point\":1.25,\"uvi\":0,\"clouds\":92,\"visibility\":10000,\"wind_speed\":2.58,\"wind_deg\":278,\"wind_gust\":2.53,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04n\"}],\"pop\":0},{\"dt\":1643875200,\"temp\":13.05,\"feels_like\":11.59,\"pressure\":1021,\"humidity\":45,\"dew_point\":1.04,\"uvi\":0.27,\"clouds\":63,\"visibility\":10000,\"wind_speed\":2.17,\"wind_deg\":274,\"wind_gust\":2.16,\"weather\":[{\"id\":803,\"main\":\"Clouds\",\"description\":\"broken clouds\",\"icon\":\"04d\"}],\"pop\":0},{\"dt\":1643878800,\"temp\":16.02,\"feels_like\":14.7,\"pressure\":1022,\"humidity\":39,\"dew_point\":1.53,\"uvi\":0.87,\"clouds\":75,\"visibility\":10000,\"wind_speed\":2.37,\"wind_deg\":270,\"wind_gust\":3.45,\"weather\":[{\"id\":803,\"main\":\"Clouds\",\"description\":\"broken clouds\",\"icon\":\"04d\"}],\"pop\":0},{\"dt\":1643882400,\"temp\":18.31,\"feels_like\":17.03,\"pressure\":1022,\"humidity\":32,\"dew_point\":1.01,\"uvi\":1.57,\"clouds\":81,\"visibility\":10000,\"wind_speed\":2.51,\"wind_deg\":279,\"wind_gust\":3.63,\"weather\":[{\"id\":803,\"main\":\"Clouds\",\"description\":\"broken clouds\",\"icon\":\"04d\"}],\"pop\":0},{\"dt\":1643886000,\"temp\":20,\"feels_like\":18.79,\"pressure\":1021,\"humidity\":28,\"dew_point\":0.78,\"uvi\":2.28,\"clouds\":85,\"visibility\":10000,\"wind_speed\":2.66,\"wind_deg\":275,\"wind_gust\":3.6,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04d\"}],\"pop\":0},{\"dt\":1643889600,\"temp\":21.5,\"feels_like\":20.38,\"pressure\":1021,\"humidity\":26,\"dew_point\":0.7,\"uvi\":2.59,\"clouds\":87,\"visibility\":10000,\"wind_speed\":3.05,\"wind_deg\":273,\"wind_gust\":3.7,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04d\"}],\"pop\":0},{\"dt\":1643893200,\"temp\":22.57,\"feels_like\":21.51,\"pressure\":1020,\"humidity\":24,\"dew_point\":0.67,\"uvi\":2.4,\"clouds\":100,\"visibility\":10000,\"wind_speed\":3.13,\"wind_deg\":272,\"wind_gust\":3.64,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04d\"}],\"pop\":0},{\"dt\":1643896800,\"temp\":23.08,\"feels_like\":22.04,\"pressure\":1019,\"humidity\":23,\"dew_point\":0.62,\"uvi\":1.74,\"clouds\":100,\"visibility\":10000,\"wind_speed\":3.24,\"wind_deg\":275,\"wind_gust\":3.76,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04d\"}],\"pop\":0},{\"dt\":1643900400,\"temp\":23.2,\"feels_like\":22.18,\"pressure\":1018,\"humidity\":23,\"dew_point\":0.73,\"uvi\":0.94,\"clouds\":100,\"visibility\":10000,\"wind_speed\":2.73,\"wind_deg\":281,\"wind_gust\":3.28,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04d\"}],\"pop\":0}],\"daily\":[{\"dt\":1643716800,\"sunrise\":1643699330,\"sunset\":1643736392,\"moonrise\":1643701200,\"moonset\":1643737560,\"moon_phase\":0,\"temp\":{\"day\":15.55,\"min\":9.14,\"max\":17.13,\"night\":9.14,\"eve\":14.82,\"morn\":9.65},\"feels_like\":{\"day\":14.23,\"night\":8.5,\"eve\":13.58,\"morn\":6.61},\"pressure\":1026,\"humidity\":41,\"dew_point\":2.36,\"wind_speed\":8.1,\"wind_deg\":319,\"wind_gust\":13.25,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"clouds\":0,\"pop\":0,\"uvi\":2.99},{\"dt\":1643803200,\"sunrise\":1643785679,\"sunset\":1643822860,\"moonrise\":1643789940,\"moonset\":1643828340,\"moon_phase\":0.05,\"temp\":{\"day\":19.98,\"min\":8.86,\"max\":22.73,\"night\":14.21,\"eve\":16.16,\"morn\":9.23},\"feels_like\":{\"day\":18.79,\"night\":12.94,\"eve\":14.95,\"morn\":7.8},\"pressure\":1024,\"humidity\":29,\"dew_point\":1.16,\"wind_speed\":3.69,\"wind_deg\":263,\"wind_gust\":4.61,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"clouds\":0,\"pop\":0,\"uvi\":3.04},{\"dt\":1643889600,\"sunrise\":1643872026,\"sunset\":1643909329,\"moonrise\":1643878260,\"moonset\":1643918940,\"moon_phase\":0.08,\"temp\":{\"day\":21.5,\"min\":11.86,\"max\":23.2,\"night\":15.22,\"eve\":16.85,\"morn\":11.88},\"feels_like\":{\"day\":20.38,\"night\":13.84,\"eve\":15.58,\"morn\":10.43},\"pressure\":1021,\"humidity\":26,\"dew_point\":0.7,\"wind_speed\":3.24,\"wind_deg\":275,\"wind_gust\":3.76,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04d\"}],\"clouds\":87,\"pop\":0,\"uvi\":2.59},{\"dt\":1643976000,\"sunrise\":1643958372,\"sunset\":1643995797,\"moonrise\":1643966340,\"moonset\":1644009300,\"moon_phase\":0.12,\"temp\":{\"day\":19.32,\"min\":11.23,\"max\":20.24,\"night\":12,\"eve\":13.92,\"morn\":11.23},\"feels_like\":{\"day\":18.17,\"night\":11.29,\"eve\":13.04,\"morn\":9.84},\"pressure\":1022,\"humidity\":33,\"dew_point\":2.33,\"wind_speed\":2.99,\"wind_deg\":131,\"wind_gust\":2.93,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"clouds\":4,\"pop\":0,\"uvi\":2.37},{\"dt\":1644062400,\"sunrise\":1644044716,\"sunset\":1644082265,\"moonrise\":1644054240,\"moonset\":1644099540,\"moon_phase\":0.15,\"temp\":{\"day\":16.51,\"min\":9.25,\"max\":16.51,\"night\":13.18,\"eve\":12.55,\"morn\":9.25},\"feels_like\":{\"day\":15.84,\"night\":12.51,\"eve\":12.05,\"morn\":8.67},\"pressure\":1024,\"humidity\":62,\"dew_point\":8.7,\"wind_speed\":5.46,\"wind_deg\":81,\"wind_gust\":5.42,\"weather\":[{\"id\":803,\"main\":\"Clouds\",\"description\":\"broken clouds\",\"icon\":\"04d\"}],\"clouds\":64,\"pop\":0,\"uvi\":2.54},{\"dt\":1644148800,\"sunrise\":1644131058,\"sunset\":1644168733,\"moonrise\":1644142140,\"moonset\":0,\"moon_phase\":0.18,\"temp\":{\"day\":15.65,\"min\":10.57,\"max\":15.65,\"night\":10.57,\"eve\":12.12,\"morn\":12.84},\"feels_like\":{\"day\":14.92,\"night\":10.03,\"eve\":11.53,\"morn\":12.06},\"pressure\":1028,\"humidity\":63,\"dew_point\":8.25,\"wind_speed\":5.57,\"wind_deg\":87,\"wind_gust\":5.74,\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10d\"}],\"clouds\":99,\"pop\":0.2,\"rain\":0.34,\"uvi\":3},{\"dt\":1644235200,\"sunrise\":1644217399,\"sunset\":1644255201,\"moonrise\":1644230100,\"moonset\":1644189600,\"moon_phase\":0.21,\"temp\":{\"day\":13.94,\"min\":9.47,\"max\":14.74,\"night\":12.63,\"eve\":12.94,\"morn\":9.47},\"feels_like\":{\"day\":13.17,\"night\":11.93,\"eve\":12.2,\"morn\":9.08},\"pressure\":1030,\"humidity\":68,\"dew_point\":7.63,\"wind_speed\":4.58,\"wind_deg\":84,\"wind_gust\":6.37,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04d\"}],\"clouds\":98,\"pop\":0,\"uvi\":3},{\"dt\":1644321600,\"sunrise\":1644303738,\"sunset\":1644341669,\"moonrise\":1644318120,\"moonset\":1644279720,\"moon_phase\":0.25,\"temp\":{\"day\":16.31,\"min\":10.08,\"max\":16.51,\"night\":10.3,\"eve\":11.93,\"morn\":10.08},\"feels_like\":{\"day\":15.3,\"night\":9.63,\"eve\":11.24,\"morn\":9.13},\"pressure\":1031,\"humidity\":50,\"dew_point\":5.35,\"wind_speed\":5.63,\"wind_deg\":84,\"wind_gust\":5.33,\"weather\":[{\"id\":802,\"main\":\"Clouds\",\"description\":\"scattered clouds\",\"icon\":\"03d\"}],\"clouds\":29,\"pop\":0,\"uvi\":3}],\"minutely\":[{\"dt\":1643732520,\"precipitation\":0},{\"dt\":1643732580,\"precipitation\":0},{\"dt\":1643732640,\"precipitation\":0},{\"dt\":1643732700,\"precipitation\":0},{\"dt\":1643732760,\"precipitation\":0},{\"dt\":1643732820,\"precipitation\":0},{\"dt\":1643732880,\"precipitation\":0},{\"dt\":1643732940,\"precipitation\":0},{\"dt\":1643733000,\"precipitation\":0},{\"dt\":1643733060,\"precipitation\":0},{\"dt\":1643733120,\"precipitation\":0},{\"dt\":1643733180,\"precipitation\":0},{\"dt\":1643733240,\"precipitation\":0},{\"dt\":1643733300,\"precipitation\":0},{\"dt\":1643733360,\"precipitation\":0},{\"dt\":1643733420,\"precipitation\":0},{\"dt\":1643733480,\"precipitation\":0},{\"dt\":1643733540,\"precipitation\":0},{\"dt\":1643733600,\"precipitation\":0},{\"dt\":1643733660,\"precipitation\":0},{\"dt\":1643733720,\"precipitation\":0},{\"dt\":1643733780,\"precipitation\":0},{\"dt\":1643733840,\"precipitation\":0},{\"dt\":1643733900,\"precipitation\":0},{\"dt\":1643733960,\"precipitation\":0},{\"dt\":1643734020,\"precipitation\":0},{\"dt\":1643734080,\"precipitation\":0},{\"dt\":1643734140,\"precipitation\":0},{\"dt\":1643734200,\"precipitation\":0},{\"dt\":1643734260,\"precipitation\":0},{\"dt\":1643734320,\"precipitation\":0},{\"dt\":1643734380,\"precipitation\":0},{\"dt\":1643734440,\"precipitation\":0},{\"dt\":1643734500,\"precipitation\":0},{\"dt\":1643734560,\"precipitation\":0},{\"dt\":1643734620,\"precipitation\":0},{\"dt\":1643734680,\"precipitation\":0},{\"dt\":1643734740,\"precipitation\":0},{\"dt\":1643734800,\"precipitation\":0},{\"dt\":1643734860,\"precipitation\":0},{\"dt\":1643734920,\"precipitation\":0},{\"dt\":1643734980,\"precipitation\":0},{\"dt\":1643735040,\"precipitation\":0},{\"dt\":1643735100,\"precipitation\":0},{\"dt\":1643735160,\"precipitation\":0},{\"dt\":1643735220,\"precipitation\":0},{\"dt\":1643735280,\"precipitation\":0},{\"dt\":1643735340,\"precipitation\":0},{\"dt\":1643735400,\"precipitation\":0},{\"dt\":1643735460,\"precipitation\":0},{\"dt\":1643735520,\"precipitation\":0},{\"dt\":1643735580,\"precipitation\":0},{\"dt\":1643735640,\"precipitation\":0},{\"dt\":1643735700,\"precipitation\":0},{\"dt\":1643735760,\"precipitation\":0},{\"dt\":1643735820,\"precipitation\":0},{\"dt\":1643735880,\"precipitation\":0},{\"dt\":1643735940,\"precipitation\":0},{\"dt\":1643736000,\"precipitation\":0},{\"dt\":1643736060,\"precipitation\":0},{\"dt\":1643736120,\"precipitation\":0}]}","payloadType":"json","x":210,"y":180,"wires":[["e27ce52e.93e9","4703231a.02890c"]]},{"id":"e27ce52e.93e9","type":"change","z":"c791cbc0.84f648","name":"data for bar chart","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.hourly.temp[[0..23]]","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":400,"y":220,"wires":[["aa51af73.3bbed"]]},{"id":"4703231a.02890c","type":"change","z":"c791cbc0.84f648","name":"data for line chart","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.hourly[[0..23]].{\"x\": $.dt, \"y\":$.temp}","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":260,"wires":[["aa51af73.3bbed"]]},{"id":"aa51af73.3bbed","type":"debug","z":"c791cbc0.84f648","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":580,"y":280,"wires":[]}]

You could also do similar in a function node, you would save a few milliseconds.

[edit] the dt timestamp is unix in seconds, so to convert to JS timestamp in milliseconds you would need to multiply by 1000.
So the JSONata expression would need to be

payload.hourly[[0..23]].{"x": $.dt*1000, "y":$.temp}

The same but in Javascript for a function node

msg.payload = msg.payload.hourly.slice(0,24).map(e=>{
    return {x: e.dt*1000, y: e.temp}
})
return msg;
1 Like

@E1cid that looks very good and saves a lot of typing.

I have tried it but get a "Bad data inject" message and no chart. I'll take a look.

Bad data inject
[{"id":"1744d37c2c9f5c5f","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"e7a51daf.ee981","type":"inject","z":"1744d37c2c9f5c5f","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"current\":{\"dt\":1643732472,\"sunrise\":1643699330,\"sunset\":1643736392,\"temp\":17.13,\"feels_like\":15.79,\"pressure\":1025,\"humidity\":34,\"dew_point\":1.16,\"uvi\":0.37,\"clouds\":0,\"visibility\":10000,\"wind_speed\":0.45,\"wind_deg\":227,\"wind_gust\":2.68,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}]},\"hourly\":[{\"dt\":1643731200,\"temp\":17.13,\"feels_like\":15.79,\"pressure\":1025,\"humidity\":34,\"dew_point\":1.16,\"uvi\":0.37,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.09,\"wind_deg\":128,\"wind_gust\":1.72,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643734800,\"temp\":16.46,\"feels_like\":15.15,\"pressure\":1025,\"humidity\":38,\"dew_point\":2.11,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.12,\"wind_deg\":148,\"wind_gust\":3.72,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643738400,\"temp\":14.82,\"feels_like\":13.58,\"pressure\":1025,\"humidity\":47,\"dew_point\":3.63,\"uvi\":0,\"clouds\":1,\"visibility\":10000,\"wind_speed\":2.56,\"wind_deg\":143,\"wind_gust\":2.67,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643742000,\"temp\":13,\"feels_like\":11.84,\"pressure\":1026,\"humidity\":57,\"dew_point\":4.69,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":1.86,\"wind_deg\":169,\"wind_gust\":1.91,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643745600,\"temp\":11.02,\"feels_like\":9.95,\"pressure\":1027,\"humidity\":68,\"dew_point\":5.35,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":1.04,\"wind_deg\":169,\"wind_gust\":1.2,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643749200,\"temp\":9.38,\"feels_like\":8.76,\"pressure\":1028,\"humidity\":77,\"dew_point\":5.1,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":1.68,\"wind_deg\":214,\"wind_gust\":1.72,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643752800,\"temp\":9.14,\"feels_like\":8.5,\"pressure\":1029,\"humidity\":78,\"dew_point\":5.05,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":1.66,\"wind_deg\":240,\"wind_gust\":1.69,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643756400,\"temp\":9.11,\"feels_like\":8.2,\"pressure\":1029,\"humidity\":79,\"dew_point\":5.09,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":1.95,\"wind_deg\":229,\"wind_gust\":1.99,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643760000,\"temp\":9.1,\"feels_like\":7.69,\"pressure\":1028,\"humidity\":79,\"dew_point\":5.22,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.59,\"wind_deg\":241,\"wind_gust\":2.59,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643763600,\"temp\":8.89,\"feels_like\":7.51,\"pressure\":1028,\"humidity\":80,\"dew_point\":5.12,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.5,\"wind_deg\":253,\"wind_gust\":2.41,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643767200,\"temp\":8.86,\"feels_like\":7.44,\"pressure\":1028,\"humidity\":77,\"dew_point\":4.66,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.54,\"wind_deg\":255,\"wind_gust\":2.52,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643770800,\"temp\":8.94,\"feels_like\":7.42,\"pressure\":1027,\"humidity\":72,\"dew_point\":3.66,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.71,\"wind_deg\":252,\"wind_gust\":2.63,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643774400,\"temp\":9.15,\"feels_like\":7.58,\"pressure\":1027,\"humidity\":66,\"dew_point\":2.57,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.86,\"wind_deg\":249,\"wind_gust\":2.75,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643778000,\"temp\":9.3,\"feels_like\":7.74,\"pressure\":1026,\"humidity\":61,\"dew_point\":1.55,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.88,\"wind_deg\":252,\"wind_gust\":2.78,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643781600,\"temp\":9.23,\"feels_like\":7.8,\"pressure\":1026,\"humidity\":59,\"dew_point\":1.02,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.67,\"wind_deg\":245,\"wind_gust\":2.62,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643785200,\"temp\":9.19,\"feels_like\":7.68,\"pressure\":1026,\"humidity\":58,\"dew_point\":0.85,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.77,\"wind_deg\":257,\"wind_gust\":2.74,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643788800,\"temp\":10.46,\"feels_like\":8.95,\"pressure\":1026,\"humidity\":53,\"dew_point\":0.93,\"uvi\":0.28,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.73,\"wind_deg\":260,\"wind_gust\":2.81,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643792400,\"temp\":13.36,\"feels_like\":11.93,\"pressure\":1026,\"humidity\":45,\"dew_point\":1.28,\"uvi\":0.94,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.73,\"wind_deg\":257,\"wind_gust\":4.09,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643796000,\"temp\":15.96,\"feels_like\":14.6,\"pressure\":1026,\"humidity\":38,\"dew_point\":1.35,\"uvi\":1.84,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.15,\"wind_deg\":259,\"wind_gust\":4.5,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643799600,\"temp\":18.15,\"feels_like\":16.88,\"pressure\":1025,\"humidity\":33,\"dew_point\":1.33,\"uvi\":2.67,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.3,\"wind_deg\":262,\"wind_gust\":4.57,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643803200,\"temp\":19.98,\"feels_like\":18.79,\"pressure\":1024,\"humidity\":29,\"dew_point\":1.16,\"uvi\":3.04,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.6,\"wind_deg\":261,\"wind_gust\":4.61,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643806800,\"temp\":21.46,\"feels_like\":20.34,\"pressure\":1023,\"humidity\":26,\"dew_point\":1.02,\"uvi\":2.71,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.69,\"wind_deg\":263,\"wind_gust\":4.51,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643810400,\"temp\":22.39,\"feels_like\":21.34,\"pressure\":1023,\"humidity\":25,\"dew_point\":1,\"uvi\":1.96,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.31,\"wind_deg\":268,\"wind_gust\":3.98,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643814000,\"temp\":22.73,\"feels_like\":21.71,\"pressure\":1022,\"humidity\":25,\"dew_point\":1.31,\"uvi\":1.05,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.42,\"wind_deg\":262,\"wind_gust\":4.14,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643817600,\"temp\":22.08,\"feels_like\":21.1,\"pressure\":1022,\"humidity\":29,\"dew_point\":2.72,\"uvi\":0.38,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.1,\"wind_deg\":247,\"wind_gust\":4.44,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643821200,\"temp\":18.73,\"feels_like\":17.62,\"pressure\":1022,\"humidity\":37,\"dew_point\":3.11,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.19,\"wind_deg\":231,\"wind_gust\":3.22,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643824800,\"temp\":16.16,\"feels_like\":14.95,\"pressure\":1022,\"humidity\":43,\"dew_point\":3.16,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.32,\"wind_deg\":226,\"wind_gust\":3.26,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643828400,\"temp\":15.12,\"feels_like\":13.94,\"pressure\":1022,\"humidity\":48,\"dew_point\":3.74,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.4,\"wind_deg\":229,\"wind_gust\":3.35,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643832000,\"temp\":14.57,\"feels_like\":13.41,\"pressure\":1022,\"humidity\":51,\"dew_point\":4.01,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.23,\"wind_deg\":240,\"wind_gust\":3.13,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643835600,\"temp\":14.22,\"feels_like\":13.03,\"pressure\":1023,\"humidity\":51,\"dew_point\":3.7,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.62,\"wind_deg\":244,\"wind_gust\":2.62,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643839200,\"temp\":14.21,\"feels_like\":12.94,\"pressure\":1023,\"humidity\":48,\"dew_point\":3.01,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.48,\"wind_deg\":256,\"wind_gust\":2.57,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643842800,\"temp\":14.02,\"feels_like\":12.68,\"pressure\":1022,\"humidity\":46,\"dew_point\":2.24,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.31,\"wind_deg\":267,\"wind_gust\":2.34,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643846400,\"temp\":13.64,\"feels_like\":12.29,\"pressure\":1022,\"humidity\":47,\"dew_point\":2.09,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.07,\"wind_deg\":276,\"wind_gust\":2.13,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643850000,\"temp\":13.38,\"feels_like\":12.03,\"pressure\":1022,\"humidity\":48,\"dew_point\":2.28,\"uvi\":0,\"clouds\":5,\"visibility\":10000,\"wind_speed\":2.2,\"wind_deg\":275,\"wind_gust\":2.22,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643853600,\"temp\":12.9,\"feels_like\":11.55,\"pressure\":1021,\"humidity\":50,\"dew_point\":2.2,\"uvi\":0,\"clouds\":6,\"visibility\":10000,\"wind_speed\":2.14,\"wind_deg\":274,\"wind_gust\":2.15,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643857200,\"temp\":12.63,\"feels_like\":11.25,\"pressure\":1021,\"humidity\":50,\"dew_point\":2.03,\"uvi\":0,\"clouds\":14,\"visibility\":10000,\"wind_speed\":2.33,\"wind_deg\":280,\"wind_gust\":2.33,\"weather\":[{\"id\":801,\"main\":\"Clouds\",\"description\":\"few clouds\",\"icon\":\"02n\"}],\"pop\":0},{\"dt\":1643860800,\"temp\":12.33,\"feels_like\":10.92,\"pressure\":1021,\"humidity\":50,\"dew_point\":1.88,\"uvi\":0,\"clouds\":36,\"visibility\":10000,\"wind_speed\":2.31,\"wind_deg\":277,\"wind_gust\":2.31,\"weather\":[{\"id\":802,\"main\":\"Clouds\",\"description\":\"scattered clouds\",\"icon\":\"03n\"}],\"pop\":0},{\"dt\":1643864400,\"temp\":12.14,\"feels_like\":10.72,\"pressure\":1021,\"humidity\":50,\"dew_point\":1.7,\"uvi\":0,\"clouds\":49,\"visibility\":10000,\"wind_speed\":2.38,\"wind_deg\":279,\"wind_gust\":2.39,\"weather\":[{\"id\":802,\"main\":\"Clouds\",\"description\":\"scattered clouds\",\"icon\":\"03n\"}],\"pop\":0},{\"dt\":1643868000,\"temp\":11.88,\"feels_like\":10.43,\"pressure\":1021,\"humidity\":50,\"dew_point\":1.49,\"uvi\":0,\"clouds\":57,\"visibility\":10000,\"wind_speed\":2.31,\"wind_deg\":279,\"wind_gust\":2.31,\"weather\":[{\"id\":803,\"main\":\"Clouds\",\"description\":\"broken clouds\",\"icon\":\"04n\"}],\"pop\":0},{\"dt\":1643871600,\"temp\":11.86,\"feels_like\":10.41,\"pressure\":1021,\"humidity\":50,\"dew_point\":1.25,\"uvi\":0,\"clouds\":92,\"visibility\":10000,\"wind_speed\":2.58,\"wind_deg\":278,\"wind_gust\":2.53,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04n\"}],\"pop\":0},{\"dt\":1643875200,\"temp\":13.05,\"feels_like\":11.59,\"pressure\":1021,\"humidity\":45,\"dew_point\":1.04,\"uvi\":0.27,\"clouds\":63,\"visibility\":10000,\"wind_speed\":2.17,\"wind_deg\":274,\"wind_gust\":2.16,\"weather\":[{\"id\":803,\"main\":\"Clouds\",\"description\":\"broken clouds\",\"icon\":\"04d\"}],\"pop\":0},{\"dt\":1643878800,\"temp\":16.02,\"feels_like\":14.7,\"pressure\":1022,\"humidity\":39,\"dew_point\":1.53,\"uvi\":0.87,\"clouds\":75,\"visibility\":10000,\"wind_speed\":2.37,\"wind_deg\":270,\"wind_gust\":3.45,\"weather\":[{\"id\":803,\"main\":\"Clouds\",\"description\":\"broken clouds\",\"icon\":\"04d\"}],\"pop\":0},{\"dt\":1643882400,\"temp\":18.31,\"feels_like\":17.03,\"pressure\":1022,\"humidity\":32,\"dew_point\":1.01,\"uvi\":1.57,\"clouds\":81,\"visibility\":10000,\"wind_speed\":2.51,\"wind_deg\":279,\"wind_gust\":3.63,\"weather\":[{\"id\":803,\"main\":\"Clouds\",\"description\":\"broken clouds\",\"icon\":\"04d\"}],\"pop\":0},{\"dt\":1643886000,\"temp\":20,\"feels_like\":18.79,\"pressure\":1021,\"humidity\":28,\"dew_point\":0.78,\"uvi\":2.28,\"clouds\":85,\"visibility\":10000,\"wind_speed\":2.66,\"wind_deg\":275,\"wind_gust\":3.6,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04d\"}],\"pop\":0},{\"dt\":1643889600,\"temp\":21.5,\"feels_like\":20.38,\"pressure\":1021,\"humidity\":26,\"dew_point\":0.7,\"uvi\":2.59,\"clouds\":87,\"visibility\":10000,\"wind_speed\":3.05,\"wind_deg\":273,\"wind_gust\":3.7,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04d\"}],\"pop\":0},{\"dt\":1643893200,\"temp\":22.57,\"feels_like\":21.51,\"pressure\":1020,\"humidity\":24,\"dew_point\":0.67,\"uvi\":2.4,\"clouds\":100,\"visibility\":10000,\"wind_speed\":3.13,\"wind_deg\":272,\"wind_gust\":3.64,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04d\"}],\"pop\":0},{\"dt\":1643896800,\"temp\":23.08,\"feels_like\":22.04,\"pressure\":1019,\"humidity\":23,\"dew_point\":0.62,\"uvi\":1.74,\"clouds\":100,\"visibility\":10000,\"wind_speed\":3.24,\"wind_deg\":275,\"wind_gust\":3.76,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04d\"}],\"pop\":0},{\"dt\":1643900400,\"temp\":23.2,\"feels_like\":22.18,\"pressure\":1018,\"humidity\":23,\"dew_point\":0.73,\"uvi\":0.94,\"clouds\":100,\"visibility\":10000,\"wind_speed\":2.73,\"wind_deg\":281,\"wind_gust\":3.28,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04d\"}],\"pop\":0}],\"daily\":[{\"dt\":1643716800,\"sunrise\":1643699330,\"sunset\":1643736392,\"moonrise\":1643701200,\"moonset\":1643737560,\"moon_phase\":0,\"temp\":{\"day\":15.55,\"min\":9.14,\"max\":17.13,\"night\":9.14,\"eve\":14.82,\"morn\":9.65},\"feels_like\":{\"day\":14.23,\"night\":8.5,\"eve\":13.58,\"morn\":6.61},\"pressure\":1026,\"humidity\":41,\"dew_point\":2.36,\"wind_speed\":8.1,\"wind_deg\":319,\"wind_gust\":13.25,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"clouds\":0,\"pop\":0,\"uvi\":2.99},{\"dt\":1643803200,\"sunrise\":1643785679,\"sunset\":1643822860,\"moonrise\":1643789940,\"moonset\":1643828340,\"moon_phase\":0.05,\"temp\":{\"day\":19.98,\"min\":8.86,\"max\":22.73,\"night\":14.21,\"eve\":16.16,\"morn\":9.23},\"feels_like\":{\"day\":18.79,\"night\":12.94,\"eve\":14.95,\"morn\":7.8},\"pressure\":1024,\"humidity\":29,\"dew_point\":1.16,\"wind_speed\":3.69,\"wind_deg\":263,\"wind_gust\":4.61,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"clouds\":0,\"pop\":0,\"uvi\":3.04},{\"dt\":1643889600,\"sunrise\":1643872026,\"sunset\":1643909329,\"moonrise\":1643878260,\"moonset\":1643918940,\"moon_phase\":0.08,\"temp\":{\"day\":21.5,\"min\":11.86,\"max\":23.2,\"night\":15.22,\"eve\":16.85,\"morn\":11.88},\"feels_like\":{\"day\":20.38,\"night\":13.84,\"eve\":15.58,\"morn\":10.43},\"pressure\":1021,\"humidity\":26,\"dew_point\":0.7,\"wind_speed\":3.24,\"wind_deg\":275,\"wind_gust\":3.76,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04d\"}],\"clouds\":87,\"pop\":0,\"uvi\":2.59},{\"dt\":1643976000,\"sunrise\":1643958372,\"sunset\":1643995797,\"moonrise\":1643966340,\"moonset\":1644009300,\"moon_phase\":0.12,\"temp\":{\"day\":19.32,\"min\":11.23,\"max\":20.24,\"night\":12,\"eve\":13.92,\"morn\":11.23},\"feels_like\":{\"day\":18.17,\"night\":11.29,\"eve\":13.04,\"morn\":9.84},\"pressure\":1022,\"humidity\":33,\"dew_point\":2.33,\"wind_speed\":2.99,\"wind_deg\":131,\"wind_gust\":2.93,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"clouds\":4,\"pop\":0,\"uvi\":2.37},{\"dt\":1644062400,\"sunrise\":1644044716,\"sunset\":1644082265,\"moonrise\":1644054240,\"moonset\":1644099540,\"moon_phase\":0.15,\"temp\":{\"day\":16.51,\"min\":9.25,\"max\":16.51,\"night\":13.18,\"eve\":12.55,\"morn\":9.25},\"feels_like\":{\"day\":15.84,\"night\":12.51,\"eve\":12.05,\"morn\":8.67},\"pressure\":1024,\"humidity\":62,\"dew_point\":8.7,\"wind_speed\":5.46,\"wind_deg\":81,\"wind_gust\":5.42,\"weather\":[{\"id\":803,\"main\":\"Clouds\",\"description\":\"broken clouds\",\"icon\":\"04d\"}],\"clouds\":64,\"pop\":0,\"uvi\":2.54},{\"dt\":1644148800,\"sunrise\":1644131058,\"sunset\":1644168733,\"moonrise\":1644142140,\"moonset\":0,\"moon_phase\":0.18,\"temp\":{\"day\":15.65,\"min\":10.57,\"max\":15.65,\"night\":10.57,\"eve\":12.12,\"morn\":12.84},\"feels_like\":{\"day\":14.92,\"night\":10.03,\"eve\":11.53,\"morn\":12.06},\"pressure\":1028,\"humidity\":63,\"dew_point\":8.25,\"wind_speed\":5.57,\"wind_deg\":87,\"wind_gust\":5.74,\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10d\"}],\"clouds\":99,\"pop\":0.2,\"rain\":0.34,\"uvi\":3},{\"dt\":1644235200,\"sunrise\":1644217399,\"sunset\":1644255201,\"moonrise\":1644230100,\"moonset\":1644189600,\"moon_phase\":0.21,\"temp\":{\"day\":13.94,\"min\":9.47,\"max\":14.74,\"night\":12.63,\"eve\":12.94,\"morn\":9.47},\"feels_like\":{\"day\":13.17,\"night\":11.93,\"eve\":12.2,\"morn\":9.08},\"pressure\":1030,\"humidity\":68,\"dew_point\":7.63,\"wind_speed\":4.58,\"wind_deg\":84,\"wind_gust\":6.37,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04d\"}],\"clouds\":98,\"pop\":0,\"uvi\":3},{\"dt\":1644321600,\"sunrise\":1644303738,\"sunset\":1644341669,\"moonrise\":1644318120,\"moonset\":1644279720,\"moon_phase\":0.25,\"temp\":{\"day\":16.31,\"min\":10.08,\"max\":16.51,\"night\":10.3,\"eve\":11.93,\"morn\":10.08},\"feels_like\":{\"day\":15.3,\"night\":9.63,\"eve\":11.24,\"morn\":9.13},\"pressure\":1031,\"humidity\":50,\"dew_point\":5.35,\"wind_speed\":5.63,\"wind_deg\":84,\"wind_gust\":5.33,\"weather\":[{\"id\":802,\"main\":\"Clouds\",\"description\":\"scattered clouds\",\"icon\":\"03d\"}],\"clouds\":29,\"pop\":0,\"uvi\":3}],\"minutely\":[{\"dt\":1643732520,\"precipitation\":0},{\"dt\":1643732580,\"precipitation\":0},{\"dt\":1643732640,\"precipitation\":0},{\"dt\":1643732700,\"precipitation\":0},{\"dt\":1643732760,\"precipitation\":0},{\"dt\":1643732820,\"precipitation\":0},{\"dt\":1643732880,\"precipitation\":0},{\"dt\":1643732940,\"precipitation\":0},{\"dt\":1643733000,\"precipitation\":0},{\"dt\":1643733060,\"precipitation\":0},{\"dt\":1643733120,\"precipitation\":0},{\"dt\":1643733180,\"precipitation\":0},{\"dt\":1643733240,\"precipitation\":0},{\"dt\":1643733300,\"precipitation\":0},{\"dt\":1643733360,\"precipitation\":0},{\"dt\":1643733420,\"precipitation\":0},{\"dt\":1643733480,\"precipitation\":0},{\"dt\":1643733540,\"precipitation\":0},{\"dt\":1643733600,\"precipitation\":0},{\"dt\":1643733660,\"precipitation\":0},{\"dt\":1643733720,\"precipitation\":0},{\"dt\":1643733780,\"precipitation\":0},{\"dt\":1643733840,\"precipitation\":0},{\"dt\":1643733900,\"precipitation\":0},{\"dt\":1643733960,\"precipitation\":0},{\"dt\":1643734020,\"precipitation\":0},{\"dt\":1643734080,\"precipitation\":0},{\"dt\":1643734140,\"precipitation\":0},{\"dt\":1643734200,\"precipitation\":0},{\"dt\":1643734260,\"precipitation\":0},{\"dt\":1643734320,\"precipitation\":0},{\"dt\":1643734380,\"precipitation\":0},{\"dt\":1643734440,\"precipitation\":0},{\"dt\":1643734500,\"precipitation\":0},{\"dt\":1643734560,\"precipitation\":0},{\"dt\":1643734620,\"precipitation\":0},{\"dt\":1643734680,\"precipitation\":0},{\"dt\":1643734740,\"precipitation\":0},{\"dt\":1643734800,\"precipitation\":0},{\"dt\":1643734860,\"precipitation\":0},{\"dt\":1643734920,\"precipitation\":0},{\"dt\":1643734980,\"precipitation\":0},{\"dt\":1643735040,\"precipitation\":0},{\"dt\":1643735100,\"precipitation\":0},{\"dt\":1643735160,\"precipitation\":0},{\"dt\":1643735220,\"precipitation\":0},{\"dt\":1643735280,\"precipitation\":0},{\"dt\":1643735340,\"precipitation\":0},{\"dt\":1643735400,\"precipitation\":0},{\"dt\":1643735460,\"precipitation\":0},{\"dt\":1643735520,\"precipitation\":0},{\"dt\":1643735580,\"precipitation\":0},{\"dt\":1643735640,\"precipitation\":0},{\"dt\":1643735700,\"precipitation\":0},{\"dt\":1643735760,\"precipitation\":0},{\"dt\":1643735820,\"precipitation\":0},{\"dt\":1643735880,\"precipitation\":0},{\"dt\":1643735940,\"precipitation\":0},{\"dt\":1643736000,\"precipitation\":0},{\"dt\":1643736060,\"precipitation\":0},{\"dt\":1643736120,\"precipitation\":0}]}","payloadType":"json","x":150,"y":160,"wires":[["e27ce52e.93e9","4703231a.02890c"]]},{"id":"e27ce52e.93e9","type":"change","z":"1744d37c2c9f5c5f","name":"data for bar chart","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.hourly.temp[[0..23]]","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":200,"wires":[[]]},{"id":"4703231a.02890c","type":"change","z":"1744d37c2c9f5c5f","name":"data for line chart","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.hourly[[0..23]].{\"x\": $.dt, \"y\":$.temp}","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":280,"y":240,"wires":[["aa51af73.3bbed","831b08f26ad9a13c"]]},{"id":"aa51af73.3bbed","type":"debug","z":"1744d37c2c9f5c5f","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":520,"y":260,"wires":[]},{"id":"831b08f26ad9a13c","type":"ui_chart","z":"1744d37c2c9f5c5f","name":"","group":"2ce3f2e45615dfc1","order":5,"width":0,"height":0,"label":"chart","chartType":"line","legend":"false","xformat":"auto","interpolate":"linear","nodata":"","dot":true,"ymin":"0","ymax":"50","removeOlder":"24","removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"className":"","x":480,"y":360,"wires":[[]]},{"id":"2ce3f2e45615dfc1","type":"ui_group","name":"Weather Today","tab":"9a876ff53a95da86","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"9a876ff53a95da86","type":"ui_tab","name":"Weather","icon":"dashboard","order":8,"disabled":false,"hidden":false}]

Sorry I asumed you knew the format for the chart. I was just showing how to return the data for the data section of the chart array.
The Jsonata to create the full array the chart requires is

[
   {
       "series":[],
       "data":[
           [
               $$.payload.hourly[[0..23]].{"x": $.dt, "y":$.temp}
           ]
       ],
       "labels":[]
}
]

Thanks for help, I'm not familiar with JSONata yet although I have heard of it.

It is basically a Json, but you can use expressions to add data within the Json, as in the data property. The expression adds an array of objects in the data property array.

@E1cid . Embarrassed to admit I can't get this to work!

[{"id":"33e68e32002c3800","type":"tab","label":"Flow 3","disabled":false,"info":"","env":[]},{"id":"a0e10690b23fc614","type":"function","z":"33e68e32002c3800","name":"","func":"var weather = flow.get(\"location\");\n\nmsg.payload =[{\"series\":[],\"data\":[[weather.hourly[[0..23]].{\"x\": $.dt*1000, \"y\":$.temp},]],\"labels\":[]}];\n\nreturn msg;\n\n","outputs":1,"noerr":10,"initialize":"","finalize":"","libs":[],"x":340,"y":180,"wires":[[]]}]
SyntaxError: Unexpected number (body:line 3)

You are trying to use JSONata in a function node. You can only use Javascript there. JSONata is used in a change node.

examples of both

[{"id":"4db1a5be.38f6fc","type":"inject","z":"33e68e32002c3800","name":"","props":[{"p":"payload"},{"p":"topic","v":"","vt":"date"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"current\":{\"dt\":1643732472,\"sunrise\":1643699330,\"sunset\":1643736392,\"temp\":17.13,\"feels_like\":15.79,\"pressure\":1025,\"humidity\":34,\"dew_point\":1.16,\"uvi\":0.37,\"clouds\":0,\"visibility\":10000,\"wind_speed\":0.45,\"wind_deg\":227,\"wind_gust\":2.68,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}]},\"hourly\":[{\"dt\":1643731200,\"temp\":17.13,\"feels_like\":15.79,\"pressure\":1025,\"humidity\":34,\"dew_point\":1.16,\"uvi\":0.37,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.09,\"wind_deg\":128,\"wind_gust\":1.72,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643734800,\"temp\":16.46,\"feels_like\":15.15,\"pressure\":1025,\"humidity\":38,\"dew_point\":2.11,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.12,\"wind_deg\":148,\"wind_gust\":3.72,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643738400,\"temp\":14.82,\"feels_like\":13.58,\"pressure\":1025,\"humidity\":47,\"dew_point\":3.63,\"uvi\":0,\"clouds\":1,\"visibility\":10000,\"wind_speed\":2.56,\"wind_deg\":143,\"wind_gust\":2.67,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643742000,\"temp\":13,\"feels_like\":11.84,\"pressure\":1026,\"humidity\":57,\"dew_point\":4.69,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":1.86,\"wind_deg\":169,\"wind_gust\":1.91,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643745600,\"temp\":11.02,\"feels_like\":9.95,\"pressure\":1027,\"humidity\":68,\"dew_point\":5.35,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":1.04,\"wind_deg\":169,\"wind_gust\":1.2,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643749200,\"temp\":9.38,\"feels_like\":8.76,\"pressure\":1028,\"humidity\":77,\"dew_point\":5.1,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":1.68,\"wind_deg\":214,\"wind_gust\":1.72,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643752800,\"temp\":9.14,\"feels_like\":8.5,\"pressure\":1029,\"humidity\":78,\"dew_point\":5.05,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":1.66,\"wind_deg\":240,\"wind_gust\":1.69,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643756400,\"temp\":9.11,\"feels_like\":8.2,\"pressure\":1029,\"humidity\":79,\"dew_point\":5.09,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":1.95,\"wind_deg\":229,\"wind_gust\":1.99,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643760000,\"temp\":9.1,\"feels_like\":7.69,\"pressure\":1028,\"humidity\":79,\"dew_point\":5.22,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.59,\"wind_deg\":241,\"wind_gust\":2.59,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643763600,\"temp\":8.89,\"feels_like\":7.51,\"pressure\":1028,\"humidity\":80,\"dew_point\":5.12,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.5,\"wind_deg\":253,\"wind_gust\":2.41,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643767200,\"temp\":8.86,\"feels_like\":7.44,\"pressure\":1028,\"humidity\":77,\"dew_point\":4.66,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.54,\"wind_deg\":255,\"wind_gust\":2.52,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643770800,\"temp\":8.94,\"feels_like\":7.42,\"pressure\":1027,\"humidity\":72,\"dew_point\":3.66,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.71,\"wind_deg\":252,\"wind_gust\":2.63,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643774400,\"temp\":9.15,\"feels_like\":7.58,\"pressure\":1027,\"humidity\":66,\"dew_point\":2.57,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.86,\"wind_deg\":249,\"wind_gust\":2.75,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643778000,\"temp\":9.3,\"feels_like\":7.74,\"pressure\":1026,\"humidity\":61,\"dew_point\":1.55,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.88,\"wind_deg\":252,\"wind_gust\":2.78,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643781600,\"temp\":9.23,\"feels_like\":7.8,\"pressure\":1026,\"humidity\":59,\"dew_point\":1.02,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.67,\"wind_deg\":245,\"wind_gust\":2.62,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643785200,\"temp\":9.19,\"feels_like\":7.68,\"pressure\":1026,\"humidity\":58,\"dew_point\":0.85,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.77,\"wind_deg\":257,\"wind_gust\":2.74,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643788800,\"temp\":10.46,\"feels_like\":8.95,\"pressure\":1026,\"humidity\":53,\"dew_point\":0.93,\"uvi\":0.28,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.73,\"wind_deg\":260,\"wind_gust\":2.81,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643792400,\"temp\":13.36,\"feels_like\":11.93,\"pressure\":1026,\"humidity\":45,\"dew_point\":1.28,\"uvi\":0.94,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.73,\"wind_deg\":257,\"wind_gust\":4.09,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643796000,\"temp\":15.96,\"feels_like\":14.6,\"pressure\":1026,\"humidity\":38,\"dew_point\":1.35,\"uvi\":1.84,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.15,\"wind_deg\":259,\"wind_gust\":4.5,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643799600,\"temp\":18.15,\"feels_like\":16.88,\"pressure\":1025,\"humidity\":33,\"dew_point\":1.33,\"uvi\":2.67,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.3,\"wind_deg\":262,\"wind_gust\":4.57,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643803200,\"temp\":19.98,\"feels_like\":18.79,\"pressure\":1024,\"humidity\":29,\"dew_point\":1.16,\"uvi\":3.04,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.6,\"wind_deg\":261,\"wind_gust\":4.61,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643806800,\"temp\":21.46,\"feels_like\":20.34,\"pressure\":1023,\"humidity\":26,\"dew_point\":1.02,\"uvi\":2.71,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.69,\"wind_deg\":263,\"wind_gust\":4.51,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643810400,\"temp\":22.39,\"feels_like\":21.34,\"pressure\":1023,\"humidity\":25,\"dew_point\":1,\"uvi\":1.96,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.31,\"wind_deg\":268,\"wind_gust\":3.98,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643814000,\"temp\":22.73,\"feels_like\":21.71,\"pressure\":1022,\"humidity\":25,\"dew_point\":1.31,\"uvi\":1.05,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.42,\"wind_deg\":262,\"wind_gust\":4.14,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643817600,\"temp\":22.08,\"feels_like\":21.1,\"pressure\":1022,\"humidity\":29,\"dew_point\":2.72,\"uvi\":0.38,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.1,\"wind_deg\":247,\"wind_gust\":4.44,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643821200,\"temp\":18.73,\"feels_like\":17.62,\"pressure\":1022,\"humidity\":37,\"dew_point\":3.11,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.19,\"wind_deg\":231,\"wind_gust\":3.22,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"pop\":0},{\"dt\":1643824800,\"temp\":16.16,\"feels_like\":14.95,\"pressure\":1022,\"humidity\":43,\"dew_point\":3.16,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.32,\"wind_deg\":226,\"wind_gust\":3.26,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643828400,\"temp\":15.12,\"feels_like\":13.94,\"pressure\":1022,\"humidity\":48,\"dew_point\":3.74,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.4,\"wind_deg\":229,\"wind_gust\":3.35,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643832000,\"temp\":14.57,\"feels_like\":13.41,\"pressure\":1022,\"humidity\":51,\"dew_point\":4.01,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":3.23,\"wind_deg\":240,\"wind_gust\":3.13,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643835600,\"temp\":14.22,\"feels_like\":13.03,\"pressure\":1023,\"humidity\":51,\"dew_point\":3.7,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.62,\"wind_deg\":244,\"wind_gust\":2.62,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643839200,\"temp\":14.21,\"feels_like\":12.94,\"pressure\":1023,\"humidity\":48,\"dew_point\":3.01,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.48,\"wind_deg\":256,\"wind_gust\":2.57,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643842800,\"temp\":14.02,\"feels_like\":12.68,\"pressure\":1022,\"humidity\":46,\"dew_point\":2.24,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.31,\"wind_deg\":267,\"wind_gust\":2.34,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643846400,\"temp\":13.64,\"feels_like\":12.29,\"pressure\":1022,\"humidity\":47,\"dew_point\":2.09,\"uvi\":0,\"clouds\":0,\"visibility\":10000,\"wind_speed\":2.07,\"wind_deg\":276,\"wind_gust\":2.13,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643850000,\"temp\":13.38,\"feels_like\":12.03,\"pressure\":1022,\"humidity\":48,\"dew_point\":2.28,\"uvi\":0,\"clouds\":5,\"visibility\":10000,\"wind_speed\":2.2,\"wind_deg\":275,\"wind_gust\":2.22,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643853600,\"temp\":12.9,\"feels_like\":11.55,\"pressure\":1021,\"humidity\":50,\"dew_point\":2.2,\"uvi\":0,\"clouds\":6,\"visibility\":10000,\"wind_speed\":2.14,\"wind_deg\":274,\"wind_gust\":2.15,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"pop\":0},{\"dt\":1643857200,\"temp\":12.63,\"feels_like\":11.25,\"pressure\":1021,\"humidity\":50,\"dew_point\":2.03,\"uvi\":0,\"clouds\":14,\"visibility\":10000,\"wind_speed\":2.33,\"wind_deg\":280,\"wind_gust\":2.33,\"weather\":[{\"id\":801,\"main\":\"Clouds\",\"description\":\"few clouds\",\"icon\":\"02n\"}],\"pop\":0},{\"dt\":1643860800,\"temp\":12.33,\"feels_like\":10.92,\"pressure\":1021,\"humidity\":50,\"dew_point\":1.88,\"uvi\":0,\"clouds\":36,\"visibility\":10000,\"wind_speed\":2.31,\"wind_deg\":277,\"wind_gust\":2.31,\"weather\":[{\"id\":802,\"main\":\"Clouds\",\"description\":\"scattered clouds\",\"icon\":\"03n\"}],\"pop\":0},{\"dt\":1643864400,\"temp\":12.14,\"feels_like\":10.72,\"pressure\":1021,\"humidity\":50,\"dew_point\":1.7,\"uvi\":0,\"clouds\":49,\"visibility\":10000,\"wind_speed\":2.38,\"wind_deg\":279,\"wind_gust\":2.39,\"weather\":[{\"id\":802,\"main\":\"Clouds\",\"description\":\"scattered clouds\",\"icon\":\"03n\"}],\"pop\":0},{\"dt\":1643868000,\"temp\":11.88,\"feels_like\":10.43,\"pressure\":1021,\"humidity\":50,\"dew_point\":1.49,\"uvi\":0,\"clouds\":57,\"visibility\":10000,\"wind_speed\":2.31,\"wind_deg\":279,\"wind_gust\":2.31,\"weather\":[{\"id\":803,\"main\":\"Clouds\",\"description\":\"broken clouds\",\"icon\":\"04n\"}],\"pop\":0},{\"dt\":1643871600,\"temp\":11.86,\"feels_like\":10.41,\"pressure\":1021,\"humidity\":50,\"dew_point\":1.25,\"uvi\":0,\"clouds\":92,\"visibility\":10000,\"wind_speed\":2.58,\"wind_deg\":278,\"wind_gust\":2.53,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04n\"}],\"pop\":0},{\"dt\":1643875200,\"temp\":13.05,\"feels_like\":11.59,\"pressure\":1021,\"humidity\":45,\"dew_point\":1.04,\"uvi\":0.27,\"clouds\":63,\"visibility\":10000,\"wind_speed\":2.17,\"wind_deg\":274,\"wind_gust\":2.16,\"weather\":[{\"id\":803,\"main\":\"Clouds\",\"description\":\"broken clouds\",\"icon\":\"04d\"}],\"pop\":0},{\"dt\":1643878800,\"temp\":16.02,\"feels_like\":14.7,\"pressure\":1022,\"humidity\":39,\"dew_point\":1.53,\"uvi\":0.87,\"clouds\":75,\"visibility\":10000,\"wind_speed\":2.37,\"wind_deg\":270,\"wind_gust\":3.45,\"weather\":[{\"id\":803,\"main\":\"Clouds\",\"description\":\"broken clouds\",\"icon\":\"04d\"}],\"pop\":0},{\"dt\":1643882400,\"temp\":18.31,\"feels_like\":17.03,\"pressure\":1022,\"humidity\":32,\"dew_point\":1.01,\"uvi\":1.57,\"clouds\":81,\"visibility\":10000,\"wind_speed\":2.51,\"wind_deg\":279,\"wind_gust\":3.63,\"weather\":[{\"id\":803,\"main\":\"Clouds\",\"description\":\"broken clouds\",\"icon\":\"04d\"}],\"pop\":0},{\"dt\":1643886000,\"temp\":20,\"feels_like\":18.79,\"pressure\":1021,\"humidity\":28,\"dew_point\":0.78,\"uvi\":2.28,\"clouds\":85,\"visibility\":10000,\"wind_speed\":2.66,\"wind_deg\":275,\"wind_gust\":3.6,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04d\"}],\"pop\":0},{\"dt\":1643889600,\"temp\":21.5,\"feels_like\":20.38,\"pressure\":1021,\"humidity\":26,\"dew_point\":0.7,\"uvi\":2.59,\"clouds\":87,\"visibility\":10000,\"wind_speed\":3.05,\"wind_deg\":273,\"wind_gust\":3.7,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04d\"}],\"pop\":0},{\"dt\":1643893200,\"temp\":22.57,\"feels_like\":21.51,\"pressure\":1020,\"humidity\":24,\"dew_point\":0.67,\"uvi\":2.4,\"clouds\":100,\"visibility\":10000,\"wind_speed\":3.13,\"wind_deg\":272,\"wind_gust\":3.64,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04d\"}],\"pop\":0},{\"dt\":1643896800,\"temp\":23.08,\"feels_like\":22.04,\"pressure\":1019,\"humidity\":23,\"dew_point\":0.62,\"uvi\":1.74,\"clouds\":100,\"visibility\":10000,\"wind_speed\":3.24,\"wind_deg\":275,\"wind_gust\":3.76,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04d\"}],\"pop\":0},{\"dt\":1643900400,\"temp\":23.2,\"feels_like\":22.18,\"pressure\":1018,\"humidity\":23,\"dew_point\":0.73,\"uvi\":0.94,\"clouds\":100,\"visibility\":10000,\"wind_speed\":2.73,\"wind_deg\":281,\"wind_gust\":3.28,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04d\"}],\"pop\":0}],\"daily\":[{\"dt\":1643716800,\"sunrise\":1643699330,\"sunset\":1643736392,\"moonrise\":1643701200,\"moonset\":1643737560,\"moon_phase\":0,\"temp\":{\"day\":15.55,\"min\":9.14,\"max\":17.13,\"night\":9.14,\"eve\":14.82,\"morn\":9.65},\"feels_like\":{\"day\":14.23,\"night\":8.5,\"eve\":13.58,\"morn\":6.61},\"pressure\":1026,\"humidity\":41,\"dew_point\":2.36,\"wind_speed\":8.1,\"wind_deg\":319,\"wind_gust\":13.25,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"clouds\":0,\"pop\":0,\"uvi\":2.99},{\"dt\":1643803200,\"sunrise\":1643785679,\"sunset\":1643822860,\"moonrise\":1643789940,\"moonset\":1643828340,\"moon_phase\":0.05,\"temp\":{\"day\":19.98,\"min\":8.86,\"max\":22.73,\"night\":14.21,\"eve\":16.16,\"morn\":9.23},\"feels_like\":{\"day\":18.79,\"night\":12.94,\"eve\":14.95,\"morn\":7.8},\"pressure\":1024,\"humidity\":29,\"dew_point\":1.16,\"wind_speed\":3.69,\"wind_deg\":263,\"wind_gust\":4.61,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"clouds\":0,\"pop\":0,\"uvi\":3.04},{\"dt\":1643889600,\"sunrise\":1643872026,\"sunset\":1643909329,\"moonrise\":1643878260,\"moonset\":1643918940,\"moon_phase\":0.08,\"temp\":{\"day\":21.5,\"min\":11.86,\"max\":23.2,\"night\":15.22,\"eve\":16.85,\"morn\":11.88},\"feels_like\":{\"day\":20.38,\"night\":13.84,\"eve\":15.58,\"morn\":10.43},\"pressure\":1021,\"humidity\":26,\"dew_point\":0.7,\"wind_speed\":3.24,\"wind_deg\":275,\"wind_gust\":3.76,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04d\"}],\"clouds\":87,\"pop\":0,\"uvi\":2.59},{\"dt\":1643976000,\"sunrise\":1643958372,\"sunset\":1643995797,\"moonrise\":1643966340,\"moonset\":1644009300,\"moon_phase\":0.12,\"temp\":{\"day\":19.32,\"min\":11.23,\"max\":20.24,\"night\":12,\"eve\":13.92,\"morn\":11.23},\"feels_like\":{\"day\":18.17,\"night\":11.29,\"eve\":13.04,\"morn\":9.84},\"pressure\":1022,\"humidity\":33,\"dew_point\":2.33,\"wind_speed\":2.99,\"wind_deg\":131,\"wind_gust\":2.93,\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"clouds\":4,\"pop\":0,\"uvi\":2.37},{\"dt\":1644062400,\"sunrise\":1644044716,\"sunset\":1644082265,\"moonrise\":1644054240,\"moonset\":1644099540,\"moon_phase\":0.15,\"temp\":{\"day\":16.51,\"min\":9.25,\"max\":16.51,\"night\":13.18,\"eve\":12.55,\"morn\":9.25},\"feels_like\":{\"day\":15.84,\"night\":12.51,\"eve\":12.05,\"morn\":8.67},\"pressure\":1024,\"humidity\":62,\"dew_point\":8.7,\"wind_speed\":5.46,\"wind_deg\":81,\"wind_gust\":5.42,\"weather\":[{\"id\":803,\"main\":\"Clouds\",\"description\":\"broken clouds\",\"icon\":\"04d\"}],\"clouds\":64,\"pop\":0,\"uvi\":2.54},{\"dt\":1644148800,\"sunrise\":1644131058,\"sunset\":1644168733,\"moonrise\":1644142140,\"moonset\":0,\"moon_phase\":0.18,\"temp\":{\"day\":15.65,\"min\":10.57,\"max\":15.65,\"night\":10.57,\"eve\":12.12,\"morn\":12.84},\"feels_like\":{\"day\":14.92,\"night\":10.03,\"eve\":11.53,\"morn\":12.06},\"pressure\":1028,\"humidity\":63,\"dew_point\":8.25,\"wind_speed\":5.57,\"wind_deg\":87,\"wind_gust\":5.74,\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10d\"}],\"clouds\":99,\"pop\":0.2,\"rain\":0.34,\"uvi\":3},{\"dt\":1644235200,\"sunrise\":1644217399,\"sunset\":1644255201,\"moonrise\":1644230100,\"moonset\":1644189600,\"moon_phase\":0.21,\"temp\":{\"day\":13.94,\"min\":9.47,\"max\":14.74,\"night\":12.63,\"eve\":12.94,\"morn\":9.47},\"feels_like\":{\"day\":13.17,\"night\":11.93,\"eve\":12.2,\"morn\":9.08},\"pressure\":1030,\"humidity\":68,\"dew_point\":7.63,\"wind_speed\":4.58,\"wind_deg\":84,\"wind_gust\":6.37,\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04d\"}],\"clouds\":98,\"pop\":0,\"uvi\":3},{\"dt\":1644321600,\"sunrise\":1644303738,\"sunset\":1644341669,\"moonrise\":1644318120,\"moonset\":1644279720,\"moon_phase\":0.25,\"temp\":{\"day\":16.31,\"min\":10.08,\"max\":16.51,\"night\":10.3,\"eve\":11.93,\"morn\":10.08},\"feels_like\":{\"day\":15.3,\"night\":9.63,\"eve\":11.24,\"morn\":9.13},\"pressure\":1031,\"humidity\":50,\"dew_point\":5.35,\"wind_speed\":5.63,\"wind_deg\":84,\"wind_gust\":5.33,\"weather\":[{\"id\":802,\"main\":\"Clouds\",\"description\":\"scattered clouds\",\"icon\":\"03d\"}],\"clouds\":29,\"pop\":0,\"uvi\":3}],\"minutely\":[{\"dt\":1643732520,\"precipitation\":0},{\"dt\":1643732580,\"precipitation\":0},{\"dt\":1643732640,\"precipitation\":0},{\"dt\":1643732700,\"precipitation\":0},{\"dt\":1643732760,\"precipitation\":0},{\"dt\":1643732820,\"precipitation\":0},{\"dt\":1643732880,\"precipitation\":0},{\"dt\":1643732940,\"precipitation\":0},{\"dt\":1643733000,\"precipitation\":0},{\"dt\":1643733060,\"precipitation\":0},{\"dt\":1643733120,\"precipitation\":0},{\"dt\":1643733180,\"precipitation\":0},{\"dt\":1643733240,\"precipitation\":0},{\"dt\":1643733300,\"precipitation\":0},{\"dt\":1643733360,\"precipitation\":0},{\"dt\":1643733420,\"precipitation\":0},{\"dt\":1643733480,\"precipitation\":0},{\"dt\":1643733540,\"precipitation\":0},{\"dt\":1643733600,\"precipitation\":0},{\"dt\":1643733660,\"precipitation\":0},{\"dt\":1643733720,\"precipitation\":0},{\"dt\":1643733780,\"precipitation\":0},{\"dt\":1643733840,\"precipitation\":0},{\"dt\":1643733900,\"precipitation\":0},{\"dt\":1643733960,\"precipitation\":0},{\"dt\":1643734020,\"precipitation\":0},{\"dt\":1643734080,\"precipitation\":0},{\"dt\":1643734140,\"precipitation\":0},{\"dt\":1643734200,\"precipitation\":0},{\"dt\":1643734260,\"precipitation\":0},{\"dt\":1643734320,\"precipitation\":0},{\"dt\":1643734380,\"precipitation\":0},{\"dt\":1643734440,\"precipitation\":0},{\"dt\":1643734500,\"precipitation\":0},{\"dt\":1643734560,\"precipitation\":0},{\"dt\":1643734620,\"precipitation\":0},{\"dt\":1643734680,\"precipitation\":0},{\"dt\":1643734740,\"precipitation\":0},{\"dt\":1643734800,\"precipitation\":0},{\"dt\":1643734860,\"precipitation\":0},{\"dt\":1643734920,\"precipitation\":0},{\"dt\":1643734980,\"precipitation\":0},{\"dt\":1643735040,\"precipitation\":0},{\"dt\":1643735100,\"precipitation\":0},{\"dt\":1643735160,\"precipitation\":0},{\"dt\":1643735220,\"precipitation\":0},{\"dt\":1643735280,\"precipitation\":0},{\"dt\":1643735340,\"precipitation\":0},{\"dt\":1643735400,\"precipitation\":0},{\"dt\":1643735460,\"precipitation\":0},{\"dt\":1643735520,\"precipitation\":0},{\"dt\":1643735580,\"precipitation\":0},{\"dt\":1643735640,\"precipitation\":0},{\"dt\":1643735700,\"precipitation\":0},{\"dt\":1643735760,\"precipitation\":0},{\"dt\":1643735820,\"precipitation\":0},{\"dt\":1643735880,\"precipitation\":0},{\"dt\":1643735940,\"precipitation\":0},{\"dt\":1643736000,\"precipitation\":0},{\"dt\":1643736060,\"precipitation\":0},{\"dt\":1643736120,\"precipitation\":0}]}","payloadType":"json","x":190,"y":140,"wires":[["759f4b67.869f14","a24203b4.bc6f9"]]},{"id":"759f4b67.869f14","type":"change","z":"33e68e32002c3800","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"[    {        \"series\":[],        \"data\":[            [                $$.payload.hourly[[0..23]].{\"x\": $.dt, \"y\":$.temp}            ]        ],        \"labels\":[] } ]","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":390,"y":140,"wires":[["82d622f3.5d45c"]]},{"id":"a24203b4.bc6f9","type":"function","z":"33e68e32002c3800","name":"","func":"let data = msg.payload.hourly.slice(0,24).map(e=>{\n    return {x: e.dt*1000, y: e.temp}\n})\nmsg.payload = [{\n    \"series\":[],\n    \"data\":[data],\n    \"labels\":[]\n}]\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":380,"y":220,"wires":[["6e788d5.f956f74"]]},{"id":"82d622f3.5d45c","type":"debug","z":"33e68e32002c3800","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":620,"y":140,"wires":[]},{"id":"6e788d5.f956f74","type":"debug","z":"33e68e32002c3800","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":600,"y":220,"wires":[]}]

And here is a link to the chart array formats.

Thank you for your help, it is really appreciated. If it wasn't for you and others willing to help people like me I'd have gone back to Lego.

@E1cid I wonder if you could give me some more help with this as I'm struggling! I want to create a Long Range Forecast bar graph showing the max temperatures for the next 7 days and although the graph shows most things it does show the bars. I have looked at other post that you have answered but still I can't get it!
The code, the function is the one giving me a problem:-

[{"id":"ca7734fbe3444b6e","type":"tab","label":"Flow 5","disabled":false,"info":"","env":[]},{"id":"30dccaf64fe0dc0f","type":"function","z":"ca7734fbe3444b6e","name":"Long Range Forecast","func":"\nvar weather = global.get(\"location\");\nlet data = weather.daily.slice(0,7).map(e=>{\n    return {y: e.temp.max}\n});\n\nlet dataC = [];\nlet dataLabels = [\"Today\",\"+1\",\"+2\",\"+3\",\"+4\",\"+5\",\"+6\"];\n\nfor (X=0;X<=6;X++) \n{\n    dataLabels[X];\n    //msg.payload = dataLabels;\n    dataC[X] = data[X];\n    //msg.payload = [dataC,dataLabels];\n}\n\nvar m={\n    \"series\":[\"Long Range\"],\n    \"data\":dataC,\n    \"labels\":dataLabels\n};\n\nreturn {payload:[m]};","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":260,"y":160,"wires":[["eae893212d3ed631","06be58e2158e9edd"]]},{"id":"eae893212d3ed631","type":"ui_chart","z":"ca7734fbe3444b6e","name":"","group":"ddfbfabe6c9895b5","order":2,"width":0,"height":0,"label":"Long Range","chartType":"bar","legend":"true","xformat":"HH:mm","interpolate":"linear","nodata":"","dot":false,"ymin":"0","ymax":"30","removeOlder":"5","removeOlderPoints":"","removeOlderUnit":"86400","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"className":"","x":670,"y":160,"wires":[[]]},{"id":"06be58e2158e9edd","type":"debug","z":"ca7734fbe3444b6e","name":"Bar Chart","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":440,"y":200,"wires":[]},{"id":"c97154acd7e967b6","type":"inject","z":"ca7734fbe3444b6e","name":"1:05 AM poke","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"05 01 * * *","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":120,"y":80,"wires":[["30dccaf64fe0dc0f"]]},{"id":"ddfbfabe6c9895b5","type":"ui_group","name":"Forecast","tab":"9a876ff53a95da86","order":2,"disp":true,"width":"6","collapse":false,"className":""},{"id":"9a876ff53a95da86","type":"ui_tab","name":"Weather","icon":"dashboard","order":8,"disabled":false,"hidden":false}]

And the data:-

{"current":{"dt":1643910665,"sunrise":1643872026,"sunset":1643909329,"temp":17.48,"feels_like":16.59,"pressure":1019,"humidity":50,"dew_point":6.96,"uvi":0,"clouds":0,"visibility":10000,"wind_speed":4.12,"wind_deg":240,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}]},"hourly":[{"dt":1643907600,"temp":17.71,"feels_like":16.76,"pressure":1019,"humidity":47,"dew_point":6.27,"uvi":0,"clouds":18,"visibility":10000,"wind_speed":1.81,"wind_deg":188,"wind_gust":1.72,"weather":[{"id":801,"main":"Clouds","description":"few clouds","icon":"02d"}],"pop":0},{"dt":1643911200,"temp":17.48,"feels_like":16.59,"pressure":1019,"humidity":50,"dew_point":6.96,"uvi":0,"clouds":0,"visibility":10000,"wind_speed":2.15,"wind_deg":195,"wind_gust":2.07,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"pop":0},{"dt":1643914800,"temp":17.09,"feels_like":16.11,"pressure":1019,"humidity":48,"dew_point":6.01,"uvi":0,"clouds":20,"visibility":10000,"wind_speed":2.36,"wind_deg":211,"wind_gust":2.27,"weather":[{"id":801,"main":"Clouds","description":"few clouds","icon":"02n"}],"pop":0},{"dt":1643918400,"temp":16.46,"feels_like":15.39,"pressure":1019,"humidity":47,"dew_point":5.13,"uvi":0,"clouds":39,"visibility":10000,"wind_speed":2.31,"wind_deg":232,"wind_gust":2.3,"weather":[{"id":802,"main":"Clouds","description":"scattered clouds","icon":"03n"}],"pop":0},{"dt":1643922000,"temp":15.67,"feels_like":14.47,"pressure":1020,"humidity":45,"dew_point":3.79,"uvi":0,"clouds":53,"visibility":10000,"wind_speed":2.09,"wind_deg":246,"wind_gust":2.15,"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04n"}],"pop":0},{"dt":1643925600,"temp":14.77,"feels_like":13.45,"pressure":1020,"humidity":44,"dew_point":2.65,"uvi":0,"clouds":60,"visibility":10000,"wind_speed":1.72,"wind_deg":268,"wind_gust":1.79,"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04n"}],"pop":0},{"dt":1643929200,"temp":14.17,"feels_like":12.71,"pressure":1020,"humidity":41,"dew_point":0.6,"uvi":0,"clouds":75,"visibility":10000,"wind_speed":1.66,"wind_deg":277,"wind_gust":1.83,"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04n"}],"pop":0},{"dt":1643932800,"temp":13.9,"feels_like":12.36,"pressure":1020,"humidity":39,"dew_point":-0.1,"uvi":0,"clouds":63,"visibility":10000,"wind_speed":2.01,"wind_deg":290,"wind_gust":2.1,"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04n"}],"pop":0},{"dt":1643936400,"temp":13.5,"feels_like":11.95,"pressure":1020,"humidity":40,"dew_point":-0.18,"uvi":0,"clouds":2,"visibility":10000,"wind_speed":2.24,"wind_deg":299,"wind_gust":2.22,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"pop":0},{"dt":1643940000,"temp":13.05,"feels_like":11.53,"pressure":1020,"humidity":43,"dew_point":0.2,"uvi":0,"clouds":1,"visibility":10000,"wind_speed":2.42,"wind_deg":296,"wind_gust":2.39,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"pop":0},{"dt":1643943600,"temp":12.59,"feels_like":11.08,"pressure":1020,"humidity":45,"dew_point":0.5,"uvi":0,"clouds":1,"visibility":10000,"wind_speed":2.53,"wind_deg":292,"wind_gust":2.48,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"pop":0},{"dt":1643947200,"temp":12.26,"feels_like":10.74,"pressure":1020,"humidity":46,"dew_point":0.52,"uvi":0,"clouds":1,"visibility":10000,"wind_speed":2.59,"wind_deg":289,"wind_gust":2.49,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"pop":0},{"dt":1643950800,"temp":11.92,"feels_like":10.37,"pressure":1020,"humidity":46,"dew_point":0.35,"uvi":0,"clouds":1,"visibility":10000,"wind_speed":2.63,"wind_deg":291,"wind_gust":2.51,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"pop":0},{"dt":1643954400,"temp":11.6,"feels_like":10.04,"pressure":1020,"humidity":47,"dew_point":0.15,"uvi":0,"clouds":0,"visibility":10000,"wind_speed":2.6,"wind_deg":289,"wind_gust":2.57,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"pop":0},{"dt":1643958000,"temp":11.31,"feels_like":9.72,"pressure":1021,"humidity":47,"dew_point":0,"uvi":0,"clouds":1,"visibility":10000,"wind_speed":2.59,"wind_deg":295,"wind_gust":2.49,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"pop":0},{"dt":1643961600,"temp":12.57,"feels_like":11.06,"pressure":1021,"humidity":45,"dew_point":0.58,"uvi":0.28,"clouds":3,"visibility":10000,"wind_speed":2.58,"wind_deg":292,"wind_gust":2.47,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"pop":0},{"dt":1643965200,"temp":15.25,"feels_like":13.85,"pressure":1021,"humidity":39,"dew_point":0.81,"uvi":0.89,"clouds":7,"visibility":10000,"wind_speed":2.28,"wind_deg":292,"wind_gust":3.02,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"pop":0},{"dt":1643968800,"temp":17.52,"feels_like":16.19,"pressure":1022,"humidity":33,"dew_point":0.66,"uvi":1.71,"clouds":15,"visibility":10000,"wind_speed":2.24,"wind_deg":296,"wind_gust":3.04,"weather":[{"id":801,"main":"Clouds","description":"few clouds","icon":"02d"}],"pop":0},{"dt":1643972400,"temp":19.03,"feels_like":17.75,"pressure":1022,"humidity":29,"dew_point":0.24,"uvi":2.49,"clouds":31,"visibility":10000,"wind_speed":2.39,"wind_deg":294,"wind_gust":2.81,"weather":[{"id":802,"main":"Clouds","description":"scattered clouds","icon":"03d"}],"pop":0},{"dt":1643976000,"temp":20.02,"feels_like":18.76,"pressure":1021,"humidity":26,"dew_point":-0.34,"uvi":2.82,"clouds":43,"visibility":10000,"wind_speed":2.41,"wind_deg":297,"wind_gust":2.71,"weather":[{"id":802,"main":"Clouds","description":"scattered clouds","icon":"03d"}],"pop":0},{"dt":1643979600,"temp":20.96,"feels_like":19.74,"pressure":1020,"humidity":24,"dew_point":-0.86,"uvi":2.29,"clouds":100,"visibility":10000,"wind_speed":2.31,"wind_deg":298,"wind_gust":2.6,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"pop":0},{"dt":1643983200,"temp":21.76,"feels_like":20.57,"pressure":1019,"humidity":22,"dew_point":-1.47,"uvi":1.66,"clouds":100,"visibility":10000,"wind_speed":2.09,"wind_deg":305,"wind_gust":2.53,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"pop":0},{"dt":1643986800,"temp":21.93,"feels_like":20.73,"pressure":1019,"humidity":21,"dew_point":-1.81,"uvi":0.91,"clouds":100,"visibility":10000,"wind_speed":1.6,"wind_deg":316,"wind_gust":2.3,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"pop":0},{"dt":1643990400,"temp":21.36,"feels_like":20.23,"pressure":1019,"humidity":26,"dew_point":0.83,"uvi":0.32,"clouds":100,"visibility":10000,"wind_speed":0.72,"wind_deg":261,"wind_gust":0.92,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"pop":0},{"dt":1643994000,"temp":17.89,"feels_like":16.62,"pressure":1019,"humidity":34,"dew_point":1.16,"uvi":0,"clouds":100,"visibility":10000,"wind_speed":0.45,"wind_deg":209,"wind_gust":0.94,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"pop":0},{"dt":1643997600,"temp":15.54,"feels_like":14.12,"pressure":1020,"humidity":37,"dew_point":0.24,"uvi":0,"clouds":100,"visibility":10000,"wind_speed":0.44,"wind_deg":63,"wind_gust":0.86,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04n"}],"pop":0},{"dt":1644001200,"temp":15.06,"feels_like":13.72,"pressure":1021,"humidity":42,"dew_point":1.69,"uvi":0,"clouds":100,"visibility":10000,"wind_speed":1.4,"wind_deg":63,"wind_gust":1.48,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04n"}],"pop":0},{"dt":1644004800,"temp":14.63,"feels_like":13.38,"pressure":1021,"humidity":47,"dew_point":2.73,"uvi":0,"clouds":100,"visibility":10000,"wind_speed":1.6,"wind_deg":70,"wind_gust":1.74,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04n"}],"pop":0},{"dt":1644008400,"temp":13.76,"feels_like":12.52,"pressure":1022,"humidity":51,"dew_point":3.2,"uvi":0,"clouds":100,"visibility":10000,"wind_speed":0.9,"wind_deg":65,"wind_gust":1.12,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04n"}],"pop":0},{"dt":1644012000,"temp":13.35,"feels_like":12.07,"pressure":1022,"humidity":51,"dew_point":2.74,"uvi":0,"clouds":97,"visibility":10000,"wind_speed":0.74,"wind_deg":352,"wind_gust":0.79,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04n"}],"pop":0},{"dt":1644015600,"temp":14.74,"feels_like":13.39,"pressure":1022,"humidity":43,"dew_point":1.96,"uvi":0,"clouds":98,"visibility":10000,"wind_speed":1.54,"wind_deg":328,"wind_gust":1.59,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04n"}],"pop":0},{"dt":1644019200,"temp":14.27,"feels_like":12.85,"pressure":1022,"humidity":42,"dew_point":0.89,"uvi":0,"clouds":98,"visibility":10000,"wind_speed":1.6,"wind_deg":301,"wind_gust":1.65,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04n"}],"pop":0},{"dt":1644022800,"temp":13.53,"feels_like":12.06,"pressure":1022,"humidity":43,"dew_point":0.62,"uvi":0,"clouds":98,"visibility":10000,"wind_speed":1.3,"wind_deg":323,"wind_gust":1.38,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04n"}],"pop":0},{"dt":1644026400,"temp":12.42,"feels_like":10.94,"pressure":1022,"humidity":47,"dew_point":0.76,"uvi":0,"clouds":78,"visibility":10000,"wind_speed":1.22,"wind_deg":7,"wind_gust":1.41,"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04n"}],"pop":0},{"dt":1644030000,"temp":12.18,"feels_like":10.84,"pressure":1023,"humidity":53,"dew_point":2.27,"uvi":0,"clouds":73,"visibility":10000,"wind_speed":1.4,"wind_deg":41,"wind_gust":1.6,"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04n"}],"pop":0},{"dt":1644033600,"temp":12.79,"feels_like":11.61,"pressure":1023,"humidity":57,"dew_point":3.8,"uvi":0,"clouds":80,"visibility":10000,"wind_speed":0.85,"wind_deg":40,"wind_gust":1.12,"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04n"}],"pop":0},{"dt":1644037200,"temp":12.07,"feels_like":11.03,"pressure":1023,"humidity":65,"dew_point":5.04,"uvi":0,"clouds":84,"visibility":10000,"wind_speed":1.35,"wind_deg":47,"wind_gust":1.62,"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04n"}],"pop":0},{"dt":1644040800,"temp":11.51,"feels_like":10.6,"pressure":1023,"humidity":72,"dew_point":6.04,"uvi":0,"clouds":86,"visibility":10000,"wind_speed":1.42,"wind_deg":50,"wind_gust":1.53,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04n"}],"pop":0},{"dt":1644044400,"temp":11.2,"feels_like":10.36,"pressure":1024,"humidity":76,"dew_point":6.5,"uvi":0,"clouds":100,"visibility":10000,"wind_speed":0.94,"wind_deg":61,"wind_gust":1.04,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04n"}],"pop":0},{"dt":1644048000,"temp":12.81,"feels_like":12.08,"pressure":1024,"humidity":74,"dew_point":7.68,"uvi":0.21,"clouds":100,"visibility":10000,"wind_speed":1.01,"wind_deg":78,"wind_gust":1.29,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"pop":0},{"dt":1644051600,"temp":14.58,"feels_like":13.79,"pressure":1025,"humidity":65,"dew_point":7.67,"uvi":0.64,"clouds":98,"visibility":10000,"wind_speed":1.9,"wind_deg":72,"wind_gust":3.3,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"pop":0},{"dt":1644055200,"temp":15.87,"feels_like":15.03,"pressure":1025,"humidity":58,"dew_point":7.21,"uvi":1.55,"clouds":97,"visibility":10000,"wind_speed":3.56,"wind_deg":72,"wind_gust":4.73,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"pop":0},{"dt":1644058800,"temp":16.7,"feels_like":15.89,"pressure":1025,"humidity":56,"dew_point":7.44,"uvi":2.23,"clouds":98,"visibility":10000,"wind_speed":4.9,"wind_deg":65,"wind_gust":5.41,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"pop":0},{"dt":1644062400,"temp":17.31,"feels_like":16.51,"pressure":1025,"humidity":54,"dew_point":7.44,"uvi":2.53,"clouds":98,"visibility":10000,"wind_speed":5.03,"wind_deg":65,"wind_gust":5,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"pop":0},{"dt":1644066000,"temp":17.58,"feels_like":16.73,"pressure":1024,"humidity":51,"dew_point":6.92,"uvi":2.44,"clouds":100,"visibility":10000,"wind_speed":5.3,"wind_deg":75,"wind_gust":5.14,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"pop":0},{"dt":1644069600,"temp":17.41,"feels_like":16.54,"pressure":1024,"humidity":51,"dew_point":6.77,"uvi":1.77,"clouds":100,"visibility":10000,"wind_speed":5.72,"wind_deg":78,"wind_gust":5.6,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"pop":0},{"dt":1644073200,"temp":16.82,"feels_like":15.97,"pressure":1024,"humidity":54,"dew_point":6.9,"uvi":0.97,"clouds":100,"visibility":10000,"wind_speed":5.82,"wind_deg":80,"wind_gust":5.89,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"pop":0},{"dt":1644076800,"temp":15.86,"feels_like":15.04,"pressure":1025,"humidity":59,"dew_point":7.34,"uvi":0.39,"clouds":100,"visibility":10000,"wind_speed":5.63,"wind_deg":79,"wind_gust":6.35,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"pop":0}],"daily":[{"dt":1643889600,"sunrise":1643872026,"sunset":1643909329,"moonrise":1643878260,"moonset":1643918940,"moon_phase":0.08,"temp":{"day":22.48,"min":11.34,"max":23.6,"night":14.77,"eve":17.48,"morn":11.39},"feels_like":{"day":21.41,"night":13.45,"eve":16.59,"morn":9.99},"pressure":1021,"humidity":24,"dew_point":0.32,"wind_speed":2.69,"wind_deg":221,"wind_gust":4.34,"weather":[{"id":802,"main":"Clouds","description":"scattered clouds","icon":"03d"}],"clouds":47,"pop":0,"uvi":2.91},{"dt":1643976000,"sunrise":1643958372,"sunset":1643995797,"moonrise":1643966340,"moonset":1644009300,"moon_phase":0.12,"temp":{"day":20.02,"min":11.31,"max":21.93,"night":13.35,"eve":15.54,"morn":11.6},"feels_like":{"day":18.76,"night":12.07,"eve":14.12,"morn":10.04},"pressure":1021,"humidity":26,"dew_point":-0.34,"wind_speed":2.63,"wind_deg":291,"wind_gust":3.04,"weather":[{"id":802,"main":"Clouds","description":"scattered clouds","icon":"03d"}],"clouds":43,"pop":0,"uvi":2.82},{"dt":1644062400,"sunrise":1644044716,"sunset":1644082265,"moonrise":1644054240,"moonset":1644099540,"moon_phase":0.15,"temp":{"day":17.31,"min":10.04,"max":17.58,"night":10.04,"eve":12.46,"morn":11.51},"feels_like":{"day":16.51,"night":9.19,"eve":11.93,"morn":10.6},"pressure":1025,"humidity":54,"dew_point":7.44,"wind_speed":5.82,"wind_deg":80,"wind_gust":7.15,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"clouds":98,"pop":0,"uvi":2.53},{"dt":1644148800,"sunrise":1644131058,"sunset":1644168733,"moonrise":1644142140,"moonset":0,"moon_phase":0.18,"temp":{"day":16.31,"min":7.94,"max":17.37,"night":9.79,"eve":11.82,"morn":8.17},"feels_like":{"day":15.48,"night":9.79,"eve":11.12,"morn":8.17},"pressure":1030,"humidity":57,"dew_point":7.32,"wind_speed":2.7,"wind_deg":106,"wind_gust":2.6,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":2,"pop":0,"uvi":3.01},{"dt":1644235200,"sunrise":1644217399,"sunset":1644255201,"moonrise":1644230100,"moonset":1644189600,"moon_phase":0.21,"temp":{"day":18.32,"min":8.61,"max":19.33,"night":9.81,"eve":11.89,"morn":8.61},"feels_like":{"day":17.04,"night":9.81,"eve":11.28,"morn":7.8},"pressure":1027,"humidity":32,"dew_point":0.8,"wind_speed":4.2,"wind_deg":92,"wind_gust":2.68,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":10,"pop":0,"uvi":2.88},{"dt":1644321600,"sunrise":1644303738,"sunset":1644341669,"moonrise":1644318120,"moonset":1644279720,"moon_phase":0.25,"temp":{"day":16.54,"min":7.5,"max":16.54,"night":9.12,"eve":11.13,"morn":7.5},"feels_like":{"day":15.53,"night":9.12,"eve":10.41,"morn":7.5},"pressure":1032,"humidity":49,"dew_point":5.46,"wind_speed":5.58,"wind_deg":84,"wind_gust":5.82,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":0,"pop":0,"uvi":3.15},{"dt":1644408000,"sunrise":1644390077,"sunset":1644428136,"moonrise":1644406320,"moonset":1644369720,"moon_phase":0.28,"temp":{"day":15.55,"min":7.03,"max":16.46,"night":9.14,"eve":11.13,"morn":7.03},"feels_like":{"day":14.6,"night":8.68,"eve":10.47,"morn":7.03},"pressure":1033,"humidity":55,"dew_point":6.09,"wind_speed":3.94,"wind_deg":98,"wind_gust":2.87,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":0,"pop":0,"uvi":4},{"dt":1644494400,"sunrise":1644476413,"sunset":1644514604,"moonrise":1644494820,"moonset":1644459720,"moon_phase":0.31,"temp":{"day":17.43,"min":7,"max":19.27,"night":9.91,"eve":12.45,"morn":7},"feels_like":{"day":16.43,"night":9.91,"eve":11.74,"morn":7},"pressure":1031,"humidity":46,"dew_point":5.35,"wind_speed":3.27,"wind_deg":121,"wind_gust":2.45,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":0,"pop":0,"uvi":4}],"minutely":[{"dt":1643910720,"precipitation":0},{"dt":1643910780,"precipitation":0},{"dt":1643910840,"precipitation":0},{"dt":1643910900,"precipitation":0},{"dt":1643910960,"precipitation":0},{"dt":1643911020,"precipitation":0},{"dt":1643911080,"precipitation":0},{"dt":1643911140,"precipitation":0},{"dt":1643911200,"precipitation":0},{"dt":1643911260,"precipitation":0},{"dt":1643911320,"precipitation":0},{"dt":1643911380,"precipitation":0},{"dt":1643911440,"precipitation":0},{"dt":1643911500,"precipitation":0},{"dt":1643911560,"precipitation":0},{"dt":1643911620,"precipitation":0},{"dt":1643911680,"precipitation":0},{"dt":1643911740,"precipitation":0},{"dt":1643911800,"precipitation":0},{"dt":1643911860,"precipitation":0},{"dt":1643911920,"precipitation":0},{"dt":1643911980,"precipitation":0},{"dt":1643912040,"precipitation":0},{"dt":1643912100,"precipitation":0},{"dt":1643912160,"precipitation":0},{"dt":1643912220,"precipitation":0},{"dt":1643912280,"precipitation":0},{"dt":1643912340,"precipitation":0},{"dt":1643912400,"precipitation":0},{"dt":1643912460,"precipitation":0},{"dt":1643912520,"precipitation":0},{"dt":1643912580,"precipitation":0},{"dt":1643912640,"precipitation":0},{"dt":1643912700,"precipitation":0},{"dt":1643912760,"precipitation":0},{"dt":1643912820,"precipitation":0},{"dt":1643912880,"precipitation":0},{"dt":1643912940,"precipitation":0},{"dt":1643913000,"precipitation":0},{"dt":1643913060,"precipitation":0},{"dt":1643913120,"precipitation":0},{"dt":1643913180,"precipitation":0},{"dt":1643913240,"precipitation":0},{"dt":1643913300,"precipitation":0},{"dt":1643913360,"precipitation":0},{"dt":1643913420,"precipitation":0},{"dt":1643913480,"precipitation":0},{"dt":1643913540,"precipitation":0},{"dt":1643913600,"precipitation":0},{"dt":1643913660,"precipitation":0},{"dt":1643913720,"precipitation":0},{"dt":1643913780,"precipitation":0},{"dt":1643913840,"precipitation":0},{"dt":1643913900,"precipitation":0},{"dt":1643913960,"precipitation":0},{"dt":1643914020,"precipitation":0},{"dt":1643914080,"precipitation":0},{"dt":1643914140,"precipitation":0},{"dt":1643914200,"precipitation":0},{"dt":1643914260,"precipitation":0},{"dt":1643914320,"precipitation":0}]}

Thanks in anticipation

Add data in the inject node
here is an example

[{"id":"c97154acd7e967b6","type":"inject","z":"c791cbc0.84f648","name":"1:05 AM poke","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{}","payloadType":"json","x":130,"y":3820,"wires":[["30dccaf64fe0dc0f"]]},{"id":"30dccaf64fe0dc0f","type":"function","z":"c791cbc0.84f648","name":"Long Range Forecast","func":"\nvar weather = global.get(\"location\");\nlet data = msg.payload.daily.slice(0,7).map(e=>{\n    return [e.temp.max,new Date(e.dt*1000).toDateString().substr(0,3)]\n});\ndata[0][1] = \"Today\";\nlet dataC = [];\nlet dataLabels = [];\n\nfor (X=0;X<=6;X++) \n{\n    dataLabels[X] = data[X][1];\n    //msg.payload = dataLabels;\n    dataC[X] = data[X][0];\n    //msg.payload = [dataC,dataLabels];\n}\n\nmsg.payload=[\n    {\n    \"series\":[\"Long Range\"],\n    \"data\":dataC,\n    \"labels\":dataLabels\n    }\n]\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":280,"y":3900,"wires":[["eae893212d3ed631","06be58e2158e9edd"]]},{"id":"eae893212d3ed631","type":"ui_chart","z":"c791cbc0.84f648","name":"","group":"ddfbfabe6c9895b5","order":2,"width":0,"height":0,"label":"Long Range","chartType":"bar","legend":"true","xformat":"HH:mm","interpolate":"linear","nodata":"","dot":false,"ymin":"0","ymax":"30","removeOlder":"5","removeOlderPoints":"","removeOlderUnit":"86400","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"className":"","x":690,"y":3900,"wires":[[]]},{"id":"06be58e2158e9edd","type":"debug","z":"c791cbc0.84f648","name":"Bar Chart","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":460,"y":3940,"wires":[]},{"id":"ddfbfabe6c9895b5","type":"ui_group","name":"Forecast","tab":"9a876ff53a95da86","order":2,"disp":true,"width":"6","collapse":false,"className":""},{"id":"9a876ff53a95da86","type":"ui_tab","name":"Weather","icon":"dashboard","order":8,"disabled":false,"hidden":false}]

First you cannot for loop through an object , unless you convert it to an array. So the map returns an array of arrays, containing a temp and the day of week.

I then change first day of week to "today".

The in the for loop i create the two arrays for data and label.
The output has to be an array you missed the [ ] on the msg.payload .

1 Like

Thank you once again, I will try and understand each step for the future. I couldn't work out how to change the max temps from being an object in the array and didn't know if it would make any difference. Obviously it does.

You could of used objects in an array to, but you don't need objects for the bar chart data, so seemed pointless using objects

1 Like

Here is a flow you may or may not like !!

It uses OpenWeathermap - i use it to produce a dashboard that shows me the upcoming cloud cover percentage and to colour code that for my needs (to help with Solar predictions throughout the day)

There is also a 2nd flow that builds an OWM dashboard for me

[{"id":"2c7617bd.1a8ae8","type":"ui_button","z":"28bcfd3b.19e6f2","name":"IconRefresh","group":"6f74e51a.63121c","order":1,"width":2,"height":2,"passthru":false,"label":"","tooltip":"Refresh","color":"","bgcolor":"","icon":"fa-refresh fa-4x","payload":"true","payloadType":"bool","topic":"","topicType":"str","x":970,"y":240,"wires":[["41553b39.d95b74"]]},{"id":"b83c417a.3516e","type":"ui_text","z":"28bcfd3b.19e6f2","group":"6f74e51a.63121c","order":5,"width":5,"height":1,"name":"Description","label":"","format":"{{msg.payload.current.weather[0].description}}","layout":"row-left","x":970,"y":40,"wires":[]},{"id":"b85f0e58.71c61","type":"ui_text","z":"28bcfd3b.19e6f2","group":"6f74e51a.63121c","order":3,"width":3,"height":1,"name":"Wind","label":"","format":"{{msg.payload.current.wind_speed}}&nbsp;&nbsp;<i class=\"wi wi-darksky-wind\"></i>&nbsp;&nbsp;{{msg.payload.current.wind_cardinal}}","layout":"col-center","x":950,"y":120,"wires":[]},{"id":"37bf1a70.80eb86","type":"ui_text","z":"28bcfd3b.19e6f2","group":"6f74e51a.63121c","order":4,"width":3,"height":1,"name":"SunriseTime","label":"","format":"<i class=\"wi wi-owm-01d\"></i>&nbsp;<i class=\"fa fa-arrow-up\"></i>&nbsp;&nbsp;{{msg.payload.current.sunrise}}","layout":"row-center","x":970,"y":160,"wires":[]},{"id":"650345d6.6128ec","type":"ui_text","z":"28bcfd3b.19e6f2","group":"6f74e51a.63121c","order":6,"width":3,"height":1,"name":"SunsetTime","label":"","format":"<i class=\"wi wi-wu-sunny\"></i>&nbsp;<i class=\"fa fa-arrow-down\"></i>&nbsp;&nbsp;{{msg.payload.current.sunset}}","layout":"row-center","x":970,"y":200,"wires":[]},{"id":"76e92249.33c03c","type":"comment","z":"28bcfd3b.19e6f2","name":"OpenWeatherMap One Call API for Weather and Forecast","info":"","x":230,"y":40,"wires":[]},{"id":"e4b055ee.cfc6d8","type":"ui_template","z":"28bcfd3b.19e6f2","group":"6f74e51a.63121c","name":"Forecast2","order":7,"width":10,"height":2,"format":"<div style=\"height: 100%; justify-content: center; align-items: center;\">\n <div layout=\"rowicons\" layout-align=\"space-around start\" ng-repeat=\"data in msg.payload.rowicons\" style=\"font-size:150%;padding-top: 5px;padding-bottom: 5px\">\n  <span flex style=\"color: white;text-align: center\"><i class=\"wi wi-owm-{{data.cell01}}\"></i></span>\n  <span flex style=\"color: white;text-align: center\"><i class=\"wi wi-owm-{{data.cell02}}\"></i></span>\n  <span flex style=\"color: white;text-align: center\"><i class=\"wi wi-owm-{{data.cell03}}\"></i></span>\n  <span flex style=\"color: white;text-align: center\"><i class=\"wi wi-owm-{{data.cell04}}\"></i></span>\n  <span flex style=\"color: white;text-align: center\"><i class=\"wi wi-owm-{{data.cell05}}\"></i></span>\n  <span flex style=\"color: white;text-align: center\"><i class=\"wi wi-owm-{{data.cell06}}\"></i></span>\n  <span flex style=\"color: #097479;text-align: center\"><i class=\"wi wi-owm-{{data.cell07}}\"></i></span>\n  <span flex style=\"color: #097479;text-align: center\"><i class=\"wi wi-owm-{{data.cell08}}\"></i></span>\n  <span flex style=\"color: #097479;text-align: center\"><i class=\"wi wi-owm-{{data.cell09}}\"></i></span>\n  <span flex style=\"color: #097479;text-align: center\"><i class=\"wi wi-owm-{{data.cell10}}\"></i></span>\n </div>\n <div layout=\"rowtext\" layout-align=\"space-around start\" ng-repeat=\"data in msg.payload.rowtext\" style=\"line-height: 150%\">\n  <span flex style=\"color: white;text-align: center;\">{{data.cell01}}</span>\n  <span flex style=\"color: white;text-align: center\">{{data.cell02}}</span>\n  <span flex style=\"color: white;text-align: center\">{{data.cell03}}</span>\n  <span flex style=\"color: white;text-align: center\">{{data.cell04}}</span>\n  <span flex style=\"color: white;text-align: center\">{{data.cell05}}</span>\n  <span flex style=\"color: white;text-align: center\">{{data.cell06}}</span>\n  <span flex style=\"color: #097479;text-align: center\">{{data.cell07}}</span>\n  <span flex style=\"color: #097479;text-align: center\">{{data.cell08}}</span>\n  <span flex style=\"color: #097479;text-align: center\">{{data.cell09}}</span>\n  <span flex style=\"color: #097479;text-align: center\">{{data.cell10}}</span>\n </div>\n</div>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":false,"templateScope":"local","x":960,"y":300,"wires":[[]]},{"id":"77abf7cc.6de6f8","type":"function","z":"28bcfd3b.19e6f2","name":"Format forecast data","func":"var fcdata = {};\nvar units=flow.get('units');\nif (units===undefined)\n{\n  units=\"imperial\";\n}\n\nfunction formatTemp(high, low){\n    if (units == \"imperial\") {\n        if (low){\n          temp = parseFloat(high).toFixed() + '/' + parseFloat(low).toFixed()\n        }\n        else {\n          temp = parseFloat(high).toFixed() + '°F'\n        }\n    }\n    else { // metric\n        if (low){\n          temp = parseFloat(high).toFixed() + '/' + parseFloat(low).toFixed()\n        }\n        else {\n          temp = parseFloat(high).toFixed() + '°C'\n        }\n    }\n    return temp;\n}\n\nfunction dayName(unixTime){\n  var dateObject = new Date(unixTime * 1000);\n  return dateObject.toLocaleString(flow.get('lang'), { timezone: msg.payload.timezone, weekday: 'short'});\n  // If the line above is not producing the correct short weekday names for the language set by 'lang',\n  //   you can try upgrading to NodeJS version 13 or higher (when full international support was added for the toLocaleString function),\n  //   or you can use the code below which is an example for French short weekday names.\n/*  \n  switch (dateObject.toLocaleString('en', { timezone: msg.payload.timezone, weekday: 'short'})) {\n    case 'Mon':\n      return 'Lun';\n    case 'Tue':\n      return 'Mar';\n    case 'Wed':\n      return 'Mer';\n    case 'Thu':\n      return 'Jeu';\n    case 'Fri':\n      return 'Ven';\n    case 'Sat':\n      return 'Sam';\n    case 'Sun':\n      return 'Dim';\n  }\n*/\n}\n\nfunction timeConvert(UNIX_timestamp){\n  var dateObject = new Date(UNIX_timestamp * 1000);\n  if (flow.get('hour12')) {  // 12 hour time format\n    return dateObject.toLocaleString('en', { timezone: msg.payload.timezone, hour12: true, hour: 'numeric'}).toLowerCase();\n  } else {  // 24 hour time format\n    return dateObject.toLocaleString('en', { timezone: msg.payload.timezone, hour12: false, hour: 'numeric'}) + ':00';\n  }      \n}\n\n// prepare forecast data for CSS based ui widget\nfcdata.payload = {\n  rowtext: {\n  \tdata01: {\n      cell01: timeConvert(msg.payload.hourly[1].dt),\n      cell02: timeConvert(msg.payload.hourly[2].dt),\n      cell03: timeConvert(msg.payload.hourly[3].dt),\n      cell04: timeConvert(msg.payload.hourly[4].dt),\n      cell05: timeConvert(msg.payload.hourly[5].dt),\n      cell06: timeConvert(msg.payload.hourly[6].dt),\n      cell07: dayName(msg.payload.daily[1].dt),\n      cell08: dayName(msg.payload.daily[2].dt),\n      cell09: dayName(msg.payload.daily[3].dt),\n      cell10: dayName(msg.payload.daily[4].dt),\n  \t},\n  \tdata02: {\n       cell01: formatTemp(msg.payload.hourly[1].temp),\n       cell02: formatTemp(msg.payload.hourly[2].temp),\n       cell03: formatTemp(msg.payload.hourly[3].temp),\n       cell04: formatTemp(msg.payload.hourly[4].temp),\n       cell05: formatTemp(msg.payload.hourly[5].temp),\n       cell06: formatTemp(msg.payload.hourly[6].temp),\n       cell07: formatTemp(msg.payload.daily[1].temp.max, msg.payload.daily[0].temp.min),\n       cell08: formatTemp(msg.payload.daily[2].temp.max, msg.payload.daily[1].temp.min),\n       cell09: formatTemp(msg.payload.daily[3].temp.max, msg.payload.daily[2].temp.min),\n       cell10: formatTemp(msg.payload.daily[4].temp.max, msg.payload.daily[3].temp.min),\n  \t}\n  },\n  rowicons: {\n  \tdata01: {\n  \t\tcell01: msg.payload.hourly[1].weather[0].icon,\n  \t\tcell02: msg.payload.hourly[2].weather[0].icon,\n  \t\tcell03: msg.payload.hourly[3].weather[0].icon,\n  \t\tcell04: msg.payload.hourly[4].weather[0].icon,\n  \t\tcell05: msg.payload.hourly[5].weather[0].icon,\n  \t\tcell06: msg.payload.hourly[6].weather[0].icon,\n  \t\tcell07: msg.payload.daily[1].weather[0].icon,\n  \t\tcell08: msg.payload.daily[2].weather[0].icon,\n  \t\tcell09: msg.payload.daily[3].weather[0].icon,\n  \t\tcell10: msg.payload.daily[4].weather[0].icon,\n  \t}\n  }\n}\n\nreturn fcdata;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":740,"y":300,"wires":[["e4b055ee.cfc6d8"]]},{"id":"ed544afc.b1ee48","type":"ui_text","z":"28bcfd3b.19e6f2","group":"6f74e51a.63121c","order":2,"width":2,"height":1,"name":"Temperature","label":"","format":"<p style=\"font-size: 200%\">{{msg.payload.current.temp}}</p>","layout":"row-left","x":970,"y":80,"wires":[]},{"id":"6eee4de8.b48ce4","type":"http request","z":"28bcfd3b.19e6f2","name":"Get OWM data","method":"GET","ret":"obj","paytoqs":"query","url":"https://api.openweathermap.org/data/2.5/onecall","tls":"","persist":false,"proxy":"","authType":"","x":500,"y":180,"wires":[["22b3ceac.d80bd2","77abf7cc.6de6f8","ea58e419.0a4b98","5846dad2.cbc124","b1a52751.5ff3a8"]]},{"id":"19a0e735.1ba2d9","type":"inject","z":"28bcfd3b.19e6f2","name":"Trigger","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"600","crontab":"","once":true,"onceDelay":"10","topic":"","payload":"true","payloadType":"bool","x":100,"y":180,"wires":[["199ef446.01e1bc"]]},{"id":"22b3ceac.d80bd2","type":"function","z":"28bcfd3b.19e6f2","name":"Format current data","func":"var icon = {};\n\nvar units = flow.get('units');\nif (units === undefined) {units = 'imperial';}\n\nfunction timeConvert(UNIX_timestamp){\n  var dateObject = new Date(UNIX_timestamp * 1000);\n  if (flow.get('hour12')) {  // 12 hour time format\n    return dateObject.toLocaleString('en', { timezone: msg.payload.timezone, hour12: true, hour: 'numeric', minute: '2-digit'}).toLowerCase();\n  } else {  // 24 hour time format\n    return dateObject.toLocaleString('en', { timezone: msg.payload.timezone, hour12: false, hour: 'numeric', minute: '2-digit'});\n  }      \n}\n\nvar degreesToCardinal = function(deg){\n  if (deg>11.25 && deg<=33.75){return \"NNE\";}\n  else if (deg>33.75 && deg<56.25){return \"NE\";}\n  else if (deg>56.25 && deg<78.75){return \"ENE\";}\n  else if (deg>78.75 && deg<101.25){return \"E\";}\n  else if (deg>101.25 && deg<123.75){return \"ESE\";}\n  else if (deg>123.75 && deg<146.25){return \"SE\";}\n  else if (deg>146.25 && deg<168.75){return \"SSE\";}\n  else if (deg>168.75 && deg<191.25){return \"S\";}\n  else if (deg>191.25 && deg<213.75){return \"SSW\";}\n  else if (deg>213.75 && deg<236.25){return \"SW\";}\n  else if (deg>236.25 && deg<258.75){return \"WSW\";}\n  else if (deg>258.75 && deg<281.25){return \"W\";}\n  else if (deg>281.25 && deg<303.75){return \"WNW\";}\n  else if (deg>303.75 && deg<326.25){return \"NW\";}\n  else if (deg>326.25 && deg<348.75){return \"NNW\";}\n  else {return \"N\";}\n}\n\nif (units == \"imperial\")\n{\n  msg.payload.current.temp = msg.payload.current.temp.toFixed() + ' °F';\n  msg.payload.current.wind_speed = msg.payload.current.wind_speed.toFixed() + ' mph';\n}\nelse  // metric units\n{\n  msg.payload.current.temp = msg.payload.current.temp.toFixed(1) + ' °C';\n  msg.payload.current.wind_speed = msg.payload.current.wind_speed.toFixed(1) + ' m/s';\n}\n\nmsg.payload.current.wind_cardinal = degreesToCardinal(msg.payload.current.wind_deg);\n\nmsg.payload.current.sunrise = timeConvert(msg.payload.current.sunrise);\nmsg.payload.current.sunset = timeConvert(msg.payload.current.sunset);\n\nvar iconString = 'wi-owm-' + msg.payload.current.weather[0].icon + ' wi-4x';\nicon = {\n    ui_control: {\n        icon: iconString\n    }\n}; \n\nreturn [msg, icon];","outputs":2,"noerr":0,"initialize":"","finalize":"","libs":[],"x":730,"y":180,"wires":[["ed544afc.b1ee48","b85f0e58.71c61","b83c417a.3516e","37bf1a70.80eb86","650345d6.6128ec"],["2c7617bd.1a8ae8"]]},{"id":"199ef446.01e1bc","type":"change","z":"28bcfd3b.19e6f2","name":"Settings","rules":[{"t":"delete","p":"payload","pt":"msg"},{"t":"set","p":"payload.lat","pt":"msg","to":"-33.786017","tot":"str"},{"t":"set","p":"payload.lon","pt":"msg","to":"151.20869","tot":"str"},{"t":"set","p":"payload.appid","pt":"msg","to":"c0b2199ee6d3d01ec10a186d2cd51322","tot":"str"},{"t":"set","p":"payload.units","pt":"msg","to":"metric","tot":"str"},{"t":"set","p":"payload.lang","pt":"msg","to":"en","tot":"str"},{"t":"set","p":"hour12","pt":"flow","to":"true","tot":"bool"},{"t":"set","p":"units","pt":"flow","to":"payload.units","tot":"msg"},{"t":"set","p":"lang","pt":"flow","to":"payload.lang","tot":"msg"},{"t":"set","p":"payload.exclude","pt":"msg","to":"minutely","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":180,"wires":[["6eee4de8.b48ce4"]]},{"id":"c446f9ff.137608","type":"ui_ui_control","z":"28bcfd3b.19e6f2","name":"Update tab","events":"all","x":70,"y":300,"wires":[["1a3f98ec.d36e37"]]},{"id":"41553b39.d95b74","type":"link out","z":"28bcfd3b.19e6f2","name":"Refresh","links":["fc1d5da1.c8a43"],"x":1095,"y":240,"wires":[]},{"id":"fc1d5da1.c8a43","type":"link in","z":"28bcfd3b.19e6f2","name":"","links":["41553b39.d95b74"],"x":135,"y":240,"wires":[["199ef446.01e1bc"]]},{"id":"1a3f98ec.d36e37","type":"switch","z":"28bcfd3b.19e6f2","name":"tab focus","property":"tab","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":240,"y":300,"wires":[["199ef446.01e1bc"]]},{"id":"ea58e419.0a4b98","type":"debug","z":"28bcfd3b.19e6f2","name":"Complete OWM Msg","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":710,"y":120,"wires":[]},{"id":"db0c2256.fb413","type":"ui_template","z":"28bcfd3b.19e6f2","group":"ccee7d87.dcd8b","name":"OpenWeather Cloud Cover","order":3,"width":"30","height":"3","format":"<h3>OpenWeather Forecast Cloud Cover by Hour</h3>\n<table class=\"clouds-widget__table\">\n    <tr>\n        <td ng-repeat=\"item in msg.payload.items\">{{ item.time }}</td>\n    </tr>\n    <tr>\n        <td ng-repeat=\"item in msg.payload.items\">\n            <div \n                class=\"clouds-widget__indicator\"\n                ng-class=\"{\n                    green: item.clouds <= 10,\n                    yellow: item.clouds > 10 && item.clouds <= 30,\n                    red: item.clouds > 30 && item.clouds <= 50,\n                    purple: item.clouds > 50\n                }\"\n                ></div>\n        </td>\n    </tr>\n    <tr>\n       <td ng-repeat=\"item in msg.payload.items\">\n           {{ item.clouds }}\n           <div ng-if=\"item.isNight\">DARK</div>\n       </td>\n    </tr>\n</table>\n\n<style>\n    .clouds-widget__table td {\n        text-align: center;\n    }\n    .clouds-widget__indicator {\n        width: 30px;\n        height: 30px;\n        border-radius: 100%;\n        margin: auto;\n    }\n    .clouds-widget__indicator.green{\n        background: green;\n    }\n    .clouds-widget__indicator.yellow{\n        background: yellow;\n    }\n    .clouds-widget__indicator.red{\n        background: red;\n    }\n    .clouds-widget__indicator.purple{\n        background: purple;\n    }\n</style>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":540,"y":560,"wires":[[]]},{"id":"5846dad2.cbc124","type":"function","z":"28bcfd3b.19e6f2","name":"Setup Electricity Dashboard ","func":"let items = msg.payload.hourly;\n\nlet sunsetSunriseInfo = msg.payload.daily.map((item) => {\n    let fromTime = moment.unix(item.dt).subtract(12, \"hour\")\n    return {\n        fromTime: fromTime.clone().tz(\"UTC\"),\n        toTime: fromTime.clone().add(24, \"hour\").subtract(1, \"second\").tz(\"UTC\"),\n        sunrise: moment.unix(item.sunrise).tz(\"UTC\"),\n        sunset: moment.unix(item.sunset).tz(\"UTC\")\n    }\n})\n\nconst isNightTime = (time) => {\n    let info = sunsetSunriseInfo.find((item) => {\n        return time.isSameOrAfter(item.fromTime) && time.isSameOrBefore(item.toTime)\n    })\n    const isDay = time.isSameOrAfter(info.sunrise) && time.isBefore(info.sunset)\n    return !isDay;\n}\n\nlet filterStartTime = moment.utc();\nlet filterEndTime = filterStartTime.clone().add(16, 'hour')\n\nitems = items.filter((item) => {\n    const time = moment.unix(item.dt);\n    return time.isSameOrAfter(filterStartTime) && \n    time.isSameOrBefore(filterEndTime)\n});\n\nitems = items.map((item) => {\n    const time = moment.unix(item.dt).tz(\"UTC\");\n    return {\n        time: time.clone().tz('Australia/Sydney').format('HH:mm'),\n        clouds: item.clouds,\n        isNight: isNightTime(time)\n    }\n})\n\nmsg.payload = {\n    items: items\n};\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[{"var":"moment","module":"moment-timezone"}],"x":340,"y":500,"wires":[["db0c2256.fb413","14628d2f.3c05a3"]]},{"id":"14628d2f.3c05a3","type":"debug","z":"28bcfd3b.19e6f2","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":500,"y":440,"wires":[]},{"id":"d4f6a83.c8e7658","type":"ui_template","z":"28bcfd3b.19e6f2","group":"ccee7d87.dcd8b","name":"Forecast on Electricity Panel","order":7,"width":"24","height":2,"format":"<div style=\"height: 100%; justify-content: center; align-items: center;\">\n <div layout=\"rowicons\" layout-align=\"space-around start\" ng-repeat=\"data in msg.payload.rowicons\" style=\"font-size:150%;padding-top: 5px;padding-bottom: 5px\">\n  <span flex style=\"color: white;text-align: center\"><i class=\"wi wi-owm-{{data.cell01}}\"></i></span>\n  <span flex style=\"color: white;text-align: center\"><i class=\"wi wi-owm-{{data.cell02}}\"></i></span>\n  <span flex style=\"color: white;text-align: center\"><i class=\"wi wi-owm-{{data.cell03}}\"></i></span>\n  <span flex style=\"color: white;text-align: center\"><i class=\"wi wi-owm-{{data.cell04}}\"></i></span>\n  <span flex style=\"color: white;text-align: center\"><i class=\"wi wi-owm-{{data.cell05}}\"></i></span>\n  <span flex style=\"color: white;text-align: center\"><i class=\"wi wi-owm-{{data.cell06}}\"></i></span>\n  <span flex style=\"color: white;text-align: center\"><i class=\"wi wi-owm-{{data.cell07}}\"></i></span>\n  <span flex style=\"color: white;text-align: center\"><i class=\"wi wi-owm-{{data.cell08}}\"></i></span>\n  <span flex style=\"color: white;text-align: center\"><i class=\"wi wi-owm-{{data.cell09}}\"></i></span>\n  <span flex style=\"color: white;text-align: center\"><i class=\"wi wi-owm-{{data.cell10}}\"></i></span>\n  <span flex style=\"color: white;text-align: center\"><i class=\"wi wi-owm-{{data.cell11}}\"></i></span>\n  <span flex style=\"color: white;text-align: center\"><i class=\"wi wi-owm-{{data.cell12}}\"></i></span>\n  <span flex style=\"color: #097479;text-align: center\"><i class=\"wi wi-owm-{{data.cell13}}\"></i></span>\n  <span flex style=\"color: #097479;text-align: center\"><i class=\"wi wi-owm-{{data.cell14}}\"></i></span>\n  <span flex style=\"color: #097479;text-align: center\"><i class=\"wi wi-owm-{{data.cell15}}\"></i></span>\n  <span flex style=\"color: #097479;text-align: center\"><i class=\"wi wi-owm-{{data.cell16}}\"></i></span>\n  <span flex style=\"color: #097479;text-align: center\"><i class=\"wi wi-owm-{{data.cell17}}\"></i></span>\n  <span flex style=\"color: #097479;text-align: center\"><i class=\"wi wi-owm-{{data.cell18}}\"></i></span>\n  <span flex style=\"color: #097479;text-align: center\"><i class=\"wi wi-owm-{{data.cell19}}\"></i></span>\n  \n </div>\n <div layout=\"rowtext\" layout-align=\"space-around start\" ng-repeat=\"data in msg.payload.rowtext\" style=\"line-height: 150%\">\n  <span flex style=\"color: white;text-align: center\">{{data.cell01}}</span>\n  <span flex style=\"color: white;text-align: center\">{{data.cell02}}</span>\n  <span flex style=\"color: white;text-align: center\">{{data.cell03}}</span>\n  <span flex style=\"color: white;text-align: center\">{{data.cell04}}</span>\n  <span flex style=\"color: white;text-align: center\">{{data.cell05}}</span>\n  <span flex style=\"color: white;text-align: center\">{{data.cell06}}</span>\n  <span flex style=\"color: white;text-align: center\">{{data.cell07}}</span>\n  <span flex style=\"color: white;text-align: center\">{{data.cell08}}</span>\n  <span flex style=\"color: white;text-align: center\">{{data.cell09}}</span>\n  <span flex style=\"color: white;text-align: center\">{{data.cell10}}</span>\n  <span flex style=\"color: white;text-align: center\">{{data.cell11}}</span>\n  <span flex style=\"color: white;text-align: center\">{{data.cell12}}</span>\n  <span flex style=\"color: #097479;text-align: center\">{{data.cell13}}</span>\n  <span flex style=\"color: #097479;text-align: center\">{{data.cell14}}</span>\n  <span flex style=\"color: #097479;text-align: center\">{{data.cell15}}</span>\n  <span flex style=\"color: #097479;text-align: center\">{{data.cell16}}</span>\n  <span flex style=\"color: #097479;text-align: center\">{{data.cell17}}</span>\n  <span flex style=\"color: #097479;text-align: center\">{{data.cell18}}</span>\n  <span flex style=\"color: #097479;text-align: center\">{{data.cell19}}</span>\n  \n </div>\n</div>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":false,"templateScope":"local","x":1080,"y":440,"wires":[[]]},{"id":"b1a52751.5ff3a8","type":"function","z":"28bcfd3b.19e6f2","name":"Format forecast data - Extra Days","func":"var fc1data = {};\nvar units=flow.get('units');\nif (units===undefined)\n{\n  units=\"imperial\";\n}\n\nfunction formatTemp(high, low){\n    if (units == \"imperial\") {\n        if (low){\n          temp = parseFloat(high).toFixed() + '/' + parseFloat(low).toFixed()\n        }\n        else {\n          temp = parseFloat(high).toFixed() + '°F'\n        }\n    }\n    else { // metric\n        if (low){\n          temp = parseFloat(high).toFixed() + '/' + parseFloat(low).toFixed()\n        }\n        else {\n          temp = parseFloat(high).toFixed() + '°C'\n        }\n    }\n    return temp;\n}\n\nfunction dayName(unixTime){\n  var dateObject = new Date(unixTime * 1000);\n  return dateObject.toLocaleString(flow.get('lang'), { timezone: msg.payload.timezone, weekday: 'short'});\n }\n\nfunction timeConvert(UNIX_timestamp){\n  var dateObject = new Date(UNIX_timestamp * 1000);\n  if (flow.get('hour12')) {  // 12 hour time format\n    return dateObject.toLocaleString('en', { timezone: msg.payload.timezone, hour12: true, hour: 'numeric'}).toLowerCase();\n  } else {  // 24 hour time format\n    return dateObject.toLocaleString('en', { timezone: msg.payload.timezone, hour12: false, hour: 'numeric'}) + ':00';\n  }      \n}\n\n// prepare forecast data for CSS based ui widget\nfc1data.payload = {\n  rowtext: {\n  \tdata01: {\n      cell01: timeConvert(msg.payload.hourly[1].dt),\n      cell02: timeConvert(msg.payload.hourly[2].dt),\n      cell03: timeConvert(msg.payload.hourly[3].dt),\n      cell04: timeConvert(msg.payload.hourly[4].dt),\n      cell05: timeConvert(msg.payload.hourly[5].dt),\n      cell06: timeConvert(msg.payload.hourly[6].dt),\n      cell07: timeConvert(msg.payload.hourly[7].dt),\n      cell08: timeConvert(msg.payload.hourly[8].dt),\n      cell09: timeConvert(msg.payload.hourly[9].dt),\n      cell10: timeConvert(msg.payload.hourly[10].dt),\n      cell11: timeConvert(msg.payload.hourly[11].dt),\n      cell12: timeConvert(msg.payload.hourly[12].dt),\n      cell13: dayName(msg.payload.daily[1].dt),\n      cell14: dayName(msg.payload.daily[2].dt),\n      cell15: dayName(msg.payload.daily[3].dt),\n      cell16: dayName(msg.payload.daily[4].dt),\n      cell17: dayName(msg.payload.daily[5].dt),\n      cell18: dayName(msg.payload.daily[6].dt),\n      cell19: dayName(msg.payload.daily[7].dt),\n      \n  \t},\n  \tdata02: {\n       cell01: formatTemp(msg.payload.hourly[1].temp),\n       cell02: formatTemp(msg.payload.hourly[2].temp),\n       cell03: formatTemp(msg.payload.hourly[3].temp),\n       cell04: formatTemp(msg.payload.hourly[4].temp),\n       cell05: formatTemp(msg.payload.hourly[5].temp),\n       cell06: formatTemp(msg.payload.hourly[6].temp),\n       cell07: formatTemp(msg.payload.hourly[7].temp),\n       cell08: formatTemp(msg.payload.hourly[8].temp),\n       cell09: formatTemp(msg.payload.hourly[9].temp),\n       cell10: formatTemp(msg.payload.hourly[10].temp),\n       cell11: formatTemp(msg.payload.hourly[11].temp),\n       cell12: formatTemp(msg.payload.hourly[12].temp),\n       cell13: formatTemp(msg.payload.daily[1].temp.max, msg.payload.daily[0].temp.min),\n       cell14: formatTemp(msg.payload.daily[2].temp.max, msg.payload.daily[1].temp.min),\n       cell15: formatTemp(msg.payload.daily[3].temp.max, msg.payload.daily[2].temp.min),\n       cell16: formatTemp(msg.payload.daily[4].temp.max, msg.payload.daily[3].temp.min),\n       cell17: formatTemp(msg.payload.daily[5].temp.max, msg.payload.daily[4].temp.min),\n       cell18: formatTemp(msg.payload.daily[6].temp.max, msg.payload.daily[5].temp.min),\n       cell19: formatTemp(msg.payload.daily[7].temp.max, msg.payload.daily[6].temp.min),\n       \n  \t}\n  },\n  rowicons: {\n  \tdata01: {\n  \t\tcell01: msg.payload.hourly[1].weather[0].icon,\n  \t\tcell02: msg.payload.hourly[2].weather[0].icon,\n  \t\tcell03: msg.payload.hourly[3].weather[0].icon,\n  \t\tcell04: msg.payload.hourly[4].weather[0].icon,\n  \t\tcell05: msg.payload.hourly[5].weather[0].icon,\n  \t\tcell06: msg.payload.hourly[6].weather[0].icon,\n  \t\tcell07: msg.payload.hourly[7].weather[0].icon,\n  \t\tcell08: msg.payload.hourly[8].weather[0].icon,\n  \t\tcell09: msg.payload.hourly[9].weather[0].icon,\n  \t\tcell10: msg.payload.hourly[10].weather[0].icon,\n  \t\tcell11: msg.payload.hourly[11].weather[0].icon,\n  \t\tcell12: msg.payload.hourly[12].weather[0].icon,\n  \t\tcell13: msg.payload.daily[1].weather[0].icon,\n  \t\tcell14: msg.payload.daily[2].weather[0].icon,\n  \t\tcell15: msg.payload.daily[3].weather[0].icon,\n  \t\tcell16: msg.payload.daily[4].weather[0].icon,\n  \t\tcell17: msg.payload.daily[5].weather[0].icon,\n  \t\tcell18: msg.payload.daily[6].weather[0].icon,\n  \t\tcell19: msg.payload.daily[7].weather[0].icon,\n  \t    \n  \t}\n  }\n}\n\nreturn fc1data;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":780,"y":440,"wires":[["d4f6a83.c8e7658"]]},{"id":"6f74e51a.63121c","type":"ui_group","name":"MainGroup","tab":"dae91324.3a99d","order":1,"disp":false,"width":10,"collapse":false},{"id":"ccee7d87.dcd8b","type":"ui_group","name":"Default","tab":"3c82250e.dc28ea","order":1,"disp":false,"width":"30","collapse":false},{"id":"dae91324.3a99d","type":"ui_tab","name":"Weather","icon":"fa-thermometer-half","order":3,"disabled":false,"hidden":false},{"id":"3c82250e.dc28ea","type":"ui_tab","name":"Electricity Prices","icon":"dashboard","disabled":false,"hidden":false}]

You will see that i use some of the same concepts you are asking about in terms of extracting info from the arrays that are returned from the OWM API

and a couple of screenshots

Craig

3 Likes

@craigcurtin

Thanks for the copy of your flow, nice approach with all icons. I'm trying to stay away from icons and just use graphs and text but the idea looks very neat.

I have been puzzling over the data for "moon_phase" which at present is 0.18. What does that mean? I don't really need the data for moon_phase it just interests me what the 0.18 means and how I get it to something meaningful, illumination as a percentage would be nice. My watch tells me 'Lunar cycle Day 6' and 'Illumination 34.5%'.

According to the openweathermap API documentation:

0                  is new moon
0 to 0.25      is waxing crescent
0.25             is first quarter moon
0.25 to 0.5   is waxing gibbous
0.5               is full moon
0.5 to 0.75   is waning gibbous
0.75             is last quarter moon
0.75 to 1      is waning crescent
1                  is new moon

So 0.18 is a waxing crescent moon

@jbudd thanks, I had seen that, it didn't seem very interesting to me and hence I was looking for a similar output to my watch.

I had found a calculation that involved Cos to calculate the illumination but I didn't get the answer I expected. Probably a bit beyond me.

So what was the calculation you found?

Do you want to show the percentage of the illuminated side that is visible, atmosphere permitting, or the brightness as a percentage of the full moon's?

It looks, superficially, as if owm's scale is linear so you can get the days of the lunar cycle by multiplying by 28. Brightness won't be linear.

1 Like

@jbudd The calculation is towards the bottom of this page and starts 0.5cos .
I was just trying to understand what the moon_phase from openweathermap meant. Today it was 0.21. My watch says Illumination is 40% and the lunar cycle is day 7.