maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Situations app - bugs, questions, answers, help etc.. (https://talk.maemo.org/showthread.php?t=94442)

hhaveri 2016-10-10 11:56

Re: Situations app - bugs, questions, answers, help etc..
 
Ok,

Submitted to Harbour for review. With a correct version number, I hope ;)

Br,
Heikki

eson 2016-10-11 05:42

Re: Situations app - bugs, questions, answers, help etc..
 
21 hours of "normal" use, including Sleep situation on/off and system reboot with autostart activation. No crashes and everything looks okay to me.

tom.i 2016-10-11 07:53

Re: Situations app - bugs, questions, answers, help etc..
 
Hi hhaveri,
in jolla store I've asked you in comments, how does the command action works. You told me that better should be to save command to some BASH script, and then use Situations command action to launch it.
But unfortunatelly that doesn't work. Script is working via terminal without problem.

I've tried to write it as follows:
1.
Code:

/home/nemo/scripts/./google_onOff.sh offline
2.
Code:

bash /home/nemo/scripts/google_onOff.sh offline
but both don't work. Should be there some specific syntax for it?

Thanks,

Tom

hhaveri 2016-10-11 08:50

Re: Situations app - bugs, questions, answers, help etc..
 
Currently command is run as just a simple call to QProcess:startDetached(). There's no parsing for arguments, or anything sophisticated, so that sort of stuff probably does not work.

So, try the first approach, but embed 'offline' argument to the script?

Br,
Heikki

hhaveri 2016-10-14 13:13

Re: Situations app - bugs, questions, answers, help etc..
 
Hep,

For those with Pebble smartwatch, Situations now has a new quickly implemented and "almost tested" Rockpool (https://openrepos.net/content/abranson/rockpool) compatible action plugin to change watchfaces. No support to revert back at situation end (at least for now), so changing a watchface is more like launching an app instead.

Br,
Heikki

P@t 2017-08-30 09:34

Re: Situations app - bugs, questions, answers, help etc..
 
Using the latest OS update (2.1.1), it seems that some features are not working anymore.
- bluetooth device conditions is not triggering anything anymore and I cannot look for connected devices anymore. This is certainly related to the adoption of Bluez 5 for Jolla C
- I have a situation with mobile disconnect and wifi enabling. The first one seems to work as before but wifi is not turned on anymore.

Thanks a lot for this app ;-)

hhaveri 2017-08-30 10:22

Re: Situations app - bugs, questions, answers, help etc..
 
Trying to toggle WiFi & BT on/off via dbus seems to result in "permission denied" with the latest OS. I guess the only solution to this at the moment is to run the app in "developer mode". Someone should ask Jolla if this change will be permanent and/or if there will be a new 3rd party api for toggling radios on & off.

Haven't tried BT discovery yet, but I'll see what can be done about it. However, I don't have Jolla C if that is required to reproduce & fix the issue.

Br,
Heikki

P@t 2017-08-30 12:15

Re: Situations app - bugs, questions, answers, help etc..
 
Thanks for the reply. I am likely not the right person to ask Jolla as I am not sure how to raise the right question and how to deal with a possible answer...
I guess this should be a new thread in together.jolla.com.

Regarding Jolla C, indeed afaik only Jolla C is using Bluez 5 while other devices only have libraries that could be activated but still by default use Bluez 4. However, as you can imagine, Bluez 5 should be coming to all (most?) devices at some point.

Asgard 2017-09-02 16:24

Re: Situations app - bugs, questions, answers, help etc..
 
Without knowing that this question was also posed here yesterday I open a question on together jolla with this problem.
https://together.jolla.com/question/...e-os-to-21126/
I also contacted the application developer, but from this side no way.
In the moment I test some command actions but found no good solution. My question is how can I run any app in developer mode?
A other idea is to use the app situation from android. Had anybody test this way?
I'm still looking for an app which make the phone silent with using the calendar events. In situation for sailfish this feature unfortunately not available and the Meego app Profilematic is not ported to sailfish.

R1v3r 2017-10-19 17:11

Re: Situations app - bugs, questions, answers, help etc..
 
Hello hhaveri.

I havenīt got through this complete thread, and I just wanted to ask, if it is possible to copy/paste old situations settings from Jolla to Jolla c?

I mean that I could get these situations itself copied. Is there one file that could be copied to Jolla c? (If yes, what is the path?)

hhaveri 2017-10-19 18:38

Re: Situations app - bugs, questions, answers, help etc..
 
Yes, you can copy the whole directory /home/nemo/.local/share/harbour-situations2application

