maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   [Announce - Now for N900 too] oobProfile - the easiest way to change profiles by location (https://talk.maemo.org/showthread.php?t=82415)

qwazix 2012-02-18 13:14

[Announce - Now for N900 too] oobProfile - the easiest way to change profiles by location
 
You are in a theater, you realize you come often here... every time you are here you forget to silence your phone. The last time it rang, in the most suspenseful moment of the play. What an embarrassment! You take out the phone, open oobProfile, hit silent. You put it back in your pocket. Problem solved...

No, I'm joking. I just thought why have difficult interfaces to choose where to make your profile silent when you obviously go frequently to the places you like to have your phone silenced (or loud).

So the idea behind oobProfile is to just open the app, select a profile, and every time you go to that place again, that profile will be activated.

The application costs 3 eur, and you can download it at the ovi store.
The sources will be available after I clean them up on github

http://www.outofbounds.gr/oobProfile...le/primary.png

http://www.outofbounds.gr/oobProfile.../secondary.png

http://store.ovi.com/content/255651

http://store.ovi.mobi/content/255651

For N900 users it's on it's way to extras-devel. Requires mobility 1.2.
I will try to see if it can be accepted on ovi for those that feel like contributing.

Jordi 2012-02-18 13:57

Re: [Announce] oobProfile - the easiest way to change profiles by location
 
Nice ! Is it battery friendly? i.e. can locate phone through GSM cells?

baem90 2012-02-18 14:14

Re: [Announce] oobProfile - the easiest way to change profiles by location
 
i though it free.. but itsn't

Aranel 2012-02-18 14:32

Re: [Announce] oobProfile - the easiest way to change profiles by location
 
Looks very useful, but;

a) How much time it takes to get a lock on your position? If it loses position/if you're in-doors, what happens? Does it silently revert back to General profile?

b) ofc, Is it battery friendly? If I set it to every 60 minutes (24 times a day) how would it affect battery life?

Thanks :)

qwazix 2012-02-18 16:39

Re: [Announce] oobProfile - the easiest way to change profiles by location
 
Hi all,

thanks for the interest

There is an option to use wifi/cell towers only (accuracy may vary significantly from area to area) instead of gps so that is less battery consuming. On the other hand the difference I noticed by having it continuously on gps, was about 10-20% drop in "standby" time. Every day, i had about 15% left on my battery before going to bed, with oobProfile updating every 5 minutes, it was around critical.

The time to get a semi-accurate position good enough to change profile is astonishingly good. It works indoors (maybe even better than outdoors). There is not so good accuracy indoors, but it gives you a reading right away (suppose it uses wifi access point names)

I didn't use any custom positioning code, it's all qtmobility, of which I don't really know the inner workings but it seems to work very nicely, without draining the battery too much.

The timer is also provided by Qt's location api, and it's not an exact timer (for example if you have maps open in the background and position is updated regularly, oobProfile does get updated readings regularly too) it is a system that just provides location at least once in x minutes and not exactly at that time.

While I was testing it, it rarely lost position indoors. To be frank I did not cater for that possibility, but I think it doesn't change back to default because qt provides with the last position when asked.

If you set it at 60 minutes I don't think you are going to have a problem with battery, but isn't it a bit scarce? Meaning, if you go to class you 'll have a loud phone for the first 1-59 minutes depending on when the timer will fire.

Aranel 2012-02-18 17:43

Re: [Announce] oobProfile - the easiest way to change profiles by location
 
"If you set it at 60 minutes I don't think you are going to have a problem with battery, but isn't it a bit scarce? Meaning, if you go to class you 'll have a loud phone for the first 1-59 minutes depending on when the timer will fire."

That's right, but If you make it possible to make that red circle bigger(=cover more area) than it won't be a problem, since our campus is at least half an hour away from the city, I can just select a huge area, by the time I arrive at class It'll be silent. Ofc this may stand as an issue on some use-cases, but better than nothing.

qwazix 2012-02-18 18:05

Re: [Announce] oobProfile - the easiest way to change profiles by location
 
The radius is already customizable. You'll see the change on the map once the position gets updated. By the way when you have the application open the position gets updated constantly to refresh the map and add the correct coordinates to the database.

Also, the map is not displayed if there is no internet connection when you open the application. I hate applications that require internet for trivial features so if you absolutely need to see the map, open the app while connected.

DarkSkies 2012-02-19 09:57

Re: [Announce] oobProfile - the easiest way to change profiles by location
 
Too bad it's is a paid app. Proximus can do much more and it's free.

qwazix 2012-02-19 16:29

