friedrith / node-wifi

📶 NodeJS tool to manage wifi (connections, scans)
MIT License
395 stars 161 forks source link

Raspberry pi UNRECOGNIZED OS error #81

Open mowi22 opened 5 years ago

mowi22 commented 5 years ago

wifi.init thows error UNRECOGNIZED OS error running on raspbarry pi inside of a multi-container docker-compose file running node 10 in an electron/ react application. Im building the image via balenaOS

Expected Behavior

Expected it to recognize linux and use linux js files

Current Behavior

just throws an error when on the pi. Works fine on a Mac within Electron

Affected features

Possible Solution

a way to specify the linux os via a param

Steps to Reproduce (for bugs)

  1. install electron
  2. add node-wifi to package.json
  3. build with docker-compose to balenaOS / linux-arm32
  4. run on rpi
  5. fails on wifi.init
  6. Unrecognized error is thrown

Context

I'm trying to display networks to a user via a react application. Basically, show user current wifi router and allow them to switch via the app.

Your Environment

friedrith commented 5 years ago

Hi,

Most of the time, management of wifi is quite hard inside virtual machine or docker. Are you sute your container has access to a wifi card ?

Tobias-Keller commented 4 years ago

I got "spawn nmcli ENOENT" on an raspberry, on osx working fine

abertranb commented 4 years ago

I got the same issue as @Tobias-Keller

Tobias-Keller commented 4 years ago

@abertranb got it working...follow this -> https://www.raspberrypi.org/forums/viewtopic.php?t=179576

mchsdl commented 3 years ago

@Tobias-Keller what post from the link are you refering to? I also got this problem on raspberry.