Hi! My day job was (Oracle) DBA for a number of years and I have what’s probably a stupid question about modifying the WeeWx database.
Specifically, I want to add some data around solar power generation (watts consumed, watts generated, panel efficiency) and possibly rename some of the “extraTemp” columns to be more descriptive (like “SolarCollectorTemp”). I get the idea of modifying the schema file and then using wee_database to create a new archive table; but, I have over 300K archive records, and that takes a while. Then there’s the whole daily summary process.
So – my question is:
Instead of taking weewx down while doing all of the “data movement”, why not:
Seems to me the only possible downsides to this would be:
Comments?
Clay Jackson
Specifically, I want to add some data around solar power generation (watts consumed, watts generated, panel efficiency) and possibly rename some of the “extraTemp” columns to be more descriptive (like “SolarCollectorTemp”). I get the idea of modifying the schema file and then using wee_database to create a new archive table; but, I have over 300K archive records, and that takes a while. Then there’s the whole daily summary process.
Thanks, Gary (and others that responded). I would absolutely NOT try messing with the summary tables; WAY too much “business logic” around those. It was the archive table I was thinking about.
Actually, this thread brings up some thoughts I’ve had for a while (at least since starting to use WeeWx).
Before WeeWx, I used some software out of Switzerland (which I can’t quickly find, I have archives, but…..) called “meteo” that had what (as a “data guy”) I considered to be a “most elegant” database design. It used a concept of “Stations”, “Sensors” and “observations”, all “normalized”. The “station” table held attributes like the location of the station and so on, for example “Prosser, WA, USA, Lat, Long, Elevation, Description, TimeZone” The “sensor” table defined what sensors were available, the units the sensor used, and other information relative to that “type” of sensor, for example “Acurite 5n1 Outside Temperature, Degrees F, .1 (precision)”. Each observation was a “time series”, for example “StationID, SensorID, timestamp, value”. Using indexes it was really fast to insert new records and to retrieve observations, storage required was minimal, and adding a new sensor, or even station, was pretty easy. Reporting was a BIT more “challenging”; but, once the templates were right, it wasn’t THAT bad
If/when I ever find myself with lots of time and “nothing better to do”; I might do the analysis and see what it would take to change the weewx database to that sort of schema
--
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 weewx-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/c453ccaf-8c70-41dd-87e8-a66b556c14a2n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/027f01d65c5e%24b0323550%2410969ff0%24%40gmail.com.