azavea / ism-watershed-wellness-snapshot

A tool to collect and display watershed wellness indicators for the International Seaport Museum
1 stars 2 forks source link

Handle partial reporting of sensor data #106

Closed caseycesari closed 5 years ago

caseycesari commented 5 years ago

It is possible for a sensor to report some, but not all, of the variables needed for the app. For example, the Tinicum sensor is currently reporting water temperature, dissolved oxygen, and pH, but not turbidity.

image

We should fall back to the default values in cases like this. We are currently doing that when the sensor fails to return data as a whole, but not when one variable fails.