{"id":17723772,"url":"https://github.com/ncw/router-rebooter","last_synced_at":"2025-03-31T13:55:25.096Z","repository":{"id":140294372,"uuid":"2072248","full_name":"ncw/router-rebooter","owner":"ncw","description":"Reboots your Netgear DG834 ADSL router when the internet connection drops","archived":false,"fork":false,"pushed_at":"2011-07-21T13:40:21.000Z","size":100,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-02T06:05:09.767Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.craig-wood.com/nick/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ncw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-07-19T13:43:42.000Z","updated_at":"2023-05-16T01:10:10.000Z","dependencies_parsed_at":"2023-03-13T10:43:52.072Z","dependency_job_id":null,"html_url":"https://github.com/ncw/router-rebooter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncw%2Frouter-rebooter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncw%2Frouter-rebooter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncw%2Frouter-rebooter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncw%2Frouter-rebooter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ncw","download_url":"https://codeload.github.com/ncw/router-rebooter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246477460,"owners_count":20784003,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-25T15:44:00.148Z","updated_at":"2025-03-31T13:55:25.071Z","avatar_url":"https://github.com/ncw.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Router Rebooter\n===============\n\nReboot your Netgear DG834 ADSL router when your ADSL connection drops.\n\nI wrote this because my router seems to lock up once a week or so, and requires a reboot.  This annoyed the rest of the family a lot so I automated the reboot process.\n\nInstallation\n------------\n\nCheck out this project (say in your home directory)\n\nEdit the top of the file which looks like this\n\n    # Change the config here and then comment out the line below\n    raise AssertionError(\"Unconfigured\")\n    url = \"http://1.2.3.4/setup.cgi\" # replace 1.2.3.4 with the IP of your router\n    username = \"admin\"\n    password = \"routerpassword\"     # the password for your router\n    external_addr = \"8.8.8.8\"       # choose an external IP just at the other end of your ADSL connection\n    EMAIL = \"you@your-email-account.com\" # email address for notifications\n\nFind the external_addr with traceroute\n\nCrontab\n-------\n\nNow add the script onto your crontab (it can run as a user not root) something like this.  Edit your crontab by typing \"crontab -e\" and add lines like this\n\n    # Reboot the router if it has gone wrong\n    */5 * * * * /home/user/router-rebooter/router_rebooter.py \u003e\u003e/tmp/router_rebooter.log 2\u003e\u00261\n\nChange the path as appropriate.\n\nIn Use\n------\n\nThis will check your ADSL line is up every 5 minutes and if it isn't it will reboot your router.\n\nTesting\n-------\n\nTo test the script, change external_addr to something which definitely isn't reachable eg \"1.1.1.1\" (test first with ping!)\n\nLicense (Simplified BSD)\n------------------------\n\nCopyright (C) 2011 Nick Craig-Wood \u003cnick@craig-wood.com\u003e. All rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification, are\npermitted provided that the following conditions are met:\n\n   1. Redistributions of source code must retain the above copyright notice, this list of\n      conditions and the following disclaimer.\n\n   2. Redistributions in binary form must reproduce the above copyright notice, this list\n      of conditions and the following disclaimer in the documentation and/or other materials\n      provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY NICK CRAIG-WOOD ``AS IS'' AND ANY EXPRESS OR IMPLIED\nWARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL NICK CRAIG-WOOD OR\nCONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\nCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\nNEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF\nADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\nAuthor\n------\n\nNick Craig-Wood\n\nnick@craig-wood.com\n\nhttp://www.craig-wood.com/nick/\n\nhttps://github.com/ncw/router-rebooter\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncw%2Frouter-rebooter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fncw%2Frouter-rebooter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncw%2Frouter-rebooter/lists"}