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

https://github.com/xandkar/pista-feeds-x

Experimental data-feed processes for use with pista.
https://github.com/xandkar/pista-feeds-x

Last synced: 7 months ago
JSON representation

Experimental data-feed processes for use with pista.

Awesome Lists containing this project

README

          

example data feed processes for use with [pista](https://github.com/xandkar/pista)
===============================================================================
[![Build Status](https://travis-ci.org/xandkar/pista-sensors.svg?branch=master)](https://travis-ci.org/xandkar/pista-sensors)
![Screenshot](screenshot.jpg)

Example configurations
----------------------
- [direct.sh](examples/direct.sh): basic setup, can be forked from `.xinitrc`
- [via-tmux.sh](examples/via-tmux.sh): init-like setup with tmux, can be
conveniently (re)started at any time, independently of `.xinitrc`

Dependencies
------------

- [`fswatch`](https://github.com/emcrisostomo/fswatch) for `pista-feed-backlight`
- OpenBSD `netcat` for `pista-feed-mpd.sh`
- `jq` for multiple things
- `curl` for multiple things
- `hxpipe` for `pista-feed-weather`
- `iwconfig` for `pista-feed-wifi`

Notes
-----

### Volume

#### How to switch from intervaled polling to reactive updates?

$ pactl subscribe | awk '/^Event .+ on sink .+$/'
Event 'change' on sink #0
Event 'change' on sink #0
Event 'change' on sink #0
^CGot SIGINT, exiting.

seems to do the main trick, but still requires to trigger another call to check
the volume value. Is there any event on the system that carries this value?

#### TODO study how they do it:
- https://git.alsa-project.org/?p=alsa-utils.git;a=blob;f=alsactl/monitor.c;hb=HEAD
- https://github.com/illegalprime/alsa-monitor-node