Skip to content

IoT - smart home control, build using websocket, bun, typescript, mcu using esp32

Notifications You must be signed in to change notification settings

depermana12/rumah-pintr-iot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rumah Pintr

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

Rumah pintr IoT

Hardware Requirements

ESP32 Development Board

Led and resistor

Breadboard and jumper wires

Power supply

Software Requirements

VS Code with PlatformIO extension

PlatformIO Core (for cli)

Bun

Getting Started

Installation

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

Configuration

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";

Building and Uploading

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

License

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!

About

IoT - smart home control, build using websocket, bun, typescript, mcu using esp32

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published