Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: HowTo: Using Conky on any ubuntu box to view recording info on backend.

  1. #1
    Join Date
    Nov 2007
    Beans
    206

    HowTo: Using Conky on any ubuntu box to view recording info on backend.

    This is a How-To on using conky on any ubuntu box to view recording info on your backend. This is accomplised by install mythtv-status on the ubuntu box that uses conky. I've modified mythtv-status a little bit.

    For none, ubuntu distrobutions, you can find mythtv-status here. http://www.etc.gen.nz/projects/mytht...tv-status.html


    1. Copy your /home/username/.mythtv/config.xml from your mythbuntu box to your local ubuntu desktop /home/username/.mythtv/config.xml

    2. Edit the config.xml file to reflect the ip address of your backend
    Code:
    gedit ~/.mythtv/config.xml
    Edit this line. Change localhost to the ip address of your backend. In my case
    Code:
    <DBHostName>localhost</DBHostName>
    Changed to:

    Code:
    <DBHostName>192.168.15.3</DBHostName>
    3. Link config.xml to /root/.mythtv/config.xml

    Code:
    sudo mkdir /root/.mythtv
    sudo ln -s ~/.mythtv/config.xml /root/.mythtv/config.xml
    This is to fix the perl api warning in mythtv status.

    4. Install mythtv-status
    Code:
    sudo apt-get update
    sudo apt-get install mythtv-status
    5. Edit mythtv-status to reflect my changes.

    Code:
    sudo gedit /usr/bin/mythtv-status
    Around line 21. Change localhost to ip address of backend

    Code:
    my $host = "localhost";
    In my instance it changes to.

    Code:
    my $host = "192.168.15.3";
    6. Edit .conkyrc file to add output.

    Code:
    gedit ~.conkyrc
    Near the top, add

    Code:
    text_buffer_size 1024

    At the bottom add

    Code:
    ${color #0077ff} ${execi 300 perl /usr/bin/mythtv-status KISP}
    Change the colors to correspond to your current .conkyrc config.


    Run conky to test.
    Last edited by DemonBob; September 30th, 2008 at 05:11 PM. Reason: Added Link for mythtv-status for non-ubuntu distro's

  2. #2
    Join Date
    Nov 2007
    Beans
    206

    Re: HowTo: Using Conky on any ubuntu box to view recording info on backend.

    Screenshot of the output.
    Attached Images Attached Images
    Last edited by DemonBob; September 30th, 2008 at 05:00 PM.

  3. #3
    Join Date
    May 2006
    Beans
    585

    Re: HowTo: Using Conky on any ubuntu box to view recording info on backend.

    followed your how to and i'm still getting that api error any ideas?
    I'm running intrepid on the conky box
    amd 4-core cpu,dual geforce gts 450 in sli mode, 8 gigs of ram. / on 80 ssd drive, home on a 1tb sata drive, 4 tb sata drives for storage

  4. #4
    Join Date
    May 2006
    Beans
    585

    Re: HowTo: Using Conky on any ubuntu box to view recording info on backend.

    followed your how to and i'm still getting that api error any ideas?
    I'm running intrepid on the conky box
    amd 4-core cpu,dual geforce gts 450 in sli mode, 8 gigs of ram. / on 80 ssd drive, home on a 1tb sata drive, 4 tb sata drives for storage

  5. #5
    Join Date
    Nov 2007
    Beans
    206

    Re: HowTo: Using Conky on any ubuntu box to view recording info on backend.

    Quote Originally Posted by lime4x4 View Post
    followed your how to and i'm still getting that api error any ideas?
    I'm running intrepid on the conky box
    Hmm, i'm using Intrpeid also, and it's working fineu since alpha 6

    Could you compare the output of /root/.mythtv/config.xml, and /home/your_username/.mythtv/config.xml

  6. #6
    Join Date
    May 2006
    Beans
    585

    Re: HowTo: Using Conky on any ubuntu box to view recording info on backend.

    there the same

    <Configuration>
    <UPnP>
    <UDN>
    <MediaRenderer>f424a9a0-329f-4106-baa8-196d72b816b3</MediaRenderer>
    </UDN>
    <MythFrontend>
    <DefaultBackend>
    <DBHostName>192.168.1.100</DBHostName>
    <DBUserName>mythtv</DBUserName>
    <DBPassword>Hf5Vs6a5</DBPassword>
    <DBName>mythconverg</DBName>
    <DBPort>0</DBPort>
    </DefaultBackend>
    </MythFrontend>
    </UPnP>
    </Configuration>
    amd 4-core cpu,dual geforce gts 450 in sli mode, 8 gigs of ram. / on 80 ssd drive, home on a 1tb sata drive, 4 tb sata drives for storage

  7. #7
    Join Date
    Nov 2007
    Beans
    206

    Re: HowTo: Using Conky on any ubuntu box to view recording info on backend.

    Try running conky from the command line to see what errors it produces, aftwards run /usr/bin/mythtv-status from the command line, post the output of both.

  8. #8
    Join Date
    May 2006
    Beans
    585

    Re: HowTo: Using Conky on any ubuntu box to view recording info on backend.

    john@john-desktop:~$ conky
    Conky: use_spacer should have an argument of left, right, or none. 'yes' seems to be some form of 'true', so defaulting to right.
    Conky: can't load font 'arial'
    Conky: desktop window (1a00157) is subwindow of root window (117)
    Conky: window type - override
    Conky: drawing to created window (0x5000004)
    Conky: drawing to double buffer


    john@john-desktop:~$ /usr/bin/mythtv-status

    MythTV status for 192.168.1.100
    ===============================
    Status...........: Tue Oct 21 2008, 8:00 PM
    Total Disk Space.: Total space is 110,503 MB, with 88,246 MB used (79.9%)
    Next Recording In: 47 Hours, 59 Minutes

    Encoders:
    john-mythtv (1) - Idle

    Schedule Conflicts:
    Unable to access MythTV Perl API. Try with --verbose to find out why.
    amd 4-core cpu,dual geforce gts 450 in sli mode, 8 gigs of ram. / on 80 ssd drive, home on a 1tb sata drive, 4 tb sata drives for storage

  9. #9
    Join Date
    May 2006
    Beans
    585

    Re: HowTo: Using Conky on any ubuntu box to view recording info on backend.

    john@john-desktop:~$ /usr/bin/mythtv-status --verbose
    DBI connect('database=mythconverg:host=192.168.1.100;p ort=3306','mythtv',...) failed: Can't connect to MySQL server on '192.168.1.100' (111) at /usr/share/perl5/MythTV.pm line 337
    Cannot connect to database:

    We have the correct protocol version for Total Disk Space
    We have the correct xml version for Total Disk Space
    We have the correct protocol version for Total Disk Space
    We have the correct protocol version for Disk Space

    MythTV status for 192.168.1.100
    ===============================
    Status...........: Wed Oct 22 2008, 5:17 PM
    Total Disk Space.: Total space is 110,503 MB, with 88,246 MB used (79.9%)
    Next Recording In: 26 Hours, 42 Minutes

    Encoders:
    john-mythtv (1) - Idle

    Scheduled Recordings:
    2008-10-23 20:00:00 - Survivor: Gabon (KYW)

    Schedule Conflicts:
    Unable to access MythTV Perl API. Try with --verbose to find out why.

    john@john-desktop:~$
    amd 4-core cpu,dual geforce gts 450 in sli mode, 8 gigs of ram. / on 80 ssd drive, home on a 1tb sata drive, 4 tb sata drives for storage

  10. #10
    Join Date
    Jul 2008
    Beans
    3

    Re: HowTo: Using Conky on any ubuntu box to view recording info on backend.

    I fixed this problem by running "ssh hostname mythtv-status". In other words I'm running mythtv-status on the mythtv backend. This only works if you have ssh keys set up, but that's easy enough.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •