Re: QNavitCtl - Navit Bookmarks via dbus

2010-01-03 Thread Ed Kapitein
Hi Christian,

I hacked a script together, so you can now route from A to B via C.
( or via  C,  D,  E etc ;-) )
I put it on the navit website [6]
Please feel free to take a look and use (parts of) it for your own program.
Erasing the current waypoint would be nice to do in a gui, now you need
to edit the itinerary file.

Thanks for your help with this, i couldn't have done it without you!

Kind regards,
Ed

[6] http://trac.navit-project.org/ticket/533

Christian Rüb wrote:
 Hi Ed,

 Happy New Year as well!

 I found the path by looking at the newer wiki page example at the bottom [1] 
 and the source [2].

 Meanwhile I built a newer version of qnavitctl for SHR-U, you can find a 
 package here [3] and source here [4].
 I also enabled flickcharm kinetic scrolling [5].

 I also noticed, that on my Frerunner navit was started automatically if it 
 was not running yet, when passing a dbus call via qnavitctl...

 Cheers,
  Christian

 [1] http://wiki.navit-project.org/index.php/Dbus
 [2] 
 http://navit.svn.sourceforge.net/viewvc/navit/trunk/navit/navit/binding/dbus/binding_dbus.c?view=markup
 [3] http://openmoko.senfdax.de/shr-new-unstable/
 [4]http://git.senfdax.de/?p=qnavitctl;a=summary
 [5] 
 http://labs.qt.nokia.com/blogs/2009/07/19/kinetic-scrolling-on-any-widgets/

   
 Hi Christian,

 Thanks a million, it works like a charm!

 How did you come to use default_navit ?
 I took a look at the source code, but i couldn't find out how to use it.

 Happy new-year, my has started perfectly ;-)

 Kind regards,
 Ed



 Christian Rüb wrote:
 
 Hi Ed,

 try this:

 dbus-send --print-reply --dest=org.navit_project.navit 
 /org/navit_project/navit/default_navit 
 org.navit_project.navit.navit.set_center string:12.1906 48.999

 I had a look at [1] and after several tries this worked (on my PC). I will 
 update qnavitcl soon - New Year's Eve is too close right now ;-)
 Not sure if this is the correct way though - no reply on navit user ML 
 yet...

 Cheers,
  Christian

 [1] 
 http://navit.svn.sourceforge.net/viewvc/navit/trunk/navit/navit/binding/dbus/binding_dbus.c?view=markup

 Am Mittwoch, 30. Dezember 2009 schrieb Ed Kapitein:
   
   
 Hi Christian,

 Thanks a lot for your explanation!
 I think i had the same problem you had, i can't set a destination with
 the current version of navit.
 (Dbus is enabled)
 So, i will ask the people from the navit team on how to use dbus with
 the current version.

 Thanks again and happy new year everybody.
 Kind regards,

 Ed

 Christian Rüb wrote:
 
 
 Hi Ed,

 to build it on your PC, you need to have qmake (from Qt) installed.
 Then simply run
 #qmake
 (the name may differ, liket qmake-qt4 or something)
 This will create your Makefile, then simply run
 #make
 and you are done, you will get one binary called qnavitcl - that's it.

 If you want to build for your Openmoko phone, use my bitbake recipe here 
 (simply copy to your OE tree) and it will build the package for you.

 If you want a prebuilt binary - get it from here [1] (you'll also get 
 dependencies from there). It is built for SHR-U.

 Have you enabled dbus in navit.xml? This is essential.

 Use dbus-send to get a navit instance and then you can control it through 
 the path you get back. Have a look at [2] how I did it in Qt:
 registerNavitInstance() and setCenter() will be of most interest for you.

 If you use dbus-send, you also need to print the replies - otherwise you 
 cannot use them ;-) - see man page for futher details

 BUT - with current version of navit I could not get it to work as the 
 dbus interface seems to have changed - iter does not exist anymore and 
 I have not found a way yet to get an instance and set destination :(

 Cheers,
  Christian

 [1] http://openmoko.senfdax.de/shr-new-unstable/
 [2] 
 http://git.senfdax.de/?p=qnavitctl;a=blob;f=src/mainwindow.cpp;h=a7b076db790971245b2d4c6769f13ba92b194b3e;hb=a3d4e3ea1506321d09a735e69810e3be01ccc860

   
   
   
 Hi Christian,

 i am trying to use navit and dbus, but so far i haven't find out how to
 do it.
 I did download your source, but how do i build it?
 ( real noob here...)
 Could you explain how to build it from source?
 I am used to ./configure, make, make install

 Can you give an example of dbus-send to set a destination in navit?
 i want, like you, to have a list of waypoints and i want to set waypoint
 2 as destination, as soon as i am near waypoint 1.

 Thanks a lot in advance.

 Kind regards,
 Ed

 Christian Rüb wrote:
 
 
 
 I wrote a little Qt app to send destination or position to Navit via 
 dbus (needs to be activated in navit.xml first) or center the map.
 package [1]
 source [2]
 screenshot [3]

 How to use it:
 create a file with name;lat;lon per line and start the program. If the 
 file is named bookmarks.csv and placed in $HOME or the directory where 
 qnavitctl is started this file is automatically loaded.

 Why a program that does what Navit already can do?
  - for me it 

Re: QNavitCtl - Navit Bookmarks via dbus

2010-01-01 Thread Ed Kapitein
Hi Christian,

Thanks a million, it works like a charm!

How did you come to use default_navit ?
I took a look at the source code, but i couldn't find out how to use it.

Happy new-year, my has started perfectly ;-)

Kind regards,
Ed



