# WIFI SSID and pass set up via dashboard on RPI

**URL:** <https://discourse.nodered.org/t/wifi-ssid-and-pass-set-up-via-dashboard-on-rpi/83168>\
**Category:** General\
**Created:** [25 November 2023 06:30 UTC](https://discourse.nodered.org/t/wifi-ssid-and-pass-set-up-via-dashboard-on-rpi/83168 "2023-11-25T06:30:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![imperium85](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/imperium85/32/83662_2.png) [@imperium85](https://discourse.nodered.org/u/imperium85)\
**Post date:** [25 November 2023 06:30 UTC](https://discourse.nodered.org/t/wifi-ssid-and-pass-set-up-via-dashboard-on-rpi/83168/1 "2023-11-25T06:30:06Z")

</div>

Hi Team,

I have an application runnning nicely now ( thanks for some mammbers in here ) I have the data I wan't on my dash board but I have hit an other problem. If i deploy my system under an other network i need to set up the WIFI on the RPI logining in with SSH or using the dasktop to be able to use the internet connection. Is there a way to create a form on the dashboard that would ask for the SSID and PASS and would send it to the RPI to set up the WIFI connection?

Thanks

---

<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:** [25 November 2023 07:56 UTC](https://discourse.nodered.org/t/wifi-ssid-and-pass-set-up-via-dashboard-on-rpi/83168/2 "2023-11-25T07:56:54Z")

</div>

There are RPiOS desktop and command line tools for setting up wifi.  
Why do you want to do it through Node-red?

But yes, it should be possible with the exec nodes and command line tools, if the Raspberry has a screen and keyboard connected.

---

<div class="post-metadata">

**Author:** ![imperium85](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/imperium85/32/83662_2.png) [@imperium85](https://discourse.nodered.org/u/imperium85)\
**Post date:** [25 November 2023 08:11 UTC](https://discourse.nodered.org/t/wifi-ssid-and-pass-set-up-via-dashboard-on-rpi/83168/3 "2023-11-25T08:11:09Z")

</div>

I want to use touch screen in kiosk mode on a boot, so ther would be no option to set up WIFI for a "user" but throough the dashboard would be ideal

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [25 November 2023 10:21 UTC](https://discourse.nodered.org/t/wifi-ssid-and-pass-set-up-via-dashboard-on-rpi/83168/4 "2023-11-25T10:21:36Z")

</div>

I think the only solution is to use exec nodes to do what you want (or file in/out to configure the appropriate files).

---

<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:** [25 November 2023 12:12 UTC](https://discourse.nodered.org/t/wifi-ssid-and-pass-set-up-via-dashboard-on-rpi/83168/5 "2023-11-25T12:12:59Z")

</div>

You can probably obtain a list of available access points with this

```auto
sudo iwlist wlan0 scanning | grep ESSID | tr -d " " | sort | uniq

```

And to add a network to wpa\_supplicant.conf perhaps something like this

```auto
cat | sudo tee -a /etc/wpa_supplicant/wpa_supplicant.conf <<- !
network={
ssid: "wibble"
password: "password1"
}
!

```

I think it's possible to run that via an exec node but it's not easy. It's not pretty either.  
It will only work for straightforward wireless networks too.

RPiOS Bullseye offers some different network management options. There might be a more elegant solution now.

---

<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:** [24 January 2024 12:13 UTC](https://discourse.nodered.org/t/wifi-ssid-and-pass-set-up-via-dashboard-on-rpi/83168/6 "2024-01-24T12:13:44Z")

</div>

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