Skip to content

Conversation

@ahmad-abuziad
Copy link
Contributor

@ahmad-abuziad ahmad-abuziad commented Jun 12, 2025

Scenario

  • Enable WIFI
  • Connect to WIFI
  • Store the Local IP in file
  • Watch WIFI connection
  • Retry connect on failure
  • If failed connect to another WIFI
  • Store the new Local IP in file

Improvements

  • Notify another service about the new IP
  • Store available wifi's credentials in file and read it from there
  • Config file that contains the ip, wifi, credentials, network card
  • Use variables
  • Check ethernet cards
  • Create nmcli as a resource/function

Notes

  • "nmcli radio wifi off" will produce an error because "Connect to WIFI" will try to connect but the wifi is off

Terminal Commands

  • nmcli device wifi list
  • nmcli device wifi connect "SSID" password ""
  • nmcli device wifi connect "SSID" password "" ifname ""
  • nmcli device
  • nmcli connection show --active
  • nmcli device disconnect wlp3s0

@ahmad-abuziad ahmad-abuziad marked this pull request as ready for review June 12, 2025 13:08
@ahmad-abuziad ahmad-abuziad marked this pull request as draft June 12, 2025 13:08
@purpleidea purpleidea force-pushed the master branch 2 times, most recently from 37fdda9 to 5f4ae05 Compare October 2, 2025 07:05
@purpleidea purpleidea force-pushed the master branch 2 times, most recently from 3221a93 to 4ad2b9a Compare December 12, 2025 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant