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)

Schturman 2015-10-25 16:33

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

Originally Posted by zlatko (Post 1486693)
I can not download the extensions - pressing the green arrow leads to a "loading" spinner for 1-2 seconds and then nothing. Any ideas?

Same here...

LVPVS 2015-10-25 16:48

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

Same here, too, with an added "feature": Situations App crashed upon listing the situations.
Several reinstalls fixed, at least the crashing...

LVPVS over.

hhaveri 2015-10-25 17:18

Re: Situations app - bugs, questions, answers, help etc..
 
Seems like some (or most?) language variants of the index file are corrupted for some reason. Finnish works at least for me though. Investigating...

Sorry for the inconvenience.

Br,
Heikki

hhaveri 2015-10-25 17:35

Re: Situations app - bugs, questions, answers, help etc..
 
Re-uploaded index files. Works now?

Schturman 2015-10-25 18:33

Re: Situations app - bugs, questions, answers, help etc..
 
Hmmm... hhaveri, why it can't see custom installed ambiences ? Them in the same directory...

hhaveri 2015-10-25 18:38

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

Originally Posted by Schturman (Post 1486707)
Hmmm... hhaveri, why it can't see custom installed ambiences ? Them in the same directory...

It is searching for translations too and skipping those missing. Working on a fix.

Br,
Heikki

hhaveri 2015-10-25 18:43

Re: Situations app - bugs, questions, answers, help etc..
 
Aaaand now it should show installed ambiences also (might not show all names correctly, though). Just visit extensions page to update the plugin.

Br,
Heikki

LVPVS 2015-10-25 19:56

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

Works like a charm!
Thank You! Kiitos!

The user-created Ambiences are not listed for the same reason I cannot use dbus to switch to them, right?

Keep up the good work!

LVPVS over.

nodevel 2015-10-25 21:02

Re: Situations app - bugs, questions, answers, help etc..
 
Thanks for the new plugin, hhaveri!

Any plans for making Ambience also a 'trigger' plugin? I am not sure how difficult it is, but it would definitely push ambiences to a whole new level.

hhaveri 2015-10-26 06:01

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

Originally Posted by nodevel (Post 1486720)
Thanks for the new plugin, hhaveri!

Any plans for making Ambience also a 'trigger' plugin? I am not sure how difficult it is, but it would definitely push ambiences to a whole new level.

Should be doable. In general I've been trying to avoid making conditions & actions that can easily cancel each other. But that may change at some point - not in the immediate future, though.

Br,
Heikki

hhaveri 2015-10-26 06:05

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

Originally Posted by LVPVS (Post 1486716)
Hei,
The user-created Ambiences are not listed for the same reason I cannot use dbus to switch to them, right?

I think you can switch them if you know what to switch. The problem is that listing the available user-created ambiences is not really possible.

Br,
Heikki

LVPVS 2015-10-26 06:38

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

As of now, I could not even find the user-created Ambiences...
I can use dbus to switch to the (pre)installed ones, though.

Anyway, I created some and I put them to the folder the (pre)installed ones are, so Situations App can easily switch them.

Thank you very musch for this great application.

LVPVS out.

MoritzJT 2015-10-26 10:09

Re: Situations app - bugs, questions, answers, help etc..
 
How did you do that?

Would love to know that trick!

Schturman 2015-10-26 10:16

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

Originally Posted by MoritzJT (Post 1486773)
How did you do that?

Would love to know that trick!

What you mean ? Just install a few custom ambiences or create them manually and put in to the right place.

zlatko 2015-10-26 10:30

Re: Situations app - bugs, questions, answers, help etc..
 
Where one can find the user created ambiances? I know I can use the pre-installed ones as a template and create an ambiance myself in the correct folder so it can be listed, but it is a lot easier to just copy it :)

LVPVS 2015-10-26 10:51

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

That is where I am lost, too. :)

LVPVS over.

LVPVS 2015-10-26 10:52

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

Originally Posted by Schturman (Post 1486775)
What you mean ? Just install a few custom ambiences or create them manually and put in to the right place.

Or to switch them via dbus?

LVPVS over.

Schturman 2015-10-26 11:28

Re: Situations app - bugs, questions, answers, help etc..
 
