Guiver is a Node.js backend application designed for managing leds, lightbulb and air conditioner using Raspberry Pi, with hardware interaction via GPIO pins using the pigpio
library.
- 🔧 Create and manage project environments.
- 🚦 Control LEDs connected to GPIO pins:
- Red LED: GPIO 4
- Green LED: GPIO 17
- Blue LED: GPIO 18
- 📂 Organize projects and dependencies.
- 🔄 Switch between Node.js versions.
-
Clone this repository to your Raspberry Pi.
-
Install the
pigpio
library by following these instructions. -
Run
npm install
to install Node.js dependencies. -
Create a
.env
file in the project root with the following variables:WSS_CLI_PORT= WSS_MDL_PORT= API_PORT= WEATHER_KEY= RABBITMQ_IP= RABBITMQ_USR= RABBITMQ_PSW=
-
Start the application using
npm start
.
For detailed information on Raspberry Pi GPIO pin mappings, visit pinout.xyz.
Contributions are welcome! Feel free to open issues or submit pull requests.
This project is licensed under the MIT License. See the LICENSE file for details.