Re: [Announce] oobProfile - the easiest way to change profiles by location
 
I understand that. But I believe that the unique interface and simplicity to use give it an advantage over other applications. No offence for the other applications, proximus, profileMatic etc. They are nice pieces of software, which I studied before developing oobProfile. I just thought I have something different to offer.

You will be able of course to download the sources and compile for yourself, if you don't want to pay for it. I am just kindly asking that you don't redistribute the binary.

lysseslukker 2012-02-19 20:17

Re: [Announce] oobProfile - the easiest way to change profiles by location
 
what about making the application cabable of recognise wifi-network , and changing the profile after that.

qwazix 2012-02-20 00:09

Re: [Announce] oobProfile - the easiest way to change profiles by location
 
There is already an option to use wifi/cellular positioning

Creamy Goodness 2012-02-25 05:36

Re: [Announce] oobProfile - the easiest way to change profiles by location
 
cool. i love how there's 4 apps to do the same thing and 4 devs going in different directions... so efficient :|

qwazix 2012-02-25 12:03

Re: [Announce] oobProfile - the easiest way to change profiles by location
 
It is efficient, even if it doesn't seem so. That's the whole thing about open source :)
You don't have to reinvent the wheel, you check how the other guys did it, do something the way you like, with the interface you like and add a feature or two. If it's cool the others can copy it instead of figuring it out again, and bother with other new features. And the user has choice to select what he likes best.

Look at DE's all of them have fanatics, all of them have advantages and disadvantages but all of them share the cool features. That is freedom.

Creamy Goodness 2012-02-25 21:05

Re: [Announce] oobProfile - the easiest way to change profiles by location
 
okay well I'm not sure where your source is...

qwazix 2012-02-25 21:11

Re: [Announce] oobProfile - the easiest way to change profiles by location
 
http://github.com/qwazix

Creamy Goodness 2012-02-25 21:22

Re: [Announce] oobProfile - the easiest way to change profiles by location
 
well i was just saying it wouldn't hurt to have two people working on one of these apps, and for the record i'm kinda pissed because I announced what I'm doing 1 year ago and joined up with two other guys that got n950s. Guess what? They didn't help.

qwazix 2012-02-25 22:21

Re: [Announce] oobProfile - the easiest way to change profiles by location
 
Please, no need to be offended. Copy whatever functionality you like, and if you got any nice ideas i'll try to put some time on. I am busy trying another redundant app by the way, but I am more of an UI guy than coder so I find it more amusing to copy established ideas and shift them to my UI preferences than inventing new ones.

Creamy Goodness 2012-02-27 04:29

Re: [Announce] oobProfile - the easiest way to change profiles by location
 
Yeah don't worry, I'm not mad at you, and even though it's somewhat annoying we got 4 apps to do the same thing, at least the competition is good and the developers are all learning something useful.

qwazix 2012-03-20 11:42

Re: [Announce - Now for N900 too] oobProfile - the easiest way to change profiles by location
 
I'm very happy to announce that oobProfile is available for the N900 too, it will be soon in extras-devel, and hopefully in extras soon. There is a known bug, if you launch it in portrait mode no GUI is shown, if you launch it in landscape and then rotate, it works fine.

--> going to vote for qt-components to make it into extras

ivgalvez 2012-03-20 12:02

Re: [Announce - Now for N900 too] oobProfile - the easiest way to change profiles by location
 
It's great news to see more applications based on Qt Components coming to the N900.

qwazix 2012-03-20 18:48

Re: [Announce - Now for N900 too] oobProfile - the easiest way to change profiles by location
 
It's impossible to make autobuilder build it...

I was excited that i'd make it, but I give up for today.

If you know something please have a look here
http://talk.maemo.org/showthread.php?t=63015

qwazix 2012-03-20 19:26

Re: [Announce - Now for N900 too] oobProfile - the easiest way to change profiles by location
 
I finally did it. I admit that I was being stupid. Please report anything you find, and if you know anything about qt-components and portrait-launch crash.

Hope to be able to promote to extras testing soon (and to extras if possible, still qtcomponents missing)

qwazix 2012-03-20 20:11

Re: [Announce - Now for N900 too] oobProfile - the easiest way to change profiles by location
 
Oh, just realised that I forgot to change the category so it's not visible in the application manager, you have to
Code:

apt-get install oobprofile
until I publish 0.0.2 in the utilities category

usual -devel warnings apply, but I don't think it'll eat your brains, after all it's been working on harmattan for some time now

qwazix 2012-03-23 08:39

