Naervern / sunnybreeze

A tiny solar-powered esp32-s2 weather monitor with wifi capture portal access, intended as a weather awareness project to enable monitoring for climate research and civic participation
GNU General Public License v3.0
0 stars 0 forks source link

Implement an Upload function for the database. #9

Open Naervern opened 7 months ago

Naervern commented 7 months ago

Some way for the database, stored in the flash memory (and the RTC memory daily measurements) to be retrieved by a client sending the "/history" GET request.

Either done as bytestream, SPIFFS/LittleFS conversion of the file and its upload or even a memory-efficient and fast enough parsing of all the data into an HTML or Json... it doesn't matter as long as it works well and efficiently enough.

Naervern commented 6 months ago

Function to send chunked data implemented and working properly. Issue now is to get data to be properly parsed, compressed and accessed from the flash memory. I will be changing the preferred system from the EEPROM library to LittleFS.