{"id":19952720,"url":"https://github.com/tob1as/telefonwahnsinn","last_synced_at":"2025-05-03T19:30:57.221Z","repository":{"id":47568402,"uuid":"71120780","full_name":"Tob1as/TelefonWahnsinn","owner":"Tob1as","description":"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.","archived":true,"fork":false,"pushed_at":"2023-04-14T17:30:36.000Z","size":153,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T22:25:34.846Z","etag":null,"topics":["docker","fritzbox","innovaphone","java","mpd","music","music-control","phone","phonemadness","raspberry-pi","sensor","telefonwahnsinn","telephone","vlc"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tob1as.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-17T09:18:50.000Z","updated_at":"2025-01-21T19:12:33.000Z","dependencies_parsed_at":"2023-01-29T20:01:07.893Z","dependency_job_id":null,"html_url":"https://github.com/Tob1as/TelefonWahnsinn","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tob1as%2FTelefonWahnsinn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tob1as%2FTelefonWahnsinn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tob1as%2FTelefonWahnsinn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tob1as%2FTelefonWahnsinn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tob1as","download_url":"https://codeload.github.com/Tob1as/TelefonWahnsinn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252241951,"owners_count":21717075,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","fritzbox","innovaphone","java","mpd","music","music-control","phone","phonemadness","raspberry-pi","sensor","telefonwahnsinn","telephone","vlc"],"created_at":"2024-11-13T01:14:11.348Z","updated_at":"2025-05-03T19:30:56.924Z","avatar_url":"https://github.com/Tob1as.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TelefonWahnsinn (PhoneMadness)\n\n### What is PhoneMadness (TelefonWahnsinn) ?\n\nDE: *\"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.\"*\n\nEN: *\"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.\"*  \n\nWe/I used it in our office until 2019. ;)  \n\n### Supported tags and respective `Dockerfile` links\n-\t[`latest` (*Dockerfile*)](https://github.com/Tob1as/TelefonWahnsinn/blob/master/alpine.Dockerfile)\n\n### This Image on\n* [DockerHub](https://hub.docker.com/r/tobi312/rpi-phonemadness)\n* [GitHub](https://github.com/Tob1as/TelefonWahnsinn)\n\n### Developer\n* Felix W.\n* [Tobias H.](https://github.com/Tob1as)\n\n### Setup / Usage \n\n#### local\n\n##### Requirements\n\n* Network connection between the devices\n* installed [*Java 8*](https://adoptium.net/temurin/releases/?version=8) and set environment variables JAVA_HOME\n\n##### Usage\n\n* Download the latest release of *TelefonWahnsinn-jar-with-dependencies.jar* in a folder or build your own jar-file with Eclipse and Maven \n* create a *config* folder, in this folder download the configuration file called *config.xml.example* and rename it in config.xml. Example content:\n  ```xml\n\t\u003cwahnsinnsConfig\u003e\n\t\t\u003csensors\u003e\n\t\t\t\u003csensor type=\"telephone\" name=\"Phone1\" ip=\"10.112.1.1\" username=\"user\" password=\"password\" \u003e\u003c/sensor\u003e\n\t\t\t\u003csensor type=\"telephone\" name=\"Phone2\" ip=\"10.112.1.2\" username=\"user\" password=\"password\" \u003e\u003c/sensor\u003e\n\t\t\t\u003csensor type=\"telephone\" name=\"Phone myself\" ip=\"10.112.1.3\" username=\"user\" password=\"password\" \u003e\u003c/sensor\u003e\n\t\t\t\u003c!--\u003csensor type=\"fritzbox\" ip=\"192.168.178.1\" name=\"FritzBox\"\u003e\u003c/sensor\u003e--\u003e\n\t\t\t\u003csensor type=\"gpio\" name=\"Doorsensor\" pin=\"4\" \u003e\u003c/sensor\u003e\n\t\t\u003c/sensors\u003e\n\t\t\u003cplayer type=\"mpd\" ip=\"localhost\" port=\"6600\" password=\"password\"\u003e\u003c/player\u003e\n\t\t\u003c!--\n\t\t\u003cplayer type=\"xbmc\" ip=\"localhost\" port=\"6600\" username=\"user\" password=\"password\"\u003e\u003c/player\u003e\n\t\t\u003cplayer type=\"vlc\" ip=\"localhost\" port=\"8080\" username=\"\" password=\"password\"\u003e\u003c/player\u003e\n\t\t--\u003e\n\t\u003c/wahnsinnsConfig\u003e\n  ```\n  \n\t* Make your settings\n\t* start it with: ``` java -jar TelefonWahnsinn-jar-with-dependencies.jar ```\n\n#### Docker (e.g. on RaspberryPi)\n\n##### Requirements\n\n* Network connection between the devices\n* installed [*Docker*](https://docs.docker.com/engine/install/):\n\t* ```sudo curl -sSL https://get.docker.com | sh```\n\t* ```sudo usermod -aG docker pi```\n\n##### Usage\n\n```sh\n# create config folder\nmkdir -p /home/pi/.config/telefonwahnsinn/config\n# download example config (with wget)\nwget https://raw.githubusercontent.com/Tob1as/TelefonWahnsinn/master/config/config.xml.example -O /home/pi/.config/telefonwahnsinn/config/config.xml\n# edit the config and set your settings (see above)\nnano /home/pi/.config/telefonwahnsinn/config/config.xml\n\n# start\ndocker run --name telefonwahnsinn \\\n-v /home/pi/.config/telefonwahnsinn/config:/config:ro \\\n-v /sys/class/gpio:/sys/class/gpio:ro \\\n-d tobi312/rpi-phonemadness:latest\n```\n\n### Notes\n\n#### GPIO (only RaspberryPi):\n\nIf you want use the doorsensor, then use a Raspberry Pi and *magnetic contact* (DE: *Magnetkontakt/Reedkontakt*) e.g on GPIO Pin 4.  \n\nRaspberryPi GPIO Settings:\n* ``` sudo nano /etc/rc.local ```\n* copy next lines before: exit 0 and then reboot\n* ``` echo 4 \u003e /sys/class/gpio/export ```\n* ``` echo in \u003e /sys/class/gpio/gpio4/direction ```\n\n#### Fritz!Box:\n\nFritz!Box (Internet-Router) need active CallMonitor ```#96*5*``` (Port: 1012) [or see here](https://www.janrufmonitor.de/ueberwachung-freischalten/).\n\n#### Have FUN!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftob1as%2Ftelefonwahnsinn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftob1as%2Ftelefonwahnsinn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftob1as%2Ftelefonwahnsinn/lists"}