Br,
Heikki

R1v3r 2017-10-19 18:59

Re: Situations app - bugs, questions, answers, help etc..
 
Thanks! You saved me a heck-of-a-job!

R1v3r 2017-10-21 16:42

Re: Situations app - bugs, questions, answers, help etc..
 
Umm. Is there some problem with bluetooth recognition?

I am tryin to add WHEN situation to be my car BT, but situation does not find anything.

Phone is still connected to car, but still no go.

Schturman 2017-10-21 18:37

Re: Situations app - bugs, questions, answers, help etc..
 
Quote:

Originally Posted by R1v3r (Post 1537415)
Umm. Is there some problem with bluetooth recognition?

I am tryin to add WHEN situation to be my car BT, but situation does not find anything.

Phone is still connected to car, but still no go.

Root required to start/stop BT... If you want, you can use my https://openrepos.net/content/schtur...-bt-timer-only for this.

R1v3r 2017-10-21 19:01

Re: Situations app - bugs, questions, answers, help etc..
 
Quote:

Originally Posted by Schturman (Post 1537422)
Root required to start/stop BT... If you want, you can use my https://openrepos.net/content/schtur...-bt-timer-only for this.

Thanks for the info, but I donīt think that this is the issue in my situation.

I would like to use my already paired connections on when status.

So WHEN connected to my car, it will set something. (for example wlan off and mobile data on..)

Schturman 2017-10-21 19:46

Re: Situations app - bugs, questions, answers, help etc..
 
Quote:

Originally Posted by R1v3r (Post 1537423)
Thanks for the info, but I donīt think that this is the issue in my situation.

I would like to use my already paired connections on when status.

So WHEN connected to my car, it will set something. (for example wlan off and mobile data on..)

Ok... For wlan you also need root...

hhaveri 2017-10-22 05:51

Re: Situations app - bugs, questions, answers, help etc..
 
Quote:

Originally Posted by R1v3r (Post 1537423)
Thanks for the info, but I donīt think that this is the issue in my situation.

I would like to use my already paired connections on when status.

So WHEN connected to my car, it will set something. (for example wlan off and mobile data on..)

This is likely about the updated Bt stack (bluez5). I'm currently not able to update to it as I only have Jolla 1 to develop & test with.

Br,
Heikki

LVPVS 2017-11-05 19:19

Re: Situations app - bugs, questions, answers, help etc..
 
Hei,

What's the situation with SailfishX?
Will this app work there?

Kiitos,
LVPVS over.

hhaveri 2017-11-06 06:59

Re: Situations app - bugs, questions, answers, help etc..
 
Quote:

Originally Posted by LVPVS (Post 1538204)
Hei,

What's the situation with SailfishX?
Will this app work there?

Kiitos,
LVPVS over.

Yes and no. Basically the app works as before. But the latest Sailfish OS update(s) have made it impossible to control Airplane mode and BT & WiFi radio states from the app without running it as root - or without running some external commands that do the root magic instead.

Also, Sailfish X has different BT stack (bluez5) which is not yet supported by Situations, so BT scanning does not work either. I don't have a device to develop & test against, so not sure when it will be available - or if there are any other incompatibilities.

I do have some initial blind bluez5 implementation done in Ubuntu desktop environment, but I have no idea if it works at all on Sailfish, so I need some volunteer(s) to do some (a lot of?) on-device-testing with a completely new but potentially broken and/or incomplete version of the app. Anyone? :)

Br,
Heikki

R1v3r 2017-11-06 07:09

Re: Situations app - bugs, questions, answers, help etc..
 
Quote:

Originally Posted by hhaveri (Post 1538215)
Yes and no. Basically the app works as before. But the latest Sailfish OS update(s) have made it impossible to control Airplane mode and BT & WiFi radio states from the app without running it as root - or without running some external commands that do the root magic instead.

Also, Sailfish X has different BT stack (bluez5) which is not yet supported by Situations, so BT scanning does not work either. I don't have a device to develop & test against, so not sure when it will be available - or if there are any other incompatibilities.

I do have some initial blind bluez5 implementation done in Ubuntu desktop environment, but I have no idea if it works at all on Sailfish, so I need some volunteer(s) to do some (a lot of?) on-device-testing with a completely new but potentially broken and/or incomplete version of the app. Anyone? :)

Br,
Heikki

I can do testings, if I am any good for it? :D

If you give any info, how do I send logs etc..

hhaveri 2017-11-15 19:59

Re: Situations app - bugs, questions, answers, help etc..
 
