A DIY smart irrigation system for Raspberry Pi built with Next.js, TypeScript, Socket.io and Redis. Inspired by this guide on Instructables, Raspberry Pi Controlled Irrigation System. See full project description here.
For the full circuit components list see the Instructables project.
# install dependencies
npm ci
# start redis
npm run redis:start
# start development
npm run dev
# compile for prod
npm run build
# start prod
npm start
Add the latitude and longitude of where you're going to be running the system to the .env.local
file. This is a helpful site to get lat + long from the address: latlong.net.
If you want to use SMS notifications with Twilio, sign up on their platform and add account tokens to the .env
.
You will need an API token from Open Weather Map. If you decide to use another weather API, you'll most likely have to change the logic around chance-of-precipitation to make it work.
This project is still a work-in-progress. There is plenty of room for improvement. PR's welcome.