Timer accessory for Raspberry Pi?

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Threaded View
Does anybody know of a countdown timer desk accessory for the
raspberry pi ? Just something that'll make a noise or signal on
the screen after a settable number of minutes, like an egg timer?

Thanks for reading,

bob prohaska
  

Re: Timer accessory for Raspberry Pi?
Quoted text here. Click to load it

sleep 300 ; beep -n 10

-Gordon

Re: Timer accessory for Raspberry Pi?
Gordon Henderson wrote, on 08-05-2019 08:33:
Quoted text here. Click to load it

No no, he asked for settable minutes, so "sleep 5m; beep -n10" ;)

Oh, I see that beep is not built-in but it's in the repo, see "apt-cache  
show beep"

Re: Timer accessory for Raspberry Pi?
Quoted text here. Click to load it

That's not a desk accessory, but it might do if beep worked. Trying the
example command
beep -f 1000 -n -f 2000 -n -f 1500
produces no sound on a Pi3b+ with speakers on, able to play youtube audio.

Any working solutions appreciated!

bob prohaska

  

Re: Timer accessory for Raspberry Pi?
declaimed the following:


Quoted text here. Click to load it

    No experience but...

md_admin@microdiversity:~$ apt-cache search timer
alarm-clock-applet - alarm clock panel indicator
    <SNIP>
gnome-clocks - Simple GNOME app with stopwatch, timer, and world clock
support
    <SNIP>
kalarm - alarm message, command and email scheduler
    <SNIP>
ktimer - countdown timer
    <SNIP>
wmclockmon - Displays a clock in 12/24h mode with alarm mode

md_admin@microdiversity:~$ apt-cache search alarm
    <SNIP>
remind - sophisticated calendar and alarm program
    <SNIP>
xcal - a graphical calendar with memos and reminder alarms
    <SNIP>
xfce4-timer-plugin - timer plugin for Xfce panel


    Check google or other documentation sources for information on what
each of those packages actually does...


--  
    Wulfraed                 Dennis Lee Bieber         AF6VN
     snipped-for-privacy@ix.netcom.com  

Re: Timer accessory for Raspberry Pi?
Quoted text here. Click to load it

Installs and works, but, like beep, is silent.

Quoted text here. Click to load it

Installs, but I can't figure out how to start it.

Looks like the big problem will be getting audio output.  

Thanks for writing!

bob prohaska


Re: Timer accessory for Raspberry Pi?
On 10/05/2019 03:17, bob prohaska wrote:
Quoted text here. Click to load it

There's a hat for that.

Various from simple mono to full blown hifi DAC

https://thepihut.com/collections/raspberry-pi-audio/products/speaker-phat



--  
New Socialism consists essentially in being seen to have your heart in  
the right place whilst your head is in the clouds and your hand is in  
We've slightly trimmed the long signature. Click to see the full one.
Re: Timer accessory for Raspberry Pi?
Quoted text here. Click to load it
The Pi has audio already, the problem is finding software to use it.  
Chromium can do it, one would think there's a library somewhere that
"normal" audio functions can access.

Anybody got a hint?

Thanks!

bob prohaska
  


Re: Timer accessory for Raspberry Pi?
On 11/05/2019 02:24, bob prohaska wrote:
Quoted text here. Click to load it
Pi doesnt have a speaker or transducer so you need to add one, and not  
all models have the 3.5mm jack either.






--  
You can get much farther with a kind word and a gun than you can with a  
kind word alone.

We've slightly trimmed the long signature. Click to see the full one.
Re: Timer accessory for Raspberry Pi?
Den 2019-05-11 kl. 03:24, skrev bob prohaska:
Quoted text here. Click to load it


alsamixer or alsa-info?

It may be that 'beep' is another (muted) input to alsa ?


--  


Re: Timer accessory for Raspberry Pi?
On Sat, 11 May 2019 16:03:47 +0200


Quoted text here. Click to load it

