Good thoughts all. Speaking in Use Cases
Use Case 1: Realtime JSON data I had not thought about realtime data. Makes good sense to wish to do so. I am thinking that we already have the restful services. An option would be build a small restful end point to live on web server and the use new restful service to push json data. I am happy wIth weather underground and its apps, so realtime is not a priority for me. Use Case 2: Archve reporting and graphing What I was after is a way to have archve data transferred to a server, also probably with chart config information, to make the client graphing much richer. You would have a bunch of JSON data files that somewhat mirror the plots currently generated. Also some config for each (colours etc) that would get transferred to the server. Client script would basically load a rich chart for each data set and config. Overnight I was thinking that if written correctly, you should be able to take a skin, replace [ImageGenerator] section title with [HighchartsGenerator] (or something) and have no other skin.conf change. I hope that explains better what I want to achieve and the use Case. Off to work now. :-) Cheers Darryn Get Outlook for iOS<https://aka.ms/o0ukef> ________________________________ From: [email protected] <[email protected]> on behalf of mwall <[email protected]> Sent: Monday, January 9, 2017 12:53:56 AM To: weewx-development Cc: [email protected] Subject: Re: [weewx-development] Re: Json data for Graphing On Sunday, January 8, 2017 at 8:42:48 AM UTC-5, Tom Keffer wrote: Alternatively, make a "loop report engine," analogous to the present archive report engine. Or, adapt the existing report engine so it can work on loop data. This would be the more general solution. agreed. a loop report engine would make it much easier to emit realtime.txt, customraw.txt, realtime.xml, csv loop data, csv json data. you could have a simple engine that uses cheetah then you could have a realtime.txt.tmpl that would work with either cheetahgenerator for archive data or the loopreportengine for loop data hey gary, are you up for this? you don't have anything else on your plate, do you? ;) m
