Offline tile server #429
Replies: 1 comment 3 replies
-
Insane amount: Yes and no. With the default Flash size (4M) and layout (2 partitions for OTA + file system) the PlatformIO build used to be at 99% of the space (it is now down to 85.7% (used 1122990 bytes from 1310720 bytes) as I found the reason why pio pulled in the locale support that is not needed). I'd like to upgrade to newer versions of the runtime environment (which needs more code space) in the future, and having TLS support would also be great for some purposes. This means:
What exactly do you mean with offline predictions? The usual predictions use GFS prediction data (world wide data is some gigabytes updated every 6h, ESP32 storage is not insane but ridicously tiny for that). I have been thinking about a web service that actually delivers the right data restricted in time and space for your current location, but that still would be big. Also, you need elevation data to find out where the ground surface is. Even if you want to do a simple linear prediction of the flight path ignoring any GFS wind data, you need elevation data. The very coarse grained data (that is also used by tawhiri prediction) is the 15'x15' grid data, which is 2 MB in size. Won't fit... Ideally you would better use more hi-res data. If I had the time I would implement offline prediction for an smartphone app. Ideally combined with some web service that provides efficient download for a regional subset of GFS data (or other, better models) and a high-res elevation model, also regional (at least 3'x'3, some places actually have 1'x1' data available) |
Beta Was this translation helpful? Give feedback.
-
I'd like to implement an offline tile server in rdz_ttgo_sonde. My thinking is you'd put a directory on the micro SD card, maybe called "tiles" and within it you'd have a folder for each tile set.
While looking into this, I found this discussion: #126 (reply in thread)
To me this seems like a solvable problem. The esp32 has an insane amount of CPU/RAM for an embedded chip, and serving static files should be fairly unintensive to do, even for relatively large files.
Assuming I'm able to get this to work in a way that is stable, would it be accepted in a PR?
Also, would a PR to do the flight predictions offline be accepted? My goal is to get this to the point where I can take it plus a phone for my radiosonde hunting - no computer at all.
Thanks for your consideration!
Beta Was this translation helpful? Give feedback.
All reactions