maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   [Announce] RingingRestorer for SailfishOS (https://talk.maemo.org/showthread.php?t=94602)

ajalkane 2015-02-12 21:24

[Announce] RingingRestorer for SailfishOS
 
After you select 'silent' profile, the program will ask you how long you want this setting to last (max.12 hours). When this set time has passed, your regular ringing profile will be restored.

Very handy for people who often need to silence the ringer for a while, for example for the duration of a meeting, a movie or a short nap.

The application auto-cancels in 15 seconds unless interacted with.

Special thanks to Coderus and Morpog who helped me with packaging and Sailfish platform related issues. I wouldn't have been able to solve those without help!

Also big thanks to ssahla for creating icon for RingingRestorer!

Available from OpenRepos:
https://openrepos.net/content/ajalka...gingrestorer-0

Sources under GPLv3 license:
https://github.com/ajalkane/ringingrestorer_sailfish

If you like RingingRestorer and think it's worth me getting a beer or a small cookie, please donate:

https://www.paypal.com/cgi-bin/websc...=499LF83BBX5RY

peterleinchen 2015-02-12 21:32

Re: [Announce] RingingRestorer for SailfishOS
 
Quite (erm, very) useful app that I love on my N9!

--
just one more thing I would like to have:
configuration of defaults: ringing level and time (for both platforms? ;))

ajalkane 2015-02-14 21:08

Re: [Announce] RingingRestorer for SailfishOS
 
New version uploaded:

- Show the restore time also clearly before slider so that finger doesn't hide it
- About dialog added

ssahla 2015-02-15 09:01

Re: [Announce] RingingRestorer for SailfishOS
 
I wonder what's wrong. I installed this from Warehouse and Warehouse says I have it installed, but it doesn't work. I get no time dialog when selecting ”silence sounds”. Do I need to activate it somehow? Should RingingRestorer have an icon in Launcher (I don't see one)?

Edit: The latest package is called harbour-ringingrestorer-debuginfo, is that right? I mean why ”debuginfo”? :)

ajalkane 2015-02-15 09:08

Re: [Announce] RingingRestorer for SailfishOS
 
Quote:

Originally Posted by ssahla (Post 1460840)
I wonder what's wrong. I installed this from Warehouse and Warehouse says I have it installed, but it doesn't work. I get no time dialog when selecting ”silence sounds”. Do I need to activate it somehow? Should RingingRestorer have an icon in Launcher (I don't see one)?

Edit: The latest package is called harbour-ringingrestorer-debuginfo, is that right? I mean why ”debuginfo”? :)

Argh...

I put the correct package there now. Don't know how long it takes until OpenRepos has updated the repository.

ssahla 2015-02-15 09:11

Re: [Announce] RingingRestorer for SailfishOS
 
Quote:

Originally Posted by ajalkane (Post 1460841)
Argh...

I put the correct package there now. Don't know how long it takes until OpenRepos has updated the repository.

It has. Got the right package now. Thanks :)

ajalkane 2015-02-20 22:34

Re: [Announce] RingingRestorer for SailfishOS
 
Small update to fix the icon name. I added a link for donations to the first post, please donate if you think this software is worth a beer or a small cookie. https://www.paypal.com/cgi-bin/websc...=499LF83BBX5RY

ssahla 2015-02-21 16:09

Re: [Announce] RingingRestorer for SailfishOS
 
1 Attachment(s)
May I offer you a more Sailfishy icon? :)

ajalkane 2015-02-21 20:27

Re: [Announce] RingingRestorer for SailfishOS
 
Quote:

Originally Posted by ssahla (Post 1461590)
May I offer you a more Sailfishy icon? :)

Please do!

Can you make it have the sailfish icon shape too? I like it otherwise, thank you for the work!

ssahla 2015-02-21 21:27

Re: [Announce] RingingRestorer for SailfishOS
 
1 Attachment(s)
Quote:

Originally Posted by ajalkane (Post 1461607)
Please do!

Can you make it have the sailfish icon shape too? I like it otherwise, thank you for the work!

Well, circle is one of the Sailfish icon shapes (see for example Clock, Browser and Documents icons)...

But if you would like it to have some other shape, maybe I can think of something! This was just the first thing that came to mind.

Edit: Of course, the simplest thing to do would be this.

salyavin 2015-02-21 21:54

Re: [Announce] RingingRestorer for SailfishOS
 
One thing I miss from Harmatten is I could set the email not to check between certain hours. I am on call so I cannot kill the ringer but I would like other notifications like email to be silent.

ajalkane 2015-02-21 22:28

Re: [Announce] RingingRestorer for SailfishOS
 
Quote:

Originally Posted by ssahla (Post 1461617)
Well, circle is one of the Sailfish icon shapes (see for example Clock, Browser and Documents icons)...

