You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed RaspiWiFi to be able to easily connect to new networks with an access point. All works smoothly now but I'm not seeing a misleading message on the splash screen instructing me to connect to the access point, even if I'm already connected to a wifi network and there's no access point running from the raspberry pi. It seems we aren't actually detecting which mode we're in, just if RaspiWiFi is installed at all. Would this be a simple fix? I'm wondering if I can modify my existing installation to avoid setting up everything all over again.
The text was updated successfully, but these errors were encountered:
@@ -1,3 +1,8 @@
if [ "$_IP" ]; then
- /usr/bin/python3 /home/pi/pikaraoke/app.py --use-vlc >> /var/log/pikaraoke.log 2>&1 &+ if [ "$(ifconfig | grep "inet 10.0.0.1 ")" ]; then+ # Host mode; show instructions for connecting to wifi+ /usr/bin/python3 /home/pi/pikaraoke/app.py --use-vlc >> /var/log/pikaraoke.log 2>&1 &+ else+ /usr/bin/python3 /home/pi/pikaraoke/app.py --use-vlc --hide-raspiwifi-instructions >> /var/log/pikaraoke.log 2>&1 &+ fi
fi
(You can remove the existing if [ "$_IP" ] block and replace with the following):
if [ "$_IP" ];thenif [ "$(ifconfig | grep "inet 10.0.0.1 ")" ];then# Host mode; show instructions for connecting to wifi
/usr/bin/python3 /home/pi/pikaraoke/app.py --use-vlc >> /var/log/pikaraoke.log 2>&1&else
/usr/bin/python3 /home/pi/pikaraoke/app.py --use-vlc --hide-raspiwifi-instructions >> /var/log/pikaraoke.log 2>&1&fifi
Note that the main difference is the addition of the --hide-raspiwifi-instructions flag (undocumented) in the case that there is no local IP for 10.0.0.1. This IP should only be defined when we're in wifi access point mode.
I installed RaspiWiFi to be able to easily connect to new networks with an access point. All works smoothly now but I'm not seeing a misleading message on the splash screen instructing me to connect to the access point, even if I'm already connected to a wifi network and there's no access point running from the raspberry pi. It seems we aren't actually detecting which mode we're in, just if RaspiWiFi is installed at all. Would this be a simple fix? I'm wondering if I can modify my existing installation to avoid setting up everything all over again.
The text was updated successfully, but these errors were encountered: