Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nirmal15mathew/rpi-home-server
a python server to handle firestore changes and transmit to local broker
https://github.com/nirmal15mathew/rpi-home-server
firestore iot mqtt mqtt-client nodemcu nodemcu-esp8266
Last synced: 3 days ago
JSON representation
a python server to handle firestore changes and transmit to local broker
- Host: GitHub
- URL: https://github.com/nirmal15mathew/rpi-home-server
- Owner: nirmal15mathew
- Created: 2024-06-19T11:55:56.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-24T04:19:03.000Z (5 months ago)
- Last Synced: 2024-10-17T16:25:59.386Z (21 days ago)
- Topics: firestore, iot, mqtt, mqtt-client, nodemcu, nodemcu-esp8266
- Language: C++
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Raspberry Pi home server
### Introduction
This project is an implementation of an mqtt client for an IoT project.
The project uses technologies such as firebase firestore, Eclipse Mosquitto broker, paho-mqtt client, etc and front-end is developed using svelte and tailwindcss#### Hardware used
- Raspberry Pi 3 B+
- ESP8266 Nodemcu module
- 8 Channel 12v Relay board
- Power supply 12v & 5v### Setup
#### 1. Install MQTT broker on Raspberry Pi
Follow the guide on [Eclipse Mosquitto](https://mosquitto.org/download/) to see installation methods.
#### 2. Clone this repo
On the RPi run:
```
git clone "https://github.com/nirmal15mathew/rpi-home-server"
```> [!NOTE]
> In the server.py you can give custom ip address, port, username passwords and other configurations### 3. Run server
Run the following command inside the folder
```
mosquitto -c mosquitto.conf -v
```This will give the output port and updates in terminal
Open up a different terminal session and run
```
python server.py
```
This should start the server and connect to mqtt broker### 4. Flashing NodeMCU
Download main.ino from esp_code/main and upload it into nodemcu. make sure to update the ssid and password to your local network as well as the ip address for your raspberry pi
> [!IMPORTANT]
> Also give username and password (if set in the mqtt broker)Once started, Open serial monitor in arduino ide to see status and confirm connection