Active Topics

 



Notices


Reply
Thread Tools
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#21
try to start executable without invoker in terminal
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Posts: 344 | Thanked: 1,345 times | Joined on Aug 2012 @ Paris, FR
#22
Originally Posted by coderus View Post
try to start executable without invoker in terminal
Already tried, and this works ... I wonder.
__________________
Developer of Friends Facebook client, patchmanager, Phonebot
Blogger at Jollafr and random thoughts on my personnal blog
Support my work
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#23
well, from my past experience with Schturman - he is professional bug-finder. All his devices producing many very rare bugs for every application, so do not be surprised
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#24
Originally Posted by coderus View Post
well, from my past experience with Schturman - he is professional bug-finder. All his devices producing many very rare bugs for every application, so do not be surprised
Bla bla bla
It not work from icon, only from terminal...
 
Posts: 21 | Thanked: 11 times | Joined on Sep 2012
#25
Originally Posted by Sfiet_Konstantin View Post
0.1.2 testing version includes:
  • UI fixes
  • You can see a summary of the rule in the main page, as well as summary of a component when creating a rule
  • Week day condition, allowing triggering events only on some days of the week
  • HAL watching you while you are on launcher grid

Get it at OBS

Next targets:
  • System daemon + jolla settings
  • DBus trigger and action
  • Notifications
  • Brightness control
  • Switch connectivitiy stuff
  • Entering a wifi area
  • Location
Hello!

This is great, just what I have been waiting for.
On my Jolla the latest version works just fine. Those new features you mentioned above are most welcome!
Hopefully you have time for this project, I'm sure there are many others who are waiting for this into their Jollas'
 

The Following User Says Thank You to M_NP For This Useful Post:
Posts: 461 | Thanked: 358 times | Joined on May 2010 @ Bilbao (Basque Country [Spain])
#26
Is this project alive yet? I like it. The rpm link is broken.
 

The Following User Says Thank You to malkavian For This Useful Post:
Posts: 7 | Thanked: 8 times | Joined on Mar 2012
#27
Here is the link: http://repo.merproject.org/obs//home...la.armv7hl.rpm

Can we please have some other examples, like for BT and/or WiFi ON/OFF
 
Posts: 344 | Thanked: 1,345 times | Joined on Aug 2012 @ Paris, FR
#28
Hi !
I'm working on this again !

Coming soon, easy stuff:
  • Turning network stuff on/off
  • Launching apps
  • Showing notifications
  • IM status
__________________
Developer of Friends Facebook client, patchmanager, Phonebot
Blogger at Jollafr and random thoughts on my personnal blog
Support my work
 

The Following 15 Users Say Thank You to Sfiet_Konstantin For This Useful Post:
Posts: 339 | Thanked: 1,623 times | Joined on Oct 2013 @ France
#29
Hi,

I am looking at an ambience switch action.

I have a lot to learn in the process, from qml (I'm a widget guy...) to dbus, through packaging hell.


Anyway, here are what I found so far:

Ambiances can be changed using the following dbus command:
Code:
$ dbus-send --type=method_call --dest=com.jolla.ambienced /com/jolla/ambienced com.jolla.ambienced.setAmbience string:"file:///usr/share/ambience/storm/storm.ambience"
The string containing the image to use as an ambience.

Then, to discover which ambiences exist, and in particular which ones are favorited (so that they can contain ringtone/volume parameters), we need to dig into a hidden sqlite database which requires root access so far (or at least privileged rights):

Code:
# echo "SELECT file.displayName, directory.path,file.filename FROM ambience INNER JOIN file ON file.id = ambience.fileId INNER JOIN directory ON directory.id = file.directoryId WHERE ambience.favorite = 1;" | sqlite3 /home/nemo/.local/share/system/privileged/Ambienced/ambienced.sqlite | sed -e "s/|/ : /" -e "s/|/\//"
This returns the favorited ambiences only (you can remove this condition in the query if you want all) in the following format "name : path", like shown here:
Code:
Home : /usr/share/ambience/babyflower/babyflower.ambience
Night : /usr/share/ambience/redtrain/redtrain.ambience
Work : /usr/share/ambience/storm/storm.ambience
By the way, custom ambiences have a jpeg (or other) extension, not ".ambience".

My next step will be to integrate the DBus command (using proper Qt class, bash commands where simply used to test the functionnality) into an AmbienceAction plugin, hardcoding the ambiances path in the GUI.
Then we will need a way to get the favorited ambiances without needing privilege access to read the sqlite database...

I'll let you know when I reach the next step.
 

The Following 5 Users Say Thank You to Zeta For This Useful Post:
Posts: 339 | Thanked: 1,623 times | Joined on Oct 2013 @ France
#30
I got the ambiance switch working.

So far, on the UI side the ambiances names and path are hard coded, but the path can be changed manually in the scripts.


I need to do some clean-up and will push it to github to do a pull request.

Here is a screenshot of phone bot interface with some ambiance rules.
Attached Images
 
 

The Following 6 Users Say Thank You to Zeta For This Useful Post:
Reply

Tags
phonebot, task scheduler


 
Forum Jump


All times are GMT. The time now is 02:03.