chrootVPN - A script for creating a chrooted Linux client CheckPoint VPN middleware+agent setup for connecting via their Web Mobile Access Portal.See Network configuration#Network managers. Internet Network connection Network managers programs <- // // Define your zones here in numerical order starting with zone 1.Note: Applications listed in "Console" sections can have graphical front-ends. Hunter supports 3 or 4 programs depending // on the model. See ("sd:/lib/buses/hunter/hunter.nut") require ( "GPIO" ) // Include the Hunter bus class dofile ( "sd:/lib/buses/hunter/hunter.nut" ) // // Define your programs here. // This work is released under the Creative Commons Zero (CC0) license. Sprinkler Remote // // See readme.txt for more information. I designed a 3D-printed enclosure using DesignSpark Mechanical that has an opening that exactly matches the SmartPort dimensions. I decided to mount it using the SmartPort. Now it was time to get this thing hooked up permanently. The complete code is attached to this project. On the Esquilo Air side, I wrote a simple Squirrel function that simply wraps the stop() method call to the Hunter class. In this case, the only callback needed is to display an error message if the ERPC call fails. The first parameter is the function name on the Esquilo Air, the second parameter is the parameters to pass to the function(none in this case), the third parameter is the success callback, and the fourth is the error callback. For example, in JavaScript I wrote the following code to call the stop() function on the Esquilo Air when the stop button is pressed. This makes it easy to execute embedded functions on the Esquilo Air from my web interface. I used Esquilo RPC (ERPC) to communicate between the JavaScript in the browser and the Squirrel code on the Esquilo Air. I can turn zones on, start a program, or stop watering that is already in progress. The interface is pretty simple but it does exactly what I need. To build the web interface, I used jQuery and bootstrap which makes it easy to develop a mobile friendly version. It also allows me to access the interface remotely with HTTPS via the Esquilo.io cloud site. I decided to use a web-based interface using HTML and JavaScript since Esquilo Air has a built in web server and I can use any browser to access it. SoftwareĪfter verifying that the shield worked, it was time to move on and hook this up to a user interface. This gives me the same functionality as the ROAM remote with the benefit of reliable and remote communication. The Hunter protocol is a little limited but I can turn on zones for specific times, run a defined program, or stop a zone if it is running. Also, Esquilo provides all of the software libraries necessary to communicate with the Hunter control panel using its proprietary protocol. The Esquilo Air allows me to easily connect to my WiFi network and gives me a cloud site where I can access my application remotely. I mounted the Sprinkler Shield on an Esquilo Air. There are also terminal blocks in case you want to wire it directly to the control panel without the SmartPort. On top of the board are three pins so it can plug directly into the Hunter SmartPort. It also has circuitry to translate logic level signals to the Hunter remote bus. The shield provides a 24V AC to 5V DC power supply so it is powered directly from the control panel. I used the Esquilo Sprinkler Shield to control my Hunter system.
0 Comments
Leave a Reply. |