Make raspberry pi board into alarm clock
My project was to make a raspberry pi 3+ board into an alarm clock over a home network using an Intel computer running fatdog linux computer to give the commands.
Instructions : I connected cheap USB powered speakers to my raspberry pi for sound. The power for the speakers
had to come from a wall adapter because raspberry pi doesn't have enough power.
Installed mx linux on raspberry pi --->
because it has bluetooth installed as default -- very easy to set up.
Not that bluetooth has anything to do with shalarm
https://mxlinux.org/blog/fluxbox-raspbe ... gout-beta/
___________________________________________________________________
Download shalarm
https://github.com/jahendrie/shalarm
I installed sdhalarm --> It just requires the 'make' command in the terminal
I changed the alarm sound to be more distinct
using config file --> $HOME/.config/shalarm/shalarm.cfg or /etc/shalarm.cfg
______________________________________________________________
There is raspi config app that is useful in setting up ssh to launch automatically at boot time.
_______________________________________________________
From my fatdog linux computer --> in terminal
To start up the ssh server on the pi
# ssh -Y pi@192.168.1.110
pi@192.168.1.110's password:
Linux raspberrypi 5.10.11-v7+ #1399 SMP Thu Jan 28 12:06:05 GMT 2021 armv7l
Here are instructions for running shalarm
pi@raspberrypi:~ $ shalarm --help
Usage: shalarm TIME
TIME is a 24-hr formatted time string.
For example, ten PM may be formatted as follows:
22:00:00
22:00
22
22.00.00
2200
220000
As an aside, formatting it as '10:00' will get you ten AM, and
'10 pm' won't work.
Arguments:
-h or --help: Print this help screen
-v or --version: Print version and author info
-t or --test: Test alarm set to 5 seconds in the future
-d or --debug: Check out what's going wrong (or right)
--snooze N: Enable snooze, set interval to N seconds
--timeout N: Enable timeout, set limit to N seconds
Here is typical usage....
A short alarm at 1:30 pm
pi@raspberrypi:~ $ shalarm --timeout 7 1320
Alarm is ACTIVE and set to 13:20:00
45s left to sleep
(Alarm timeout: 7 seconds)
Use CTRL-C to quit
WAKE UP!
Alarm timeout reached (7 seconds)
Exiting
_________________________________________________
Unusual things about mx linux
-No Xdialog install
-gtkdialog scripts need to use bash shell rather than sh
Therefore just change first line of script.
________________________________________________