# Wifi Settings UI Dashboard for Bookworm nmcli

**URL:** <https://discourse.nodered.org/t/wifi-settings-ui-dashboard-for-bookworm-nmcli/93906>\
**Category:** General\
**Created:** [14 December 2024 19:24 UTC](https://discourse.nodered.org/t/wifi-settings-ui-dashboard-for-bookworm-nmcli/93906 "2024-12-14T19:24:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jurg1505](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@Jurg1505](https://discourse.nodered.org/u/Jurg1505)\
**Post date:** [14 December 2024 19:24 UTC](https://discourse.nodered.org/t/wifi-settings-ui-dashboard-for-bookworm-nmcli/93906/1 "2024-12-14T19:24:40Z")

</div>

I want to use the Wifi settings UI Dashboard with Bookworm.  
[Wifi settings UI Dashboard](https://flows.nodered.org/flow/c3c7a393b05f6383b888bdee39aa5fa5)  
The outcome is the following;

```auto
msg.payload : Object
object
ssid: "Test01"
password: "1234"

```

I have no idee how to make it ;

```auto
nmcli device wifi con ssid Test01 password "1234"

```

So i can use it in the command line.

I have tried a function block;

```auto
var data = msg.payload
var command = `nmcli device wifi con ssid "${data.ssid}" password "${data.password}"'`
msg.payload = command
return msg

```

But the outcome is; "nmcli device wifi con ssid "Test01" password "1234"'"

Can someone help me please ?

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [14 December 2024 20:56 UTC](https://discourse.nodered.org/t/wifi-settings-ui-dashboard-for-bookworm-nmcli/93906/2 "2024-12-14T20:56:22Z")

</div>

That flow updates /etc/wpa\_supplicant/wpa\_supplicant.conf, but in Bookworm that is not used for network credentials so your flow achieves nothing.

The "official" way to setup networking is either using the tools in the RPi Imager or else via raspi-config.

---

<div class="post-metadata">

**Author:** ![Jurg1505](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@Jurg1505](https://discourse.nodered.org/u/Jurg1505)\
**Post date:** [14 December 2024 21:10 UTC](https://discourse.nodered.org/t/wifi-settings-ui-dashboard-for-bookworm-nmcli/93906/3 "2024-12-14T21:10:09Z")

</div>

In Bookworm \< nmcli device wifi con ssid Test01 password "1234" \> works on the commend line.

---

<div class="post-metadata">

**Author:** ![magicfire](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/magicfire/32/93420_2.png) [@magicfire](https://discourse.nodered.org/u/magicfire)\
**Post date:** [15 December 2024 02:28 UTC](https://discourse.nodered.org/t/wifi-settings-ui-dashboard-for-bookworm-nmcli/93906/4 "2024-12-15T02:28:36Z")

</div>

> [@Jurg1505](#):
>
> ```auto
> var command = `nmcli device wifi con ssid "${data.ssid}" password "${data.password}"'`
> 
> ```

Try this

```auto
[
    {
        "id": "995061048c706d6e",
        "type": "tab",
        "label": "流程 1",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "f6cde6d32be766eb",
        "type": "function",
        "z": "995061048c706d6e",
        "name": "function 1",
        "func": "msg.payload = \n{\n ssid: \"Test01\",\npassword: \"1234\"\n}\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 100,
        "y": 220,
        "wires": [
            [
                "6dece5d4154264f9"
            ]
        ]
    },
    {
        "id": "77c9b67ab488af4d",
        "type": "inject",
        "z": "995061048c706d6e",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 70,
        "y": 140,
        "wires": [
            [
                "f6cde6d32be766eb"
            ]
        ]
    },
    {
        "id": "6dece5d4154264f9",
        "type": "function",
        "z": "995061048c706d6e",
        "name": "function 2",
        "func": "var command = \"nmcli device wifi con ssid \" + msg.payload.ssid + \" password \\\"\" + msg.payload.password +\"\\\"\";\nmsg.payload = command;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 280,
        "y": 200,
        "wires": [
            [
                "434be9b283ea07a3"
            ]
        ]
    },
    {
        "id": "434be9b283ea07a3",
        "type": "debug",
        "z": "995061048c706d6e",
        "name": "debug 21",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 480,
        "y": 200,
        "wires": []
    }
]

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [15 March 2025 02:28 UTC](https://discourse.nodered.org/t/wifi-settings-ui-dashboard-for-bookworm-nmcli/93906/5 "2025-03-15T02:28:41Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
