How to manage WIFI settings via dashboard

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

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

2 Likes

Thank you Colin, but nothing changes:
image

ifconfig -a works fine!
iwconfig NOT

???

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

1 Like

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

1 Like

Thx, good tip, I do more research.

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: