{"id":17925248,"url":"https://github.com/szh/pi-timedlight","last_synced_at":"2026-05-19T04:13:39.755Z","repository":{"id":82398494,"uuid":"441223397","full_name":"szh/pi-timedlight","owner":"szh","description":"A simple Raspberry Pi project to turn on a light during certain times of the day","archived":false,"fork":false,"pushed_at":"2022-01-02T15:06:13.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-25T06:53:31.438Z","etag":null,"topics":["iot","pi-zero-w","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/szh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2021-12-23T15:35:22.000Z","updated_at":"2023-03-05T06:15:01.000Z","dependencies_parsed_at":"2023-06-15T12:31:03.648Z","dependency_job_id":null,"html_url":"https://github.com/szh/pi-timedlight","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/szh/pi-timedlight","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szh%2Fpi-timedlight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szh%2Fpi-timedlight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szh%2Fpi-timedlight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szh%2Fpi-timedlight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/szh","download_url":"https://codeload.github.com/szh/pi-timedlight/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szh%2Fpi-timedlight/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33201543,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"online","status_checked_at":"2026-05-19T02:00:06.763Z","response_time":58,"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":["iot","pi-zero-w","python","raspberry-pi"],"created_at":"2024-10-28T20:53:12.797Z","updated_at":"2026-05-19T04:13:39.747Z","avatar_url":"https://github.com/szh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pi-timedlight\nA simple Raspberry Pi project to turn a LED on and off on a schedule.\n\nExample use case: Put in a toddler's room and set to turn on in the morning and off in the evening.\nToddler can be instructed to go back to bed if they wake up and the light is still off.\n\nDeveloped for the Pi Zero. Uses 1 LED.\n\n# Installing\nOn your Pi:\n```bash\nsudo apt-get update\nsudo apt-get install python3-pip python-dev pigpio\nsudo pip3 install gpiozero pigpio\n\nnano /etc/rc.local\n```\nNow add the following text before `exit 0`:\n\n```bash\npigpiod\npython3 /home/pi/timedlight.py \u003e /home/pi/log.txt \u0026\n```\n\nRun `sudo raspi-config`, go into \"Localization Options\" and set your timezone.\n\n**Important:** You must make sure that your Pi will sync with a time server on a regular basis.\n```bash\nsudo timedatectl set-ntp true\nsudo nano /etc/systemd/timesyncd.conf\n# Uncomment the last two lines:\nPollIntervalMinSec=32\nPollIntervalMaxSec=2048\n# Save the file.\n```\n\nExit and reboot (`sudo reboot`).\n\nCheck out comments in the code for configuration options.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fszh%2Fpi-timedlight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fszh%2Fpi-timedlight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fszh%2Fpi-timedlight/lists"}