Re: [Announce - Now for N900 too] oobProfile - the easiest way to change profiles by location
 
Package is now in testing.
Please upvote if you think it is ready for extras

Package page
http://maemo.org/packages/package_in...profile/0.0.4/

It is also dependent on qt-components which also needs upvoting so that it can be moved in extras. This one is important if we want harmattan apps to be able to reach extras
http://maemo.org/packages/package_in...0110620-7-1fn/

hschmitt 2012-03-23 10:07

Re: [Announce - Now for N900 too] oobProfile - the easiest way to change profiles by location
 
1 Attachment(s)
Hi,

I installed OobProfile via HAM on my N900 and it said, that the installation is not possible.
I think you forget a runtime dependency in the control file, right?
Maybe it is the qt-components package?
Additional you have to put "mailto:" before the emailadress in the bugtracker link.
I really like the idea off this app. Just an idea: You could react on the presence of a certain bluetooth connection. This would enable the non silent profile in a car for example.

qwazix 2012-03-23 16:50

Re: [Announce - Now for N900 too] oobProfile - the easiest way to change profiles by location
 
Oh bleep...

and I have the newer qtcreator on my notebook without fremantle support. I guess that will have to wait until Monday. On the other hand, when there is a missing dependency usually the application installs but does not run, so it may be something else. Could you be so kind and attach the output of apt-get install oobprofile if you find some time?

hschmitt 2012-03-24 00:03

Re: [Announce - Now for N900 too] oobProfile - the easiest way to change profiles by location
 
Here you go
Code:

Selecting previously deselected package oobprofile.
(Reading database ... 30925 files and directories currently installed.)
Unpacking oobprofile (from .../oobprofile_0.0.4_armel.deb) ...
Setting up oobprofile (0.0.4) ...
initctl: Unknown job: oobProfileDaemon
dpkg: error processing oobprofile (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 oobprofile
E: Sub-process /usr/bin/dpkg returned an error code (1)

So it is about your post install script.

P.S.: Unrelated, but if you find some time, please test my profile-changer-widget v 1.0.

qwazix 2012-03-26 09:26

Re: [Announce - Now for N900 too] oobProfile - the easiest way to change profiles by location
 
v0.0.5 on it's way to devel, and I will promote it right away to testing.

Technical explanation of the problem

The upstart job file /etc/event.d/oobProfileDaemon was installed as a debian conffile

I had been testing oobProfile on my phone and I did not purge but rather remove between subsequent tests so the conffile stayed where it was after removing (my error)

Qt creator publishing wizard does not include files without extension in the package for the autobuilder (Qt creators error)

When installing from the repository, the conffile was there so upstart did not complain and I thought all was ok but in reality there was no upstart job file in the package

Solution: added extension .conf to the upstart job. It looks a bit out of place but it saves the hassle of creating your own source package each time.

Note to other devs or if you want to manually start or stop oobProfile:
use
Code:

  /sbin/initctl start oobProfileDaemon.conf
and not
Code:

  /sbin/initctl start oobProfileDaemon
as you would in harmattan

(harmattan upstart ignores the extension)

hschmitt 2012-03-26 16:18

Re: [Announce - Now for N900 too] oobProfile - the easiest way to change profiles by location
 
The installation via HAM works now, but the screen is all black.
Code:

/opt/oobProfileQml $ ./run
file:///opt/oobProfileQml/qml/oobProfileQml/main2.qml:2:1: module "org.maemo.fremantle" is not installed
    import org.maemo.fremantle 1.0
    ^


qwazix 2012-03-26 16:44

Re: [Announce - Now for N900 too] oobProfile - the easiest way to change profiles by location
 
but whhhyyyyyy? I have to check the versions of qt-components. Thanks for testing though because I can't catch these errors since my N900 is set up for development, so all the relevant packages are already there (and it's too big of a task to remove any one of them to test)

I will try again tomorrow

reinob 2012-03-27 07:55

Re: [Announce - Now for N900 too] oobProfile - the easiest way to change profiles by location
 
@qwazix,

I also tried installing oobprofile (0.0.4). I ignored the postinst error but then I got the black screen (like @hschmitt reports) with the same error about org.maemo.fremantle.

For now I've uninstalled it, although I'm interested in the program.

BTW I don't know if this is implemented, but I would be very nice if the radius was configurable per-event (per-location).

If we can configure radius + positioning methods for each individual location (plus a time window, so that e.g. gps does not need to be enabled when none of the locations is time-active).

You might want to have a look at "Nokia Situations" (I had that in my E75).

Cheers.

