LoginSignup
1
1

More than 3 years have passed since last update.

学校と同じ時間にチャイムを鳴らす

Last updated at Posted at 2020-04-07

息子が4月から小学1年生、だったのですが、covid-19感染対応で4月いっぱい休校になってしまいました。
家にいるとダラダラ過ごしがちなので、せめて学校と同じ時間区切りで生活できる様に工夫します。
画像は堺市の小学校の1日の例、として上げられているものです。
スクリーンショット 2020-04-07 15.00.19.png
幸いリビングにはUSBスピーカを繋いだraspbery piがあるので、チャイム音を入れて、wav形式に変換、aplayで鳴らせます。
あとはcrontab -e でチャイムを鳴らしたい時間に
cron:crontab
30 8 * * 1-5 aplay /home/pi/sound/ScoolBell04-1.wav
45 8 * * 1-5 aplay /home/pi/sound/ScoolBell04-1.wav
30 9 * * 1-5 aplay /home/pi/sound/ScoolBell04-1.wav
40 9 * * 1-5 aplay /home/pi/sound/ScoolBell04-1.wav
25 10 * * 1-5 aplay /home/pi/sound/ScoolBell04-1.wav
45 10 * * 1-5 aplay /home/pi/sound/ScoolBell04-1.wav
30 11 * * 1-5 aplay /home/pi/sound/ScoolBell04-1.wav
40 11 * * 1-5 aplay /home/pi/sound/ScoolBell04-1.wav
25 12 * * 1-5 aplay /home/pi/sound/ScoolBell04-1.wav
15 13 * * 1-5 aplay /home/pi/sound/ScoolBell04-1.wav
35 13 * * 1-5 aplay /home/pi/sound/ScoolBell04-1.wav
50 13 * * 1-5 aplay /home/pi/sound/ScoolBell04-1.wav
35 14 * * 1-5 aplay /home/pi/sound/ScoolBell04-1.wav
45 14 * * 1-5 aplay /home/pi/sound/ScoolBell04-1.wav
30 15 * * 1-5 aplay /home/pi/sound/ScoolBell04-1.wav

これで家でも学校気分?

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1