ConnectedPlacesCatapult / SharingCitiesDashboard

Personalisable dashboard for Sharing Cities IoT data
Apache License 2.0
6 stars 5 forks source link

Fcc 180 alert widget decorator #212

Closed kpennels closed 5 years ago

kpennels commented 5 years ago

Updated files

Analytics/app.py - Imported the new Attribute range DB model Analytics/importers/air_quality.py,| greenwich.py | lisbon.py | tfl_bike_points | milan.py | - appended the attribute range decorator to all the importers Analytics/models/attributes.py - Added methods to find the min and max values for an attribute and to retrieve the most recently added timestamp from an attribute table

New files Analytics/importers/attr_range_decorator.py - Queries all attribute tables for their maximum and minimum values after an importer is run Analytics/models/attribute_range.py - DB model class to store the min and max values of each attribute Analytics/test_alert_widget_decorator.py - tests the functionality of the alert widget decorator