https://github.com/picandocodigo/web_volume
Simple Cuba App to manage your computer's volume
https://github.com/picandocodigo/web_volume
Last synced: 4 months ago
JSON representation
Simple Cuba App to manage your computer's volume
- Host: GitHub
- URL: https://github.com/picandocodigo/web_volume
- Owner: picandocodigo
- License: gpl-3.0
- Created: 2014-03-09T17:49:53.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-06-29T07:14:22.000Z (almost 11 years ago)
- Last Synced: 2025-01-10T04:19:45.680Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 286 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Web Volume "remote" control 🔊
**Update**: I've abstracted the volume management into a gem:
[volumerb](https://github.com/picandocodigo/volumerb).This simple Sinatra app manages the volume on **GNU/Linux** systems with
[ALSA](http://www.alsa-project.org/main/index.php/Main_Page) (most
GNU/Linux distributions as far as I know) and **Mac OS X** (thanks to
[@dcadenas](https://github.com/dcadenas)).It's basically a web page where you can interact with your computer's
volume via a browser.## How does it work?
* Clone the code
* `bundle install`
* `bundle exec puma`You should be able to access the app on:
[http://localhost:9292](http://localhost:9292)You can manage the volume from a Browser or anything else that can do a
GET request.### Routes
* `up` - increases volume by 3%.
* `down` - decreases volume by 3%.
* `mute` - toggles mute/unmute.
* `vol` - returns current volume and state.All routes return a JSON with two keys: `value` and `state`. The
value is the current volume value and the state" represents if the
system volume is muted or not.Example:
```
$ curl localhost:9292/mute
{"value":100,"state":"off"}
```