{"id":15152897,"url":"https://github.com/stevedylandev/pi-widget","last_synced_at":"2025-09-07T18:47:45.111Z","repository":{"id":254748889,"uuid":"847418827","full_name":"stevedylandev/pi-widget","owner":"stevedylandev","description":"A small Go server that displays live data of my Raspberry Pi","archived":false,"fork":false,"pushed_at":"2024-10-19T02:48:15.000Z","size":39,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-01T00:08:51.929Z","etag":null,"topics":["golang","ipfs","radicle","raspberry-pi"],"latest_commit_sha":null,"homepage":"https://pi.stevedylan.dev","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/stevedylandev.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-25T19:07:45.000Z","updated_at":"2024-12-22T18:56:49.000Z","dependencies_parsed_at":"2024-11-14T14:25:58.474Z","dependency_job_id":"85dc6f0a-c71b-4499-9420-e15058abc6a2","html_url":"https://github.com/stevedylandev/pi-widget","commit_stats":{"total_commits":20,"total_committers":1,"mean_commits":20.0,"dds":0.0,"last_synced_commit":"cbe6e6ba2706a4bd40a5e467e7e51323f6f82c77"},"previous_names":["stevedylandev/pi-widget"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stevedylandev/pi-widget","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevedylandev%2Fpi-widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevedylandev%2Fpi-widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevedylandev%2Fpi-widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevedylandev%2Fpi-widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stevedylandev","download_url":"https://codeload.github.com/stevedylandev/pi-widget/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevedylandev%2Fpi-widget/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274080662,"owners_count":25219019,"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","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"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":["golang","ipfs","radicle","raspberry-pi"],"created_at":"2024-09-26T16:41:20.996Z","updated_at":"2025-09-07T18:47:45.087Z","avatar_url":"https://github.com/stevedylandev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pi Widget\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://dweb.mypinata.cloud/ipfs/QmXL9vahr78uxmRQ4LNEFB7k2rQRP8wgYg4jcvZgdVfBPz?img-format=webp\" alt=\"Alt text\" width=\"200\" height=\"auto\"\u003e\n\u003c/p\u003e\n\nThis little Golang server can be used as a starting point to display your Raspberry Pi stats or any other information you want to display via the web. For my case it also shares information about my [IPFS](https://ipfs.io) node.\n\nIt uses some simple functions to get the data and then sends it through a server-sides events endpoint called  `/events`. There’s a separate `index.html` file that handles the data and renders it on the page. For ease or editing I have made this file embedded so it will be included during the build process.\n\n## Usage and Deployment\n\nIf you plan to use this for yourself then you will likely want to remove the IPFS stats code from the repo (unless you too happen to be a nerd like me and enjoy messing with that stuff).\n\nBuilding is pretty straight forward, however you will want to make sure you have the right target build using the following command:\n\n```\nGOOS=linux GOARCH=arm GOARM=6 go build -o ~/pi-widget .\n```\n\nYou can either build this on device or move it over via SMTP. Once on the Pi it can be spun up simply by running `./pi-widget`. To make this more persistent to you can set up a service like so:\n\n1. Make a new file under `/etc/systemd/user/pi-widget.service` and put the following contents inside.\n```\n[Unit]\nDescription=A little Pi Widget\nDocumentation=https://stevedylan.dev\nAfter=network.target\n\n[Service]\nType=simple\nExecStart=/home/steve/pi-widget\nRestart=on-failure\nKillSignal=SIGINT\n\n[Install]\nWantedBy=multi-user.target\n```\n\n2. Run the following commands to enable, run, and persist the daemon\n\n```\nsystemctl --user enable pi-widget\nsystemctl --user start pi-widget\nloginctl enable-linger $USER\n```\n\nWith the daemon running out of port `4321` you can setup a [Cloudflare Tunnel](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/get-started/) pointing to `http://localhost:4321` and have a working site with your stats!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevedylandev%2Fpi-widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevedylandev%2Fpi-widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevedylandev%2Fpi-widget/lists"}