alarm clock

  • Hi,

    I would like to create an alarm clock for the GF. It should know about weekends, holidays and I want to set a different wakeup time for every day and of course no alarm on weekends and holidays.

    It should play a .mp3 file at the time set for the day.

    To get the sound out of it, I already ordered a "Adafruit I2S 3W Class D Amplifier Breakout - MAX98357A" and a tiny loudspeaker which will be connected to "I2S".

    How is it possible to play the .mp3 file?
    Has anyone else built an alarm clock?

    How would you deal with the holidays? I only need the German + Bavarian, but it would be nice if there is a way to custimize it for all counries/regions. Maybe by help with a file or by calculating the variable holidays like Easter?

    Any other features you would want for an alarm clock?



  • Core team

    Hey Stefan! Sounds were added to the Tingbot libraries with a recent update. Have a look at for an example.

    As for formats, mp3 might work, or you'll be better off transcoding your sound effects into WAV or OGGs.

    I've not used any I2C boards with the Pi so I don't know how easy that is.... the Tingbot sound libs were tested with a USB audio dongle, so that might be a good starting point.

    I found this Python library for checking if a date is a national holiday - check it out: . You can list that in a requirements.txt file to include it in a Tingbot app.


Log in to reply

Looks like your connection to alarm clock was lost, please wait while we try to reconnect.