Opened 5 years ago

Closed 4 years ago

#1019 closed enhancement/feature request (Incomplete/Missing infos)

Displaying message sent from external application

Reported by: bino Owned by: Singesang
Priority: minor Milestone: want patch / contribution
Component: osd/core Version: git master
Severity: Keywords: dbus, cli, IPC
Cc:

Description

Bassicaly, I need Navit to also display a Message sent/generated by external application.

I try dbus as posted at pastebin : http://pastebin.com/Sn2XshRS But it faild, that script generate 'a{sv}' as signature while according line 1595 of binding_dbus.c it have "sv" AFAIK to change attribute to an OSD item we need to set at leat :

  • item name (string ?)
  • attribute name (string ?)
  • attribute value (string ?)

But How ?

Another try : I'm thinking of changing the content of a single PNG file (i.e mylogo.png), and let navit to refresh it. I try this using type=cmd_filter with update_period=1 , but it also didn't work.

<osd name="refreshthis" enabled="yes" x="0" y="0" 
    type="cmd_interface" 
    update_period="1" 
    command='osd[@name==refreshthis].src="mylogo.png"' />

It fails, since the file name is always the same anytime that osd item triged, any lookslike navit don't re-read .

request for enhancement : Add a new osd type , i.e : refresh_image, that will called by something like :

<osd name="refreshthis" enabled="yes" x="0" y="0" 
    type="refresh_image" 
    update_period="1" 
    src='toberead.png' />

And when it triged, it will re-read the file stated by 'src', and place it on screen.

With this kind of solution, any one can display on-demand message as long as he/she can play with imagemagick's 'convert' or it's libs.

Change History (1)

comment:1 Changed 4 years ago by usul

  • Keywords dbus cli IPC added; ondemand text from external removed
  • Priority changed from major to minor
  • Resolution set to Incomplete/Missing infos
  • Status changed from new to closed

Please recheck your request against this docs: http://wiki.navit-project.org/index.php/Dbus#add_message
IMHO this could be realized with sendmessage?

If not, please give us more details on your specific usecase and try to describe what you want to realize.

Note: See TracTickets for help on using tickets.