node-wifi
node-wifi copied to clipboard
Raspberry pi UNRECOGNIZED OS error
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)
- install electron
- add node-wifi to package.json
- build with docker-compose to balenaOS / linux-arm32
- run on rpi
- fails on wifi.init
- 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
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 ?
I got "spawn nmcli ENOENT" on an raspberry, on osx working fine
I got the same issue as @Tobias-Keller
@abertranb got it working...follow this -> https://www.raspberrypi.org/forums/viewtopic.php?t=179576
@Tobias-Keller what post from the link are you refering to? I also got this problem on raspberry.