How to manage WIFI settings via dashboard

#1

Hi,
i use a NanoPi with ubuntu, snapd, node-red and want to manage WIFI settings via forms and exec nodes

My image comes with "nmcli" (Network manager cli) with works perfect via putty (command line)
http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO2#WiFi
CLI commands works fine:

image

Via exec-nodes it is NOT possible to use the commands.

FYI:
Other cli-commands work fine (example "timedatectl")

What can i try? Can anybody gives me a tip?

Thank you
Alexander

0 Likes

#2

Try giving it the full path to the nmcli command. which nmcli will tell you where it is.

1 Like

#3

Thank you Colin, but nothing changes:
image

0 Likes

#4

ifconfig -a works fine!
iwconfig NOT

???

0 Likes

#5

You are running in a snap which is a virtual environment. So nmcli is not included inside the snap.

1 Like

#6

By default we use strict confinement. You can relax that by using --classic mode..

1 Like

#8

Thx, good tip, I do more research.

0 Likes

#9

So, i switched back to an "nativ" installation of node-red without snap.
In this case i can use NMCLI directly from Node-RED

I want to learn more about snapd, but at the moment i have not the time :sweat:

I switched to snap because i had problems with connecting to ttyUSB0, But for that i also have found a solution. See this post:

0 Likes