Giter Club home page Giter Club logo

sweetd's People

Contributors

davidknezic avatar guggero avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

hypergori

sweetd's Issues

Old networks are never removed

Every time a connection is made to a new wifi network, it is appended to the wpa_supplicant.conf file. All previous connections persist and keep a higher priority.

We should always remove all previous connections when a new one is made.

It looks like we'll have to call wpa_cli list_networks to get all networks and then execute wpa_cli remove_network 0 for every entry, right before adding and saving a new network.

source: https://stackoverflow.com/a/43763119

Startup time is very long

The system startup time got very slow. It's almost 4 minutes until the network seems to be ready and sweetd can be started. Can it be that the network services only start with the first attempt to connect to an ssid?

Jan 17 15:44:59 raspberrypi sshd[393]: Server listening on 0.0.0.0 port 22.
Jan 17 15:44:59 raspberrypi sshd[393]: Server listening on :: port 22.
Jan 17 15:44:59 raspberrypi systemd[1]: Started OpenBSD Secure Shell server.
Jan 17 15:44:59 raspberrypi systemd[1]: Reached target Multi-User System.
Jan 17 15:44:59 raspberrypi systemd[1]: Reached target Graphical Interface.
Jan 17 15:44:59 raspberrypi systemd[1]: Starting Update UTMP about System Runlevel Changes...
Jan 17 15:44:59 raspberrypi systemd[1]: Started Update UTMP about System Runlevel Changes.
Jan 17 15:44:59 raspberrypi systemd[1]: Startup finished in 1.845s (kernel) + 43.323s (userspace) = 45.169s.
Jan 17 15:48:51 raspberrypi kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Jan 17 15:48:51 raspberrypi dhcpcd[378]: wlan0: carrier acquired
Jan 17 15:48:51 raspberrypi dhcpcd[378]: wlan0: IAID eb:7e:5d:5f
Jan 17 15:48:51 raspberrypi dhcpcd[378]: wlan0: adding address fe80::e50e:416b:34a5:7ad4
Jan 17 15:48:51 raspberrypi dhcpcd[378]: wlan0: soliciting an IPv6 router
Jan 17 15:48:52 raspberrypi dhcpcd[378]: wlan0: rebinding lease of 172.20.10.3
Jan 17 15:48:53 raspberrypi avahi-daemon[267]: Joining mDNS multicast group on interface wlan0.IPv6 with address fe80::e50e:416b:34a5:7ad4.
Jan 17 15:48:53 raspberrypi avahi-daemon[267]: New relevant interface wlan0.IPv6 for mDNS.
Jan 17 15:48:53 raspberrypi avahi-daemon[267]: Registering new address record for fe80::e50e:416b:34a5:7ad4 on wlan0.*.
Jan 17 15:48:57 raspberrypi dhcpcd[378]: wlan0: probing for an IPv4LL address
Jan 17 15:48:57 raspberrypi dhcpcd[378]: wlan0: DHCP lease expired
Jan 17 15:48:57 raspberrypi dhcpcd[378]: wlan0: soliciting a DHCP leas

Cannot connect to dispenser

During pairing, when trying to connect to the wifi of the dispenser, I often get this error:

Jan 17 09:16:11 raspberrypi hostapd[602]: uap0: STA 00:b3:62:25:4e:a4 IEEE 802.11: associated
Jan 17 09:16:11 raspberrypi hostapd[602]: uap0: STA 00:b3:62:25:4e:a4 RADIUS: starting accounting session 5C404630-0000000B
Jan 17 09:16:11 raspberrypi hostapd[602]: uap0: STA 00:b3:62:25:4e:a4 WPA: pairwise key handshake completed (RSN)
Jan 17 09:16:11 raspberrypi hostapd[602]: uap0: STA 00:b3:62:25:4e:a4 IEEE 802.11: disassociated

Introduce bluetooth pairing

Why? It allows for a better pairing experience when the phone doesn't have to connect to a wifi without internet connection. Discovery is much more seamless and it would even be possible to pair a specific device when multiple of them are powered on (no conflicting wifi hotspots).

How? The dispenser should act as a peripherial and announce a service that...

  • identifies the dispenser through a serial number
  • provides a list of nearby wifi networks
  • gives back the connection status
  • most imporantly, allows to provide ssid/password in order to connect to a network

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.