HowTo: Node Red – Display available Wifi networks nearby

I have to admit that I have not yet found a proper use for this feature, but I’m sure someone will benefit.

This article explains how you can use NodeRed and a RaspberryPi to display the currently available Wifi’s in your area.

Hints for our lovely english readers: Basically, many of the articles on are translations from the original german articles. Therefore, it may happen here and there that some illustrations are not available in english and that some translations are weird/strange/full of mistakes or generally totaly wrong. So if you find some obvious (or also not obvious) mistakes don't hesitate to leave us a hint about that in the comment section. 
Also please don't get confused, that instead of a "dot" often a "comma" is used as decimal separator. 🙂

Safety instructions

I know the following hints are always a bit annoying and seem unnecessary. But unfortunately, many people who knew it "better" from carelessness lost their eyes, fingers or other things or hurt themselves. In comparison, a loss of data is almost not worth mentioning, but even these can be really annoying. Therefore, please take five minutes to read the safety instructions. Even the coolest project is worth no injury or other annoyance.

Affiliate links / advertising links

The links to online shops listed here are so-called affiliate links. If you click on such an affiliate link and shop via this link, receives a commission from the online shop or provider concerned. The price doesn't change for you. If you do your purchases via these links, you will support in being able to offer further useful projects in the future. 🙂


Helpful Articles:
Of course NodeRed should already be installed so that you can take over this configuration.
How to prepare a RaspberryPi and then install NodeRed on it, is described in the following articles.
RaspberryPi – Setting up for Nerdiys!
RaspberryPi – The first configuration
RaspberryPi – Controlling the RaspberryPi via SSH
NodeRed – Installing NodeRed on the RaspberryPi
NodeRed – Install New Nodes

Required tools:

Required material:

In the following list you will find all the parts you need to implement this article.

Log in to the NodeRed configuration interface

Before you can edit your NodeRed configuration you must - if activated - first log in to the NodeRed configuration interface.

View of the login screen. Here you have to enter the login details that you entered during the configuration of the login. Information about this can be found in the article NodeRed - User Login Setup.

Install the required node

In order to be able to retrieve this current list of available W-Lan’s you need to install the node “node-red-contrib-wifiscan”. How to install your Nodes is explained in the article NodeRed – Install New Nodes.

Import Node Code

In this example, pressing an Inject node retrieves the current list and its formatted output is printed via a debug node. Of course, you can also use other nodes here to start or output the “Wifi-list”.

To import this example into your NodeRed installation, you need to import the node code below.

This is the output of the example in the NodeRed Editor.
View of the node configuration.


[{"id":"a7fc9bb7.ffa278","type":"wifiscan","z":"8c9f8f17.13eb78","name":"","x":470,"y":720,"wires":[["1166b120.2b169f"]]},{"id":"7aaa6018.cd772","type":"inject","z":"8c9f8f17.13eb78","name":"start scan","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":300,"y":720,"wires":[["a7fc9bb7.ffa278"]]},{"id":"1166b120.2b169f","type":"function","z":"8c9f8f17.13eb78","name":"build list","func":"var temp=\"\";\n    for (var i = 0; i<msg.payload.length; i++) \n    {\n        temp=temp+\"SSID: \"+msg.payload[i].ssid;\n        temp=temp+\", Strength: \"+msg.payload[i].signal_level+\"dBm\";\n        temp=temp+\", Mac: \"+msg.payload[i].mac;\n        temp=temp+\", Channel: \"+msg.payload[i].channel;\n        temp=temp+\"\\n\";\n    }\n\nmsg.payload=temp;\nreturn msg;\n","outputs":1,"noerr":0,"x":640,"y":720,"wires":[["392c3b92.f72184"]]},{"id":"392c3b92.f72184","type":"debug","z":"8c9f8f17.13eb78","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":790,"y":720,"wires":[]}]

Have fun with the project

I hope everything worked as described. If not or you have any other questions or suggestions, please let me know in the comments. Also, ideas for new projects are always welcome. 🙂

P.S. Many of these projects - especially the hardware projects - cost a lot of time and money. Of course I do this because I enjoy it, but if you appreciate it that I share these information with you, I would be happy about a small donation to the coffee box. 🙂

Buy Me a Coffee at   

Leave a Reply

Your email address will not be published.