Closed instanttim closed 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
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.