{"id":19233836,"url":"https://github.com/onnesok/check_internet_connection","last_synced_at":"2026-04-28T01:33:16.833Z","repository":{"id":159615598,"uuid":"495142490","full_name":"Onnesok/check_internet_connection","owner":"Onnesok","description":"check if internet is available or not","archived":false,"fork":false,"pushed_at":"2022-05-27T09:41:22.000Z","size":215,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-11T07:11:08.880Z","etag":null,"topics":["python","raspberry-pi"],"latest_commit_sha":null,"homepage":"","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/Onnesok.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":"2022-05-22T18:23:35.000Z","updated_at":"2024-07-30T17:07:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"994cbac0-3718-43fd-9cde-0cfcec746959","html_url":"https://github.com/Onnesok/check_internet_connection","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Onnesok/check_internet_connection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Onnesok%2Fcheck_internet_connection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Onnesok%2Fcheck_internet_connection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Onnesok%2Fcheck_internet_connection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Onnesok%2Fcheck_internet_connection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Onnesok","download_url":"https://codeload.github.com/Onnesok/check_internet_connection/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Onnesok%2Fcheck_internet_connection/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32362781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["python","raspberry-pi"],"created_at":"2024-11-09T16:12:03.055Z","updated_at":"2026-04-28T01:33:16.819Z","avatar_url":"https://github.com/Onnesok.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# check_internet_connection using raspberry pi 4\n\n[![License Badge](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n![Compatibility](https://img.shields.io/badge/python-3-brightgreen.svg)\n![Modified](https://img.shields.io/badge/Coverage-working-orange)\n\n## Details\n\nThis script will check if we get a response from google or not and from that we can determine if our internet connection is available or not. By checking our connection we can use it with other scripts and logics to do some interesting things.\n\n\nFor example in this script if we are not connected to internet then we will turn on a led; else we won't. If we lose connection even once we'll light up led even after restoring connection. By this way we can determine if our internet was ever lost while this script was running.\n\n\n## clone repo\n\n```bash\ngit clone https://github.com/Onnesok/check_internet_connection\n```\n\n## Instruction\nFirst check if ```python-rpi.gpio```  is installed or not. so, for that open your terminal and write:\n```bash\npip install RPi.GPIO\n```\nNow connect led positive part to raspberry pi ```GPIO pin 18``` and ```negative to ground.``` you're done....\nAfter that you're good to run the script.\nTo run it open your terminal and write.\n\n```bash\ncd check_internet_connection\nsudo python3 internet_connection_checker.py\n```\n\u003cimg src=\"https://github.com/Onnesok/check_internet_connection/blob/main/raspberry/raspberry_pi_gpio.png\" alt=\"Avatar\" clas=\"center\" width=\"600\" height=\"300\" /\u003e\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonnesok%2Fcheck_internet_connection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonnesok%2Fcheck_internet_connection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonnesok%2Fcheck_internet_connection/lists"}