目覚ましラジオが寝坊する

少し前から目覚ましラジオが鳴らなくなってました。

Volumio2は適宜更新していて、今は2.806(Jul 29, 2020)になっています。 そのときに何かあったかな?

volumio@volumio2-2f:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 4/4
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 IEC958/HDMI [bcm2835 IEC958/HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: ALSA [bcm2835 ALSA], device 2: bcm2835 IEC958/HDMI1 [bcm2835 IEC958/HDMI1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
  Subdevices: 3/3
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
card 2: sndrpihifiberry [snd_rpi_hifiberry_dacplus], device 0: HiFiBerry DAC+ HiFi pcm512x-hifi-0 [HiFiBerry DAC+ HiFi pcm512x-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

ん? card 2なんてあったっけ?

volumio@volumio2-2f:~$ sudo nano /etc/asound.conf
pcm.!default  {
 type hw card 1
}
ctl.!default {
 type hw card 1
}

この「card 1」を「card 2」に変更して、コマンドラインを打ってみます。

volumio@volumio2-2f:~$ sudo /root/play_radiko.sh NACK5
authtoken: 0mnUbEXe8dZOxegZWGw6Tw \noffset: 11566 length: 16 \npartialkey: YEL29v8AP8qdEgYE7sHPzQ==
authentication success
areaid: JP11
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
WARNING: No application or playpath in URL!
WARNING: You haven't specified an output file (-o filename), using stdout
Connecting ...
WARNING: Trying different position for server digest!
INFO: Connected...
Starting Live Stream
INFO: Metadata:
0.890 kB / 0.09 secMPlayer2 2.0-728-g2c378c7-4+b1 (C) 2000-2012 MPlayer Team
Cannot open file '/root/.mplayer/input.conf': No such file or directory
Failed to open /root/.mplayer/input.conf.
Cannot open file '/etc/mplayer/input.conf': No such file or directory
Failed to open /etc/mplayer/input.conf.
 
Playing -.
Reading from stdin...
Detected file format: FLV (Flash Video) (libavformat)
68.266 kB / 11.18 sec[flv @ 0x75b2a5b8]max_analyze_duration 5000000 reached
[flv @ 0x75b2a5b8]Estimating duration from bitrate, this may be inaccurate
[lavf] stream 0: audio (aac), -aid 0
Clip info:
 StreamTitle:
Load subtitles in .
Selected audio codec: AAC (Advanced Audio Coding) [libavcodec]
AUDIO: 48000 Hz, 2 ch, floatle, 0.0 kbit/0.00% (ratio: 0->384000)
AO: [pulse] Init failed: Connection refused
[AO_ALSA] Format floatle is not supported by hardware, trying default.
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
[AO_ALSA] Unable to find simple control 'Master',0.
Video: no video
Starting playback...
^C 105.7 (01:45.6) of 0.0 (00.0)  9.8%
Caught signal: 2, cleaning up, just a second...
 
MPlayer interrupted by signal 2 in module: unknown
 
Exiting... (Quit)
ERROR: Download: Failed writing, exiting!
volumio@volumio2-2f:~$

ちゃんと鳴りました。 あとは明日の朝に鳴ればOKなんだけどね。