Christian Rüb wrote:
 Hi Ed,

 try this:

 dbus-send --print-reply --dest=org.navit_project.navit 
 /org/navit_project/navit/default_navit 
 org.navit_project.navit.navit.set_center string:12.1906 48.999

 I had a look at [1] and after several tries this worked (on my PC). I will 
 update qnavitcl soon - New Year's Eve is too close right now ;-)
 Not sure if this is the correct way though - no reply on navit user ML yet...

 Cheers,
  Christian

 [1] 
 http://navit.svn.sourceforge.net/viewvc/navit/trunk/navit/navit/binding/dbus/binding_dbus.c?view=markup

 Am Mittwoch, 30. Dezember 2009 schrieb Ed Kapitein:
   
 Hi Christian,

 Thanks a lot for your explanation!
 I think i had the same problem you had, i can't set a destination with
 the current version of navit.
 (Dbus is enabled)
 So, i will ask the people from the navit team on how to use dbus with
 the current version.

 Thanks again and happy new year everybody.
 Kind regards,

 Ed

 Christian Rüb wrote:
 
 Hi Ed,

 to build it on your PC, you need to have qmake (from Qt) installed.
 Then simply run
 #qmake
 (the name may differ, liket qmake-qt4 or something)
 This will create your Makefile, then simply run
 #make
 and you are done, you will get one binary called qnavitcl - that's it.

 If you want to build for your Openmoko phone, use my bitbake recipe here 
 (simply copy to your OE tree) and it will build the package for you.

 If you want a prebuilt binary - get it from here [1] (you'll also get 
 dependencies from there). It is built for SHR-U.

 Have you enabled dbus in navit.xml? This is essential.

 Use dbus-send to get a navit instance and then you can control it through 
 the path you get back. Have a look at [2] how I did it in Qt:
 registerNavitInstance() and setCenter() will be of most interest for you.

 If you use dbus-send, you also need to print the replies - otherwise you 
 cannot use them ;-) - see man page for futher details

 BUT - with current version of navit I could not get it to work as the dbus 
 interface seems to have changed - iter does not exist anymore and I have 
 not found a way yet to get an instance and set destination :(

 Cheers,
  Christian

 [1] http://openmoko.senfdax.de/shr-new-unstable/
 [2] 
 http://git.senfdax.de/?p=qnavitctl;a=blob;f=src/mainwindow.cpp;h=a7b076db790971245b2d4c6769f13ba92b194b3e;hb=a3d4e3ea1506321d09a735e69810e3be01ccc860

   
   
 Hi Christian,

 i am trying to use navit and dbus, but so far i haven't find out how to
 do it.
 I did download your source, but how do i build it?
 ( real noob here...)
 Could you explain how to build it from source?
 I am used to ./configure, make, make install

 Can you give an example of dbus-send to set a destination in navit?
 i want, like you, to have a list of waypoints and i want to set waypoint
 2 as destination, as soon as i am near waypoint 1.

 Thanks a lot in advance.

 Kind regards,
 Ed

 Christian Rüb wrote:
 
 
 I wrote a little Qt app to send destination or position to Navit via dbus 
 (needs to be activated in navit.xml first) or center the map.
 package [1]
 source [2]
 screenshot [3]

 How to use it:
 create a file with name;lat;lon per line and start the program. If the 
 file is named bookmarks.csv and placed in $HOME or the directory where 
 qnavitctl is started this file is automatically loaded.

 Why a program that does what Navit already can do?
  - for me it is a quick fix for #352 in navit
  - for my 1k+ trip I have to prepare intermdeiate stops as otherwise 
 route calculation would take very long (if it would succeed at all), so I 
 can have my navit window and another window to set next destination easily
  - it is an example how to talk to navit via dbus and could be used for 
 other apps (e.g. litephone) to get coordinates (e.g. from opimd) and 
 start navigation in navit through a button (e.g. you receive a text 
 containing coordinates, press take me there and the coordinates are 
 send as destination to navit via dbus)
  - I am still learning Qt :)

 That's all

 [1] http://openmoko.senfdax.de/shr-unstable/
 [2] http://git.senfdax.de/?p=qnavitctl;a=summary
 [3] http://openmoko.senfdax.de/screenshots/qnavitctl.png

 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community


   
   
   

   
   



   


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: QNavitCtl - Navit Bookmarks via dbus

2010-01-01 Thread Christian Rüb
Hi Ed,

Happy New Year as well!

I found the path by looking at the newer wiki page example at the bottom [1] 
and the source [2].

Meanwhile I built a newer version of qnavitctl for SHR-U, you can find a 
package here [3] and source here [4].
I also enabled flickcharm kinetic scrolling [5].

I also noticed, that on my Frerunner navit was started automatically if it was 
not running yet, when passing a dbus call via qnavitctl...

Cheers,
 Christian

