Skip to content

A Next.js app to drive a Raspberry Pi-controlled DIY irrigation system.

License

Notifications You must be signed in to change notification settings

drewalth/irrigation-system

Repository files navigation

irrigation-system

Build Status Codacy Badge

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.

Image of Irrigation System UI

Hardware Requirements

For the full circuit components list see the Instructables project.

System Requirements

Getting Started

# 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 

Env Vars

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.

Tokens

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.

Note

This project is still a work-in-progress. There is plenty of room for improvement. PR's welcome.

About

A Next.js app to drive a Raspberry Pi-controlled DIY irrigation system.

Topics

Resources

License

Stars

Watchers

Forks