OpenWeather
OpenWeather copied to clipboard
It would be possible to make library weight less on current weather
Hello,
First, congrats to Bodmer for his work, he make nice things especially with the library tft_eSPI, thanks for all of these.
For all I saw that at the moment OWM don't return the "main" field translated, i don't know since how much time it is like that. Anyway, i sent already a request..
@Bodmer I use Open Weather Map since a while, and i remember that i readed, a while ago, that they accept "exclude" parameter in the requests, like Darsky. So, it's possible to reduce code weight on current weather with use this parameter, syntax is like, "&exclude=daily,hourly" or only "&exclude=hourly". [EDIT, typed too fast, my mistake] You can also use another call "?weather" who've less data. I tested the parameter "exclude" on call "onecall?", it works. [/EDIT] If that can help.
Best regards
Thanks. I have not explored all the features, that is good to know.
You can also change the forecast length by editing the file here. This allows the number of hours/days fetched and stored in RAM based structures to be set, 6 hours and 5 days is the default for the examples. I could change the range test so a value of 0 results in the data being excluded.
The library examples do not use an SD Card.
SPIFFS and LittleFS ue the processors FLASH (program memory).
I find it strenge that the upload off spiffs succesfull is and the detail monitor gives an error that it not find the font in the directory. Thanx for the support With regards tonVerzonden vanaf mijn Galaxy -------- Oorspronkelijk bericht --------Van: Bodmer @.> Datum: 13-03-23 11:27 (GMT+01:00) Aan: Bodmer/OpenWeather @.> Cc: digitongithub @.>, Author @.> Onderwerp: Re: [Bodmer/OpenWeather] TFT_eSPI_OpenWeather (Issue #6) The library examples do not use an SD Card. SPIFFS and LittleFS ue the processors FLASH (program memory).
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>
The sequence to follow is:
- Set the SPIFFS partition size > 1 MByte
- Upload the files
- Upload the sketch
Make sure the sketch folder contains a "data" folder that contains the icon images. These will then be uploaded in srep 2.
The SPIFFS library has examples to try that will show SPIFFS is working on your setup.
Thank you many times for your response. What you say is exactly what I have done. Must use arduino 1.8 for upload data because the 2 version does not work. I emptied my Temp directory and then in combination with arduino 1.8 and version 2 I have the display with the icons. The only thing I have to figure out is why the time is right but the date of the weather is not. Is on Jan 1 1.00. The api key works for other projects, so it should be good.