1. You can use this app to create your own ambience and it will transfer them to the system folder where the official ambiences installed. Situations will see them.
Package includes some example ambiences, that you also can use.
https://openrepos.net/content/schturman/ambience-copier
2. You also can install ambiences from openrepos...
3. I created a few ambiences that I can share but it not allowed on openrepos or other public places because in some of them I use official ringtones from officiall ambiences and don't know what the right source of images (from free web sites)

zlatko 2015-10-26 16:44

Re: Situations app - bugs, questions, answers, help etc..
 
I managed to create ambiences in the /usr/share/ambience/ folder, and find them in Settings=>Ambiences, but in Situations selection dialog they are shown without a name, just as blank entries. I guess which is which, but it is not that convenient when you have several of them. What could be the solution here?

Schturman 2015-10-26 17:36

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

Originally Posted by zlatko (Post 1486815)
I managed to create ambiences in the /usr/share/ambience/ folder, and find them in Settings=>Ambiences, but in Situations selection dialog they are shown without a name, just as blank entries. I guess which is which, but it is not that convenient when you have several of them. What could be the solution here?

did you wrote the "displayName" in the file .ambience ?
you can also try this command as root for refresh, that system could to see your ambience:
Code:

systemctl-user restart ambienced.service

zlatko 2015-10-26 19:02

Re: Situations app - bugs, questions, answers, help etc..
 
@Schturman
Yes, all is correct in the files - system finds the ambiences and displays their names. Only Situation application does not display the name - it shows just an empty line when trying to select an ambience. And is not activating this manually created entries.

Schturman 2015-10-26 19:20

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

Originally Posted by zlatko (Post 1486837)
@Schturman
Yes, all is correct in the files - system finds the ambiences and displays their names. Only Situation application does not display the name - it shows just an empty line when trying to select an ambience. And is not activating this manually created entries.

Try:
Code:

status=$(pgrep -f situations2application)
kill $status

And reopen Situations app.

zlatko 2015-10-26 19:41

Re: Situations app - bugs, questions, answers, help etc..
 
No, still additional ambiences names not shown in Situation app.

PS. Why don't you just tell me to kill Sitruations, but provide a script to do it? :)

Schturman 2015-10-26 19:44

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

Originally Posted by zlatko (Post 1486840)
No, still additional ambiences names not shown in Situation app.

PS. Why don't you just tell me to kill Sitruations, but provide a script to do it? :)

Closing Situations from homescreen just close the app but leave it in background...

zlatko 2015-10-26 19:47

Re: Situations app - bugs, questions, answers, help etc..
 
Yes, of course :) but I just can find the PID and kill the process :)

Schturman 2015-10-26 20:07

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

Originally Posted by zlatko (Post 1486842)
Yes, of course :) but I just can find the PID and kill the process :)

No problem, you can do it how you want ;)

Schturman 2015-10-26 20:18

Re: Situations app - bugs, questions, answers, help etc..
 
Guys, I fixed something and updated service app, now should work for all. Please try and report here.
https://openrepos.net/content/schtur...situations-app

About new plugin in Situations...
Since I have installed it, but not used, I experienced with strange behavior of phone. Once stack and got very slow UI (need reboot) and after this I got twice unexpected reboots in 1-1.5 hours... :eek:
Don't know if it related to the new plugin, but I didn't do nothing with phone in the last 2 days...

hhaveri 2015-10-27 05:44

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

Originally Posted by zlatko (Post 1486840)
No, still additional ambiences names not shown in Situation app.

Could you send the files to support(at)pastillilabs.com so I can debug and see what is happening there?

Or could it be some issue with file permissions?

Br,
Heikki

hhaveri 2015-10-27 05:50

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

Originally Posted by Schturman (Post 1486848)
About new plugin in Situations...
Since I have installed it, but not used, I experienced with strange behavior of phone. Once stack and got very slow UI (need reboot) and after this I got twice unexpected reboots in 1-1.5 hours... :eek:
Don't know if it related to the new plugin, but I didn't do nothing with phone in the last 2 days...

It's a very simple plugin, so quite unlikely causing such behavior. But maybe something in the plugin update process could have caused it. But in that case it shouldn't happen again after reboot.

