Updated PiSugar WiFi config (markdown)

Jdaie 2025-02-04 16:45:50 +08:00
parent 838f933013
commit c1aa43fb64

@ -24,24 +24,19 @@ If you don't have wechat, you can use web-bluetooth to connect to your pi. Make
### Quick Install
```
wget http://cdn.pisugar.com/release/sugarwificonfig.sh -O- | sh
curl https://cdn.pisugar.com/PiSugar-wificonfig/script/install.sh | sudo bash
# the script will add sugar-wifi-conf as a systemd service so that it can run on startup
```
### Install from Github
### Optional Parameters
```
git clone https://github.com/PiSugar/sugar-wifi-conf.git
sudo -s . ./sugar-wifi-conf/wificonfig.sh
# the scrpit will add sugar-wifi-conf to /etc/rc.local so that it can run on startup
## optional parameters
# edit /etc/rc.local to append parameters to execute path
# edit /etc/systemd/system/sugar-wifi-config.service to append parameters to execute path
# param 1: key
# param 2: path to custom config file
# example:
sudo /home/pi/sugar-wifi-conf/build/sugar-wifi-conf pisugar /home/pi/sugar-wifi-conf/custom_config.json
sudo bash /opt/sugar-wifi-config/run.sh pisugar /opt/sugar-wifi-config/build/custom_config.json
```
### Custom configuration