Git Product home page Git Product logo

Comments (7)

raycastbot avatar raycastbot commented on July 20, 2024

Thank you for opening this issue!

🔔 @koinzhang @louishuyng you might want to have a look.

💡 Author and Contributors commands

The author and contributors of koinzhang/wi-fi can trigger bot actions by commenting:

  • @raycastbot close this issue Closes the issue.
  • @raycastbot rename this issue to "Awesome new title" Renames the issue.
  • @raycastbot reopen this issue Reopen the issue.

from extensions.

j3lte avatar j3lte commented on July 20, 2024

The issue here is that the package is using node-wifi, which hasn't been updated for a couple of years: https://www.npmjs.com/package/node-wifi

I experienced the same issue and investigated the package. It runs the following command to get the info:

/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport --getinfo

If you run this in your terminal, you will get the following message:

WARNING: The airport command line tool is deprecated and will be removed in a future release.
For diagnosing Wi-Fi related issues, use the Wireless Diagnostics app or wdutil command line tool.

So this is not an easy fix, we might have to replace the node-wifi package with some own solution

from extensions.

that70schris avatar that70schris commented on July 20, 2024

hmm, not sure if this helps but I'm using this script for toggling Wifi instead:

interface=$(networksetup -listnetworkserviceorder | grep 'Wi-Fi' | grep 'en' | sed -E 's/.*(en[0-9]).*/\1/')

if [[ $(networksetup -getairportpower $interface) =~ 'On' ]]; then
	networksetup -setairportpower $interface off
else
	networksetup -setairportpower $interface on
fi

maybe networksetup via bash could be used for the rest as well? I can tell you this performs much faster than the toggle from the extension did

from extensions.

koinzhang avatar koinzhang commented on July 20, 2024

Currently almost all major wifi node libraries use the above command to get wifi, I haven't found a better wifinode library for the time being, if you guys have a good recommendation, feel free to let me know!

from extensions.

raycastbot avatar raycastbot commented on July 20, 2024

This issue has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 10 days to keep our backlog clean 😊

from extensions.

guiltyvictim avatar guiltyvictim commented on July 20, 2024

Still not working as of June.

from extensions.

j3lte avatar j3lte commented on July 20, 2024

@guiltyvictim and still not possible to fix because Apple doesn't provide a way to get the status programmatically. This is not so much an issue with the extension, but with Apple

from extensions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.