|
2020-04-16
, 19:48
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#22
|
{ dbus-monitor & echo $! >dbusmonpid; } | { grep -q -m 1 'xxxSUBJECTxxx' && gst-launch-1.0 playbin uri=file:///home/nemo/Music/SOMEFILE.ogg.midi.wav.mp3 && kill $(cat dbusmonpid) && rm dbusmonpid; }
|
2020-04-16
, 20:03
|
Posts: 1,313 |
Thanked: 2,977 times |
Joined on Jun 2011
@ Finland
|
#23
|
The Following 3 Users Say Thank You to ajalkane For This Useful Post: | ||
|
2020-04-16
, 20:47
|
|
Posts: 868 |
Thanked: 2,516 times |
Joined on Feb 2012
@ Germany
|
#24
|
So there is room for improvement. But hey it works!
Thanks @haltux for the right pointers!
The Following 4 Users Say Thank You to Halftux For This Useful Post: | ||
|
2020-04-17
, 06:21
|
Posts: 121 |
Thanked: 292 times |
Joined on Mar 2016
|
#25
|
The Following User Says Thank You to Veraendert For This Useful Post: | ||
|
2020-04-17
, 07:31
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#26
|
after installing alsa-utils via pkcon I was able to change the master volume/balance via cmd line like 'amixer sset Master 80%,80%'
The Following 3 Users Say Thank You to peterleinchen For This Useful Post: | ||
|
2020-04-17
, 09:11
|
Posts: 121 |
Thanked: 292 times |
Joined on Mar 2016
|
#27
|
The Following 3 Users Say Thank You to Veraendert For This Useful Post: | ||
|
2020-04-17
, 11:07
|
Posts: 121 |
Thanked: 292 times |
Joined on Mar 2016
|
#28
|
{ dbus-monitor & echo $! >dbusmonpid; } | { grep -q -m 1 '<alarm>' && amixer sset Master 100%,100% && gst-launch-1.0 playbin uri=file:///home/nemo/Documents/sirene.mp3 && kill $(cat dbusmonpid) && rm dbusmonpid; }
The Following 5 Users Say Thank You to Veraendert For This Useful Post: | ||
|
2020-04-17
, 12:04
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#29
|
So after install alsa-utils and gstreamer1.0-tools i'm now here:
...
This is a working solution.
The Following 5 Users Say Thank You to peterleinchen For This Useful Post: | ||
|
2020-04-17
, 14:17
|
Posts: 121 |
Thanked: 292 times |
Joined on Mar 2016
|
#30
|
Now as we know the trigger subject text we just need your e-mail address to test!
The Following 3 Users Say Thank You to Veraendert For This Useful Post: | ||
The whole Landkreis (county?) is supposed to use it. Best part is that it also shows me the way to the fire station should i have forgotten how to get there.
@all: You guys are great. I now have a separate email account, with situation set up so that when i´m not within reach of a known wifi the ambient changes and thus the sound when i get an email. Emails are constantly retrieved for the alarm mail account and only manually for the normal one. I think i can live with that for the time being.
I'll probably try to retrieve the alarm message via kdeconnect with a linux computer later to gain a few seconds and to be able to forward the message via different means.
One last question though: the Situations app lets me execute random commands it seems. Does anyone have any idea how to put this possibility to use?
Last edited by Veraendert; 2020-04-17 at 14:31.