maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N9 / N950 (https://talk.maemo.org/forumdisplay.php?f=51)
-   -   [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps (https://talk.maemo.org/showthread.php?t=85353)

sony123 2012-08-03 00:49

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Quote:

Originally Posted by WhitP (Post 1246663)
Here's hoping for the traffic re-routing!
The traffic in maps is very handy - thanks..

I would be glad to even find a way to enable "optimized" routing based on traffic. I tried setting useTraffic in Router to true, but didn't see any difference in the resulting route.

Sorry for raising your expectation :D Need to dig further....

solstice88 2012-08-03 15:06

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
If this has not already been offered up as a suggestion, and im sure you already dug into it

I noticed in TrafficdetailsPage.qml has the ability to offer Estimated Delay time but isnt available due to missing plugin. Would this have any effect in calculating routing based on traffic? Given that we can even find/create this plugin.

I wonder if there was a associated qml file for Trafficviewhelper. Would it also take in consideration for routing based on traffic? Also probably allowing us to bring up descriptions of traffic :D

mbanck 2012-08-03 23:41

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Quote:

Originally Posted by sony123 (Post 1246704)
I would be glad to even find a way to enable "optimized" routing based on traffic. I tried setting useTraffic in Router to true

Can you post the patch for that, please?

Teun 2012-08-05 07:41

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Thanks very much.. This is excellent !! Love the community

colin.stephane 2012-08-05 09:22

Re: [MOD] Enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Quote:

Originally Posted by sony123 (Post 1246309)
Sorry the earlier patch seemed to be bad,

I have re-uploaded the patch, please download it and put it in /home/user/MyDocs

Launch terminal, become root, then type:
patch -p0 -i /home/user/MyDocs/maps.patch
(That's -p[zero] not p.o.)

Well, back from beach ...

Time to update my full patch to reveal your last hunt treasure :)

I added the content of this patch and also updated the commands to install & revert the whole thing without troubles ...

A++

taviman 2012-08-05 17:15

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Colin, this is what I get:

~ $ devel-su
Password:


BusyBox v1.20.0.git (MeeGo 3:1.20-0.2+0m8) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ # rm /root/*.diff 2>/dev/null ; wget http://b
igbob.fun.free.fr/N9/Patch-to-enable-traffic-an
d-day-night-autoswitch-in-drive-for-N9-PR1.3+ET
A-UNSTABLE.diff -O
sh: wget: not found
~ #


however, I'll try the download link you provided and I'll report back

thedead1440 2012-08-05 17:18

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
wget needs to be installed either by doing as root, apt-get install wget

OR:

open settings -> security -> developer mode -> install utilities...

somedude 2012-08-05 17:24

Re: [MOD] Enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Quote:

Originally Posted by colin.stephane (Post 1247681)
Well, back from beach ...

Time to update my full patch to reveal your last hunt treasure :)

I added the content of this patch and also updated the commands to install & revert the whole thing without troubles ...

A++

Does your latest unstable patch include the correct calculation for the time to travel when its larger than an hour drive?

Edit:
Yes it does thanks.

colin.stephane 2012-08-05 19:30

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Quote:

Originally Posted by thedead1440 (Post 1247875)
wget needs to be installed either by doing as root, apt-get install wget

OR:

open settings -> security -> developer mode -> install utilities...

Thanks thedead1440, I have updated my full patch to add this step as Mandatory ...

A++

sony123 2012-08-06 04:05

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Quote:

Originally Posted by mbanck (Post 1247152)
Can you post the patch for that, please?

It's one line change in RoutingModel.qml

Code:

Router {
    id : router
        useTraffic: true
       
....
}

But I see no difference in routes after setting this property....

sony123 2012-08-06 04:31

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
I played around with trafficDetailsPage... and did manage to get traffic details shown up. But it is very rough:

https://dl.dropbox.com/u/54692247/20...3_13-55-00.png
There are too many missing pieces so I doubt this will be useful:
1. Only "Starts at" and "Caused by" information are available.
2. No way to select the traffic event by clicking the icon as in Symbian version.
3. The trafficEventHeader is incomplete(The upper three buttons in the screenshot.) Need to add missing definitions in sytle.js and for the middle element I have zero idea on what Nokia wanted to do with it.

I can share the diffs so people interested in this might give it a go, but I need to clean up my Drive codes as it's a mess now.....

taviman 2012-08-06 17:20

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Quote:

Originally Posted by thedead1440 (Post 1247875)
wget needs to be installed either by doing as root, apt-get install wget

OR:

open settings -> security -> developer mode -> install utilities...

Yes, it worked!
Thanks a million.

sony123 2012-08-08 06:52

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Patch for traffic detail page is now available for beta testing.

https://dl.dropbox.com/u/54692247/20...7_23-55-57.png

The traffic detail page can be opened from the menu of either in normal map view or guidance map view. Only 'starting at' and 'cause' information are available, but I leave the 'length' and 'ave speed' fields in just in case they might show up for some.

The selection of traffic event is done by clicking the arrows on the header, right arrow increment the index and left decrement. (It would be great to be able to select traffic event as in Symbian version, but the underlying Map object doesn't seem to expose the traffic event selection...)

I don't know if this is worthy of putting into the unstable patch since the feature is less polished. Let us know what you think!

colin.stephane 2012-08-08 10:28

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Quote:

Originally Posted by sony123 (Post 1248991)
Patch for traffic detail page is now available for beta testing.

https://dl.dropbox.com/u/54692247/20...7_23-55-57.png

The traffic detail page can be opened from the menu of either in normal map view or guidance map view. Only 'starting at' and 'cause' information are available, but I leave the 'length' and 'ave speed' fields in just in case they might show up for some.

The selection of traffic event is done by clicking the arrows on the header, right arrow increment the index and left decrement. (It would be great to be able to select traffic event as in Symbian version, but the underlying Map object doesn't seem to expose the traffic event selection...)

I don't know if this is worthy of putting into the unstable patch since the feature is less polished. Let us know what you think!

Hi sony123,

Since it doesn't seem to hurt the functionalities, I add it to my full patch ...

A++

somedude 2012-08-08 16:39

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Using colin.stephane's patch before he added the traffic details, the one that included the traffic on MAPS I am not able to download any maps. It always keeps telling me to connect to WiFi to download maps, but I have been on WiFi for more than 10 hours, already restarted the phone but still the same. I have no problem using the WiFi for other services though.

colin.stephane 2012-08-08 20:19

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Quote:

Originally Posted by somedude (Post 1249182)
Using colin.stephane's patch before he added the traffic details, the one that included the traffic on MAPS I am not able to download any maps. It always keeps telling me to connect to WiFi to download maps, but I have been on WiFi for more than 10 hours, already restarted the phone but still the same. I have no problem using the WiFi for other services though.

I am outside my home until Friday night, without a wifi access available (I'm currently use 3G access to answer).

By the way, can someone else try to download maps and report if the problem occur, that would be cool ...

A++

WhitP 2012-08-08 22:39

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Quote:

Originally Posted by colin.stephane (Post 1249257)
I am outside my home until Friday night, without a wifi access available (I'm currently use 3G access to answer).

By the way, can someone else try to download maps and report if the problem occur, that would be cool ...

A++

Works for me - just downloaded Scotland and even shows traffic in the new map.
The newest version of Nokia Suite should be able to install maps - not done this myself but I did make use of the ability to delete individual maps..

somedude 2012-08-09 01:04

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
1 Attachment(s)
Here is the screen shot.
Attachment 27818

WhitP 2012-08-09 02:08

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Quote:

Originally Posted by somedude (Post 1249322)
Here is the screen shot.
Attachment 27818

Possibly a stupid question but in the maps settings do you have it set as 'online'? I get that message if it's offline - if 'online' isn't selected it won't use any network connection even if you're connected.

somedude 2012-08-09 03:47

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Quote:

Originally Posted by WhitP (Post 1249337)
Possibly a stupid question but in the maps settings do you have it set as 'online'? I get that message if it's offline - if 'online' isn't selected it won't use any network connection even if you're connected.

Thats what it was, on his patch he calls for installing maps which makes it go back to default where online is toggled off so I never thought about it until you pointed it.
Thanks.

kfahoo 2012-08-09 09:33

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Quote:

Originally Posted by sony123 (Post 1248991)
The traffic detail page can be opened from the menu of either in normal map view or guidance map view.

ought to be in maps and in drive or only in drive? couse I can not find it in maps

taviman 2012-08-09 11:17

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Quote:

Originally Posted by kfahoo (Post 1249443)
ought to be in maps and in drive or only in drive? couse I can not find it in maps

There is the Wheel symbol on the map view. You can enable it from there

coderus 2012-08-09 18:12

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
my city have always green traffic, even at peak hour.
wrong nokia data? no way for me? :(

kfahoo 2012-08-10 22:03

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Quote:

Originally Posted by taviman (Post 1249470)
There is the Wheel symbol on the map view. You can enable it from there

I asked about traffic details

sony123 2012-08-11 04:58

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Quote:

Originally Posted by kfahoo (Post 1249443)
ought to be in maps and in drive or only in drive? couse I can not find it in maps

In Drive only.

sony123 2012-08-11 05:00

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Quote:

Originally Posted by coderus (Post 1249624)
my city have always green traffic, even at peak hour.
wrong nokia data? no way for me? :(

Have you checked if the traffic info are green on maps.nokia.com, too?

sony123 2012-08-11 05:03

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Quote:

Originally Posted by colin.stephane (Post 1249058)
Hi sony123,

Since it doesn't seem to hurt the functionalities, I add it to my full patch ...

A++

Sure thanks a lot.

colin.stephane 2012-08-11 08:22

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Hi all,

Back at home with wifi access, then I can say all work fine, even the download of new Maps, this answer somedude question on post #296, latest full patch doesn't break the downloading maps function :)

To coderus, here in France, the Traffic Details page report informations ...


Traffic details 1 of 2 :

http://bigbob.fun.free.fr/N9/Traffic...2_10-00-59.png

Traffic details 2 of 2 :

http://bigbob.fun.free.fr/N9/Traffic...2_10-01-08.png

Also I used for 3 days the Drive application and I can say it work really great, I mean, all added functionalities in the full patch doesn't break anything on my side ...

So, I want to thanks another time :

- sony123.
- nieldk.
- Arie.
- mbanck.
- nailwood.
- jd4200.
- thedead1440.


A++

thedead1440 2012-08-11 08:26

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
colin.stephane just to highlight, somedude's question was solved (http://talk.maemo.org/showpost.php?p...&postcount=301) as after the patch he had to click to put maps app into online mode instead of offline...your patch doesn't break anything ;)

coderus 2012-08-11 15:50

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
i see. online maps have always green traffic too. sadly.
thanks anyway.

kpblxa 2012-08-12 13:12

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Is there any way to enable Speed cameras?

thedead1440 2012-08-12 16:57

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Quote:

Originally Posted by kpblxa (Post 1250903)
Is there any way to enable Speed cameras?

Not yet...

jimthefly 2012-08-13 07:00

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
@colin.stephane

after the last view trips with testing the "Time To Destination" function. I would say it works very well.

Jim

kfahoo 2012-08-14 07:13

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Quote:

Originally Posted by coderus (Post 1250511)
i see. online maps have always green traffic too. sadly.
thanks anyway.

maybe try to check it in rush hours, in my city traffic usually is green but in rush hours it gets orange

thedead1440 2012-08-14 07:32

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
at least you get green or orange...Where i live there is no traffic info at all!

Iryus 2012-08-14 13:10

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
2 Attachment(s)
patched manually, everything works perfectly, thank you sony123 and keep it up !! :)

Thieric 2012-08-16 07:46

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
(In response to colin.stephane tutorial : )

Hey, to clarify and complete your tutorial, you should precise again that installing patch_2.6-2+maemo7+0m6_armel.deb is required, as presented in the first post of this thread in FAQ section, because many links on the web lead directly to your post and I almost lost half my hair trying and trying again to apply your patch ;)

Thanks for the good work anyway !

Arthuro_Adam 2012-08-16 08:45

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
I installad the latest patch and it works perfectly (traffic, traffic details and the time/distance toggle.

Thanks.

Mark Twain 2012-08-18 15:15

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Hi!

When trying to install the unstable patch by colin.stephane I get the following error:

Code:

sh: patch: not found
I used the following command(s) via SSH (devel-su):

Code:

rm /root/*.diff 2>/dev/null ; wget http://bigbob.fun.free.fr/N9/Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3+ETA-UNSTABLE.diff -O /root/Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3+ETA-UNSTABLE.diff && apt-get install -y --reinstall nokia-drive-qml maps && sync && patch -p0 -i /root/Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3+ETA-UNSTABLE.diff && sync
Can anybody help me? Thx!

colin.stephane 2012-08-18 15:54

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Quote:

Originally Posted by Mark Twain (Post 1253293)
Hi!

When trying to install the unstable patch by colin.stephane I get the following error:

Code:

sh: patch: not found
I used the following command(s) via SSH (devel-su):

Code:

rm /root/*.diff 2>/dev/null ; wget http://bigbob.fun.free.fr/N9/Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3+ETA-UNSTABLE.diff -O /root/Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3+ETA-UNSTABLE.diff && apt-get install -y --reinstall nokia-drive-qml maps && sync && patch -p0 -i /root/Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3+ETA-UNSTABLE.diff && sync
Can anybody help me? Thx!

OOPS !!!

I have updated my full patch step by step procedure to fix this problem, anyhow here is the omitted part ...

As 'root', copy paste this command :

Code:

clear && ID=$(id -un) ; if [ ${ID} != "root" ] ; then echo "You are not 'root', please use this command line as 'root' (devel-su) ..." ; else echo "Ok, you are 'root' ..." ; if dpkg -l patch 2>/dev/null | grep -q ii ; then echo "Patch utility is already installed, you can continue with the procedure ..." ; else echo "Patch utility is not present, installing now ..." ; wget http://harmattan-dev.nokia.com/pool/harmattan/free/p/patch/patch_2.6-2+maemo7+0m6_armel.deb -O /root/patch_2.6-2+maemo7+0m6_armel.deb && dpkg -i /root/patch_2.6-2+maemo7+0m6_armel.deb && sync && echo "Done, you can continue with the procedure ..." ; fi ; fi
A++


All times are GMT. The time now is 15:57.

vBulletin® Version 3.8.8