Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

MythUtil - can't show a message on frontend

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


mdupuis at ocg

Jun 24, 2012, 3:47 PM

Post #1 of 3 (326 views)
Permalink
MythUtil - can't show a message on frontend

I am trying to show a message onscreen on my .25 frontend. I have tried using mythutil and netcat, but neither works. The syntax (and output) is below of both methods. Can anyone tell me what I'm missing?

Thanks!


nc -v -u -w 0 172.31.254.58 6548 < /tmp/testmess

or


[mythtv [at] mythlivingroo ~]$ mythutil --message --message_text "Hi There" --timeout 5
2012-06-24 18:41:02.969127 C mythutil version: [v0.25] www.mythtv.org<http://www.mythtv.org>
2012-06-24 18:41:02.969160 N Enabled verbose msgs: general
2012-06-24 18:41:02.969209 N Setting Log Level to LOG_INFO
2012-06-24 18:41:02.969391 I Added logging to the console
2012-06-24 18:41:02.969415 I Added database logging to table logging
2012-06-24 18:41:02.969600 N Setting up SIGHUP handler
2012-06-24 18:41:02.970067 N Using runtime prefix = /usr
2012-06-24 18:41:02.970128 N Using configuration directory = /home/mythtv/.mythtv
2012-06-24 18:41:02.970560 I Assumed character encoding: en_US.UTF-8
2012-06-24 18:41:02.971698 N Empty LocalHostName.
2012-06-24 18:41:02.971725 I Using localhost value of mythlivingroom.ocg.ca
2012-06-24 18:41:02.972185 I Testing network connectivity to '172.31.254.84'
2012-06-24 18:41:02.975012 I Starting process manager
2012-06-24 18:41:02.975350 I Starting process signal handler
2012-06-24 18:41:02.981979 I Starting IO manager (read)
2012-06-24 18:41:02.982316 I Starting IO manager (write)
2012-06-24 18:41:03.161003 N Setting QT default locale to en_CA
2012-06-24 18:41:03.161025 I Current locale en_CA
2012-06-24 18:41:03.161169 N Reading locale defaults from /usr/share/mythtv//locales/en_ca.xml
name: message_text -- value: Hi There
name: timeout -- value: 5
output:
<mythmessage version="1">
<text>Hi There</text>
<timeout>5</timeout>
</mythmessage>
Sent UDP/XML packet to IP 255.255.255.255 and port: 6948


mdupuis at ocg

Jun 24, 2012, 3:55 PM

Post #2 of 3 (327 views)
Permalink
Re: MythUtil - can't show a message on frontend [In reply to]

I actually got it working in mythutil by specifying a single IP as the broadcast (strange):

mythutil --message --message_text "Hi There" --timeout 5 -v --bcastaddr 172.31.254.58

but I really want it to work using netcat so I don't have to compile mythutil on other systems which send the message. Any advice on how to make netcat work with this?

Oh...and the 5 second timeout has no effect...I still have to click OK each time onscreen. Hopefully there is a workaround for that too...
________________________________
From: mythtv-users-bounces [at] mythtv [mythtv-users-bounces [at] mythtv] On Behalf Of Michelle Dupuis [mdupuis [at] ocg]
Sent: Sunday, June 24, 2012 6:47 PM
To: Myth TV Users List
Subject: [mythtv-users] MythUtil - can't show a message on frontend

I am trying to show a message onscreen on my .25 frontend. I have tried using mythutil and netcat, but neither works. The syntax (and output) is below of both methods. Can anyone tell me what I'm missing?

Thanks!


nc -v -u -w 0 172.31.254.58 6548 < /tmp/testmess

or


[mythtv [at] mythlivingroo ~]$ mythutil --message --message_text "Hi There" --timeout 5
2012-06-24 18:41:02.969127 C mythutil version: [v0.25] www.mythtv.org<http://www.mythtv.org>
2012-06-24 18:41:02.969160 N Enabled verbose msgs: general
2012-06-24 18:41:02.969209 N Setting Log Level to LOG_INFO
2012-06-24 18:41:02.969391 I Added logging to the console
2012-06-24 18:41:02.969415 I Added database logging to table logging
2012-06-24 18:41:02.969600 N Setting up SIGHUP handler
2012-06-24 18:41:02.970067 N Using runtime prefix = /usr
2012-06-24 18:41:02.970128 N Using configuration directory = /home/mythtv/.mythtv
2012-06-24 18:41:02.970560 I Assumed character encoding: en_US.UTF-8
2012-06-24 18:41:02.971698 N Empty LocalHostName.
2012-06-24 18:41:02.971725 I Using localhost value of mythlivingroom.ocg.ca
2012-06-24 18:41:02.972185 I Testing network connectivity to '172.31.254.84'
2012-06-24 18:41:02.975012 I Starting process manager
2012-06-24 18:41:02.975350 I Starting process signal handler
2012-06-24 18:41:02.981979 I Starting IO manager (read)
2012-06-24 18:41:02.982316 I Starting IO manager (write)
2012-06-24 18:41:03.161003 N Setting QT default locale to en_CA
2012-06-24 18:41:03.161025 I Current locale en_CA
2012-06-24 18:41:03.161169 N Reading locale defaults from /usr/share/mythtv//locales/en_ca.xml
name: message_text -- value: Hi There
name: timeout -- value: 5
output:
<mythmessage version="1">
<text>Hi There</text>
<timeout>5</timeout>
</mythmessage>
Sent UDP/XML packet to IP 255.255.255.255 and port: 6948


raymond at wagnerrp

Jul 6, 2012, 12:20 AM

Post #3 of 3 (290 views)
Permalink
Re: MythUtil - can't show a message on frontend [In reply to]

On 6/24/2012 18:55, Michelle Dupuis wrote:
> I actually got it working in mythutil by specifying a single IP as the
> broadcast (strange):
> mythutil --message --message_text "Hi There" --timeout 5 -v --bcastaddr
> 172.31.254.58

Not really. QT's default broadcast address is not a valid address.
Nothing is going to be listening on 255.255.255.255 to hear what you
have to say. Just a guess from that address, the proper broadcast
address would be 172.31.254.255.

> but I really want it to work using netcat so I don't have to compile
> mythutil on other systems which send the message. Any advice on how to
> make netcat work with this?

It should be working. All the code does is pump that XML as UTF-8 over
the UDP port. There is no fancy interaction between mythfrontend and
mythutil.

> Oh...and the 5 second timeout has no effect...I still have to click OK
> each time onscreen. Hopefully there is a workaround for that too...

The timeout only has any effect when operating within the OSD. If you
are just in the menus, they will remain on screen indefinitely.

_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.