Br,
Heikki

Schturman 2015-10-27 06:08

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

Originally Posted by hhaveri (Post 1486878)
It's a very simple plugin, so quite unlikely causing such behavior. But maybe something in the plugin update process could have caused it. But in that case it shouldn't happen again after reboot.

Br,
Heikki

Yep.. For now no reboots anymore ;) thanks

zlatko 2015-10-27 06:08

Re: Situations app - bugs, questions, answers, help etc..
 
@hhaveri
Done - I have sent you the .ambience file and some screenshots. Let me know what additional info you might need to debug.
Checked the permissions - all files(stock and user) in /usr/share/ambience/ have the same permissions.
Thank you for your effort! :)

LVPVS 2015-10-27 07:25

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

This morning I also noticed some really nasty laggings on the UI of the phone. After a few seconds it passed and ever since my phone works fine.

Might be the new SFOS release, though... :)

LVPVS over.

zlatko 2015-10-27 08:24

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

Changed all permissions to 777 for the user created ambiences - still names not displayed. All files and folders in /usr/share/ambience/ are owned by root.

Schturman 2015-10-27 08:53

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

Originally Posted by zlatko (Post 1486891)
@hhaveri

Changed all permissions to 777 for the user created ambiences - still names not displayed. All files and folders in /usr/share/ambience/ are owned by root.

Can you show your ".ambience" file?

zlatko 2015-10-27 09:40

Re: Situations app - bugs, questions, answers, help etc..
 
@Schturman
Here you are:

Code:

{
    "translationCatalog"        : "ambience-hal9000",
    "displayName"              : "HAL9000",
    "wallpaper"                : "ambience-hal9000.png",
    "highlightColor"            : "#81e6ff",
    "secondaryHighlightColor"  : "#81e6ff99",
    "primaryColor"              : "#FFFFFFFF",
    "secondaryColor"            : "#FFFFFF99",
    "ringerVolume"              : 40,
    "favorite"                  : true
}


Schturman 2015-10-27 10:12

Re: Situations app - bugs, questions, answers, help etc..
 
Looks ok... And the folder with the same name "ambience-hal9000" ?

zlatko 2015-10-27 10:40

Re: Situations app - bugs, questions, answers, help etc..
 
@Schturman
No, the folder is named just "hal9000". But the system finds and uses the given ambience without any problems. The name is displayed just fine as well.
For the sake of exactness I changed "translationCatalog" to match the folder name - still name not displayed by Situations app, just an empty place holder line.

hhaveri 2015-10-27 10:56

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

Originally Posted by zlatko (Post 1486901)
@Schturman
No, the folder is named just "hal9000". But the system finds and uses the given ambience without any problems. The name is displayed just fine as well.
For the sake of exactness I changed "translationCatalog" to match the folder name - still name not displayed by Situations app, just an empty place holder line.

Situations is picky (perhaps too much) about the folder/file names. The folder and .ambience filename need to match currently (they match with all other ambiences I've seen so far). So for now you should either change "hal9000" folder to "hal_9000" - or the other way around.

Br,
Heikki

Schturman 2015-10-27 11:23

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

Originally Posted by zlatko (Post 1486901)
@Schturman
No, the folder is named just "hal9000". But the system finds and uses the given ambience without any problems. The name is displayed just fine as well.
For the sake of exactness I changed "translationCatalog" to match the folder name - still name not displayed by Situations app, just an empty place holder line.

After changing the name, try to kill Situations and reload it again.

LVPVS 2015-10-27 11:35

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

Originally Posted by hhaveri (Post 1486903)
Situations is picky (perhaps too much) about the folder/file names. The folder and .ambience filename need to match currently (they match with all other ambiences I've seen so far). So for now you should either change "hal9000" folder to "hal_9000" - or the other way around.

Br,
Heikki

Hei,

Does Situations App change the Ambiences via dbus calls?

Code:

dbus-send --session --type=method_call --print-reply --dest=com.jolla.ambienced /com/jolla/ambienced com.jolla.ambienced.setAmbience string: 'file:///usr/share/ambience/your_ambience/your_ambience.ambience'
LVPVS over.


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

vBulletin® Version 3.8.8