Closed s-egge closed 10 months ago
(and any other similar issue buildings)
building_id_2
column of the meter group to NULL
or something
delete * from meter_groups where id = <meter id value>
select * from meter_groups
(reference building_id_2 column for buildings table foreign key)select * from meter_group_relation
(meter to meter_group relationships)select * from data where meter_id = 38 order by time DESC;
(example meter ID, useful to see when last valid data is from)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:
Buxton
building_id_2
set to nulldefault
to 0 (page was no longer loading after setting the building_id_2
to nulldefault
to 1 (63 was originally the default and had valid data, but only one meter, whereas 153 has all of the meters)McNary Hall
building_id_2
set to nullMcNary Dining Hall
building_id_2
set to nullDixon Recreation Center
building_id_2
set to null
Some of the buildings appear to have duplicate/extra meters on the dropdown menu of the Edit Block
Buxton Hall
Buxton Electric is the default and only has Net Energy Usage (kWh) as a measurement
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
McNary has two Meters, both have all of the Measurements and all of them seem to work and are identical data
Dixon Rec Center
"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.
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.