[1] http://wiki.navit-project.org/index.php/Dbus
[2] 
http://navit.svn.sourceforge.net/viewvc/navit/trunk/navit/navit/binding/dbus/binding_dbus.c?view=markup
[3] http://openmoko.senfdax.de/shr-new-unstable/
[4]http://git.senfdax.de/?p=qnavitctl;a=summary
[5] http://labs.qt.nokia.com/blogs/2009/07/19/kinetic-scrolling-on-any-widgets/

 Hi Christian,
 
 Thanks a million, it works like a charm!
 
 How did you come to use default_navit ?
 I took a look at the source code, but i couldn't find out how to use it.
 
 Happy new-year, my has started perfectly ;-)
 
 Kind regards,
 Ed
 
 
 
 Christian Rüb wrote:
  Hi Ed,
 
  try this:
 
  dbus-send --print-reply --dest=org.navit_project.navit 
  /org/navit_project/navit/default_navit 
  org.navit_project.navit.navit.set_center string:12.1906 48.999
 
  I had a look at [1] and after several tries this worked (on my PC). I will 
  update qnavitcl soon - New Year's Eve is too close right now ;-)
  Not sure if this is the correct way though - no reply on navit user ML 
  yet...
 
  Cheers,
   Christian
 
  [1] 
  http://navit.svn.sourceforge.net/viewvc/navit/trunk/navit/navit/binding/dbus/binding_dbus.c?view=markup
 
  Am Mittwoch, 30. Dezember 2009 schrieb Ed Kapitein:

  Hi Christian,
 
  Thanks a lot for your explanation!
  I think i had the same problem you had, i can't set a destination with
  the current version of navit.
  (Dbus is enabled)
  So, i will ask the people from the navit team on how to use dbus with
  the current version.
 
  Thanks again and happy new year everybody.
  Kind regards,
 
  Ed
 
  Christian Rüb wrote:
  
  Hi Ed,
 
  to build it on your PC, you need to have qmake (from Qt) installed.
  Then simply run
  #qmake
  (the name may differ, liket qmake-qt4 or something)
  This will create your Makefile, then simply run
  #make
  and you are done, you will get one binary called qnavitcl - that's it.
 
  If you want to build for your Openmoko phone, use my bitbake recipe here 
  (simply copy to your OE tree) and it will build the package for you.
 
  If you want a prebuilt binary - get it from here [1] (you'll also get 
  dependencies from there). It is built for SHR-U.
 
  Have you enabled dbus in navit.xml? This is essential.
 
  Use dbus-send to get a navit instance and then you can control it through 
  the path you get back. Have a look at [2] how I did it in Qt:
  registerNavitInstance() and setCenter() will be of most interest for you.
 
  If you use dbus-send, you also need to print the replies - otherwise you 
  cannot use them ;-) - see man page for futher details
 
  BUT - with current version of navit I could not get it to work as the 
  dbus interface seems to have changed - iter does not exist anymore and 
  I have not found a way yet to get an instance and set destination :(
 
  Cheers,
   Christian
 
  [1] http://openmoko.senfdax.de/shr-new-unstable/
  [2] 
  http://git.senfdax.de/?p=qnavitctl;a=blob;f=src/mainwindow.cpp;h=a7b076db790971245b2d4c6769f13ba92b194b3e;hb=a3d4e3ea1506321d09a735e69810e3be01ccc860
 


  Hi Christian,
 
  i am trying to use navit and dbus, but so far i haven't find out how to
  do it.
  I did download your source, but how do i build it?
  ( real noob here...)
  Could you explain how to build it from source?
  I am used to ./configure, make, make install
 
  Can you give an example of dbus-send to set a destination in navit?
  i want, like you, to have a list of waypoints and i want to set waypoint
  2 as destination, as soon as i am near waypoint 1.
 
  Thanks a lot in advance.
 
  Kind regards,
  Ed
 
  Christian Rüb wrote:
  
  
  I wrote a little Qt app to send destination or position to Navit via 
  dbus (needs to be activated in navit.xml first) or center the map.
  package [1]
  source [2]
  screenshot [3]
 
  How to use it:
  create a file with name;lat;lon per line and start the program. If the 
  file is named bookmarks.csv and placed in $HOME or the directory where 
  qnavitctl is started this file is automatically loaded.
 
  Why a program that does what Navit already can do?
   - for me it is a quick fix for #352 in navit
   - for my 1k+ trip I have to prepare intermdeiate stops as otherwise 
  route calculation would take very long (if it would succeed at all), so 
  I can have my navit window and another window to set next destination 
  easily
   - it is an example how to talk to navit via dbus and could be used for 
  other apps (e.g. litephone) to get coordinates (e.g. from opimd) and 
  start navigation in navit 

Re: QNavitCtl - Navit Bookmarks via dbus

2009-12-31 Thread Christian Rüb
Hi Ed,

try this:

dbus-send --print-reply --dest=org.navit_project.navit 
/org/navit_project/navit/default_navit org.navit_project.navit.navit.set_center 
string:12.1906 48.999

I had a look at [1] and after several tries this worked (on my PC). I will 
update qnavitcl soon - New Year's Eve is too close right now ;-)
Not sure if this is the correct way though - no reply on navit user ML yet...

Cheers,
 Christian

[1] 
http://navit.svn.sourceforge.net/viewvc/navit/trunk/navit/navit/binding/dbus/binding_dbus.c?view=markup

Am Mittwoch, 30. Dezember 2009 schrieb Ed Kapitein:
 Hi Christian,
 
 Thanks a lot for your explanation!
 I think i had the same problem you had, i can't set a destination with
 the current version of navit.
 (Dbus is enabled)
 So, i will ask the people from the navit team on how to use dbus with
 the current version.
 
 Thanks again and happy new year everybody.
 Kind regards,
 
 Ed
 
 Christian Rüb wrote:
  Hi Ed,
 
  to build it on your PC, you need to have qmake (from Qt) installed.
  Then simply run
  #qmake
  (the name may differ, liket qmake-qt4 or something)
  This will create your Makefile, then simply run
  #make
  and you are done, you will get one binary called qnavitcl - that's it.
 
  If you want to build for your Openmoko phone, use my bitbake recipe here 
  (simply copy to your OE tree) and it will build the package for you.
 
  If you want a prebuilt binary - get it from here [1] (you'll also get 
  dependencies from there). It is built for SHR-U.
 
  Have you enabled dbus in navit.xml? This is essential.
 
  Use dbus-send to get a navit instance and then you can control it through 
  the path you get back. Have a look at [2] how I did it in Qt:
  registerNavitInstance() and setCenter() will be of most interest for you.
 
  If you use dbus-send, you also need to print the replies - otherwise you 
  cannot use them ;-) - see man page for futher details
 
  BUT - with current version of navit I could not get it to work as the dbus 
  interface seems to have changed - iter does not exist anymore and I have 
  not found a way yet to get an instance and set destination :(
 
  Cheers,
   Christian
 
  [1] http://openmoko.senfdax.de/shr-new-unstable/
  [2] 
  http://git.senfdax.de/?p=qnavitctl;a=blob;f=src/mainwindow.cpp;h=a7b076db790971245b2d4c6769f13ba92b194b3e;hb=a3d4e3ea1506321d09a735e69810e3be01ccc860
 

  Hi Christian,
 
  i am trying to use navit and dbus, but so far i haven't find out how to
  do it.
  I did download your source, but how do i build it?
  ( real noob here...)
  Could you explain how to build it from source?
  I am used to ./configure, make, make install
 
  Can you give an example of dbus-send to set a destination in navit?
  i want, like you, to have a list of waypoints and i want to set waypoint
  2 as destination, as soon as i am near waypoint 1.
 
  Thanks a lot in advance.
 
  Kind regards,
  Ed
 
  Christian Rüb wrote:
  
  I wrote a little Qt app to send destination or position to Navit via dbus 
  (needs to be activated in navit.xml first) or center the map.
  package [1]
  source [2]
  screenshot [3]
 
  How to use it:
  create a file with name;lat;lon per line and start the program. If the 
  file is named bookmarks.csv and placed in $HOME or the directory where 
  qnavitctl is started this file is automatically loaded.
 
  Why a program that does what Navit already can do?
   - for me it is a quick fix for #352 in navit
   - for my 1k+ trip I have to prepare intermdeiate stops as otherwise 
  route calculation would take very long (if it would succeed at all), so I 
  can have my navit window and another window to set next destination easily
   - it is an example how to talk to navit via dbus and could be used for 
  other apps (e.g. litephone) to get coordinates (e.g. from opimd) and 
  start navigation in navit through a button (e.g. you receive a text 
  containing coordinates, press take me there and the coordinates are 
  send as destination to navit via dbus)
   - I am still learning Qt :)
 
  That's all
 
  [1] http://openmoko.senfdax.de/shr-unstable/
  [2] http://git.senfdax.de/?p=qnavitctl;a=summary
  [3] http://openmoko.senfdax.de/screenshots/qnavitctl.png
 
  ___
  Openmoko community mailing list
  community@lists.openmoko.org
  http://lists.openmoko.org/mailman/listinfo/community
 
 


 
 
 

 


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: QNavitCtl - Navit Bookmarks via dbus