hschmitt 2012-03-27 08:12

Re: [Announce - Now for N900 too] oobProfile - the easiest way to change profiles by location
 
Quote:

Originally Posted by qwazix (Post 1184302)
but whhhyyyyyy? I have to check the versions of qt-components. Thanks for testing though because I can't catch these errors since my N900 is set up for development, so all the relevant packages are already there (and it's too big of a task to remove any one of them to test)

I will try again tomorrow

My version for qt-components is 1.0~git20110620-7-1fn which is the latest in repo.
I can send you the output from
Code:

dpkg -l
if you are interested.

hschmitt 2012-03-27 08:52

Re: [Announce - Now for N900 too] oobProfile - the easiest way to change profiles by location
 
Just a quick search gave me that two QT Components packages exist:
qt-components-10
and
qt-components Maybe you depend one the first one?

reinob 2012-03-27 10:52

Re: [Announce - Now for N900 too] oobProfile - the easiest way to change profiles by location
 
@hschmitt,

In the first post it says that it requires libqtm-12 (mobility 1.2), which AFAIK is the version in extras-devel.

hschmitt 2012-03-27 11:11

Re: [Announce - Now for N900 too] oobProfile - the easiest way to change profiles by location
 
Quote:

Originally Posted by reinob (Post 1184585)
@hschmitt,

In the first post it says that it requires libqtm-12 (mobility 1.2), which AFAIK is the version in extras-devel.

Wrong.
The testing and devel version are the same:
http://maemo.org/packages/view/libqtm-12/

hschmitt 2012-03-27 11:23

Re: [Announce - Now for N900 too] oobProfile - the easiest way to change profiles by location
 
Quote:

Originally Posted by hschmitt (Post 1184555)
Just a quick search gave me that two QT Components packages exist:
qt-components-10
and
qt-components Maybe you depend one the first one?

Okay I checked the source packages for both libraries and the qt-components-10 sources contain a src/fremantle dir where qt-components does not.
So you should change your runtime dependency.

qwazix 2012-03-27 14:54

Re: [Announce - Now for N900 too] oobProfile - the easiest way to change profiles by location
 
Yes that was it. It needed qt-components-10 instead of qt-components. It seems that it's a later version too qt-components-10

Someone should designate which is the correct package to depend on and remove the other package...

please test again in a few minutes

reinob 2012-03-27 20:10

Re: [Announce - Now for N900 too] oobProfile - the easiest way to change profiles by location
 
Quote:

Originally Posted by hschmitt (Post 1184596)
Wrong.
The testing and devel version are the same:
http://maemo.org/packages/view/libqtm-12/

Hmm.. it might have been wrong to mix up qtm with qt-components, but what I wrote is strictly right...

qwazix 2012-03-27 20:58

Re: [Announce - Now for N900 too] oobProfile - the easiest way to change profiles by location
 
What's wrong to mix qtm with qtcomponents? Don't think they have any overlapping functionality.

Libqtm-12 is indeed on extras-proper, as well as qt-components-10 and in the relevant thread attila said that he will "kill with fire" qtm-11 and advised to use qtm-12 and not the various qtm-12-* modules.

I suppose someone should also kill qt-components with fire, to avoid confusion with qt-components-10 and dual libraries loaded on peoples devices due to devs depending arbitrarily on one of them.

I also see that qt-components is not optified, and that you need to import com.nokia.meego 1.0 rather than org.maemo.fremantle

(it would be nicer if we would import the same thing on harmattan and fremantle as there are no #ifdefs on qml and the qml components are actually the same)

I also see that qt-components-10 depends on qt-components that is kind of strange as I tried to install oobProfile on my N900 and it pulled qt-components even when I had qt-components-10 already installed. Maybe it is an older dependency, don't know.

If someone can confirm that we should be using qt-components-10 on the N900 maybe I write a wiki explaining step by step how to create a N900 qt components application

--> going to take my vote back from qt-components...

reinob 2012-03-28 07:20

Re: [Announce - Now for N900 too] oobProfile - the easiest way to change profiles by location
 
Quote:

Originally Posted by qwazix (Post 1184843)
What's wrong to mix qtm with qtcomponents? Don't think they have any overlapping functionality.

It was wrong *from me* to reply about qtm-12 when @hschmitt was talking about qt-components. There's nothing wrong with your app :)

In fact, I installed it again yesterday (0.0.6) and worked fine :)

The only thing is that, at least for now, the functionality is very limited (only changes profiles), but hey, it's called "oobProfile" for some reason :), so not complaining..


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

vBulletin® Version 3.8.8