Package: voicemailbox
VoicemailBoxVoicemailBox is an application for reading voice messages left on a fixed
telephone line.Its graphical interface is based on the Kivy framework.Created to run on a Raspberry Pi with a touch screen,
it should work on any GNU/Linux system.PurposeIn France, some operators offer, as an option, to send voice messages left
on a fixed line to a given email address.VoicemailBox retrieves the voicemail messages thus sent, signals their arrival
and offers a graphical interface to read them.For now, it is designed to work with the French operator Bouygues Telecom.Installation - General caseVoicemailBox can be installed with pip :pipinstallvoicemailboxInstallation - Raspberry PiThe app has been tested on a Raspberry Pi 3, running Raspberry Pi OS Lite
(Buster release), and the following hardware :official Raspberry Pi touchscreen ;OneNiceDesign touchscreen case ;adafruit speaker bonnet ;adafruit stereo enclosed speaker set.On this system, some packages have to be installed first
(Source) :aptinstalllibsdl2-devlibsdl2-image-devlibsdl2-mixer-dev\libsdl2-ttf-devpkg-configlibgl1-mesa-devlibgles2-mesa-dev\python3-setuptoolspython3-devlibmtdev-dev\xclipxsellibjpeg-devffmpegThen, Kivy and VoicemailBox can be installed
(virtual environment recommended) :pipinstall--upgradepipsetuptoolsCython
pipinstallkivy[base,media]--no-binarykivy
pipinstallvoicemailboxTo allowrpi-backlightto manage touchscreen backlight without root access,
a udev rule has to be created :$echo'SUBSYSTEM=="backlight",RUN+="/bin/chmod 666 /sys/class/backlight/%k/brightness /sys/class/backlight/%k/bl_power"'|sudotee-a/etc/udev/rules.d/backlight-permissions.rulesAdditionnal configurationThe following instructions enable VoicemailBox to be integrated
with the hardware described above :edit/boot/config.txt:touchscreen rotation : addlcd_rotate=2GPU's memory set to 256 Mb : addgpu_mem=256adafruit speaker bonnet :adddtoverlay=hifiberry-dacadddtoverlay=i2s-mmapcommentdtparam=audio=onfor speaker bonnet support, create/etc/asound.confwith the following content :pcm.speakerbonnet{typehwcard0}pcm.dmixer{typedmixipc_key1024ipc_perm0666slave{pcm"speakerbonnet"period_time0period_size1024buffer_size8192rate44100channels2}}ctl.dmixer{typehwcard0}pcm.softvol{typesoftvolslave.pcm"dmixer"control.name"PCM"control.card0}ctl.softvol{typehwcard0}pcm.!default{typeplugslave.pcm"softvol"}Wi-Fi : create wpa_supplicant.conf file in/bootwith following content
(Source) :ctrl_interface=DIR=/var/run/wpa_supplicantGROUP=netdevupdate_config=1country=<Insert2letterISO3166-1countrycodehere>network={ssid="<Name of your wireless LAN>"psk="<Password for your wireless LAN>"}to use kivy with Raspberry Pi touchscreen, modify~/.kivy/config.ini,
add under[input]section :mouse=mousemtdev_%(name)s=probesysfs,provider=mtdevhid_%(name)s=probesysfs,provider=hidinputcreate systemd service to run at startup :create/etc/systemd/system/voicemailbox.servicewith the follonwing content :[Unit]Description=voicemailboxAfter=multi-user.target[Service]Type=idleEnvironment=KIVY_AUDIO=ffpyplayerExecStart=/home/pi/.venv/bin/python-mvoicemailboxWorkingDirectory=/home/pi/User=pi[Install]WantedBy=multi-user.targetrun at start-up :sudosystemctlenablevoicemailboxuseLog2Ram:install :echo"deb http://packages.azlux.fr/debian/ buster main"|sudotee/etc/apt/sources.list.d/azlux.listwget-qO-https://azlux.fr/repo.gpg.key|sudoapt-keyadd-aptupdateaptinstalllog2rammodify frequency : runsystemctl edit log2ram-daily.timerand add :[Timer]OnCalendar=weeklyUsageSome environment variables have to be defined before running the application :VOICEMAILBOX_IMAP_SERVER# IMAP server addressVOICEMAILBOX_EMAIL_ADDRESS# User email addressVOICEMAILBOX_EMAIL_PASSWORD# User passwordThen VoicemailBox can be launched :python-mvoicemailboxThird party libraries and dependenciesVoicemailBox makes use of the following third party projects :Kivy(MIT license) ;IMAPClient(New BSD license) ;rpi_backlight(MIT license) ;python_dotenv(BSD license) ;PYYaml(MIT license).VoicemailBox also includes :theFontAwesomeicons (SIL Open Font License) ;the ring song fromLaSonotheque.org(Free license).LicenseVoicemailBox is placed underCeCILL license(version 2.1).