True that... Hadn't really noticed it.

Quote:

But if you would like it to have some other shape, maybe I can think of something! This was just the first thing that came to mind.

Edit: Of course, the simplest thing to do would be this.
I like it. Thank you! If you have .svg version, please throw it my way. If not, doesn't matter.

I'll put this one to use when I do next update.

ajalkane 2015-02-21 22:29

Re: [Announce] RingingRestorer for SailfishOS
 
Quote:

Originally Posted by salyavin (Post 1461619)
One thing I miss from Harmatten is I could set the email not to check between certain hours. I am on call so I cannot kill the ringer but I would like other notifications like email to be silent.

I understand. But this is probably more suitable for Situations app or PhoneBot.

ssahla 2015-02-21 22:36

Re: [Announce] RingingRestorer for SailfishOS
 
Quote:

Originally Posted by ajalkane (Post 1461625)
True that... Hadn't really noticed it.

I like it. Thank you! If you have .svg version, please throw it my way. If not, doesn't matter.

I'll put this one to use when I do next update.

Cool!

I don't have an svg of it, I did it in Photoshop (partly because I reused here the system "silent" icon which is a png). I could redo it in Illustrator, but if the png suffices for now, use that. :)

ajalkane 2015-02-24 22:01

Re: [Announce] RingingRestorer for SailfishOS
 
Uploaded new version to OpenRepos. It's pretty much only cosmetic changes:

- Big thanks to ssahla for Sailfish-like icon!
- Removed reference to beep profile from main application as it's not applicable in SailfishOS

ajalkane 2015-07-23 16:48

Re: [Announce] RingingRestorer for SailfishOS
 
Updated finally OpenRepos version. A crippled version should soon also come to Jolla Store.

Changelog:
- Fixed a bug that would cause ringing profile to be restored later than intended

ajalkane 2015-07-23 16:50

Re: [Announce] RingingRestorer for SailfishOS
 
Now that that's out of the way, I want to ask opinions about this:

would you prefer the delay to restore be as it is right now, with the horizontal slider, or would you prefer to set it using the standard clock dial?

Of course the clock dial would also be to set the amount of time to wait, not the target time of day when to restore, so I'm slightly worried if it can cause confusion.

Watchmaker 2015-07-23 18:33

Re: [Announce] RingingRestorer for SailfishOS
 
I would like the clock dial better than the slider, I think.

