This is a tiny Node.js application for controlling and configuring the Automatic Watering System.
You need to have:
- Node.js (16.x or newer) installed on your system.
- A serial-radio gateway attached to your system. This gateway an be an using an Arduino for example.
Before you can start you need to install the required node_modules once by running the following command inside of the control
directory.
npm install
Start the app:
npm start
Then open your browser and navigate to http://127.0.0.1:3000/.
You may also set your own listen host and port using this:
HOST=0.0.0.0 PORT=1337 npm start
Hint: All communication is only on your localhost and through RadioHead. No data is send over the internet! 🙂
On the Website you have to configure your connection first.
Once you are connected to the serial-radio gateway you can:
- Interact with the watering system
- See all the received information (adc and DHT values, battery status, turned on channels)
- Turn on or off a channel
- Read the current settings from the watering system
- Send new settings to the watering system
- See the software version of the watering system
- Send pings and receive pongs
- Sometimes a command cannot be send to the watering system, or the watering system sends not the expected answer. This happens if the controller for the watering system is busy while sending the command. Simply try again after some seconds! 😉
- Error
Resource temporarily unavailable Cannot lock port
when trying to reconnect to a serial port: This a bug in Node.js 20. Try updating to a recent Node.js version >20.11.1.
Licensed under GPL Version 2
Copyright (c) 2018-2024 Peter Müller peter@crycode.de (https://crycode.de/)