Hi,
Could someone please give me advice on the questions down below? I am just overwhelmed at how many libraries and methods there are.
I am trying to build a simple weatherstation using a DUE, 7 inch TFT and an ESP-01 (ESP8266) on Serial3. I am accessing data from openweathermap
and can successfully download a 7 day forecast using One Call API. Data is below but has some of my own formatting ...mydt..and a COUNT for readability only . Please assume i have original JSON formatted data. For starters I want to graphically display the 8 day ( Current +7 days) forecast on the TFT. My issue is using a JSON parser.....
{"lat":51.325,"lon":-0.1957,"timezone":"Europe/London","timezone_offset":3600,"current":{"dt
0 {mydt":1634298439,"sunrise":1634279064,"sunset":1634317700,"temp":285.47,"feels_like":284.87,"pressure":1021,"humidity":81,"dew_point":282.31,"uvi":1.39,"clouds":40,"visibility":10000,"wind_speed":0.45,"wind_deg":46,"wind_gust":2.24,"weather":[{"id":802,"main":"Clouds","description":"scattered clouds","icon":"03d"}]},"daily":[{"dt
1 {mydt":1634295600,"sunrise":1634279064,"sunset":1634317700,"moonrise":1634313300,"moonset":1634255220,"moon_phase":0.33,"temp":{"day":285.22,"min":281.44,"max":286.3,"night":281.44,"eve":284.47,"morn":283.56},"feels_like":{"day":284.55,"night":280.46,"eve":283.22,"morn":283.11},"pressure":1021,"humidity":79,"dew_point":281.69,"wind_speed":4.23,"wind_deg":40,"wind_gust":10.24,"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04d"}],"clouds":52,"pop":0,"uvi":1.81},{"dt
2 {mydt":1634382000,"sunrise":1634365566,"sunset":1634403972,"moonrise":1634400900,"moonset":1634346420,"moon_phase":0.36,"temp":{"day":285.27,"min":281.39,"max":286.18,"night":282.72,"eve":284.43,"morn":282.56},"feels_like":{"day":284.44,"night":281.9,"eve":283.68,"morn":282.08},"pressure":1022,"humidity":73,"dew_point":280.9,"wind_speed":3.48,"wind_deg":190,"wind_gust":5.85,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"clouds":97,"pop":0,"uvi":0.84},{"dt
3 {mydt":1634468400,"sunrise":1634452068,"sunset":1634490245,"moonrise":1634488260,"moonset":1634437440,"moon_phase":0.4,"temp":{"day":287.86,"min":282.4,"max":287.86,"night":284.32,"eve":286.12,"morn":283.36},"feels_like":{"day":287.34,"night":283.71,"eve":285.48,"morn":282.68},"pressure":1019,"humidity":75,"dew_point":283.9,"wind_speed":4.69,"wind_deg":206,"wind_gust":8.5,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"clouds":100,"pop":0,"uvi":0.21},{"dt
4 {mydt":1634554800,"sunrise":1634538570,"sunset":1634576520,"moonrise":1634575560,"moonset":1634528340,"moon_phase":0.43,"temp":{"day":288.05,"min":283.72,"max":288.05,"night":286.88,"eve":286.13,"morn":284.25},"feels_like":{"day":287.4,"night":286.76,"eve":285.89,"morn":283.79},"pressure":1018,"humidity":69,"dew_point":282.76,"wind_speed":6.49,"wind_deg":191,"wind_gust":14.05,"weather":[{"id":500,"main":"Rain","description":"light rain","icon":"10d"}],"clouds":100,"pop":0.96,"rain":1.8,"uvi":0.46},{"dt
5 {mydt":1634641200,"sunrise":1634625073,"sunset":1634662795,"moonrise":1634662740,"moonset":1634619120,"moon_phase":0.46,"temp":{"day":289.35,"min":287.63,"max":289.59,"night":289.01,"eve":288.59,"morn":289.09},"feels_like":{"day":289.35,"night":288.92,"eve":288.54,"morn":289.19},"pressure":1011,"humidity":89,"dew_point":287.89,"wind_speed":8.08,"wind_deg":201,"wind_gust":16.58,"weather":[{"id":500,"main":"Rain","description":"light rain","icon":"10d"}],"clouds":97,"pop":1,"rain":4.95,"uvi":1.49},{"dt
6 {mydt":1634727600,"sunrise":1634711575,"sunset":1634749072,"moonrise":1634749920,"moonset":1634709780,"moon_phase":0.5,"temp":{"day":283.49,"min":281.93,"max":288.21,"night":283.98,"eve":282.7,"morn":286.64},"feels_like":{"day":282.51,"night":283.31,"eve":278.73,"morn":286.34},"pressure":996,"humidity":74,"dew_point":279.51,"wind_speed":10.18,"wind_deg":265,"wind_gust":17.86,"weather":[{"id":501,"main":"Rain","description":"moderate rain","icon":"10d"}],"clouds":92,"pop":1,"rain":11.93,"uvi":2},{"dt
7 {mydt":1634814000,"sunrise":1634798079,"sunset":1634835349,"moonrise":1634837220,"moonset":1634800440,"moon_phase":0.53,"temp":{"day":287.51,"min":283.92,"max":287.51,"night":283.93,"eve":284.57,"morn":284.12},"feels_like":{"day":286.65,"night":283.1,"eve":283.78,"morn":283.41},"pressure":1006,"humidity":63,"dew_point":280.86,"wind_speed":8.04,"wind_deg":260,"wind_gust":15.19,"weather":[{"id":500,"main":"Rain","description":"light rain","icon":"10d"}],"clouds":50,"pop":0.39,"rain":0.46,"uvi":2},{"dt
8 {mydt":1634900400,"sunrise":1634884582,"sunset":1634921628,"moonrise":1634924700,"moonset":1634891160,"moon_phase":0.56,"temp":{"day":280.76,"min":280.05,"max":281.97,"night":280.05,"eve":280.06,"morn":280.38},"feels_like":{"day":279.77,"night":277.92,"eve":277.88,"morn":278.95},"pressure":1013,"humidity":86,"dew_point":278.83,"wind_speed":3.95,"wind_deg":308,"wind_gust":9.05,"weather":[{"id":500,"main":"Rain","description":"light rain","icon":"10d"}],"clouds":100,"pop":0.55,"rain":1.1,"uvi":2}]}
Bytes Rxd =4740
- Which JSON library should I use?
- The data is 4,740 bytes long. Can I use a JSON call to read the data as it comes in on Serial3, thus not having to create a string of 4,740 bytes length?
This is the most confusing thing for me. - Can someone point me an example where they using an Arduino board (MEGA/DUE)and ESP-01. ( not an example with a Main ESP board)?
I obviously want data like max temp, min temp, sunrise, sunset and weather forecast etc for each day .... from a JSON parse.
A full blown One Call API download is around 20,500 bytes, but I will start with just the current + 7 day forecast at 4700 bytes.
Thanks