Open joshbaird opened 9 years ago
The main page should also convert the values back to 0-100 for the sensor info.
Client and server side validation? Probably should be doing both. Maybe after @mrfinks can do some color scheming to show invalid fields.
So what's valid data for the following fields? SensorID SensorType PinID ... ... ...
had to restrict the SensorID, SensorType, or PinID. SensorID and SensorType should not be restricted. to allow for different sensors and addresses. I guess PinID should be a number? Moisture and Light should be percentages so 0-100. Temp should be -100 to 200?
update the main page and add sensor to error check the fields: moisture, and light should accept values between 0-100% temp should accept 0-120 in F I suppose... time is already kind of set and error checking.