Skip to content

[Enhancement] Set the connection profile for AP mode to -999 #294

Description

@SBCV-apegram

As a way to keep the configuration access point available in case there is no known Wi-Fi network or wired network, you can set the WIFI_AP connection priority to -999. That way, it doesn't need to be deleted when adding new network credentials. If no known networks are found, the player will automatically broadcast the configuration AP. If a user doesn't want a fallback AP to be broadcast, there could be a checkbox in the admin console to set the connection.autoreconnect property to no.

If this isn't baked into a future image, you can accomplish something similar with the following commands run in ssh (tested on Raspberry Pi 5 running the 5.3.5 image):

sudo nmcli connection add con-name Fallback type wifi mode ap ifname wlan0 ssid $HOSTNAME connection.autoconnect-priority -999 wifi-sec.key-mgmt wpa-psk wifi-sec.psk piplayer 802-11-wireless.band bg 802-11-wireless.channel 6 ipv4.method shared ipv4.addresses 192.168.100.1/24 ipv6.method disabled

This isn't affected by any of the pisignage scripts (it's treated like any other network profile), but I don't know if it will persist through updates. The Wi-Fi name will be the hostname of the player, and the password is piplayer. If there are no known networks in range, this SSID will broadcast allowing you to add a new Wi-Fi network.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions