irrigator | Smart Sprinkler Controller for the Raspberry Pi
kandi X-RAY | irrigator Summary
kandi X-RAY | irrigator Summary
This smart sprinkler controller allows you to setup your own custom sprinkler system using a Raspbery Pi, a 4+ channel relay, and 24V AC Power Supply. If you have an existing sprinkler controller, it's likely you can swap in this project relatively easily, utilizing the existing power supply. This project was actually created back in 2016, and is the reason that it is based on rather old versions of bootstrap, jquery, circliful, etc. I was still very much learning when I created this project and much of it is pretty cring-worthy looking back at how it is organized. With all that said, I said 'To heck with it!' and decided I should release this to the world anyway, in case anyone would value it. I've been running in my home since 2016 and it's worked nearly flawlessly the entire time. I've done a little big of clean-up to the code, modernizing it to use Python 3.x and so forth, but the large majority of it is original from when it was concieved. So please don't judge my poor design. :). Initially this project used Flask's native WSGI services without Gunicorn or nginx as a proxy. However, I noticed that after some time, the app would become unresponsive. After a little research, it appears that Flask's built in web server is for testing purposes only and shouldn't really be used in production. With that said, I'm using Gunicorn and nginx to proxy web resquests. This is simple enough to configure and setup, however I had to redesign the application without the threading libraries, due to conflicts with Gunicorn. Instead, I am using two processes running concurrently (control.py and app.py). Control handles all of the RasPi GPIO interfaces, while App handles the web routes. They communicate through a JSON file.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of irrigator
irrigator Key Features
irrigator Examples and Code Snippets
Community Discussions
Trending Discussions on Internet of Things (IoT)
QUESTION
I have js files Dashboard and Adverts. I managed to get Dashboard to list the information in one json file (advertisers), but when clicking on an advertiser I want it to navigate to a separate page that will display some data (Say title and text) from the second json file (productadverts). I can't get it to work. Below is the code for the Dashboard and next for Adverts. Then the json files
...ANSWER
Answered 2020-May-17 at 23:55The new object to get params in React Navigation 5 is:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install irrigator
I've created a script to install this automatically, but it is in ALPHA testing. Your mileage may vary, and if anything fails, you may just want to try running the manual steps below.
Let's start by setting up the /tmp folder in RAM. On your Pi, open the fstab file for editing:. Add the following line to the bottom of the file.
Optionally, you can use supervisor's built in HTTP server to monitor the scripts.
Add cron entries for items.
Add reboot script to initialize relays @reboot cd /home/pi/irrigator && sudo python3 control.py -i &
Add monthly log cleanup @monthly cd /home/pi/irrigator/logs && sh backup.sh
Add periodic weather check */15 * * * * cd /home/pi/irrigator && sudo python3 openwx.py
NOTE: The NTC Chip section has been depricated as I don't have the time or setup to test this configuration with Python3 or any of the newer libraries. Consider these instructions as a rough guide.
Note the WLAN0 MAC address. Select your network, password, activate. Replace Hostname with a unique hostname ('i.e. Irrigator'). Configure your router's DHCP server to recognize the hostname, mac address, and assign a unique IP address to the device.
sudo apt-get update && sudo apt-get install locales && sudo dpkg-reconfigure locales && sudo locale-gen. You’ll get a large menu to select locales. Use the arrow keys to scroll down and spacebar to mark your location with an asterisk. It’s advised that you choose the location marked UTF8. Others are somewhat arcane edge cases! Hit return to continue.
sudo apt-get install python-pip nginx git gunicorn -y. sudo pip install flask python-crontab cron-descriptor.
sudo apt-get update sudo apt-get install git build-essential python-dev python-pip flex bison chip-dt-overlays -y git clone git://github.com/xtacocorex/CHIP_IO.git cd CHIP_IO sudo python setup.py install cd ..
sudo rm /etc/nginx/sites-enabled/default # Delete default configuration. sudo cp irrigator.nginx /etc/nginx/sites-available/irrigator # Copy configuration file to nginx. sudo ln -s /etc/nginx/sites-available/irrigator /etc/nginx/sites-enabled # Create link in sites-enabled. sudo service nginx restart # Restart nginx.
Edit the root crontab.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page