On Thursday, April 2, 2020 at 6:38:28 PM UTC-4, William Burton wrote: > > > My thought was to enhance the weewx-forecast extension to: > > > - Output a generic JSON file that can be loaded via Ajax into a theme. As > much as possible, the JSON would be generated in a manner that's consistent > across different API implementations to make it easier to incorporate into a > skin. > - Output one or more include files that can be included into other skins. > > the weewx-forecasting extension does the following:
- capture data from many different forecasting services - generate tide forecasts using xtide - saves the results into a single database schema - defines a bunch of tags that you can use directly in your weewx templates - provides a set of canned templates that you can embed in other template or as standalone pages in reports the gitlab page shows a few examples of the canned templates: https://github.com/weewx/weewx/wiki/forecasting it should be pretty easy to generate json from the data in the weewx-forecast database. that would be a welcome merge request - probably just a single .tmpl file with a little bit of cheetah templating. the trickiest part is to define a json structure that can withstand the test of time. unfortunately weewx-forecast has languished a bit, but thanks to merge requests from weewx users, there should be an update to weewx-forecast soon after weewx4 is released. i'm looking forward to using the new xtypes in weewx4 to make the comparisons easier, whether comparing between forecasts or comparing old forecasts to historical data. m -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/b960a7b9-81c5-4788-93cb-2ccfd377e18a%40googlegroups.com.