Good evening folks! (or what ever time of day you think it is)

I think it is finally time to make the (too) long development of the next version of Situations app a bit more public. So a "public beta" has now been made available for installation from http://www.pastillilabs.com/situations/sailfish

Lots of things have changed. Lots of refactoring code and other implementation stuff. And then again lots of things in the app should seem like the same. The most obvious things changed are listed here - but I might not remember everything:

* New UX
* Possibility to define many actions also as conditions (hail to the long awaited ambience as a condition -feature!)
* Possibility to set up nice endless situation loops with the above
* Support for bluez5 on newer Sailfish devices
* Command action supports arguments (at least to some extent)
* Fixes, tweaks and all sorts of other stuff here and there
* New GPS state condition
* Probably a ton of new bugs(?)
* Lots of stuff that was planned had to be left out - for now

The new UI style is what it is. Get used to it and try not to bitch about it :) Anyway, bug reports, feature requests, constructive UI criticism and all overly positive feedback are welcome as always.

Oh, and just in case, do a manual backup of /home/nemo/.local/share/harbour-situations2application directory if you hate it and want to go back to the old version. Or if the update somehow corrupts your application data.

If someone here is using the Android version, it will get a public beta too - hopefully in a day or two. And everything around the app needs to be updated as well, which will take much more time...

Br,
Heikki

Ps. Big thanks to R1v3r for help with the bluetooth condition.

R1v3r 2017-11-15 20:04

Re: Situations app - bugs, questions, answers, help etc..
 
Quote:

Originally Posted by hhaveri (Post 1538520)
Ps. Big thanks to R1v3r for help with the bluetooth condition.

Least I can do to help! And will help future also, if needed :)

eson 2017-11-15 20:33

Re: Situations app - bugs, questions, answers, help etc..
 
Ok... first bug report then. Mobile data on/off do not appear on what page.
Nice new UI btw. :)

mosen 2017-11-15 21:02

Re: Situations app - bugs, questions, answers, help etc..
 
great work and cool new ui!

I would have a feature request if you not already have it among:
Quote:

Originally Posted by hhaveri (Post 1538520)
* Lots of stuff that was planned had to be left out - for now

Or maybe i missed how to change the "or" in conditions of the same group to an "and"?

I would like to activate my "sleep" situation if charger and headphones are connected. Now, if both conditions are added there is an "or" between the two. I would need the funktionality of an "and".
Is that possible in your current implementation?

hhaveri 2017-11-16 00:41

Re: Situations app - bugs, questions, answers, help etc..
 
Quote:

Originally Posted by eson (Post 1538523)
Ok... first bug report then. Mobile data on/off do not appear on what page.
Nice new UI btw. :)

Thanks, it is now fixed. You need to visit the features page to update the plugin - and seems that you also need to restart the app to make it visible in the plugin list (I'll need to fix this also, but later).

Btw, the whole mobile data plugin is quite untested as a condition or action. I hope it works, but do report if there are problems with it.

Br,
Heikki

hhaveri 2017-11-16 00:51

Re: Situations app - bugs, questions, answers, help etc..
 
Quote:

Originally Posted by mosen (Post 1538524)
great work and cool new ui!

I would like to activate my "sleep" situation if charger and headphones are connected. Now, if both conditions are added there is an "or" between the two. I would need the funktionality of an "and".
Is that possible in your current implementation?

Thanks,

No, it is not possible with the current implementation. Actually I don't think anyone has even requested this before. The Accessory condition is a bit special case as it is now a logical grouping of completely unrelated things. The grouping was made entirely on UI design basis and causes difficulty for this kind of corner case.

So, I need to think about it - the easiest solution would be to just break the plugin apart so that "AND" would become the default between the different options. But I would then also need to maintain compatibility with the existing uses of Accessory condition.

Br,
Heikki

eson 2017-11-16 05:07

Re: Situations app - bugs, questions, answers, help etc..
 
Thanks, mobile data visibility fixed, so here's another one... ;)
I can't change the vibration action. It seem to be locked at system setting, except for the initial preconfigured situations.

hhaveri 2017-11-16 06:22

Re: Situations app - bugs, questions, answers, help etc..
 
Quote:

Originally Posted by eson (Post 1538531)
Thanks, mobile data visibility fixed, so here's another one... ;)
I can't change the vibration action. It seem to be locked at system setting, except for the initial preconfigured situations.

Fixed as well. Same procedure required again at your end :)

Br,
Heikki

eson 2017-11-16 08:13

