Active Topics

 


Reply
Thread Tools
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#11
For the car-mode profile, as I already told fuel__2001,
ProfilesX can not be used to start specific actions. ProfilesX can
only change the profile settings (ringtone, vibra, ...)
But the whole benefit of ProfilesX is to define more than those
to builtin profiles.
So you could go the other way around.
Use ProfilesX to define a new profile "Car Mode".
(Just to have a special named profile)

Now your autoanswer script could listen on dbus for
the active profile (profiled emits a dbus-signal if the
user changes the active profile).
And if the current profile has this special name,
enable autoanswer or speaker mode ...

nicolai
 

The Following 2 Users Say Thank You to nicolai For This Useful Post:
systemcrash's Avatar
Posts: 74 | Thanked: 27 times | Joined on Jun 2010 @ France
#12
Originally Posted by fuel__2001 View Post
In symbian (N95) the auto answer was placed in the profiles. I remember setting a profile up so i would only have to insert my headphones (which was usually when i was driving) and the phone would answer automatically.

any other thoughts about the placement of the button?
I agree the best place to put the button is the profile. Should it be a check button as for the vibrator setting (sorry if vibrator is not the exact word, I have my device set to use spanish)?
 
Posts: 44 | Thanked: 34 times | Joined on May 2010
#13
Originally Posted by nicolai View Post
So you could go the other way around.
Use ProfilesX to define a new profile "Car Mode".
(Just to have a special named profile)

Now your autoanswer script could listen on dbus for
the active profile (profiled emits a dbus-signal if the
user changes the active profile).
And if the current profile has this special name,
enable autoanswer or speaker mode ...

nicolai
Is this something you would be able and willing to do?

As its well beyond the scope of what i'm currently able to achieve with my limited knowledge.

Last edited by fuel__2001; 2010-11-18 at 20:35.
 
Posts: 44 | Thanked: 34 times | Joined on May 2010
#14
Im finally starting to understand what I need to do to get this script to work.

I've read a little about dbus but im not sure how to point my script at profilesx, so when a certain 'named' profile is selected my autoanswer script starts.

This is as far as ive got and thats not right, can someone get point me in the right direction please

Code:
bus = dbus.SessionBus()
proxy = bus.get_object('com.nokia.profiled', '/home/user/.profiled/current')
 

The Following User Says Thank You to fuel__2001 For This Useful Post:
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#15
Looking at my code, how I listen to profile
changes, I realized it may be easier to include
this in profilesx. Even though I said profilesx
is only for managing profiles settings, my
statusbar plugin is listinig for profiles changes to
change the profile icon.

So, I can make an extra option in the settings dialog
for autoanswer and my statusbar plugin can
autoanswer the incomig call depending on the
current profile.

nicolai
 

The Following 4 Users Say Thank You to nicolai For This Useful Post:
Posts: 44 | Thanked: 34 times | Joined on May 2010
#16
Originally Posted by nicolai View Post
Looking at my code, how I listen to profile
changes, I realized it may be easier to include
this in profilesx. Even though I said profilesx
is only for managing profiles settings, my
statusbar plugin is listinig for profiles changes to
change the profile icon.

So, I can make an extra option in the settings dialog
for autoanswer and my statusbar plugin can
autoanswer the incomig call depending on the
current profile.

nicolai
That would be brilliant if you could manage slip the script into profilesx.

So let me get this right - Are you thinking it would it be dependent on a specific 'named' profile to start the script?
Or, to add a checkbox widget to the profile settings, so any selected profile could be set up to use the script?
 
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#17
This one:
Originally Posted by fuel__2001 View Post
Or, to add a checkbox widget to the profile settings, so any selected profile could be set up to use the script?
nicolai
 

The Following User Says Thank You to nicolai For This Useful Post:
Posts: 44 | Thanked: 34 times | Joined on May 2010
#18
I think using a widget in the settings leaves profilesx more configurable.

You could then add a specific ring tone or icon to any 'named' profile of your choosing
 

The Following User Says Thank You to fuel__2001 For This Useful Post:
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#19
Finally it is done.
ProfilesX Version 0.8 with autoanswer and loudspeaker option.
You can select to enable autoanswer and / or loudspeaker for
the general and every user defined profiles.

With autoanswer enabled, the phone automatically accepts
phone calls (cellular only, no skype) after 1 second.
But only if the proximity sensor isn't covered. That way it won't
accidently accept the phone call while your phone is in your
pocket.

The loudspeaker option will switch to speaker mode when then
call is accepted.

Thank you fuel_2001 for this great idea.
regards
Nicolai
 

The Following 12 Users Say Thank You to nicolai For This Useful Post:
Posts: 26 | Thanked: 16 times | Joined on Dec 2009
#20
Great!THX a lot!
 

The Following User Says Thank You to PUNK For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 08:19.