maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Help a firefighter - trigger alarm.mp3 by monitoring incoming e-mails (https://talk.maemo.org/showthread.php?t=101005)

peterleinchen 2020-04-16 09:21

Re: Please help a firefighter
 
jI guess for now a separate mail account with push set and all others to manual is best option for you.

I am pretty sure that it should be possible with some coding (e.g. python):
dbus listening for new mails and filtering text, then with aplay or something else playing sound.
I am also sure similar have been done for N900 already but I cannot remember for SFOS...

claustn 2020-04-16 09:23

Re: Please help a firefighter
 
1 Attachment(s)
Quote:

Originally Posted by Veraendert (Post 1566872)
Thanks so far, i've set up a separate mail account, that probably helps a bit. There is no way to alter the sound of email notification i presume?

Of course you can! Go to Settings -> Sounds & feedback -> Email and set the loudest you want

Veraendert 2020-04-16 10:59

Re: Please help a firefighter
 
@claustn: Thanks, maybe i wasn't clear enough: I only have the option to edit the alarm sound for every e-mail, regardless of what account it was sent to. That way, if i check for mails from my "normal" account, there would be an alarm sound every time there's new mail. So while i could use some siren sound for e-mail alarms, this would probably not be a good idea e.g. at work.

Ideally, there would be a specific sound for that e-mail account overriding everything and playing at full volume.

But the setup i have now is already a lot better than what i had before thanks to everyone. I really appreciate it. Checking your email every 5 minutes on a 20km run sucked.

rob_kouw 2020-04-16 11:04

Re: Please help a firefighter
 
In case you are located in The Netherlands: dds.nl offers the sms service. An account is 32,50/year, text message 0,10-0,12 euro each.

Veraendert 2020-04-16 11:18

Re: Please help a firefighter
 
I'm in Germany. And this would still mean that i'd get an alarm sound every time i receive an SMS. Which isn't that often but still often enough.

claustn 2020-04-16 11:32

Re: Please help a firefighter
 
Quote:

Originally Posted by Veraendert (Post 1566882)
@claustn: Thanks, maybe i wasn't clear enough: I only have the option to edit the alarm sound for every e-mail, regardless of what account it was sent to. That way, if i check for mails from my "normal" account, there would be an alarm sound every time there's new mail. So while i could use some siren sound for e-mail alarms, this would probably not be a good idea e.g. at work.

Ideally, there would be a specific sound for that e-mail account overriding everything and playing at full volume.

But the setup i have now is already a lot better than what i had before thanks to everyone. I really appreciate it. Checking your email every 5 minutes on a 20km run sucked.

I agree that separate alarms for each account would be the best, but you can also have an Ambience for running with the loud email tone and another one for everything else. Or use the Situations app to change stuff according to where you are.

Halftux 2020-04-16 11:47

Re: Please help a firefighter
 
I would do it with dbus.
For sms you can look here:

https://talk.maemo.org/showthread.php?t=100848

And the email application has a session dbus interface (com.jolla.email.ui) maybe it is helpful.

https://together.jolla.com/question/...e-information/

https://talk.maemo.org/showthread.php?t=92303

Trzyzet 2020-04-16 12:14

Re: Please help a firefighter
 
You can quite easily connect some kind of prototype board with modem to the 'real' alarm device which, when will be activated, will send you SMS. Easy to do but you need some electronics technician/engineer in your place to do it.

Veraendert 2020-04-16 13:45

Re: Please help a firefighter
 
1 Attachment(s)
Quote:

Originally Posted by claustn (Post 1566885)
I agree that separate alarms for each account would be the best, but you can also have an Ambience for running with the loud email tone and another one for everything else. Or use the Situations app to change stuff according to where you are.

Mabe i'll just let the app check if i'm connected to known wifi (which means i'm at home or at work and will likely have the alarm device with me) and act accordingly. I'll give it a try.

That's me yesterday btw. 3rd one from left. The good looking one.

xelo 2020-04-16 17:39

Re: Please help a firefighter
 
@veraendert: I'm a volunteer in the german civil protection service and my local unit decided to use a tool named divera for alerting us. Unfortunately there is also only an iOS or Android app, thus is "suffer" from the same problem. Which App is your fire brigade using?


All times are GMT. The time now is 12:15.

vBulletin® Version 3.8.8