Re: Situations app - bugs, questions, answers, help etc..
 
Quote:

Originally Posted by hhaveri (Post 1538535)
Fixed as well.

Thanks, vibration selection working.
Guess you already know, but there is a translation string missing or not translating... "Background image" in Settings page.

If I may, I would also like to request a feature. It would be handy to have an Enable/Disable switch for the individual situation. That way I don't have to delete the situation I temporarily don't want to use. Disabling the last situation should also turn of daemon.

hhaveri 2017-11-16 08:18

Re: Situations app - bugs, questions, answers, help etc..
 
Quote:

Originally Posted by eson (Post 1538539)
Thanks, vibration selection working.
Guess you already know, but there is a translation string missing or not translating... "Background image" in Settings page.

If I may, I would also like to request a feature. It would be handy to have an Enable/Disable switch for the individual situation. That way I don't have to delete the situation I temporarily don't want to use.

Yes, some translations are naturally missing. I'll make the translation sources available a bit later for anyone who wants to contribute.

You can disable automation of an individual situation by swiping a situation item left in the main view (a red circle should appear on the right side). You can also set a timeout for it (max ~24h) by tapping the red circle.

Br,
Heikki

eson 2017-11-16 08:23

Re: Situations app - bugs, questions, answers, help etc..
 
Quote:

Originally Posted by hhaveri (Post 1538540)
You can disable automation of an individual situation by swiping a situation item left in the main view (a red circle should appear on the right side). You can also set a timeout for it (max ~24h) by tapping the red circle.

Ahh... thanks, guess I didn't read the help. :o

edgar2 2017-11-20 08:14

Re: Situations app - bugs, questions, answers, help etc..
 
is it possible to define a custom ambiance as a criteria? i seem to only have the built-in ambiances available. (installed the beta version).

hhaveri 2017-11-20 08:31

Re: Situations app - bugs, questions, answers, help etc..
 
Nope, Situations can only see the built-in (and installed ambiances). There's no API for custom ambiances in Sailfish.

Br,
Heikki

edgar2 2017-11-26 08:14

Re: Situations app - bugs, questions, answers, help etc..
 
Quote:

Originally Posted by hhaveri (Post 1538615)
Nope, Situations can only see the built-in (and installed ambiances). There's no API for custom ambiances in Sailfish.

would anyone know how to edit the existing ones then? as a work-around, could one swap the image of a built-in ambience somehow?

eson 2017-11-26 08:57

Re: Situations app - bugs, questions, answers, help etc..
 
Quote:

Originally Posted by edgar2 (Post 1538789)
would anyone know how to edit the existing ones then? as a work-around, could one swap the image of a built-in ambience somehow?

  • Copy ambience folder of your choice from /usr/share/ambience/ to your desktop or user directory, and rename it to whatever you like.
  • Rename and edit *.ambience file according to new ambience name and replace the image if you like.
  • Copy folder back to /usr/share/ambience/ when done.
  • Restart ambienced.service or reboot device.
Code:

systemctl --user restart ambienced.service

pichlo 2017-11-27 08:45

Re: Situations app - bugs, questions, answers, help etc..
 
Thanks for the tip, @eson. I may try it when I dig up my Jolla back from the drawer.
A question: will you not have to repeat the steps after every system update?

eson 2017-11-27 08:55

Re: Situations app - bugs, questions, answers, help etc..
 
Quote:

Originally Posted by pichlo (Post 1538828)
will you not have to repeat the steps after every system update?

No, it will behave like built-in/installed ambience. Settings will not reset.

hhaveri 2017-12-07 08:00

Re: Situations app - bugs, questions, answers, help etc..
 
Hep,

Updated Beta packages (3.0.128) available here:
https://github.com/pastillilabs/packages/releases

Fixes ringtone volume as a condition and updates to new "plugin backend" location. The old one will stop working soon. For the Android version there have beem many more fixes, so that's the reason for a slightly bigger jump in build number.

Also, there's a new location for translations - in case anyone wants to contribute:
https://github.com/pastillilabs/translations

And and alpha website for the whole thing:
https://pastillilabs.github.io

Br,
Heikki

R1v3r 2017-12-11 11:38

Re: Situations app - bugs, questions, answers, help etc..
 
Would it be difficult to add GPS on/off toggle to WHAT side?

hhaveri 2017-12-11 11:58

Re: Situations app - bugs, questions, answers, help etc..
 
Yes, it would be. There's no public API as far as I know.


All times are GMT. The time now is 23:20.

vBulletin® Version 3.8.8