You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As we are logging data to Earthranger, such as with the temperature sensors, we need to have a way to access that data in a way that is useful. Currently, there are two active temperature sensors on the BDR. They are ideally sending updates every 20 minutes. The data is contained in Observations (if you're looking at the map, it's the historical data) for each temperature sensor, so you'll have to perform an http request get for all that info. Your task would be to create an example script that allows a user to get the last weeks worth of temperature sensor data from all of their temperature sensors with timestamps. There is a lot of unecessary information included in the "get" so you'll need to parse through the resulting json and specifically call for certain parts of it. It would be good if the data was output into a csv.
Somewhat of a higher level goal, for now you can just try and tackle this ^^, but if you have extra time or finish, it would be nice if this script could also check for missing pings of data. They're meant to receive pings every 20 minutes, but this doesn't always happen. It would be nice if this script could check and see that each observation was in fact 20 minutes after each other, and if not, have it noted somehow in the csv. Two ways I can think of doing this are getting the last week's date range of temperature readings and checking if you have the correct amount, or checking the time between readings and ensure it's incrementing by no more than 20 minutes (you might want to convert the time into a different format for this).
This script should be created in a new branch specifically to address this issue, and the code should pass flake8 and pylint linting protocols.
The text was updated successfully, but these errors were encountered:
As we are logging data to Earthranger, such as with the temperature sensors, we need to have a way to access that data in a way that is useful. Currently, there are two active temperature sensors on the BDR. They are ideally sending updates every 20 minutes. The data is contained in Observations (if you're looking at the map, it's the historical data) for each temperature sensor, so you'll have to perform an http request get for all that info. Your task would be to create an example script that allows a user to get the last weeks worth of temperature sensor data from all of their temperature sensors with timestamps. There is a lot of unecessary information included in the "get" so you'll need to parse through the resulting json and specifically call for certain parts of it. It would be good if the data was output into a csv.
Somewhat of a higher level goal, for now you can just try and tackle this ^^, but if you have extra time or finish, it would be nice if this script could also check for missing pings of data. They're meant to receive pings every 20 minutes, but this doesn't always happen. It would be nice if this script could check and see that each observation was in fact 20 minutes after each other, and if not, have it noted somehow in the csv. Two ways I can think of doing this are getting the last week's date range of temperature readings and checking if you have the correct amount, or checking the time between readings and ensure it's incrementing by no more than 20 minutes (you might want to convert the time into a different format for this).
This script should be created in a new branch specifically to address this issue, and the code should pass flake8 and pylint linting protocols.
The text was updated successfully, but these errors were encountered: