{"id":15654372,"url":"https://github.com/healeycodes/pi","last_synced_at":"2025-04-30T23:33:58.802Z","repository":{"id":51104149,"uuid":"365540796","full_name":"healeycodes/pi","owner":"healeycodes","description":":pie: Monorepo for my Raspberry Pi dashboard and GPS satellite listener.","archived":false,"fork":false,"pushed_at":"2021-05-31T09:09:29.000Z","size":10831,"stargazers_count":27,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-17T14:12:10.697Z","etag":null,"topics":["dashboard","dht22","gps","gps-device","heroku","pos58","raspberry-pi","receipt-printer"],"latest_commit_sha":null,"homepage":"https://healeycodes.com/listening-to-satellites-with-my-raspberry-pi/","language":"Python","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/healeycodes.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}},"created_at":"2021-05-08T14:54:04.000Z","updated_at":"2023-03-16T02:32:16.000Z","dependencies_parsed_at":"2022-09-09T22:22:25.320Z","dependency_job_id":null,"html_url":"https://github.com/healeycodes/pi","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Fpi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Fpi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Fpi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Fpi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/healeycodes","download_url":"https://codeload.github.com/healeycodes/pi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229089050,"owners_count":18018383,"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":["dashboard","dht22","gps","gps-device","heroku","pos58","raspberry-pi","receipt-printer"],"created_at":"2024-10-03T12:51:16.499Z","updated_at":"2024-12-10T15:35:53.545Z","avatar_url":"https://github.com/healeycodes.png","language":"Python","readme":"[![Flask tests](https://github.com/healeycodes/pi/actions/workflows/python-app.yml/badge.svg)](https://github.com/healeycodes/pi/actions/workflows/python-app.yml)\n\n# :pie: pi dashboard\n\n\u003e My blog post: [Listening to Satellites with my Raspberry Pi](https://healeycodes.com/listening-to-satellites-with-my-raspberry-pi/)\n\n\u003cbr\u003e\n\nThis is the monorepo for my Raspberry Pi dashboard!\n\nIt includes: a module system allows different features to be toggled on and off so you don't need my exact hardware setup. It also allows multiple Pis to use the same server.\n\n- :house: a Windows 98 themed dashboard.\n- :satellite: view the list of visible GPS satellites from a GPS hardware device.\n- :printer: receive printer messages to a POS58 compatible printer.\n- :thermometer: live temperature/humidity collected from an AMxx compatible sensor.\n\n\u003cbr\u003e\n\n![The dashboard home page with weather, printer, and sky modules enabled.](https://github.com/healeycodes/pi/blob/main/client/preview.png)\n\n\u003cbr\u003e\n\n## Run\n\n#### Server\n\nToggle server modules in `server/config.py`.\n\n1. Create a Heroku project.\n\n2. Add a PostgreSQL database via the GUI.\n\n3. Add a config var of `PW` via GUI.\n\n4. Deploy from this GitHub repository.\n\nThat's it. No migrations or other setup required.\n\n\u003cbr\u003e\n\nFor local development:\n\n```bash\npip install -r requirements.txt\nexport FLASK_APP=wsgi:app ;python3.9 -m flask run\n```\n\nA SQLite database is automatically created and used instead of PostgreSQL. If no `PW` environment variable is provided, no password is required for client requests.\n\n#### Client\n\nThe client is written with a Raspberry Pi in mind and has been tested with the latest Raspbian (v10) and the bundled Python 3 that comes with it.\n\nDepending on what modules you've enabled in `client/clientconfig.py` you may need hardware connected and setup e.g. to use the sky module, your GPS device must be communicating with `gpsd`.\n\n```\ncd client/\npip install -r requirements.txt\nsudo python3 poller.py https://your-url.herokuapp.com password_here \n```\n\nI run that last command on boot via `/etc/rc.local`.\n\nNote: in the client config, I use `sleep_at_night` to put my Pi to sleep so it can sit on the Heroku free tier without using up all the monthly hours.\n\n## Tests\n\nEnd to end tests that make sure the server + all mods are working correctly.\n\n`pip install -r requirements.txt`\n\n`python -m pytest`\n\n\n\u003cbr\u003e\n\n## License\n\nLicensed MIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhealeycodes%2Fpi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhealeycodes%2Fpi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhealeycodes%2Fpi/lists"}