Skip to content

Latest commit

Β 

History

History
106 lines (69 loc) Β· 2.63 KB

README.md

File metadata and controls

106 lines (69 loc) Β· 2.63 KB

πŸ“‘ node_comms

Offline Chat System Using ESP8266 + WebSockets
πŸ†˜ Perfect for emergencies, disasters, or just cool offline tinkering!


🌍 What is this?

node_comms is a peer-to-peer-style offline chat system that runs entirely on an ESP8266 microcontroller. It's designed for situations where cell towers are down, Wi-Fi is unavailable, or you're just off-grid πŸ•οΈ. Your ESP8266 becomes a Wi-Fi hotspot that allows nearby devices to connect and chat via a sleek web interface using WebSockets.

πŸ’‘ No internet needed. No server required. Just power up and chat!


πŸš€ Features

  • πŸ“‘ Creates its own Wi-Fi network (AP mode)
  • πŸ’¬ Real-time chat using WebSockets
  • πŸ‘₯ Random usernames with user join/leave notifications
  • πŸ“œ User list display
  • πŸ“² Mobile-friendly responsive UI
  • πŸ”Š Audio beep when you get a new message
  • πŸ” Captive portal redirection (just open browser after connecting)
  • πŸ› οΈ No external server or internet needed

🧠 Use Cases

  • 🚨 Disaster scenarios (earthquakes, hurricanes, power outages)
  • πŸ•οΈ Off-grid camping or hiking trips
  • πŸ“΅ Zero-bar zones or remote work areas
  • πŸ§ͺ Hobby projects or local mesh chat experiments

πŸ“¦ Requirements

  • πŸ”Œ ESP8266 NodeMCU
  • ⚑ Arduino IDE or PlatformIO
  • πŸ“š Libraries:
    • ESP8266WiFi
    • ESP8266WebServer
    • DNSServer
    • WebSocketsServer (Install via Library Manager or PlatformIO: "WebSockets" by Markus Sattler)

πŸ› οΈ How to Set It Up

πŸ‘‰ Using PlatformIO (recommended)

git clone https://github.com/mr6874000/node_comms.git
cd node_comms
pio run -t upload

πŸ‘‰ Using Arduino IDE

  1. Open the .ino or .cpp file.
  2. Install the required libraries.
  3. Select your board (e.g., NodeMCU 1.0).
  4. Click βœ… Upload.

πŸ“± How to Use

  1. πŸ”Œ Power up the ESP8266.
  2. πŸ“Ά Connect your phone/laptop to the ANON Wi-Fi network.
  3. 🌐 Open any browser – you'll be redirected to the chat interface.
  4. πŸ’¬ Start chatting with others connected to the same ESP!

πŸ§‘β€πŸ’» Screenshots

(Coming soon β€” you can help by adding some!)


πŸ“œ License

MIT β€” Free to use, hack, and improve!
Just don't use it for evil ☠️.


πŸ’‘ Ideas for the Future

  • πŸ” Add optional password protection
  • 🌐 Mesh communication between multiple ESPs
  • 🧭 GPS integration for rescue coordination
  • πŸ”‹ Low-power sleep mode

🌟 Star this repo if you find it cool!

git clone https://github.com/mr6874000/node_comms.git

πŸ›°οΈ Stay connected β€” even when the world isn’t.