<commit_before>### Router Reset

[Karlduino](http://github.com/karlduino)

The aim of this project is to sense that the internet connection over
wifi is working. If it's not, shut off the router and turn it back on
again.

- [Arduino Yun](http://arduino.cc/en/Main/arduinoBoardYun)
- Red LED with 470 Ohm resistor to pin 6
- Green LED with 470 Ohm resistor to pin 5
- Yellow LED with 470 Ohm resistor to pin 3
- [Power switch tail](https://www.sparkfun.com/products/10747) attached to pin 8
- Blue LED with 470 Ohm resistor to pin 9
- slide switch attached to pin 12 (and ground)

Requires python script
[pingGoogle.py](https://github.com/karlduino/RouterReset/blob/master/Python/pingGoogle.py)
to be placed in `~/Python/` on the
[Linino](http://linino2013.wordpress.com/about/) side of the Arduino
Yun.

Here's what this does:

- Connect to wifi
- Test connection to [Google](www.google.com); light yellow LED during
  test
- If connection, light the green LED
- If no connection
    - light the red LED
    - turn the blue LED and power switch tail off for 30 sec
      and then back on (to reset wireless router connected to
      the power switch tail)
- The switch prevents the blue LED and power switch tail from being
  turned off

To be added:
- Log time and status to SD card, for viewing from the web

----

Licensed under the [MIT license](License.txt). ([More information](http://en.wikipedia.org/wiki/MIT_License).)
<commit_msg>revise link re linino<commit_after>### Router Reset

[Karlduino](http://github.com/karlduino)

The aim of this project is to sense that the internet connection over
wifi is working. If it's not, shut off the router and turn it back on
again.

- [Arduino Yun](http://arduino.cc/en/Main/arduinoBoardYun)
- Red LED with 470 Ohm resistor to pin 6
- Green LED with 470 Ohm resistor to pin 5
- Yellow LED with 470 Ohm resistor to pin 3
- [Power switch tail](https://www.sparkfun.com/products/10747) attached to pin 8
- Blue LED with 470 Ohm resistor to pin 9
- slide switch attached to pin 12 (and ground)

Requires python script
[pingGoogle.py](https://github.com/karlduino/RouterReset/blob/master/Python/pingGoogle.py)
to be placed in `~/Python/` on the
[Linino](http://linino.org) side of the Arduino
Yun.

Here's what this does:

- Connect to wifi
- Test connection to [Google](www.google.com); light yellow LED during
  test
- If connection, light the green LED
- If no connection
    - light the red LED
    - turn the blue LED and power switch tail off for 30 sec
      and then back on (to reset wireless router connected to
      the power switch tail)
- The switch prevents the blue LED and power switch tail from being
  turned off

To be added:
- Log time and status to SD card, for viewing from the web

----

Licensed under the [MIT license](License.txt). ([More information](http://en.wikipedia.org/wiki/MIT_License).)

{'fraction_non_alphanumeric': 0.08888114325548972, 'fraction_numerical': 0.01951899616591147, 'mean_word_length': 3.606741573033708, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4859689', 'n_tokens_mistral': 935, 'n_tokens_neox': 848, 'n_words': 391}