Auto-ambience changer

Rating: 
3.75
Your rating: None Average: 3.8 (4 votes)

This apps can switch automatically between your favorite ambiences in the specific time period.

Script changed and written by Johannes Bachmann (CoanTeen), big thanks !

Usage:
Before you start service, create your own lists in /home/nemo/AmbienceList.
Go to this directory as USER. You will find here example.list. This list contains all your available ambiences.
Create your own lists how much you want and name them how you want. Each list can include unlimited number of lines with your favorite ambiences. For example you want 4 different ambiences at the day:

/usr/share/ambience/ambience-green-hexagon/ambience-green-hexagon.ambience
/usr/share/ambience/ambience-light-hexagon/ambience-light-hexagon.ambience
/usr/share/ambience/ambience-matrix-first/ambience-matrix-first.ambience
/usr/share/ambience/ambience-black/ambience-black.ambience

For editing your lists directly on the phone, you can use Filetug or TinyEdit apps (NO need root access!).

• You can switch between your lists whenever you want.
• App can see first 5 lists.
• To hide lists from app, just add dot to the beginning of the name, for example: .myambience.list
• If you will not create your own list, the app will use the default (full) list.

Now you can start to use app itself, just choose your list and Start service. If service already runs it automatically restart service after list applying. If you will change ambience manually, app will continue change ambiences from your list only on the next time value.
Update/upgrade will save your favorite list, time interval, sleeping time and shuffle mode.

Menu:
A - Will start service
B - Will stop service
C - Change time interval.
• You can insert unlimited number of time values. For example you want 4 different ambiences at the day in the specific time. Just insert your preferred time separated by one space, like:
06:15:00 12:30:00 18:30:00 23:50:00
D - Change sleeping interval.
• You can change the checking (sleeping) time interval, for example: 2m or 1h. Where 2m = 2 minutes or 1h = 1 hour. The default value is 20 sec.
E - Custom ambiences lists (see above). For changing your favorite ambiences lists.
F - Shuffle mode. When activated, will allow to app create new list with random order from your applied favorite list and it will use this list on the next loop.
I - Instruction. Will open PDF instruction.

v0.6-8
* Small fix for Silent mode.

v0.6-7
* Added possibility to restore Silent profile if was before ambience changing.
* Added possibility to change Default ringtone in Personal ringtone app (if installed) to the same as in the current ambience.

v0.6-6
- Compatible with last system update (2.0.1.7).
- Added option to change Default ringtone in Personal Ringtones app. When ambience changed it automatically will change Default ringtone to the same as in current ambience, if Personal Ringtones app installed. thanks to Coderus for explanation how to do this.

v0.6-5
* Fix of notification icon. Adaptation for 1.1.9.28.

v0.6-4
* Script completely changed by CoanTeen. Now you can use unlimited number of ambiences in your favorite list. Also unlimited time intervals.
* Added shuffle mode.
* Added PDF instruction.
* Description above updated.
* Notifications removed.

v0.3-2
* Adaptation for 1.1.1.27
* Show current status on first page.

v0.3-1
* Compatible with last system update (1.0.7.16).

v0.2-2
* Added disabling of autostart after reboot when you choose to STOP service.

v0.2-1
* Not needed editing as root, do it easily from USER directory.
* Switching between your own lists.
* Description updated.

Beware, use it on your own risk !!!

Donation are welcome :)

Screenshots: 
Application versions: 
AttachmentSizeDate
File autoambience-0.1-1.armv7hl.rpm33.68 KB27/03/2014 - 13:35
File autoambience-0.2-1.armv7hl.rpm36.72 KB29/03/2014 - 14:08
File autoambience-0.2-2.armv7hl.rpm36.81 KB04/04/2014 - 01:37
File autoambience-0.3-1.armv7hl.rpm36.79 KB11/06/2014 - 09:17
File autoambience-0.3-2.armv7hl.rpm36.73 KB28/12/2014 - 13:40
File autoambience-0.6-4.armv7hl.rpm70 KB19/02/2015 - 17:10
File autoambience-0.6-5.armv7hl.rpm69.93 KB11/10/2015 - 23:50
File autoambience-0.6-6.armv7hl.rpm69.81 KB10/02/2016 - 00:12
File autoambience-0.6-7.armv7hl.rpm69.99 KB13/03/2016 - 10:05
File autoambience-0.6-7.i486.rpm70.02 KB13/03/2016 - 10:05
File autoambience-0.6-8.i486.rpm70.06 KB14/03/2016 - 20:14
File autoambience-0.6-8.armv7hl.rpm70.04 KB14/03/2016 - 20:14
Changelog: 

- Fix for Silent mode.
- Added possibility to restore Silent profile if was before ambience changing.
- Added possibility to change Default ringtone in Personal ringtone app (if installed) to the same as in the current ambience.

Comments

naytsyrhc's picture

Very nice app. I have some questions though: I made some ambiences myself but I can't find which entries I have to write into the config/list file in order to get them activated. And: The Ambience Changer seems to autostart on reboot allthough I wanted to temporarly deactivate it (until I know how to use my own ambiences). Deactivation allthough is not "persistent" - after reboot changer autostarts again...

Schturman's picture

Thanks to point me about autostart after reboot. Fixed version available.

If you installed your ambiences after installation of this app, just open app -> choose E -> choose R. It will recreate the example.list file with your ambiences included. Open this file copy lines with your ambiences and create new list with 4 lines that include only your ambiences.

naytsyrhc's picture

Nope unfortunately that didn't do the trick. Actually I think the list only contains Ambiences that came with latest 1.0.4.20 release. No newly created no old ones. As I said, I also tried a search for them in filesystem but they don't seem to have files like those new ones. Maybe the old ones are stored in a sqllite db? Anyway , thanks for fixing the autostart bug.

And one other thing I just realised: you show a screenshot about notifications from Changer when Ambiences are changed. I don't get those.

Schturman's picture

1. It should dhow notifications.. Python required (in spec file), if it not installed, install it as root: pkcon install python
2. example.list should show all available ambiences from /usr/share/ambience, it use this command: find /usr/share/ambience -name '*.ambience'|sort. Try it from terminal and you will see the same lines like in example.list file. If it not show your ambiences, that mean your ambiences not here. How you installed your ambiences ?

naytsyrhc's picture

Thanks for pointing me to notifications though python. Installed it. Unfortunately I still don't seem to get notifcations. Will check and report.

The find command was what I did as well. I also did a full find / -iname "*ambien*" to check if the file names are different. To no avail.
I really don't know where those ambiences are stored. I "activated" them from Pictures in Gallery almost right after I got my Jolla, i.e. with old 1.0.1.10 or maybe 1.0.1.12 release. The pictures came from Jolla and I created the ambience from gallery. I also changed sounds and volumes for each ambience and named them. The new ambience that came from Jolla with 1.0.4.20 update seem to be somehow different. As far as I can see I can only change colors and am not able to change sound/volume. But those Ambiences are stored in /usr/share/ambience. Where those other (old) ambiences are stored I don't have a glue.

Schturman's picture

OK, look this thread, it's not so simple to add custom ambiences from gallery to my app:

https://together.jolla.com/question/38183/location-of-custom-ambience-fr...

Schturman's picture

Ahhh, now I understand how you applied your ambiences :) I never tried to apply ambience in this way, now I tried it and I also can't find where this ambience saved and in which format :(

Sorry