Wow - this fits perfectly. Xtypes extension it is then! 

-Joel

> On Jan 1, 2021, at 2:15 PM, Tom Keffer <[email protected]> wrote:
> 
> 
> Perfect application for an xtypes extension. 
> 
>> On Fri, Jan 1, 2021 at 7:58 AM [email protected] <[email protected]> wrote:
>> I wish to add the Chandler Burning Index (CBI) to WeeWX.
>> 
>> The CBI is completely a derived number. In this way, it is the same type of 
>> thing as 'dewpoint' - calculated based on temperature and relative humidity 
>> with a formula.
>> 
>> My goals are as follows:
>> 
>> 1) Report the value in the current page, as well as min/max values in 
>> weekly, monthly, yearly totals.
>> 2) Graph this as a new graph (I can't combine it with temperature as 
>> dewpoint does as the Y-axis label is different.)
>> 3) Provide a mechanism to one-time retroactively compute the CBI values to 
>> all historic records someone has stored. 
>> 
>> I believe (3) requires new code no matter what - I am not familiar with any 
>> existing code that will add in new values for a derived calculation to match 
>> prior observations. So, (3) can be actually put to the side for the moment.
>> 
>> The question is - what's the best way to do (1) and (2)? Two possible 
>> approaches are:
>> 
>> a) Implement a new 'cbi' extension, with its own database.
>> b) Add CBI to the core existing code-base, pretty much exactly where 
>> dewpoint iis calculated for (1) (and database schemas defined, etc.) - and 
>> simply adding in a new graph for the CBI.
>> 
>> In the briefest terms, should I implement this as an extension or as 
>> additions to the existing code? Obviously, either approach would be 'given 
>> back' to be used - but what is the preferred way to implement this?
>> 
>> -- 
>> 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 on the web visit 
>> https://groups.google.com/d/msgid/weewx-development/41c4df89-3c00-4468-932d-d4d399fbe9a7n%40googlegroups.com.

-- 
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 on the web visit 
https://groups.google.com/d/msgid/weewx-development/6B20BF06-C4FB-485B-82E9-3B10A3287885%40gmail.com.

Reply via email to