{"id":21214476,"url":"https://github.com/slice/netwatch","last_synced_at":"2026-01-31T19:01:42.097Z","repository":{"id":83250368,"uuid":"77691237","full_name":"slice/netwatch","owner":"slice","description":"A Lua script that watches your network and restarts it when it doesn't work. Linux only.","archived":false,"fork":false,"pushed_at":"2016-12-30T15:14:55.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-10T05:02:15.386Z","etag":null,"topics":["moonscript","ping"],"latest_commit_sha":null,"homepage":"","language":"MoonScript","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/slice.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-30T14:34:48.000Z","updated_at":"2017-11-03T04:32:06.000Z","dependencies_parsed_at":"2023-03-12T17:44:59.766Z","dependency_job_id":null,"html_url":"https://github.com/slice/netwatch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/slice/netwatch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slice%2Fnetwatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slice%2Fnetwatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slice%2Fnetwatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slice%2Fnetwatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slice","download_url":"https://codeload.github.com/slice/netwatch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slice%2Fnetwatch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28950279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T18:30:42.805Z","status":"ssl_error","status_checked_at":"2026-01-31T18:30:19.593Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["moonscript","ping"],"created_at":"2024-11-20T21:28:06.397Z","updated_at":"2026-01-31T19:01:42.082Z","avatar_url":"https://github.com/slice.png","language":"MoonScript","readme":"# `netwatch`\n\nnetwatch watches your network using `nmcli` (`networkmanager`) and restarts it\nif something goes wrong.\n\n## how it works\n\nnw opens a ping process, and monitors the time it takes to ping your ping\naddress (default: `8.8.8.8`). it also detects if the network is unreachable.\n\nif the network becomes to slow or the network becomes unreachable, it is\nrevived.\n\n### network revival\n\n1. network is restarted\n2. wait until connectivity to the network\n3. wait for internet connection (using ping)\n4. restrt ping, monitor your network\n\n## compiling\n\n### prerequisites\n\n- lua 5.3 (untested with other versions)\n- luarocks\n- moonscript\n- luasocket (sleep)\n\nuse moonscript to compile `nw.moon`\n\n## notification support\n\n`notify-send` will be used to send you notifications when your network is being\nrevived or it has been revived. you will only see these notifications if your\nnotification daemon is running.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslice%2Fnetwatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslice%2Fnetwatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslice%2Fnetwatch/lists"}