2009-12-30 Thread Ed Kapitein
Hi Christian,

i am trying to use navit and dbus, but so far i haven't find out how to
do it.
I did download your source, but how do i build it?
( real noob here...)
Could you explain how to build it from source?
I am used to ./configure, make, make install

Can you give an example of dbus-send to set a destination in navit?
i want, like you, to have a list of waypoints and i want to set waypoint
2 as destination, as soon as i am near waypoint 1.

Thanks a lot in advance.

Kind regards,
Ed

Christian Rüb wrote:
 I wrote a little Qt app to send destination or position to Navit via dbus 
 (needs to be activated in navit.xml first) or center the map.
 package [1]
 source [2]
 screenshot [3]

 How to use it:
 create a file with name;lat;lon per line and start the program. If the file 
 is named bookmarks.csv and placed in $HOME or the directory where qnavitctl 
 is started this file is automatically loaded.

 Why a program that does what Navit already can do?
  - for me it is a quick fix for #352 in navit
  - for my 1k+ trip I have to prepare intermdeiate stops as otherwise route 
 calculation would take very long (if it would succeed at all), so I can have 
 my navit window and another window to set next destination easily
  - it is an example how to talk to navit via dbus and could be used for other 
 apps (e.g. litephone) to get coordinates (e.g. from opimd) and start 
 navigation in navit through a button (e.g. you receive a text containing 
 coordinates, press take me there and the coordinates are send as 
 destination to navit via dbus)
  - I am still learning Qt :)

 That's all

 [1] http://openmoko.senfdax.de/shr-unstable/
 [2] http://git.senfdax.de/?p=qnavitctl;a=summary
 [3] http://openmoko.senfdax.de/screenshots/qnavitctl.png

 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community


   


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: QNavitCtl - Navit Bookmarks via dbus

2009-12-30 Thread Christian Rüb
Hi Ed,

to build it on your PC, you need to have qmake (from Qt) installed.
Then simply run
#qmake
(the name may differ, liket qmake-qt4 or something)
This will create your Makefile, then simply run
#make
and you are done, you will get one binary called qnavitcl - that's it.

If you want to build for your Openmoko phone, use my bitbake recipe here 
(simply copy to your OE tree) and it will build the package for you.

If you want a prebuilt binary - get it from here [1] (you'll also get 
dependencies from there). It is built for SHR-U.

Have you enabled dbus in navit.xml? This is essential.

Use dbus-send to get a navit instance and then you can control it through the 
path you get back. Have a look at [2] how I did it in Qt:
registerNavitInstance() and setCenter() will be of most interest for you.

If you use dbus-send, you also need to print the replies - otherwise you cannot 
use them ;-) - see man page for futher details

