abkfenris / gage-web

A web interface for a low cost stream height gauging system.
https://riverflo.ws
1 stars 1 forks source link

Sensor subclasses #23

Open abkfenris opened 10 years ago

abkfenris commented 10 years ago

Make sensor subclasses for common types, to fill in standard column data when auto creating a sensor. Make a new_sensor() method that takes type and then will either use specific subclass or generic Sensor Class to create a new sensor. Also make stypes {} dict to convert common incoming sample types with different naming to Sensor subclasses.

abkfenris commented 9 years ago

Maybe just normalize sensor info coming in, and have a dict with appropriate values. Or maybe a default sensors table.