{"id":17163012,"url":"https://github.com/amnuts/likelight","last_synced_at":"2025-03-24T16:39:07.687Z","repository":{"id":67393317,"uuid":"51100629","full_name":"amnuts/LikeLight","owner":"amnuts","description":"Light up an RGB led on the RaspberryPi whenever you get a Like on Facebook (using PHP)","archived":false,"fork":false,"pushed_at":"2016-02-04T21:34:10.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T21:54:34.525Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/amnuts.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}},"created_at":"2016-02-04T19:43:23.000Z","updated_at":"2016-02-04T21:31:50.000Z","dependencies_parsed_at":"2023-02-27T16:15:19.699Z","dependency_job_id":null,"html_url":"https://github.com/amnuts/LikeLight","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/amnuts%2FLikeLight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amnuts%2FLikeLight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amnuts%2FLikeLight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amnuts%2FLikeLight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amnuts","download_url":"https://codeload.github.com/amnuts/LikeLight/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245312725,"owners_count":20595021,"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-10-14T22:47:31.383Z","updated_at":"2025-03-24T16:39:07.647Z","avatar_url":"https://github.com/amnuts.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LikeLight\n\nLight up an RGB led on the RaspberryPi whenever you get a Like on Facebook.  This uses PHP with the [PHPiWire](https://github.com/amnuts/phpiwire) as a requirement to interact with the GPIO pins.\n\n[![Flattr this git repo](http://button.flattr.com/flattr-badge-large.png)](https://flattr.com/submit/auto?fid=do3pln\u0026url=https%3A%2F%2Fgithub.com%2Famnuts%2FLikeLight)\n\nRight now this project is very undocumented and most untested.\n\n### Very, very brief overview of a possible guide of what to do\n\nFirst of all, you need to be doing this on a Raspberry Pi.  Make sure the Pi has PHP installed, you will also need to install a web server (apache or nginx, whatever floats your boat).\n\nNext, install [Zephir](http://www.zephir-lang.com), clone the [PHPiWire](https://github.com/amnuts/phpiwire) repo and install the extension.\n\nOnce done, use composer to install the dependencies of this project.\n\nYou'll want to create an application on Facebook.  When you do that you'll have a secret key - that gets dropped into config.json (copy/rename config.example.json and update).  In there you'll also be able to define which pins the RGB led is hooked up to and the url of your authentication callback script.\n\nOnce done you'll need to log into Facebook via the scripts.  This means that the callback script needs to be accessible to the interwebs, so set up your router as appropriate.\n\nSet up cron to call the index script every so often, five minutes or so, how ever often you'd like it to check for new likes.\n\n# License\n\nMIT: http://acollington.mit-license.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famnuts%2Flikelight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famnuts%2Flikelight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famnuts%2Flikelight/lists"}