BUT - with current version of navit I could not get it to work as the dbus 
interface seems to have changed - iter does not exist anymore and I have not 
found a way yet to get an instance and set destination :(

Cheers,
 Christian

[1] http://openmoko.senfdax.de/shr-new-unstable/
[2] 
http://git.senfdax.de/?p=qnavitctl;a=blob;f=src/mainwindow.cpp;h=a7b076db790971245b2d4c6769f13ba92b194b3e;hb=a3d4e3ea1506321d09a735e69810e3be01ccc860

 Hi Christian,
 
 i am trying to use navit and dbus, but so far i haven't find out how to
 do it.
 I did download your source, but how do i build it?
 ( real noob here...)
 Could you explain how to build it from source?
 I am used to ./configure, make, make install
 
 Can you give an example of dbus-send to set a destination in navit?
 i want, like you, to have a list of waypoints and i want to set waypoint
 2 as destination, as soon as i am near waypoint 1.
 
 Thanks a lot in advance.
 
 Kind regards,
 Ed
 
 Christian Rüb wrote:
  I wrote a little Qt app to send destination or position to Navit via dbus 
  (needs to be activated in navit.xml first) or center the map.
  package [1]
  source [2]
  screenshot [3]
 
  How to use it:
  create a file with name;lat;lon per line and start the program. If the file 
  is named bookmarks.csv and placed in $HOME or the directory where qnavitctl 
  is started this file is automatically loaded.
 
  Why a program that does what Navit already can do?
   - for me it is a quick fix for #352 in navit
   - for my 1k+ trip I have to prepare intermdeiate stops as otherwise route 
  calculation would take very long (if it would succeed at all), so I can 
  have my navit window and another window to set next destination easily
   - it is an example how to talk to navit via dbus and could be used for 
  other apps (e.g. litephone) to get coordinates (e.g. from opimd) and start 
  navigation in navit through a button (e.g. you receive a text containing 
  coordinates, press take me there and the coordinates are send as 
  destination to navit via dbus)
   - I am still learning Qt :)
 
  That's all
 
  [1] http://openmoko.senfdax.de/shr-unstable/
  [2] http://git.senfdax.de/?p=qnavitctl;a=summary
  [3] http://openmoko.senfdax.de/screenshots/qnavitctl.png
 
  ___
  Openmoko community mailing list
  community@lists.openmoko.org
  http://lists.openmoko.org/mailman/listinfo/community
 
 

 


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: QNavitCtl - Navit Bookmarks via dbus

2009-12-30 Thread Ed Kapitein
Hi Christian,

Thanks a lot for your explanation!
I think i had the same problem you had, i can't set a destination with
the current version of navit.
(Dbus is enabled)
So, i will ask the people from the navit team on how to use dbus with
the current version.

Thanks again and happy new year everybody.
Kind regards,

Ed

Christian Rüb wrote:
 Hi Ed,

 to build it on your PC, you need to have qmake (from Qt) installed.
 Then simply run
 #qmake
 (the name may differ, liket qmake-qt4 or something)
 This will create your Makefile, then simply run
 #make
 and you are done, you will get one binary called qnavitcl - that's it.

 If you want to build for your Openmoko phone, use my bitbake recipe here 
 (simply copy to your OE tree) and it will build the package for you.

 If you want a prebuilt binary - get it from here [1] (you'll also get 
 dependencies from there). It is built for SHR-U.

 Have you enabled dbus in navit.xml? This is essential.

 Use dbus-send to get a navit instance and then you can control it through the 
 path you get back. Have a look at [2] how I did it in Qt:
 registerNavitInstance() and setCenter() will be of most interest for you.

 If you use dbus-send, you also need to print the replies - otherwise you 
 cannot use them ;-) - see man page for futher details

 BUT - with current version of navit I could not get it to work as the dbus 
 interface seems to have changed - iter does not exist anymore and I have 
 not found a way yet to get an instance and set destination :(

 Cheers,
  Christian

 [1] http://openmoko.senfdax.de/shr-new-unstable/
 [2] 
 http://git.senfdax.de/?p=qnavitctl;a=blob;f=src/mainwindow.cpp;h=a7b076db790971245b2d4c6769f13ba92b194b3e;hb=a3d4e3ea1506321d09a735e69810e3be01ccc860

   
 Hi Christian,

 i am trying to use navit and dbus, but so far i haven't find out how to
 do it.
 I did download your source, but how do i build it?
 ( real noob here...)
 Could you explain how to build it from source?
 I am used to ./configure, make, make install

 Can you give an example of dbus-send to set a destination in navit?
 i want, like you, to have a list of waypoints and i want to set waypoint
 2 as destination, as soon as i am near waypoint 1.

 Thanks a lot in advance.

 Kind regards,
 Ed

 Christian Rüb wrote:
 
 I wrote a little Qt app to send destination or position to Navit via dbus 
 (needs to be activated in navit.xml first) or center the map.
 package [1]
 source [2]
 screenshot [3]

 How to use it:
 create a file with name;lat;lon per line and start the program. If the file 
 is named bookmarks.csv and placed in $HOME or the directory where qnavitctl 
 is started this file is automatically loaded.

 Why a program that does what Navit already can do?
  - for me it is a quick fix for #352 in navit
  - for my 1k+ trip I have to prepare intermdeiate stops as otherwise route 
 calculation would take very long (if it would succeed at all), so I can 
 have my navit window and another window to set next destination easily
  - it is an example how to talk to navit via dbus and could be used for 
 other apps (e.g. litephone) to get coordinates (e.g. from opimd) and start 
 navigation in navit through a button (e.g. you receive a text containing 
 coordinates, press take me there and the coordinates are send as 
 destination to navit via dbus)
  - I am still learning Qt :)

 That's all

 [1] http://openmoko.senfdax.de/shr-unstable/
 [2] http://git.senfdax.de/?p=qnavitctl;a=summary
 [3] http://openmoko.senfdax.de/screenshots/qnavitctl.png

 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community


   
   



   


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: QNavitCtl - Navit Bookmarks via dbus

2009-12-30 Thread Christian Rüb
Hi Ed,

already posted on navit user ML about this - as the wiki still tells the old 
way:
http://wiki.navit-project.org/index.php/Dbus

When I know how to do it, I will update qnavitctl.

