{"id":20978714,"url":"https://github.com/abaker/stdout_httpd","last_synced_at":"2025-06-21T13:37:52.473Z","repository":{"id":103468600,"uuid":"207586636","full_name":"abaker/stdout_httpd","owner":"abaker","description":"`tail -n 1` of stdout over HTTP","archived":false,"fork":false,"pushed_at":"2019-09-12T16:48:03.000Z","size":2,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T09:46:38.946Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/abaker.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":"2019-09-10T14:48:53.000Z","updated_at":"2024-02-01T23:23:21.000Z","dependencies_parsed_at":"2023-03-05T20:15:52.161Z","dependency_job_id":null,"html_url":"https://github.com/abaker/stdout_httpd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abaker/stdout_httpd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abaker%2Fstdout_httpd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abaker%2Fstdout_httpd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abaker%2Fstdout_httpd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abaker%2Fstdout_httpd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abaker","download_url":"https://codeload.github.com/abaker/stdout_httpd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abaker%2Fstdout_httpd/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261130393,"owners_count":23113983,"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-19T05:07:02.224Z","updated_at":"2025-06-21T13:37:47.446Z","avatar_url":"https://github.com/abaker.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"`tail -n 1` of stdout as an HTTP server\r\n\r\n### WTF?\r\n\r\nI wanted to turn [rtlamr](https://github.com/bemasher/rtlamr) into a RESTful sensor for Home Assistant. See [this blog post](https://node11.com/post/rtlamr-smart-meter-home-assistant/) for more details\r\n\r\n### Contrived Example\r\n\r\n```\r\nwhile true; do date; sleep 1; done | stdout_httpd\r\n```\r\n\r\nThen `curl localhost` to print the date\r\n\r\n### Usage\r\n\r\n```\r\n$ stdout_httpd -h\r\nUsage of stdout_httpd:\r\n  -debug\r\n        enable debug logging\r\n  -port int\r\n        http port (default 80)\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabaker%2Fstdout_httpd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabaker%2Fstdout_httpd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabaker%2Fstdout_httpd/lists"}