GithubHelp home page GithubHelp logo

gcwnow / gcwconnect Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pcercuei/gcwconnect

1.0 1.0 3.0 2.13 MB

A simple wireless configuration manager for the GCW-Zero

Shell 0.37% Python 99.63%

gcwconnect's People

Contributors

mthuurne avatar nebuleon avatar pcercuei avatar senquack avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

gcwconnect's Issues

Show MAC address

Some WiFi routers are configured to use MAC address whitelists. Therefore it would be useful if GCW Connect could show the MAC address of the WiFi module of the unit it runs on.

Newly-added URL-escaping of ESSID in *.conf filenames is not backward-compatible with files saved before this change.

This bug is resulting from changes made in c872c89

Detailed bug description: The presence of AP configuration files saved with previous versions of gcwconnect that did not URL-escape filenames can cause gcwconnect to crash. This occurs when their ESSID contained characters that were previously backslash-escaped but are now either URL-escaped (special chars) or not escaped at all (a dash, for instance). Gcwconnect will parse and list the APs in these files, but any attempts to connect through them or delete them from the list will result in a crash.

Example:
An AP named HOME-1234 would previously have been saved to 'HOME-1234.conf', whereas now it would be saved to or loaded from 'HOME-1234.conf'. If you attempt to connect to HOME-1234 with this older file present, it crashes and this error results:
Traceback (most recent call last):
File "./gcwconnect.py", line 1591, in
shutil.copy2(netconfdir + quote_plus(ssid) + ".conf", sysconfdir+"config-"+wlan+".conf")
File "/usr/lib/python2.7/shutil.py", line 130, in copy2
File "/usr/lib/python2.7/shutil.py", line 82, in copyfile
IOError: [Errno 2] No such file or directory: '/usr/local/home/.local/share/gcwconnect/networks/HOME-0942.conf'

Proposed solution:
Save AP configurations in a different subfolder than 'networks/' in /usr/local/home/.local/share/gcwconnect/ , perhaps 'saved_aps/'. If gcwconnect detects the presence of the old networks/ subfolder, it's obviously from an older firmware and should move each of its configuration files to the new folder, renaming them with the new URL-escaping method based on the ESSID value inside each. The old networks/ subfolder can then be removed.

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.