{"id":21481699,"url":"https://github.com/jorricks/huelightsonping","last_synced_at":"2026-07-04T04:04:00.566Z","repository":{"id":137773401,"uuid":"104868164","full_name":"Jorricks/HueLightsOnPing","owner":"Jorricks","description":"Turn your lights on or off depending on the reaction of a ping.","archived":false,"fork":false,"pushed_at":"2017-09-26T13:17:33.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T18:49:39.602Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Jorricks.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":"2017-09-26T09:59:14.000Z","updated_at":"2017-09-26T11:57:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"ce34deee-4a74-4e80-a6e4-1c77697d065d","html_url":"https://github.com/Jorricks/HueLightsOnPing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jorricks%2FHueLightsOnPing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jorricks%2FHueLightsOnPing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jorricks%2FHueLightsOnPing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jorricks%2FHueLightsOnPing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jorricks","download_url":"https://codeload.github.com/Jorricks/HueLightsOnPing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244006396,"owners_count":20382443,"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-11-23T12:27:51.657Z","updated_at":"2025-10-28T23:18:28.675Z","avatar_url":"https://github.com/Jorricks.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hue lights on ping\nSimple state program that has the option to keep your lights on or off or turn them on/off based on\nthe result of a ping to a specific IP.\n\n## Installation\n\n- Get the code from the github (get it with `git clone https://github.com/JorricksTU/HueLightsOnPing.git`) for latest version.\n- Install flask and phue(\n`\npip3 install flask phue\n`)\n\n## Usage\nChange the config at the top of the file huelightsonping.py and run using\n`python3 huelightsonping.py`\n\n## How to create a service\nOne can create a linux service by creating a file called hueonping.service in /etc/systemd/system with the following contents\nDo not forget to change username into your username.\n(Note: You might have to change the python path too.)\n``` linux\n[Unit]\nDescription=Hue lights on ping daemon\n[Service]\nWorkingDirectory=/home/username/HueLightsOnPing/\nType=simple\nUser=username\nUMask=007\nExecStart=/usr/bin/python3.5 /home/username/HueLightsOnPing/huelightsonping.py\nRestart=on-failure\nTimeoutStopSec=300\n[Install]\nWantedBy=multi-user.target\n```\n\nAfter you created the file in the right directory, run the following commands.\n```linux\nsudo systemctl enable /etc/systemd/system/hueonping.service\nsudo service hueonping start\nsudo service hueonping stop\n```\n## Dependencies\n- [Flask](http://flask.pocoo.org/)\n- [phue](https://github.com/studioimaginaire/phue)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjorricks%2Fhuelightsonping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjorricks%2Fhuelightsonping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjorricks%2Fhuelightsonping/lists"}