Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tob1as/telefonwahnsinn
TelefonWahnsinn (PhoneMadness): A Application written in JAVA monitors various sensors (Telephone -Innovaphone-, Fritz!Box, doorsensor) and switched accordingly the music (player: MPD, XBMC or VLC) to stop / pause or play.
https://github.com/tob1as/telefonwahnsinn
docker fritzbox innovaphone java mpd music music-control phone phonemadness raspberry-pi sensor telefonwahnsinn telephone vlc
Last synced: 1 day ago
JSON representation
TelefonWahnsinn (PhoneMadness): A Application written in JAVA monitors various sensors (Telephone -Innovaphone-, Fritz!Box, doorsensor) and switched accordingly the music (player: MPD, XBMC or VLC) to stop / pause or play.
- Host: GitHub
- URL: https://github.com/tob1as/telefonwahnsinn
- Owner: Tob1as
- License: wtfpl
- Created: 2016-10-17T09:18:50.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-04-14T17:30:36.000Z (over 1 year ago)
- Last Synced: 2024-04-23T14:09:35.969Z (7 months ago)
- Topics: docker, fritzbox, innovaphone, java, mpd, music, music-control, phone, phonemadness, raspberry-pi, sensor, telefonwahnsinn, telephone, vlc
- Language: Java
- Homepage: https://hub.docker.com/r/tobi312/rpi-phonemadness/
- Size: 149 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TelefonWahnsinn (PhoneMadness)
### What is PhoneMadness (TelefonWahnsinn) ?
DE: *"Eine in JAVA geschriebene Anwendung überwacht verschiedene Sensoren (Telefon -Innovaphone-, Fritz!Box, Türsensor) und schaltet dementsprechend die Musik (Player: MPD, XBMC oder VLC) auf stop/pause oder play."*
EN: *"A Application written in JAVA monitors various sensors (Telephone -Innovaphone-, Fritz!Box, doorsensor) and switched accordingly the music (player: MPD, XBMC or VLC) to stop / pause or play."*
We/I used it in our office until 2019. ;)
### Supported tags and respective `Dockerfile` links
- [`latest` (*Dockerfile*)](https://github.com/Tob1as/TelefonWahnsinn/blob/master/alpine.Dockerfile)### This Image on
* [DockerHub](https://hub.docker.com/r/tobi312/rpi-phonemadness)
* [GitHub](https://github.com/Tob1as/TelefonWahnsinn)### Developer
* Felix W.
* [Tobias H.](https://github.com/Tob1as)### Setup / Usage
#### local
##### Requirements
* Network connection between the devices
* installed [*Java 8*](https://adoptium.net/temurin/releases/?version=8) and set environment variables JAVA_HOME##### Usage
* Download the latest release of *TelefonWahnsinn-jar-with-dependencies.jar* in a folder or build your own jar-file with Eclipse and Maven
* create a *config* folder, in this folder download the configuration file called *config.xml.example* and rename it in config.xml. Example content:
```xml
```
* Make your settings
* start it with: ``` java -jar TelefonWahnsinn-jar-with-dependencies.jar ```#### Docker (e.g. on RaspberryPi)
##### Requirements
* Network connection between the devices
* installed [*Docker*](https://docs.docker.com/engine/install/):
* ```sudo curl -sSL https://get.docker.com | sh```
* ```sudo usermod -aG docker pi```##### Usage
```sh
# create config folder
mkdir -p /home/pi/.config/telefonwahnsinn/config
# download example config (with wget)
wget https://raw.githubusercontent.com/Tob1as/TelefonWahnsinn/master/config/config.xml.example -O /home/pi/.config/telefonwahnsinn/config/config.xml
# edit the config and set your settings (see above)
nano /home/pi/.config/telefonwahnsinn/config/config.xml# start
docker run --name telefonwahnsinn \
-v /home/pi/.config/telefonwahnsinn/config:/config:ro \
-v /sys/class/gpio:/sys/class/gpio:ro \
-d tobi312/rpi-phonemadness:latest
```### Notes
#### GPIO (only RaspberryPi):
If you want use the doorsensor, then use a Raspberry Pi and *magnetic contact* (DE: *Magnetkontakt/Reedkontakt*) e.g on GPIO Pin 4.
RaspberryPi GPIO Settings:
* ``` sudo nano /etc/rc.local ```
* copy next lines before: exit 0 and then reboot
* ``` echo 4 > /sys/class/gpio/export ```
* ``` echo in > /sys/class/gpio/gpio4/direction ```#### Fritz!Box:
Fritz!Box (Internet-Router) need active CallMonitor ```#96*5*``` (Port: 1012) [or see here](https://www.janrufmonitor.de/ueberwachung-freischalten/).
#### Have FUN!