OSU-Sustainability-Office / energy-dashboard

Oregon State University's energy dashboard.
https://dashboard.sustainability.oregonstate.edu
GNU General Public License v3.0
11 stars 0 forks source link

Edit Block Meter Bug #287

Closed s-egge closed 10 months ago

s-egge commented 10 months ago

Some of the buildings appear to have duplicate/extra meters on the dropdown menu of the Edit Block

Buxton Hall

image image

Buxton Electric is the default and only has Net Energy Usage (kWh) as a measurement

image image

There are two "Buxton Electricity", both have all measurements in the drop down but only the third one works. The second one shows "No Data Available" for the measurements that I checked

McNary Hall

image

McNary has two Meters, both have all of the Measurements and all of them seem to work and are identical data

Dixon Rec Center

image image

"Dixon Rec Center" is the default and has all of the measurements. "Dixon Recreation Center" only has one and throws an error when attempting to use it.

image image image

When switching the meter to Dixon Steam, the Measurement auto-fills as accumulated_real which will cause issues if it's not changed manually to one of the drop-down options.

This is not exhaustive, though most of the other residence halls that I checked appear to behave normally.

solderq35 commented 10 months ago

Summary of Findings

Buxton

McNary

Dixon

Fixes

Buxton / McNary

(and any other similar issue buildings)

Dixon

References

Browser Debug Network Tab

AllBuildings API Call

MySQL Workbench

s-egge commented 10 months ago

SQL DB Changes

I used MySQL to select * from meter_groups, then sorted by building_id_2 in order to look for duplicate building IDs with duplicate names (like Buxton Hall and Buxton Hall Electric). After confirming via the Energy Dashboard which were actually duplicates or which had no data, I set the building_id_2 to null for now to make sure there aren't any adverse effects before deleting them.

There were changes in 4 buildings: