skiwithpete / alarmpi

This is the latest version of the alarm clock for Raspberry Pi project.
116 stars 49 forks source link

Cleaning up *..mp3 #21

Open mat-v opened 7 years ago

mat-v commented 7 years ago

I believe I found a bug in line 55 of get_trygoogle.py:

#Cleanup any mp3 files created in this directory.
rmcmd = 'rm -f ' + ramdrive + '*.' + tail

In line 21 of alarm.config we find the following value for tail:

tail=.mp3

I found the issue in the code above because I heard my 'That's all for now' greeting twice. This problem After a reboot. In the command line in found the following output when I ran my code:

cleaning up now
rm -f /mnt/ram/*..mp3

Disclaimer: I am completely new to coding and Github, hence I am not sure how to report a bug properly.