Cheers,
 Christian

 Hi Christian,
 
 Thanks a lot for your explanation!
 I think i had the same problem you had, i can't set a destination with
 the current version of navit.
 (Dbus is enabled)
 So, i will ask the people from the navit team on how to use dbus with
 the current version.
 
 Thanks again and happy new year everybody.
 Kind regards,
 
 Ed
 
 Christian Rüb wrote:
  Hi Ed,
 
  to build it on your PC, you need to have qmake (from Qt) installed.
  Then simply run
  #qmake
  (the name may differ, liket qmake-qt4 or something)
  This will create your Makefile, then simply run
  #make
  and you are done, you will get one binary called qnavitcl - that's it.
 
  If you want to build for your Openmoko phone, use my bitbake recipe here 
  (simply copy to your OE tree) and it will build the package for you.
 
  If you want a prebuilt binary - get it from here [1] (you'll also get 
  dependencies from there). It is built for SHR-U.
 
  Have you enabled dbus in navit.xml? This is essential.
 
  Use dbus-send to get a navit instance and then you can control it through 
  the path you get back. Have a look at [2] how I did it in Qt:
  registerNavitInstance() and setCenter() will be of most interest for you.
 
  If you use dbus-send, you also need to print the replies - otherwise you 
  cannot use them ;-) - see man page for futher details
 
  BUT - with current version of navit I could not get it to work as the dbus 
  interface seems to have changed - iter does not exist anymore and I have 
  not found a way yet to get an instance and set destination :(
 
  Cheers,
   Christian
 
  [1] http://openmoko.senfdax.de/shr-new-unstable/
  [2] 
  http://git.senfdax.de/?p=qnavitctl;a=blob;f=src/mainwindow.cpp;h=a7b076db790971245b2d4c6769f13ba92b194b3e;hb=a3d4e3ea1506321d09a735e69810e3be01ccc860
 

  Hi Christian,
 
  i am trying to use navit and dbus, but so far i haven't find out how to
  do it.
  I did download your source, but how do i build it?
  ( real noob here...)
  Could you explain how to build it from source?
  I am used to ./configure, make, make install
 
  Can you give an example of dbus-send to set a destination in navit?
  i want, like you, to have a list of waypoints and i want to set waypoint
  2 as destination, as soon as i am near waypoint 1.
 
  Thanks a lot in advance.
 
  Kind regards,
  Ed
 
  Christian Rüb wrote:
  
  I wrote a little Qt app to send destination or position to Navit via dbus 
  (needs to be activated in navit.xml first) or center the map.
  package [1]
  source [2]
  screenshot [3]
 
  How to use it:
  create a file with name;lat;lon per line and start the program. If the 
  file is named bookmarks.csv and placed in $HOME or the directory where 
  qnavitctl is started this file is automatically loaded.
 
  Why a program that does what Navit already can do?
   - for me it is a quick fix for #352 in navit
   - for my 1k+ trip I have to prepare intermdeiate stops as otherwise 
  route calculation would take very long (if it would succeed at all), so I 
  can have my navit window and another window to set next destination easily
   - it is an example how to talk to navit via dbus and could be used for 
  other apps (e.g. litephone) to get coordinates (e.g. from opimd) and 
  start navigation in navit through a button (e.g. you receive a text 
  containing coordinates, press take me there and the coordinates are 
  send as destination to navit via dbus)
   - I am still learning Qt :)
 
  That's all
 
  [1] http://openmoko.senfdax.de/shr-unstable/
  [2] http://git.senfdax.de/?p=qnavitctl;a=summary
  [3] http://openmoko.senfdax.de/screenshots/qnavitctl.png
 
  ___
  Openmoko community mailing list
  community@lists.openmoko.org
  http://lists.openmoko.org/mailman/listinfo/community
 
 


 
 
 

 


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: QNavitCtl - Navit Bookmarks via dbus

2009-08-29 Thread Christian Rüb
arne anka:
 i just tried qnavitctl right now and had two problems:
 - where is the bookmarks.csv supposed to come from? navit creates  
 bookmark.txt
 - tab buttons, button register leads only to could not get Navit  
 instance and
 
 QDBusObjectPath: invalid path 
 reply: 
 coud not get iter

Thanks for your feedback, please have a look at my frist mail:
you have to create a bookmarks.csv yourself

format is NOT the same as navit bookmarks.txt, but
name; lat; lon

The reason is I only support decimal coordinates in QNavitCtl and not all types 
of card mappings as Navit does.

The second error sounds like dbus is not activated for navit, you have to 
explicitely do this in navit.xml:

...
plugin path=$NAVIT_LIBDIR/*/${NAVIT_LIBPREFIX}libbinding_dbus.so.0 
active=yes/
...

by default it says no here

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: QNavitCtl - Navit Bookmarks via dbus

2009-08-29 Thread Christian Rüb
Christian Rüb:
 arne anka:
  i just tried qnavitctl right now and had two problems:
  - where is the bookmarks.csv supposed to come from? navit creates  
  bookmark.txt
  - tab buttons, button register leads only to could not get Navit  
  instance and
  
  QDBusObjectPath: invalid path 
  reply: 
  coud not get iter
 
 Thanks for your feedback, please have a look at my frist mail:
 you have to create a bookmarks.csv yourself
 
 format is NOT the same as navit bookmarks.txt, but
 name; lat; lon
 
 The reason is I only support decimal coordinates in QNavitCtl and not all 
 types of card mappings as Navit does.
 
 The second error sounds like dbus is not activated for navit, you have to 
 explicitely do this in navit.xml:
 
 ...
 plugin path=$NAVIT_LIBDIR/*/${NAVIT_LIBPREFIX}libbinding_dbus.so.0 
 active=yes/
 ...
 
 by default it says no here

Wiki page added:
http://wiki.openmoko.org/wiki/QNavitCtl

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: QNavitCtl - Navit Bookmarks via dbus

2009-08-28 Thread KaZeR



Risto H. Kurppa wrote:
 
 tangogps (=mapnik) map looks better
 tangogps map scrolls smoother  faster
 
True, realtime-drawn maps on low power device like the FR can't compete with
bitmaps maps on these points.


