fuzzy-archer <https://github.com/brewster76/fuzzy-archer> a.k.a. "the 
Bootstrap skin" supports live data and interactive charts and gauges, 
out-of-the-box, for a 27h-period, if not configured else.

Week/Month/Year-data is provided with static images. The users request 
interactive charts for all these timespans, and I am planning to implement 
this feature within the next year, if I find a realistic approach without 
having new requirements for hosting the front end. And I plan to make it 
possible, to provide all data from the database to the front end, making it 
possible to view history data, just as if it was today's data.

I want to do it the most WeeWX-ish way possible and currently just thinking 
about the ways to get there.

The first problem is: how to make all this data available. Currently, the 
data for the rolling, 27h view, is provided in a JSON file that is updated 
and uploaded to the front end every archive interval. Updating and 
uploading a JSON file holding all desired data for all time, since the 
station started, doesn't seem to be a sane approach.

There is a JS library for SQLite, so an approach could be to synch all 
necessary data to a SQLite database on the web server, but how to get the 
data there? Per request, every archive interval? This would probably 
require some serve-side-scripting, which will limit this feature to 
servers, that provide support for that.

Another approach: create (maybe compressed) chunks of historic data, that 
may be uploaded once and deflated using client side JS on demand. Challenge 
with this approach: how to set this up initially, creating and uploading 
all these files will probably take a while for stations with a longer 
history. In theory, since historic data shouldn't be subject to changes, 
this need only to be done once, and for new data, but new data will cover 
only a certain timespan, not decades of historic data.

Any ideas for other approaches? Or is this just not realistic?


-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/weewx-development/3940ac3c-9cfc-4069-a7a9-b63ee5761ec0n%40googlegroups.com.

Reply via email to