An open API service indexing awesome lists of open source software.

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

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)
```