Risto H. Kurppa wrote:
 
 tangogps doesn't crash/freeze
 
It would be interesting to see if you can find a pattern for that.


Risto H. Kurppa wrote:
 
 So far I haven't been able to
 Reliably route longer trips
 
Using OSM maps? What do you mean by unreliably? No route, bad route, crash
when routing?


Risto H. Kurppa wrote:
 
 Find the destination from the street name catalog (mostly the list's
 just empty.. don't know if it's OSM or navit..)
 
http://wiki.navit-project.org/index.php/OpenStreetMaps#Problems_with_OSM_and_navit_or_navigation_in_general


Risto H. Kurppa wrote:
 
 Scroll bookmarks / streetnames
 
http://trac.navit-project.org/ticket/352


-- 
View this message in context: 
http://n2.nabble.com/QNavitCtl-Navit-Bookmarks-via-dbus-tp3519072p3533275.html
Sent from the Openmoko Community mailing list archive at Nabble.com.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: QNavitCtl - Navit Bookmarks via dbus

2009-08-28 Thread Risto H. Kurppa
On Fri, Aug 28, 2009 at 11:06 AM, KaZeRka...@altern.org wrote:
 Risto H. Kurppa wrote:
 True, realtime-drawn maps on low power device like the FR can't compete with
 bitmaps maps on these points.

Don't know if glamo will help here at some stage..

 Risto H. Kurppa wrote:

 tangogps doesn't crash/freeze

 It would be interesting to see if you can find a pattern for that.

for tangogps not crashing ?:)

No, for navit crashing: it actually mostly freezes but it is usualle
the whole Freerunner, not only navit, but otoh I feel it more often
when using Navit - maybe it's just more cpu-intensive..

 Risto H. Kurppa wrote:

 So far I haven't been able to
 Reliably route longer trips

 Using OSM maps? What do you mean by unreliably? No route, bad route, crash
 when routing?

I was traveling somewhere and it only routed to the next crossroads,
not further. I had set the destination as bookmark and selected it
there. And the roads are ok, it should've been able to find a route
there anyway (I think I had a look at the route with some other
www-router using OSM and they worked)

 Risto H. Kurppa wrote:

 Find the destination from the street name catalog (mostly the list's
 just empty.. don't know if it's OSM or navit..)

 http://wiki.navit-project.org/index.php/OpenStreetMaps#Problems_with_OSM_and_navit_or_navigation_in_general

Thanks, I'll check.

One of the problems is that navit searches for streets not based on
community borders but closest city center / something. This causes for
example a big part of Northern Helsinki (in Finland) to look like it'd
be at Vantaa, when searching for street names (that worked at some
stage, now that you mention it..) - I guess it's the same problem as
with this: Unfortunately using the country border for detecting the
membership of a town also isn't an option, because the boundaries are
usually not closed or wrong

(and btw, there are places in Finland like 'Ii' - the name has only 2
letters - not possible to search..)

Wish Navit got more developers lured in..
http://aseigo.blogspot.com/2009/01/building-community-around-your-foss.html

 Risto H. Kurppa wrote:

 Scroll bookmarks / streetnames

 http://trac.navit-project.org/ticket/352

So it's known, good.. Let's hope we'll see a fix soon..



r



-- 
| risto h. kurppa
| risto at kurppa dot fi
| http://risto.kurppa.fi

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: QNavitCtl - Navit Bookmarks via dbus

2009-08-28 Thread Patryk Benderz
[cut]
 with this: Unfortunately using the country border for detecting the
 membership of a town also isn't an option, because the boundaries are
 usually not closed or wrong
Exactly, but few sentences further, they claim there is a workaround -
you need some scripts they made.

-- 
Kind Regards,   Patryk LeadMan Benderz
Linux Registered User #377521
()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments


Email secured by Check Point

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: QNavitCtl - Navit Bookmarks via dbus

2009-08-28 Thread Risto H. Kurppa
On Fri, Aug 28, 2009 at 12:16 PM, Patryk Benderzpatryk.bend...@esp.pl wrote:
 [cut]
 with this: Unfortunately using the country border for detecting the
 membership of a town also isn't an option, because the boundaries are
 usually not closed or wrong
 Exactly, but few sentences further, they claim there is a workaround -
 you need some scripts they made.

Do you mean this:

This is because osm2navit only knows about a few is_in tags. To fix
this, look for a reliable is_in tag in the towns in your country. If
there is none, contact us, we have some scripts which can help adding
one in this case. Then add the tag (at most 3 per country) to this
page. Unfortunately using the country border for detecting the
membership of a town also isn't an option, because the boundaries are
usually not closed or wrong. 

Finland is on the list mentioned on the site and I've been trying to
check the is_in -codes. Do I really have to add is_in to every object
that's interpreted to be in the wrong place in osm2navit? This means
every street, POI etc..? Not going to happen..


r


-- 
| risto h. kurppa
| risto at kurppa dot fi
| http://risto.kurppa.fi

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: QNavitCtl - Navit Bookmarks via dbus

2009-08-28 Thread Steven Le Roux
On Thu, Aug 27, 2009 at 10:15 AM, Patryk Benderz patryk.bend...@esp.plwrote:

 [cut]
  I like all the purposes you did it for - this makes Navit again a bit
  more usable
 Oh, come on Risto, it is much more usable than tangoGPS for example.
 Navit has a working routing engine which is vital.


You're wrong comparing both solutions here.

They are not intented to do the same job. TangoGPS is not a routing app and,
in a lot of case, this is enough seeing where you are going to drive,
without the need of routing.

These soft are not in the same cathegory to me.




 --
 Kind Regards,   Patryk LeadMan Benderz
Linux Registered User #377521
 ()  ascii ribbon campaign - against html e-mail
 /\  www.asciiribbon.org   - against proprietary attachments


 Email secured by Check Point

 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community




