Skip to content

abaker/stdout_httpd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

tail -n 1 of stdout as an HTTP server

WTF?

I wanted to turn rtlamr into a RESTful sensor for Home Assistant. See this blog post 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)

About

`tail -n 1` of stdout over HTTP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages