{"id":22411716,"url":"https://github.com/szh/onairlightmacos","last_synced_at":"2026-05-13T07:04:16.417Z","repository":{"id":265530289,"uuid":"836904455","full_name":"szh/OnAirLightMacOS","owner":"szh","description":"Mac OS \u003c\u003e Raspberry Pi on air light","archived":false,"fork":false,"pushed_at":"2024-08-01T19:56:52.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-25T06:53:31.480Z","etag":null,"topics":["macos","raspberry-pi"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","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}},"created_at":"2024-08-01T19:56:43.000Z","updated_at":"2024-08-01T19:57:43.000Z","dependencies_parsed_at":"2024-11-29T23:03:47.624Z","dependency_job_id":null,"html_url":"https://github.com/szh/OnAirLightMacOS","commit_stats":null,"previous_names":["szh/onairlightmacos"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/szh/OnAirLightMacOS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szh%2FOnAirLightMacOS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szh%2FOnAirLightMacOS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szh%2FOnAirLightMacOS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szh%2FOnAirLightMacOS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/szh","download_url":"https://codeload.github.com/szh/OnAirLightMacOS/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szh%2FOnAirLightMacOS/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32971672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T06:31:55.726Z","status":"ssl_error","status_checked_at":"2026-05-13T06:31:51.336Z","response_time":115,"last_error":"SSL_read: 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":["macos","raspberry-pi"],"created_at":"2024-12-05T13:14:49.370Z","updated_at":"2026-05-13T07:04:16.386Z","avatar_url":"https://github.com/szh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"szh/OnAirLightMacOs\n=======================\n\nThis is a fork of [TravisTX/OnAirLightMacOS](https://github.com/TravisTX/OnAirLightMacOS) which uses a Raspberry Pi Zero W and an RGB LED (or two single color LEDs) instead of a Hue light. It causes a light to turn red when any microphone or camera is active on a Mac.\n\nBuild\n-----\n\nRun `./build.sh` to compile both parts - the client which runs on Mac OS, and the server which runs on a Raspberry Pi Zero W. This should also work with other Raspberry Pi models - just edit the `server/build.sh` script to build for the correct ARM version.\n\nServer\n------\n\nTo install the server on your Raspberry Pi Zero W, SSH or SCP into your Pi and copy the files in `bin/server/` to `/home/pi/` or some other directory.\n\n```bash\nscp bin/server/* pi@onairserver.local:/home/pi\n```\n\nThen edit your `/etc/rc.local` file to run the server at boot, by adding this line before `exit 0`:\n\n```bash\n(cd /home/pi; sudo ./server \u003e server.log \u0026)\n```\n\n**Important:** Make sure to edit the `app.env` file to set the correct GPIO pin numbers and disable test mode!\n\nNow restart your Pi with the command `sudo reboot`.\n\nClient\n------\n\nTo install the client on your Mac, `cd` into the `macos/src` directory. Edit the `app.env` file to set the correct IP address of the Raspberry Pi Zero W (you can use a hostname instead if you want). Then run `./install.sh` which will build the client, copy it to a subdirectory of your home directory, and then install it as a launchd service so it runs when you log in.\n\nTroubleshooting\n---------------\n\nTo test the connection from your Mac to the Pi, you can manually query the Pi's HTTP server, replacing the IP and port:\n\n```bash\n# Turn on busy light\ncurl -X PUT -d \"true\" http://192.168.86.56:8080/setstate\n# Turn off busy light\ncurl -X PUT -d \"false\" http://192.168.86.56:8080/setstate\n```\n\nTodo Items\n-----------\n\n- Add a timeout after which point the server resets the status if it hasn't received a request.\n- Build using GitHub Actions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fszh%2Fonairlightmacos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fszh%2Fonairlightmacos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fszh%2Fonairlightmacos/lists"}