-- 
Steven Le Roux
Jabber-ID : ste...@jabber.fr
0x39494CCB ste...@le-roux.info
2FF7 226B 552E 4709 03F0  6281 72D7 A010 3949 4CCB
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: QNavitCtl - Navit Bookmarks via dbus

2009-08-28 Thread Adolph J. Vogel

 Do you mean this:

 This is because osm2navit only knows about a few is_in tags. To fix
 this, look for a reliable is_in tag in the towns in your country. If
 there is none, contact us, we have some scripts which can help adding
 one in this case. Then add the tag (at most 3 per country) to this
 page. Unfortunately using the country border for detecting the
 membership of a town also isn't an option, because the boundaries are
 usually not closed or wrong. 


I recently also read that paragraph, since searching does not work in South 
Africa. I`m afraid its not very clear about what needs to be done. :(

-- 
Adolph J. Vogel BEng(Hons)




___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: QNavitCtl - Navit Bookmarks via dbus

2009-08-28 Thread arne anka
i just tried qnavitctl right now and had two problems:
- where is the bookmarks.csv supposed to come from? navit creates  
bookmark.txt
- tab buttons, button register leads only to could not get Navit  
instance and

QDBusObjectPath: invalid path 
reply: 
coud not get iter

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: QNavitCtl - Navit Bookmarks via dbus

2009-08-27 Thread Patryk Benderz
[cut]
 I like all the purposes you did it for - this makes Navit again a bit
 more usable
Oh, come on Risto, it is much more usable than tangoGPS for example.
Navit has a working routing engine which is vital.

-- 
Kind Regards,   Patryk LeadMan Benderz
Linux Registered User #377521
()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments


Email secured by Check Point

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: QNavitCtl - Navit Bookmarks via dbus

2009-08-27 Thread Risto H. Kurppa
On Thu, Aug 27, 2009 at 11:15 AM, Patryk Benderzpatryk.bend...@esp.pl wrote:
 [cut]
 I like all the purposes you did it for - this makes Navit again a bit
 more usable
 Oh, come on Risto, it is much more usable than tangoGPS for example.
 Navit has a working routing engine which is vital.

tangogps (=mapnik) map looks better
tangogps map scrolls smoother  faster
tangogps doesn't crash/freeze

So far I haven't been able to
Reliably route longer trips
Find the destination from the street name catalog (mostly the list's
just empty.. don't know if it's OSM or navit..)
Scroll bookmarks / streetnames

So they server a little bit different purpose. I'd very much like to
use vector maps (=navit) but so far bitmaps rock a bit more (and I
prefer omgps over tangogps...)



r

-- 
| risto h. kurppa
| risto at kurppa dot fi
| http://risto.kurppa.fi

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: QNavitCtl - Navit Bookmarks via dbus

2009-08-27 Thread Marcel
Am Donnerstag, den 27.08.2009, 11:29 +0300 schrieb Risto H. Kurppa:
 So they server a little bit different purpose. I'd very much like to
 use vector maps (=navit) but so far bitmaps rock a bit more (and I
 prefer omgps over tangogps...)

I had to use navit for geocaching the weekend (because tGPS refused to
show map tiles for some reason, automagically resolved now) and found it
quite imprecise (not to say unusable) when walking around very small
distances (~5m). Seems like Navit averages the GPS signal for car usage
and tGPS simply shows on the map what it reads from the chip.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: QNavitCtl - Navit Bookmarks via dbus

2009-08-27 Thread arne anka
 I had to use navit for geocaching the weekend (because tGPS refused to
 show map tiles for some reason, automagically resolved now) and found it
 quite imprecise (not to say unusable) when walking around very small
 distances (~5m). Seems like Navit averages the GPS signal for car usage
 and tGPS simply shows on the map what it reads from the chip.


recent navit (at least the debian package) has in its navit.xml a  
predefinde vehicle and profile for pedestrians. not sure, how good it  
actually is, but might be worth a try?

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: QNavitCtl - Navit Bookmarks via dbus

2009-08-27 Thread Petr Vanek
I had to use navit for geocaching the weekend (because tGPS refused to
show map tiles for some reason, automagically resolved now) and found
it quite imprecise (not to say unusable) when walking around very small
distances (~5m). Seems like Navit averages the GPS signal for car usage
and tGPS simply shows on the map what it reads from the chip.


did you perhaps have the menu: settings-rules-lock on road option on?

Petr




___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: QNavitCtl - Navit Bookmarks via dbus

2009-08-27 Thread Bart .
Dnia 27 sierpnia 2009 10:15 Patryk Benderz patryk.bend...@esp.pl napisał(a):

 [cut]
  I like all the purposes you did it for - this makes Navit again a bit
  more usable
 Oh, come on Risto, it is much more usable than tangoGPS for example.
 Navit has a working routing engine which is vital.
 

I'm looking for navit with garmin support ... it there any working package for 
shr?

thanks

ps. tangoGPS is ok for the bike :)

Regards
Bartek

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: QNavitCtl - Navit Bookmarks via dbus

2009-08-26 Thread Risto H. Kurppa
On Wed, Aug 26, 2009 at 10:57 PM, Christian Rübchristian.r...@gmx.net wrote:
 I wrote a little Qt app to send destination or position to Navit via dbus 
 (needs to be activated in navit.xml first) or center the map.
 package [1]
 source [2]
 screenshot [3]

Very interesting!

I like all the purposes you did it for - this makes Navit again a bit
more usable (though it'd be of course great if someone actually fixed
this stuff in Navit.. I can't believe you can't scroll the bookmarks.
Wonder where the scarce devel resourves are used..)

And navit-dbus-examples sound good too!

r
-- 
| risto h. kurppa
| risto at kurppa dot fi
| http://risto.kurppa.fi

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community