t/devices.html: Auto configuration for common devices
Issue #290
new
A great feature to have would be a configuration option on the device page that prefills a number of commonly used variables. Eg. Variable defaults for ESP when an ESP is being registered.
These can be found in AusOcean documentation here:
This would also be useful for camera variables, hydrophone variables, speaker variables etc.
For each device type we could have a default variable list that can be added at the click of a button.
This could be implemented by extending the /vars method, which is how devices indicate the variables they support and their types.
For example,
{"PulseWidth":"uint"}
could be extended
{"PulseWidth":"uint,50"}
This would signify that the PulseWidth variable is an unsigned integer with a default value of 50.
Further, default values would default to their typical default values.
For example,
{"AlarmPin":"uint"}
would indicate the AlarmPin defaults to zero (the current situation).