Close

Modification to use an Orange Pi Zero

A project log for Podcast reader alarm clock

Bash script to use a Raspberry pi as a podcast alarm-clock

hobbiehobbie 05/28/2017 at 19:210 Comments

To use the script on an orange pi zero, few modifications need to be made :

First use a different player : MPG123 is good

sudo apt-get install mpg123

in the script : use mpg123 instead of omxplayer :

#omxplayer $FILNAME
mpg123 $FILNAME

As the player is compatible with alsa, add a line to set the volume in the 7-9_player.sh (anywhere before starting the player) :

amixer sset 'Lineout volume control' 65%

Without the extention board, the audio output is not filtered, a RC filter might be needed.

The wifi configuration has to be set manually :

sudo nano /etc/network/interfaces
#----------------------------------
#COPY
#----------------------------------
auto lo
iface lo inet loopback

auto eth0
allow-hotplug eth0
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
#---------------------------------
#Ctrl + O
#Enter
#Ctrl + X
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

#----------------------------------
#COPY
#----------------------------------
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid="WIFI_MaBox"
psk="------------------"
}

#----------------------------------
#Change based on your WiFi Settings
#Ctrl + O
#Enter
#Ctrl + X
sudo reboot

Discussions