Skip to content

Instantly share code, notes, and snippets.

@suhlig
Last active September 12, 2017 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suhlig/f8e27b79c21c38c69bffd2531985d511 to your computer and use it in GitHub Desktop.
Save suhlig/f8e27b79c21c38c69bffd2531985d511 to your computer and use it in GitHub Desktop.

Freifunk is Down

Log on

  1. Connect the C.H.I.P. via USB to a Mac and execute screen /dev/tty.usbmodem*. It will bring up a serial console (via USB).
  2. Log on (you may have to press Enter before that, so that the login prompt appears)
  3. When done, exit with Control-a, Control-d (where Control-a is the prefix).

Check the WiFi connection

The C.H.I.P. is connected to the Freifunk network via WiFi. Use nmcli to check and, if necessary restart, the networking on the chip:

  • nmcli n connectivity should report full.
  • If it is none, restart the network with sudo sh -c "nmcli n off; nmcli n on"

Optionally, check the IP address assigned with ip address show wlan0.

  1. sudo TERM=linux nmtui
  2. Select "Activate a connection" adnd then "Freifunk".
  3. If that doesn't help, unplug the Freifunk router's power cable to make it reboot.

Installation of the Check-in with Snitch

As user "chip", crontab -e and add this entry:

5 * * * * curl --silent https://nosnch.in/xyz > /dev/null

where xyz is the token unique to this snitch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment