Coder Social home page Coder Social logo

ewine-connectivity-manager's People

Contributors

k33rs avatar

Watchers

 avatar  avatar

Forkers

cclauss

ewine-connectivity-manager's Issues

Cleanup endpoints

As discussed, let's cleanup a bit the endpoints:

networks/ -> List of stored networks in /etc/networks/interfaces.
scan/ -> Scans available network, requires the interface name (e.g wlan0)

If you want, you can add the /interfaces.

Remember the PR for this one.

Wifi preference support

Can we add "preferences" to wifi networks? I.e, user prefers connecting to network2 even if it has lower signal than network1 (also available).

DB issue in fresh install

$ python wifi_rest.py
Traceback (most recent call last):
  File "wifi_rest.py", line 261, in <module>
    _init_db()
  File "wifi_rest.py", line 52, in _init_db
    db = _get_db()
  File "wifi_rest.py", line 40, in _get_db
    db = g._database = sqlite3.connect(app.config['DB_INSTANCE'])
sqlite3.OperationalError: unable to open database file

Remove implementation details from api

I can't recall exactly if we talked about this, but I'm putting this down so as not to forget.

Todo: Let's remove those "db"-prefixed endpoints from the API. If the configuration can be persisted in a file or in a database, that's an implementation detail. Implementation details should not leak in the APIs. Why would the api user care where the info is stored?. The decision of wether to use a file, db or both could be made at the init time of the service.

Same applies to the reference to "file" or "database" from the "purpose" documentation.

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.