joshbaird / MoistureSensingSprinkler

2 stars 0 forks source link

update main page #10

Open joshbaird opened 9 years ago

joshbaird commented 9 years ago

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.

joshbaird commented 9 years ago

The main page should also convert the values back to 0-100 for the sensor info.

bdcannon commented 9 years ago

Client and server side validation? Probably should be doing both. Maybe after @mrfinks can do some color scheming to show invalid fields.

bdcannon commented 9 years ago

So what's valid data for the following fields? SensorID SensorType PinID ... ... ...

joshbaird commented 9 years ago

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?