Rumah Pintar - IoT is an ESP32-based IoT project designed to create a miniature smart home system. This project uses the ESP32 microcontroller to connect home appliances, enables remote control (e.g., turning lights on/off).
It utilizes AsyncWebServer and WebSocket for real-time updates. The frontend is built using Vanilla TypeScript and CSS for lightweight and efficient performance
demo: https://youtu.be/pYWgJYC5gIM
ESP32 Development Board
Led and resistor
Breadboard and jumper wires
Power supply
VS Code with PlatformIO extension
PlatformIO Core (for cli)
Bun
Install PlatformIO Core If you haven't installed PlatformIO Core, run:
pip install platformio
Clone the Repository
git clone https://github.com/depermana12/rumah-pintr-iot.git
cd rumah-pintar-iot
Install Dependencies
pio lib install
Set Up Wi-Fi Credentials
Update the src/main.cpp file with your wifi and password credentials:
const char *ssid = "wifi-name";
const char *password = "password";
Build the Frontend:
cd frontend
bun run build
Compile the firmware:
pio run
Upload Filesystem (SPIFFS)
pio run --target uploadfs
Upload the Firmware
pio run --target upload
Serial Monitor
To view the ip address of the dashboard, open serial monitor:
pio device monitor -b 115200
This project is licensed under the MIT License. See the LICENSE file for details.
Feel free to customize this README to better fit your project. Let me know if you need further assistance!
