https://github.com/meticulouscraftman/rpi-reset-button
Reset WiFi credentials of RPi Zero W on button press
https://github.com/meticulouscraftman/rpi-reset-button
python3 raspberry-pi wifi-network
Last synced: 6 months ago
JSON representation
Reset WiFi credentials of RPi Zero W on button press
- Host: GitHub
- URL: https://github.com/meticulouscraftman/rpi-reset-button
- Owner: meticulousCraftman
- Created: 2021-09-29T21:06:16.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-29T21:15:45.000Z (about 4 years ago)
- Last Synced: 2025-02-01T19:21:53.053Z (8 months ago)
- Topics: python3, raspberry-pi, wifi-network
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Reset Button
Allows you to reset the gateway when the reset button is pressed.
This code is written in Python 3. This is executed as a daemon process using systemd.## Hardware Connection
- LED - GPIO 3
- Button - GPIO 4On Raspberry Pi Zero W
## Setup
This will do everything for you.
```
./setup.sh
```## Logs
```
sudo journalctl -u reset-button.service -f
```## Modes
- Short Press - Deletes all WiFi credentials, restarts the device. Then wait for the device to host a hotspot.
- Long Press (5 seconds or more) - Disconnects from existing WiFi network, tries to connect to (Qube, 12345678). Host a hotspot using your mobile phone, gateway will automatically connect to it in just a few seconds. Note that, it also stops the webthings-gateway service, to prevent it from taking over and hosting a hotspot. So this should be used only for pure debugging!