Skip to content
Portable WiFi Hotspot with a chat
JavaScript Dockerfile HTML Shell
Branch: master
Clone or download
Latest commit 89eb196 Jul 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
hotspot Update entrypoint.sh Nov 18, 2018
web Cleanup Nov 20, 2018
README.md Update README.md Jul 19, 2019
docker-compose.yml Save couchdb to a disk Nov 12, 2018

README.md

rpi-chat

IMG_2804

Motivation

You probably noticed that there is no internet connection in some very important places such as tube's tunnel or any lower ground floor.

Why don't we create one? Perhaps it is not a real internet - but something else. The idea is to create WiFi hotspot with a chat and get to know who is around.

Requirements

  • Raspberry Pi with WiFi
  • Docker v17
  • Docker Compose

armv6 versions of Raspberry Pi don't work with Docker v18, use v17 instead.

Usage

  • docker-compose build
  • docker-compose up --build
  • docker-compose up
  • docker-compose down

Running without a Docker

You can just follow instalation process from 'Dockerfile', and add systemd autoload /etc/systemd/system/rpi-chat.service:

[Unit]
Description=rpi-chat
After=network.target

[Service]
Environment=PORT=80
ExecStart=sh /home/pi/rpi-chat/hotspot/entrypoint.sh
Type=simple
Restart=on-failure

[Install]
WantedBy=multi-user.target

Troubleshooting

If you having following errors:

fatal: unable to access 'https://github.com/xxx/xxx.git/': Failed to connect to github.com port 443: Connection refused

The problem is probably because of dnsmasq running. Disable it first and run again after you finished

  • sudo systemctl stop dnsmasq.
  • sudo systemctl start dnsmasq.

TODOs

  • WiFi hotspot without encryption
  • Captive portal with custom web page
  • Web chat
  • Possibility to send images
  • Add database to save chat history
You can’t perform that action at this time.