ConnectedPlacesCatapult / SharingCitiesDashboard

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

Fcc 143 request for moving sensor data #182

Closed kpennels closed 5 years ago

kpennels commented 5 years ago

Updated files

Analytics/models/pin_location_data.py 1) added a subtheme field to the Tracker model 2) added class methods to return all trackers, trackers according to a subtheme id and the attributes a tracker records

Analytics/resources/moving_sensors/get_dummy_data.py - associated a tracker with a sub theme when it is imported into the database and made the trackers record a variety of dummy air quality data

Analytics/resources/request_for_data.py - added a moving argument that allows the user to specify that data related to moving sensors should be returned with respect to themes, subthemes, sensors and attributes

New Files Analytics/test_request_for_moving_sensor.py - Test the functionality of the /data endpoint when the moving argument is True