{"id":19475934,"url":"https://github.com/airbr/uptime","last_synced_at":"2025-10-15T09:32:45.949Z","repository":{"id":74388416,"uuid":"346589971","full_name":"airbr/uptime","owner":"airbr","description":"My early attempt at creating an uptime monitor using Curl and Shell","archived":false,"fork":false,"pushed_at":"2021-06-04T03:25:08.000Z","size":178,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-26T16:55:53.348Z","etag":null,"topics":["curl","shell"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/airbr.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":"2021-03-11T05:35:23.000Z","updated_at":"2021-06-08T22:10:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"f4a8b64b-f105-43d0-b320-9d66a9922d1d","html_url":"https://github.com/airbr/uptime","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/airbr/uptime","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airbr%2Fuptime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airbr%2Fuptime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airbr%2Fuptime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airbr%2Fuptime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/airbr","download_url":"https://codeload.github.com/airbr/uptime/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airbr%2Fuptime/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268422210,"owners_count":24248078,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["curl","shell"],"created_at":"2024-11-10T19:35:42.713Z","updated_at":"2025-10-15T09:32:40.902Z","avatar_url":"https://github.com/airbr.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Uptime\n\n![Screenshot of the output of the shell](screenshot.png)\n\nA shell program that reads a list of URL's line by line and checks their connectivity/status with curl. The aim of this tool is to promote network health and awareness with a little customization of the output and reports possible at some point. \n\n# TODO:\n\n1. Make output of shell script tabular so it can be consumed by other programs more effectively\n2. Figure out a way to make two instances of the script talk to each other to get connectivity from two points to compare and reach a combined result.\n\n\n### Usage (Development)\n\n1. Put your URL's in `urls.txt`;\n\n2. Get results printed to standard output \n\n`sh uptime.sh` \n\n### Usage (Master branch)\n\n1. Put your URL's in `urls.txt`;\n\n2. Generate a temporary report:\n\n`sh uptime.sh`\n\nWrite report to a new file:\n\n`sh uptime.sh -a`\n\nWrite a crude formatted file by success/failure:\n\n`sh uptime.sh -f`\n\n## Progress\n\nSmall batch of commits in March - picking it back up in May!\n\n * Passed initial Shellcheck\n * Tested on a collection of URLs of the world's most visited sites. Most all were up as you would expect.\n\n Development:\n\nJust a few shellcheck errors to follow up on after paring it down.\n ```\n$ shellcheck uptime.sh \nIn uptime.sh line 20:\n    curl=$(curl -Is --max-time 15 \"$line\");\n    ^--^ SC2034: curl appears unused. Verify use (or export if used externally).\nIn uptime.sh line 23:\n      printf \"$line $res No\";\n             ^-------------^ SC2059: Don't use variables in the printf format string. Use printf '..%s..' \"$foo\".\nIn uptime.sh line 26:\n      printf \"$line $res Yes\";\n             ^--------------^ SC2059: Don't use variables in the printf format string. Use printf '..%s..' \"$foo\".\nFor more information:\n  https://www.shellcheck.net/wiki/SC2034 -- curl appears unused. Verify use (...\n  https://www.shellcheck.net/wiki/SC2059 -- Don't use variables in the printf...\n```\n\n\n# Goals\n\n* Write results in crude/basic tabular format for consumption by other programs\n* Improve reliability and accuracy\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fairbr%2Fuptime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fairbr%2Fuptime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fairbr%2Fuptime/lists"}