We are using Geany on RP2 and play audio sound is one of our function. " Omxplayer " is used. This is the code we use in geany to play sound file
Code: Select all
status=system("omxplayer -g -o local sound.mp3")This is what inside the /etc/rc.local
Code: Select all
#!/bin/sh -e
#
#rc.local
#print the IP address
IP=s(hostname -I)|| true
if [ "$_IP" ]; then
printf"My IP address is %s\n" "$_IP"
fi
sudo /home/pi/urg_library/get_distance
exit 0What is the problem? Any one know how to solve it? Thanks in advance.