node-wifi icon indicating copy to clipboard operation
node-wifi copied to clipboard

Raspberry pi UNRECOGNIZED OS error

Open mowi22 opened this issue 5 years ago • 5 comments

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

  • [x ] node API
  • [ ] cli

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

  • OS: linux
  • node-wifi version 2.0.7
  • wifi card: rpi wifi

mowi22 avatar Aug 22 '19 03:08 mowi22

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 ?

friedrith avatar Aug 26 '19 13:08 friedrith

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

Tobias-Keller avatar Jan 17 '20 20:01 Tobias-Keller

I got the same issue as @Tobias-Keller

abertranb avatar Jan 21 '20 15:01 abertranb

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

Tobias-Keller avatar Jan 25 '20 21:01 Tobias-Keller

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

mchsdl avatar Oct 14 '20 07:10 mchsdl