On x86, beep rattles the PC speaker directly, through the /dev
filesystem, bypassing *all* the Linux audio APIs. That's really what it
was designed for. You can redirect it to other devices (which is
presumably why it's in Rasbian at all; it could be useful with GPIO),
but without some serious jiggery-pokery you're not going to get it to
use ALSA or Pulse at all.

Honestly, I'd just replace beep with a sample played through
aplay, mplayer, or something. Not as elegant, but *way* simpler.

--  
Duncan Snowden.


Re: Timer accessory for Raspberry Pi?
Quoted text here. Click to load it

you may want to install the pulse audio volume control:

  pavucontrol

or us it if already there - there is an option to enable system sounds
in the playback panel.

Gordon

Re: Timer accessory for Raspberry Pi?
Quoted text here. Click to load it

The pulse audio volume control desk accessory is present, with
the alsa mixer as the default. I tried running pulseaudio explicitly
on the command line, but that just interfered with the sound already
working in Chromium. When I killed the added instance of pulseaudio
all sound stopped, so it looks as if I'll have to reboot and hope it
comes back.

AIUI, Pi audio is via the VC4 gpu, so it's a different piece of physical
hardware than is found on typical desktop computers. For a long time  
chromium browser had faulty sound, but now it seems to work well. Firefox
still has some trouble.  

Probably I should have mentioned that I'm using the experimental GL
desktop; performance with youtube is otherwise too slow to be useful.
Apologies for not mentioning that earlier!

Thanks for reading and any further ideas.

bob prohaska


Re: Timer accessory for Raspberry Pi?
Quoted text here. Click to load it

I believe this is mistaken. There's an audio device settings dialog
under the Pi menu, which reports that bcm2835 ALSA (Alsa mixer) is  
the default. Pulseaudio is present, but evidently independent.
It isn't mentioned in the audio device settings, as if it's
unrecognized. Is it useful, or even possible, to substitute
pulseaudio for alsa?  
  
Quoted text here. Click to load it

  
Quoted text here. Click to load it
 Thanks again for reading and any further ideas.
  
 bob prohaska
Quoted text here. Click to load it

Re: Timer accessory for Raspberry Pi?
bob prohaska wrote, on 12-05-2019 03:38:
Quoted text here. Click to load it

I think alsa is the way to go on Linux, I only ever had problems with  
pulseaudio. Simon Long put it in because (apparently) it works together  
with the bluetooth gui settings :rolleyes: but I think it broke all  
sorts of other things. To get my mpd player setup to work I do 'sudo  
apt-get purge pulse*' (and, somewhat unrelated, disable bluetooth in  
config.txt with 'dtoverlay=pi3-disable-bt').

Re: Timer accessory for Raspberry Pi?
On Sun, 12 May 2019 01:15:07 +0000, bob prohaska wrote:

Quoted text here. Click to load it
If your Pi can play sound files, you can record a suitable alarm noise  
and have your timer script trigger a lightweight (command line) player to  
play it through alsa.

My Pi isn't running and I'm feeling too lazy to go and fire it up, but  
this Fedora system provides 'paplay' as part of the pulseaudio-utils  
package which does the trick: the command "paplay Diablada.flac"  
immediately plays that FLAC encoded file.  

This pulseaudio-utils is also available for Raspbian - and may well be  
installed by default.


--  
Martin    | martin at
Gregorie  | gregorie dot org

Re: Timer accessory for Raspberry Pi?
On Sun, 12 May 2019 09:52:49 +0000, Martin Gregorie wrote:

Quoted text here. Click to load it
A further thought: has Supercollider - https://supercollider.github.io/
been ported to the RaspberryPi? If so, it could be used in two ways:

- use it in place of a command-line audio player  
  (which might be severe overkill)

OR

- use it to generate your alarm audio clip.

Either way it looks like a fun thing to play with.


--  
Martin    | martin at
Gregorie  | gregorie dot org

Re: Timer accessory for Raspberry Pi?
On 2019-05-10 04:17, bob prohaska wrote:
Quoted text here. Click to load it
FWIW, Xfce plugins are plugins to the Xfce panel; you just right click  
on the panel you want the plugin to appear on, and add it. Then you get  
an "icon" on the panel, if you right click that you can change  
properties / settings for a plugin.

If you are running a different desktop environment than Xfce, you  
probable don't run the xfce panel either and thus Xfce plugins won't  
help you.
--  
Torfinn Ingolfsen,
Norway

Site Timeline