Difference between revisions of "JacobSpringsFarm:Managewater"

From RAWiki
Jump to: navigation, search
(api key for changing settings:)
(api key for changing settings:)
Line 22: Line 22:
 
Water minimum height in feet (AC pump will turn on after going below this height):<br>
 
Water minimum height in feet (AC pump will turn on after going below this height):<br>
  
<htmltag tagname="iframe" input type="text" name="field1" value="2"></htmltag>
+
<htmltag tagname="iframe" input type="text" name="field1" value="2">
  
 
Water maximum height in feet (AC pump will turn off after going below this height):<br>
 
Water maximum height in feet (AC pump will turn off after going below this height):<br>
Line 56: Line 56:
 
<h2>Stop pump:</h2>
 
<h2>Stop pump:</h2>
  
<form action="https://api.thingspeak.com/update" method="get" enctype="text/plain">
+
<form action="https://api.thingspeak.com/update" method="get" enctype="text/plain"></htmltag>
  
 
api key for turning off pump (same as above):<br>
 
api key for turning off pump (same as above):<br>

Revision as of 07:46, 12 September 2015

Configure water tank management:

The water tanks can hold a maximum of 5 feet of water. This form can be used to configure the settings for turning on and off the pump, and for manually turning the pump on or off.


Configure water tank management:

The water tanks can hold a maximum of 5 feet of water. This form can be used to configure the settings for turning on and off the pump, and for manually turning the pump on or off.

Water height:


<form action="https://api.thingspeak.com/update" method="get" enctype="text/plain">

api key for changing settings:

Water minimum height in feet (AC pump will turn on after going below this height):

api key for turning off pump (same as above):

<input type="text" name="key">

<input type="hidden" name="field6" value="1">

<input type="submit" value="Turn off pump">

</form>

Data channel links

<a href="https://thingspeak.com/channels/55384">pump settings</a> <a href="https://thingspeak.com/channels/55118">pump status</a> <a href="https://thingspeak.com/channels/54556">pump settings</a>

Creating the devices

I used 2 ESP8266-based nodemcu devkits as the microcontrollers/wifi connections. The code is here.

I measured water level with 2 wires and 2 resistors, following this example. I put the wires into a pvc pipe with holes drilled every foot.

Then I connected the wires to the microcontroller, did some programming with the open source nodemcu firmware (writing in lua), and pushed and pulled the data to and from thingspeak, using another github library I wrote: https://github.com/wordsforthewise/esp8266-send-thingspeak