instanttim / MonitorMate

A monitoring system for the Outback Power MATE3. It processes the data stream, reformats it for logging, charting, and display on a web server.
GNU General Public License v2.0
8 stars 7 forks source link

Totalings for daily charts is broken #7

Closed instanttim closed 10 years ago

instanttim commented 10 years ago

It's currently commented out, mostly because it doesn't work if a device exists for part of the day but doesn't exist currently. Needs to be re-worked a bit.

instanttim commented 10 years ago

Dealing with devices coming and going was going to require a lot of walking through arrays. Instead I can do a single SQL query and store it in along side the devices in the full_day_data array.

SQL and first chart fixed: cdca348c7e0142b1f5125b5f83084153a8e436fd The rest of the charts and JS fixed: a684661f501e2bcc48948198c20e7f61acaffdc2