https://github.com/abaker/stdout_httpd
`tail -n 1` of stdout over HTTP
https://github.com/abaker/stdout_httpd
Last synced: 12 months ago
JSON representation
`tail -n 1` of stdout over HTTP
- Host: GitHub
- URL: https://github.com/abaker/stdout_httpd
- Owner: abaker
- Created: 2019-09-10T14:48:53.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-12T16:48:03.000Z (over 6 years ago)
- Last Synced: 2025-03-13T09:46:38.946Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 1.95 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
`tail -n 1` of stdout as an HTTP server
### WTF?
I 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
### Contrived Example
```
while true; do date; sleep 1; done | stdout_httpd
```
Then `curl localhost` to print the date
### Usage
```
$ stdout_httpd -h
Usage of stdout_httpd:
-debug
enable debug logging
-port int
http port (default 80)
```