And maybe you may also allow both a countdown style (like now) and a set time to put the ringing back (let's say, I go to sleep, I put the phone to silent and set it to go back to ringing at 8:30, instead of "8 hours from now").

ajalkane 2015-08-29 21:44

Re: [Announce] RingingRestorer for SailfishOS
 
Update available in OpenRepos (soon in Jolla store also):

- Clock dial selection for time to restore in.
- Remembers previously set restoration time (though not across reboots)

There was request(s) about setting time instead of delay when to restore. Let me know if that's still something that's needed. Personally I feel as the delay in restoring as well as concrete time is displayed as text it might be enough to satisfy both use cases - But if you feel otherwise after using the new version let me know.

Watchmaker 2015-08-30 17:12

Re: [Announce] RingingRestorer for SailfishOS
 
I've been having an issue with Ringing Restorer not running anymore after a phone reboot and/or update of the app (like this last time).
The only way I have to make it work again is to uninstall and reinstall it again.

The new dial, on the other hand, works very good.
I still think being able to also directly set the time woulf be nice, but it's less a necessity now.

ssahla 2015-08-30 17:48

Re: [Announce] RingingRestorer for SailfishOS
 
Quote:

Originally Posted by Watchmaker (Post 1480465)
I've been having an issue with Ringing Restorer not running anymore after a phone reboot and/or update of the app (like this last time).
The only way I have to make it work again is to uninstall and reinstall it again.

Same here, had to uninstall first.

ajalkane 2015-08-31 13:38

Re: [Announce] RingingRestorer for SailfishOS
 
Quote:

Originally Posted by Watchmaker (Post 1480465)
I've been having an issue with Ringing Restorer not running anymore after a phone reboot and/or update of the app (like this last time).
The only way I have to make it work again is to uninstall and reinstall it again.

Are you running Jolla Store or OpenRepos version?

Watchmaker 2015-08-31 13:55

Re: [Announce] RingingRestorer for SailfishOS
 
Quote:

Originally Posted by ajalkane (Post 1480542)
Are you running Jolla Store or OpenRepos version?

OpenRepos.

ajalkane 2015-09-18 21:34

Re: [Announce] RingingRestorer for SailfishOS
 
I have uploaded an update to OpenRepos (and JollaStore) for Sailfish 2.0 (I'm unsure how these changes affect prior Sailfish versions as I have only one device to test with):

- Sailfish 2.0 profile change support (currently no support for restoring previous Ambiance when silent ambiance selected)
- Restoration of ringing volume to selected value

Jeffrey04 2015-09-22 08:41

Re: [Announce] RingingRestorer for SailfishOS
 
Quote:

Originally Posted by ajalkane (Post 1482972)
I have uploaded an update to OpenRepos (and JollaStore) for Sailfish 2.0 (I'm unsure how these changes affect prior Sailfish versions as I have only one device to test with):

- Sailfish 2.0 profile change support (currently no support for restoring previous Ambiance when silent ambiance selected)
- Restoration of ringing volume to selected value

so the expected behavior should be,

1. I choose a silent profile/ambiance
2. ringtone restorer prompt should pop up
3. when time is up, i will remain in the same ambiance (in this case, the same silent profile), but it is no longer silent

am i right?!

ajalkane 2015-09-22 09:50

Re: [Announce] RingingRestorer for SailfishOS
 
Quote:

Originally Posted by Jeffrey04 (Post 1483286)
so the expected behavior should be,

1. I choose a silent profile/ambiance
2. ringtone restorer prompt should pop up
3. when time is up, i will remain in the same ambiance (in this case, the same silent profile), but it is no longer silent

am i right?!

Correct. 10 chars.

Jeffrey04 2015-09-23 07:58

Re: [Announce] RingingRestorer for SailfishOS
 
Quote:

Originally Posted by ajalkane (Post 1483294)
Correct. 10 chars.

lol, my ringingrestorer service is not starting :S
is there a way to find the log?

ajalkane 2015-09-23 09:40

Re: [Announce] RingingRestorer for SailfishOS
 
Quote:

Originally Posted by Jeffrey04 (Post 1483417)
lol, my ringingrestorer service is not starting :S
is there a way to find the log?

Problem after updating to new version? Try to uninstall and then install again. I think there's some problem with updating that I've not yet had time to look into.

And yes, there's a way to view logs:

# journalctl /usr/bin/harbour-ringingrestorer

ajalkane 2020-03-20 19:32

Re: [Announce] RingingRestorer for SailfishOS
 
Lo and behold, after about 3 years I published an update to make this work again on newer Sailfish versions lol.

peterleinchen 2020-03-20 23:31

Re: [Announce] RingingRestorer for SailfishOS
 
Wow.

It is more than 4 years :)
v1.3-1
2015-09-24


--
but not yet visible on openrepos

ajalkane 2020-03-21 12:49

Re: [Announce] RingingRestorer for SailfishOS
 
Yeah I haven't yet put to openrepos, only Jolla Store.

ajalkane 2020-03-26 06:19

Re: [Announce] RingingRestorer for SailfishOS
 
Updated openrepos version to fix restart on Jolla C upon reboots.

peterleinchen 2020-06-12 21:04

Re: [Announce] RingingRestorer for SailfishOS
 
@ajalkane
On my device, a XA2, with SFOS 3.2.1.20 RingingRestorer does not eeally work correct.
The daemon is up and I can set the amount of time and if I apply the restore time (even with default 15 min) the device goes into silent mode.
But I found it a lot of times (almost always) that device gave me ring and signal tnes. Checking the mode I found the mode was set back to ringing mode. First I thought I had activated it accidentally but just now I found it like :
setting into silent, letting screen saver chime in (have device lock set but only activated after 4h), putting device aside fir two minutes. Opening with button press and swipe and checking mode: ringing mode.

Something more to provide to you?

ajalkane 2020-06-16 10:19

Re: [Announce] RingingRestorer for SailfishOS
 
I haven't noticed such behaviour. I will try to reproduce.

You can also manually get logs from the daemon by shutting down first the systemd controlled daemon ("servicectl stop harbour-ringingrestorer" or somethin like that), and then running from terminal with "harbour-ringingrestorer -d".

Of course journalctl also has the logs even without running manually the daemon.

peterleinchen 2020-06-16 19:46

Re: [Announce] RingingRestorer for SailfishOS
 
1 Attachment(s)
Quote:

Originally Posted by ajalkane (Post 1567957)
...
You can also manually get logs from the daemon by shutting down first the systemd controlled daemon ("servicectl stop harbour-ringingrestorer" or somethin like that), and then running from terminal with "harbour-ringingrestorer -d".

...

Herbe is the output from terminal:
Code:


[nemo@Sailfish ~]$ harbour-ringingrestorer -d >the.log[D] unknown:0 - int main(int, char**) isDaemon true[D] unknown:0 - virtual int DaemonMainInit::main(int, char**) Starting ringingrestorer daemon[D] unknown:0 - Using Wayland-EGL[D] unknown:0 - virtual int DaemonMainInit::main(int, char**) Calling exec[D] unknown:0 - Profile changed 1/1/silent[D] unknown:0 - void ProfileChangeWatcher::profileChanged(const QString&) stopping and startingtimer[D] unknown:0 - void QmlDaemonBackend::showTimeoutDialog()[D] expression for onOpenTimeoutDialog:30 - onOpenTimeoutDialog[W] unknown:157 - file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:157: TypeError: Cannot read property 'backIndicatorDown' of null[W] unknown:152 - file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:152: TypeError: Cannot read property 'backIndicatorDown' of null[W] unknown:212 - file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:212: TypeError: Cannot read property 'forwardIndicatorDown' of null[W] unknown:207 - file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:207: TypeError: Cannot read property 'forwardIndicatorDown' of null[D] onStatusChanged:71 - onStatusChanged 1[D] onStatusChanged:78 - Cancelling cancel timer[D] onStatusChanged:71 - onStatusChanged 2[D] onStatusChanged:74 - Starting cancel timer[D] onAccepted:63 - onAccepted, mins: 15, volume: 40[D] unknown:0 - void QmlDaemonBackend::restoreRingingIn(int, int) restoreRingingIn 15 minutes,volume 40[D] unknown:0 - ProfileChangeWatcher::restoreRingingIn 15, volume 40, currentProfile 'silent'[D] unknown:0 - void SystemAlignedTimer::stop()stopped timeout[D] unknown:0 - int SystemAlignedTimer::_calculateNearestSlot(quint64) const secsTo 900[D] unknown:0 - int SystemAlignedTimer::_calculateNearestSlot(quint64) const considering sec 30against slot 30[D] unknown:0 - int SystemAlignedTimer::_calculateNearestSlot(quint64) const considering sec 150against slot 150[D] unknown:0 - int SystemAlignedTimer::_calculateNearestSlot(quint64) const considering sec 300against slot 300[D] unknown:0 - int SystemAlignedTimer::_calculateNearestSlot(quint64) const considering sec 600against slot 600[D] unknown:0 - int SystemAlignedTimer::_calculateNearestSlot(quint64) const considering sec 1800 against slot 1800[D] unknown:0 - int SystemAlignedTimer::_calculateNearestSlot(quint64) const chose slot 600[D] onStatusChanged:71 - onStatusChanged 3[D] onStatusChanged:78 - Cancelling cancel timer[D] unknown:0 - virtual int DaemonMainInit::main(int, char**) Exec returned with value 0[D] unknown:0 - virtual int DaemonMainInit::main(int, char**) Calling exec[D] onStatusChanged:71 - onStatusChanged 0[D] onStatusChanged:78 - Cancelling cancel timer[D] unknown:0 - Profile changed 1/1/general[D] unknown:0 - void ProfileChangeWatcher::profileChanged(const QString&) Changed to  "general" which is either different than currentProfile "silent" or is not silent profile silent

Sorry for the format. Ya know SFOS style copied in chunks from terminal and put to Notes app and copied here.
Let me know if you can read it. Else I will try to make it more readable.

--edit
Oh and should not the button in your app stop/start the daemon?

--edit2
attached the log as txt a but more readable

ajalkane 2020-08-06 06:54

Re: [Announce] RingingRestorer for SailfishOS
 
Sorry for taking time... I have tested a lot this myself and have not been able to reproduce this.

But those logs... There doesn't seem to be any indication that RingingRestorer would change the ringing profile. BUT the logs do show that RingingRestorer sees that the profile was changed to "general". So it seems something else is changing the profile when you unlock?

You can try stopping RingingRestorer if this peculiar behavior continues. But according to those logs it doesn't seem like RingingRestorer is doing that.

peterleinchen 2020-08-06 07:30

Re: [Announce] RingingRestorer for SailfishOS
 
Oh yes it continued! :(

But just as I saw your post (thanks for looking into this at all) it came to my mind! :cool:

I am using xplanet and this one generates all x minutes a new picture and activates its ambience.
And (just tested) on an ambience switch the profile is switched to general.
So ringingrestorer works as it should, perfectly.
Just in conjunction with xplanet its functionality gets disturbed.

peterleinchen 2020-10-18 18:23

Re: [Announce] RingingRestorer for SailfishOS
 
Quote:

Originally Posted by peterleinchen (Post 1568637)
Oh yes it continued! :(
...
So ringingrestorer works as it should, perfectly.
Just in conjunction with xplanet its functionality gets disturbed.

And I totally forgot to leave the solution:
just disable the ringing volume for the xplanet ambience!


All times are GMT. The time now is 18:30.

vBulletin® Version 3.8.8