Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

[BUG] WiFi Changes do not work on Raspberry Pi #14

@Tekunalogy

Description

@Tekunalogy

Describe the bug

The following command used by DWE_OS for WiFi manager, fails in the Raspberry Pi OS.

nmcli --terse --fields active,ssid,bssid,mode,chan,freq,signal,security,wpa-flags,rsn-flags device wifi list

Network Manager is not running on RPi since RPi uses the older dhcpcd by default.

To Reproduce

Steps to reproduce the behavior:

Expected behavior

DWE_OS should run on the host IP on port 5000.

Screenshots

pi@raspberrypi:~/Documents/DWE_OS/ui $ sudo npm start

> @deepwaterexploration/[email protected] start
> node bin/index.js

Error: Command failed: nmcli --terse --fields active,ssid,bssid,mode,chan,freq,signal,security,wpa-flags,rsn-flags device wifi list
Error: NetworkManager is not running.

    at ChildProcess.exithandler (child_process.js:383:12)
    at ChildProcess.emit (events.js:400:28)
    at maybeClose (internal/child_process.js:1088:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:296:5) {
  killed: false,
  code: 8,
  signal: null,
  cmd: 'nmcli --terse --fields active,ssid,bssid,mode,chan,freq,signal,security,wpa-flags,rsn-flags device wifi list'
}
index.js

default command

Commands:
  index.js                      default command                        [default]
  index.js start [port] [host]  start the server
  index.js reset                reset the settings file

Options:
  --version  Show version number                                       [boolean]
  --help     Show help                                                 [boolean]

Error: Command failed: nmcli --terse --fields active,ssid,bssid,mode,chan,freq,signal,security,wpa-flags,rsn-flags device wifi list
Error: NetworkManager is not running.

    at ChildProcess.exithandler (child_process.js:383:12)
    at ChildProcess.emit (events.js:400:28)
    at maybeClose (internal/child_process.js:1088:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:296:5) {
  killed: false,
  code: 8,
  signal: null,
  cmd: 'nmcli --terse --fields active,ssid,bssid,mode,chan,freq,signal,security,wpa-flags,rsn-flags device wifi list'
}
^C^C^C^\Quit

Environment (please complete the following information):

  • OS: Raspberry Pi OS

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions