tail -n 1
of stdout as an HTTP server
I wanted to turn rtlamr into a RESTful sensor for Home Assistant. See this blog post for more details
while true; do date; sleep 1; done | stdout_httpd
Then curl localhost
to print the date
$ stdout_httpd -h
Usage of stdout_httpd:
-debug
enable debug logging
-port int
http port (default 80)