├── .gitignore ├── README.md ├── a2dp-sink.py ├── classes.png ├── doc ├── mpradio_classess.png └── mpradio_schematic.png ├── install ├── bluez.txt ├── etc │ ├── asound.conf │ ├── bluetooth │ │ ├── audio.conf │ │ └── main.conf │ ├── systemd │ │ └── system │ │ │ ├── bluealsa.service │ │ │ ├── dbus-org.bluez.service │ │ │ ├── mpradio-bt-setup.service │ │ │ ├── mpradio.service │ │ │ ├── need2recompile.service │ │ │ ├── obexpushd.service │ │ │ └── simple-agent.service │ └── udev │ │ └── rules.d │ │ └── 99-input.rules ├── install.sh ├── pirateradio │ └── pirateradio.config └── usr │ ├── lib │ └── udev │ │ └── bluetooth │ └── local │ └── bin │ ├── a2dp_connected.py │ ├── file_storage.sh │ ├── mpradio-bt-setup.sh │ ├── need2recompile.sh │ ├── simple-agent │ └── wifi-switch ├── mpradio-py-notes.txt ├── rfcomm-client.py ├── songs ├── 1.mp3 ├── 2.mp3 ├── 3.mp3 └── credits.txt ├── sounds ├── bt-connect.wav ├── credits.txt ├── silence.wav └── stop1.wav └── src ├── analog_output.py ├── bluetooth_daemon.py ├── bluetooth_player.py ├── bluetooth_player_lite.py ├── bluetooth_remote.py ├── bytearray_io.py ├── configuration.py ├── control_pipe.py ├── encoder.py ├── fm_output.py ├── gpio_remote.py ├── library.json.bak ├── media.py ├── media_scanner.py ├── mp_io.py ├── mpradio.py ├── output.py ├── player.py ├── playlist.py ├── prof.py ├── rds.py ├── storage_bluetooth_player.py ├── storage_player.py └── timer.py /.gitignore: -------------------------------------------------------------------------------- 1 | __pycache__ 2 | .idea 3 | venv 4 | *.mp3 5 | *.json 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/README.md -------------------------------------------------------------------------------- /a2dp-sink.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/a2dp-sink.py -------------------------------------------------------------------------------- /classes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/classes.png -------------------------------------------------------------------------------- /doc/mpradio_classess.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/doc/mpradio_classess.png -------------------------------------------------------------------------------- /doc/mpradio_schematic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/doc/mpradio_schematic.png -------------------------------------------------------------------------------- /install/bluez.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/install/bluez.txt -------------------------------------------------------------------------------- /install/etc/asound.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/install/etc/asound.conf -------------------------------------------------------------------------------- /install/etc/bluetooth/audio.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | Class = 0x20041C 3 | Enable=Source,Sink,Media,Socket 4 | -------------------------------------------------------------------------------- /install/etc/bluetooth/main.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/install/etc/bluetooth/main.conf -------------------------------------------------------------------------------- /install/etc/systemd/system/bluealsa.service: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/install/etc/systemd/system/bluealsa.service -------------------------------------------------------------------------------- /install/etc/systemd/system/dbus-org.bluez.service: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/install/etc/systemd/system/dbus-org.bluez.service -------------------------------------------------------------------------------- /install/etc/systemd/system/mpradio-bt-setup.service: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/install/etc/systemd/system/mpradio-bt-setup.service -------------------------------------------------------------------------------- /install/etc/systemd/system/mpradio.service: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/install/etc/systemd/system/mpradio.service -------------------------------------------------------------------------------- /install/etc/systemd/system/need2recompile.service: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/install/etc/systemd/system/need2recompile.service -------------------------------------------------------------------------------- /install/etc/systemd/system/obexpushd.service: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/install/etc/systemd/system/obexpushd.service -------------------------------------------------------------------------------- /install/etc/systemd/system/simple-agent.service: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/install/etc/systemd/system/simple-agent.service -------------------------------------------------------------------------------- /install/etc/udev/rules.d/99-input.rules: -------------------------------------------------------------------------------- 1 | SUBSYSTEM=="input", RUN+="/usr/lib/udev/bluetooth" 2 | -------------------------------------------------------------------------------- /install/install.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/install/install.sh -------------------------------------------------------------------------------- /install/pirateradio/pirateradio.config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/install/pirateradio/pirateradio.config -------------------------------------------------------------------------------- /install/usr/lib/udev/bluetooth: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/install/usr/lib/udev/bluetooth -------------------------------------------------------------------------------- /install/usr/local/bin/a2dp_connected.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/install/usr/local/bin/a2dp_connected.py -------------------------------------------------------------------------------- /install/usr/local/bin/file_storage.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/install/usr/local/bin/file_storage.sh -------------------------------------------------------------------------------- /install/usr/local/bin/mpradio-bt-setup.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/install/usr/local/bin/mpradio-bt-setup.sh -------------------------------------------------------------------------------- /install/usr/local/bin/need2recompile.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/install/usr/local/bin/need2recompile.sh -------------------------------------------------------------------------------- /install/usr/local/bin/simple-agent: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/install/usr/local/bin/simple-agent -------------------------------------------------------------------------------- /install/usr/local/bin/wifi-switch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/install/usr/local/bin/wifi-switch -------------------------------------------------------------------------------- /mpradio-py-notes.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/mpradio-py-notes.txt -------------------------------------------------------------------------------- /rfcomm-client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/rfcomm-client.py -------------------------------------------------------------------------------- /songs/1.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/songs/1.mp3 -------------------------------------------------------------------------------- /songs/2.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/songs/2.mp3 -------------------------------------------------------------------------------- /songs/3.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/songs/3.mp3 -------------------------------------------------------------------------------- /songs/credits.txt: -------------------------------------------------------------------------------- 1 | Music: https://www.bensound.com 2 | 3 | 4 | -------------------------------------------------------------------------------- /sounds/bt-connect.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/sounds/bt-connect.wav -------------------------------------------------------------------------------- /sounds/credits.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/sounds/credits.txt -------------------------------------------------------------------------------- /sounds/silence.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/sounds/silence.wav -------------------------------------------------------------------------------- /sounds/stop1.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/sounds/stop1.wav -------------------------------------------------------------------------------- /src/analog_output.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/src/analog_output.py -------------------------------------------------------------------------------- /src/bluetooth_daemon.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/src/bluetooth_daemon.py -------------------------------------------------------------------------------- /src/bluetooth_player.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/src/bluetooth_player.py -------------------------------------------------------------------------------- /src/bluetooth_player_lite.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/src/bluetooth_player_lite.py -------------------------------------------------------------------------------- /src/bluetooth_remote.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/src/bluetooth_remote.py -------------------------------------------------------------------------------- /src/bytearray_io.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/src/bytearray_io.py -------------------------------------------------------------------------------- /src/configuration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/src/configuration.py -------------------------------------------------------------------------------- /src/control_pipe.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/src/control_pipe.py -------------------------------------------------------------------------------- /src/encoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/src/encoder.py -------------------------------------------------------------------------------- /src/fm_output.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/src/fm_output.py -------------------------------------------------------------------------------- /src/gpio_remote.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/src/gpio_remote.py -------------------------------------------------------------------------------- /src/library.json.bak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/src/library.json.bak -------------------------------------------------------------------------------- /src/media.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/src/media.py -------------------------------------------------------------------------------- /src/media_scanner.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/src/media_scanner.py -------------------------------------------------------------------------------- /src/mp_io.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/src/mp_io.py -------------------------------------------------------------------------------- /src/mpradio.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/src/mpradio.py -------------------------------------------------------------------------------- /src/output.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/src/output.py -------------------------------------------------------------------------------- /src/player.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/src/player.py -------------------------------------------------------------------------------- /src/playlist.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/src/playlist.py -------------------------------------------------------------------------------- /src/prof.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/src/prof.py -------------------------------------------------------------------------------- /src/rds.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/src/rds.py -------------------------------------------------------------------------------- /src/storage_bluetooth_player.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/src/storage_bluetooth_player.py -------------------------------------------------------------------------------- /src/storage_player.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/src/storage_player.py -------------------------------------------------------------------------------- /src/timer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/morrolinux/mpradio-py/HEAD/src/timer.py --------------------------------------------------------------------------------