radio-alarm-clock-feature

#1
by gsalmon - opened

This PR introduces a functional radio alarm clock for Reachy Mini.

Key Features

  • Webpage now includes a section to set the time and station for the alarm
  • Reachy will go to sleep when the alarm is set and wake up when the time is reached

Technical Details

Two new files have been added

  • alarm_manager.py
    • Handles loading, saving, and checking the current time with the set time
  • alarm_settings.json
  • Stores the saved settings set in the webpage

Additionally, several files have been edited

  • reachy_mini_radio/static/index.html, /main.js, and /style.css are updated to display the alarm container
  • main.py
    • The run() method in ReachyMiniRadio has been updated to handle the alarm.
    • get_alarm(), save_alarm(), and _handle_alarm() implement core alarm logic
    • _handle_antenna_button() refactors the original antenna movement logic

This is my first ever PR, very excited to be contributing!

gsalmon changed pull request status to open
Cannot merge
This branch has merge conflicts in the following files:
  • reachy_mini_radio/main.py

Sign up or log in to comment