Software flow meter "pulse"?
I've seen that flow meter support was added to the Touch HD, but that it uses the same pins as the rain sensor and thus only one of rain sensor or flow meter is supported. I want both.
So my idea was to send the flow "pulse" to the Touch HD by software API call by having a water meter with pulse output hooked up to a small Audrino that would make the API call to the Rainmachine every time it detected the hardware pulse from the actual meter. I very quickly looked at rainmachine.docs.apiary.io to see if there was anything that looked like it would do that and didn't see anything.
So two questions:
1) Is there a API input method to pulse the flow meter counter in the Rainmachine? (and I just missed it)
2) If not, could you add it to the API to allow other creative solutions to feed the Raimachine flow data?
-
There is a way to feed data but I'm not sure how the apps will behave displaying flow data when rain sensor is selected as ON.
To send data a POST to /api/4/provision with the keys should cover most scenarios:
flowSensorLeakClicks: 0 // How many leak clicks counted
flowSensorStartIndex: 0 //The index on the water meter before connecting it to RainMachine
flowSensorClicksPerCubicMeter: 2640 // How many clicks mean 1 cubic meter of water flow
flowSensorWateringClicks: 0 // watering clicks counterBut the most important part is that Touch HD doesn't support the Flow and Rain in the same time. For example watering clicks won't be recoderded in DB when watering if flow sensor is off so the most difficult part would be to force RainMachine to enable both (since API won't let you it will automatically toggle one other off).
Only way to do this currently would be to manually edit /rainmachine-app/DB/Default/rainmachine-settings.sqlite and put both useRainSensor and useFlowMeter to true. You can transfer this file from/to RainMachine doing a scp from your computer.
Please sign in to leave a comment.
Comments
3 comments