Ask / Submit
20

[Request] Add support for assigning custom ambience to TOH

asked 2014-12-12 14:33:09 +0200

rabit gravatar image

updated 2014-12-14 18:24:11 +0200

It would be nice to have the ability to assign a custom ambience to one of the TOH pieces we own. Maybe there is an undocumented API for that already which is not exposed. If there is an existing API, please document how that could be used from a SailfishOS app.

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted
4

answered 2014-12-15 12:15:38 +0200

updated 2014-12-15 13:43:06 +0200

Hello, rabit! It is possible to do it.

You have to update this database: /home/nemo/.local/share/system/privileged/Ambienced/ambienced.sqlite

You need sqlite3, for example. Using "SELECT * FROM ambience;" it returns the table "ambience", where you can discover the id of you ambience. Then you must discover the id of your TOH (TOHID) using "SELECT * FROM tohid;"

Finally, you must update the table "tohid" to link the "TOHID" and the id of your ambience: "INSERT INTO tohId VALUES ([id of your ambience (int)], '[TOHID]');" (if you are trying to link an ambience with an existing TOH - official ones, for example - you should use the UPDATE command)

EDIT: Something like "UPDATE tohId SET fileId = [ID of your ambience] WHERE tohId = '[ID of your TOH]';"

PS: I think your ambience have to be set as favorite.

edit flag offensive delete publish link more

Comments

Thanks so much, I'll give it a try later today and report back if it worked for me.

rabit ( 2014-12-15 12:17:17 +0200 )edit

Good! Just let me know.

Brudhu ( 2014-12-15 12:52:47 +0200 )edit

Switched back to my old Nexus 4, sold my Jolla. Never found the time to test this, probably would be good if someone else tries this out with the new release. Thanks again!

rabit ( 2014-12-31 17:32:51 +0200 )edit
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2014-12-12 14:33:09 +0200

Seen: 292 times

Last updated: Dec 15 '14