Author Topic: MythTV in 12.04  (Read 5679 times)

B34N

  • Guru
  • ****
  • Posts: 156
    • View Profile
MythTV in 12.04
« on: February 16, 2014, 09:29:46 pm »
MythTV runs nicely on the core but the backend server cannot be found by the frontend on my MD. I also noted that the backend server cannot be found by the MythTV frontend on my android device. I was wondering if anyone else is there anyone using MythTV in 12.04 and able to connect to the backend from a device other than the core.



ata-lmce

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: MythTV in 12.04
« Reply #1 on: February 19, 2014, 03:42:38 pm »
I was having that issue also. I am not sure if it is related or not because I upgraded my install Myth to .27 and it may have reset some of the default settings that should be there normally. But in MythTV setup, in the general section. The backend IPv4 was set to the local loopback(127.0.0.1). I found somewhere on the internet that said that the backend only responds to requests on that ip address. So I changed the backend ip to the local LAN ip address(default: 192.168.80.1). After that I was able to access it on my MD as well as my phone using mythtv frontend.

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: MythTV in 12.04
« Reply #2 on: February 20, 2014, 11:15:09 pm »
can you please file a ticket, so we can fix the issue?

-Thom

B34N

  • Guru
  • ****
  • Posts: 156
    • View Profile
Re: MythTV in 12.04
« Reply #3 on: February 23, 2014, 04:20:15 am »
I submitted the ticket. Changing the backend server from 127.0.0.1 to 192.168.80.1 worked for the MythTV front end on my Android device but not for the MD. I'll keep testing to see if I can determine the reason. 

Esperanto

  • Guru
  • ****
  • Posts: 281
    • View Profile
Re: MythTV in 12.04
« Reply #4 on: March 03, 2014, 10:26:36 pm »
I upgraded my install Myth to .27

How did you upgrade to .27? I am also interested in the latest version, especially with the Unicable / Satellite Channel Router / DIN EN 50494 patch https://code.mythtv.org/trac/ticket/9726

ata-lmce

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: MythTV in 12.04
« Reply #5 on: March 04, 2014, 03:48:24 pm »
I updated to .27 by adding the myhtbuntu repositories

deb http://ppa.launchpad.net/mythbuntu/0.27/ubuntu precise main
deb-src http://ppa.launchpad.net/mythbuntu/0.27/ubuntu precise main

ran the commands
sudo apt-get update
sudo apt-get install mythtv

Then I had to update the MythTv_Plugin by downloading the source for it and updating MythBackEnd_Socket.cpp to change the protocol from 72 to 77 and also the token from D78EFD6F to WindMark. I then recompiled MythTV_Plugin.so and copied that to /usr/pluto/bin

It has been working pretty well for me since then. I had to change a few other settings in the MythTv setup as well. To fill the guide, I changed the command mythfilldatabase to /usr/pluto/bin/MythTvDailyFillDB.sh and also added Job #1 back in to save the recordings to the linuxmce database.



Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3675
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: MythTV in 12.04
« Reply #6 on: March 04, 2014, 05:39:07 pm »
Would you mind providing some patches and/or take over ownership of the MythTV integration ;) ?

ata-lmce

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: MythTV in 12.04
« Reply #7 on: March 06, 2014, 08:23:18 pm »
I will definitely add some patches for some of these things when I am more confident that all my changes have not affected the system in any other way.

I am going through the code and finding where all this stuff is implemented when installed. When I find it all, I will update it and add some patches to the system to take care of it. There are a couple other things I had to get fixed also that help my install run better. I was also thinking about adding a couple device data fields to the MythTV_Plugin to allow someone to run any version of MythTV they would like. I am still in the early stages of that though to know how much work that would take and if it is even worth while.

I am not quite sure if I am ready to take ownership over the MythTV integration yet, but willing to help out any way that I can.

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3675
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: MythTV in 12.04
« Reply #8 on: March 07, 2014, 06:39:26 am »
To not loose your work, why not attach a patch every other day or so to a trac ticket. That way, when you get hit by a Michael Bay explosion gone bad, we won't loose your work.

Esperanto

  • Guru
  • ****
  • Posts: 281
    • View Profile
Re: MythTV in 12.04
« Reply #9 on: March 07, 2014, 10:21:13 am »
ata-lmce. thats awesome.

I followed your suggestions and tried it for 0.26. this is about what I did:

Code: [Select]
cd /usr/src
mkdir lmce
cd lmce/
svn co http://svn.linuxmce.org/svn/trunk/src/PlutoUtils
svn co http://svn.linuxmce.org/svn/trunk/src
svn co http://svn.linuxmce.org/svn/trunk/src/Gen_Devices
svn co http://svn.linuxmce.org/svn/trunk/src/DCE
svn co http://svn.linuxmce.org/svn/trunk/src/SerializeClass
svn co http://svn.linuxmce.org/svn/trunk/src/pluto_main
svn co http://svn.linuxmce.org/svn/trunk/src/Media_Plugin
svn co http://svn.linuxmce.org/svn/trunk/src/db_wrapper
svn co http://svn.linuxmce.org/svn/trunk/src/mysql
sudo apt-get install libmysql++-dev
svn co http://svn.linuxmce.org/svn/trunk/src/pluto_media
svn co http://svn.linuxmce.org/svn/trunk/src/Orbiter
svn co http://svn.linuxmce.org/svn/trunk/src/Datagrid_Plugin
svn co http://svn.linuxmce.org/svn/trunk/src/Orbiter_Plugin
svn co http://svn.linuxmce.org/svn/trunk/src/JobHandler
svn co http://svn.linuxmce.org/svn/trunk/src/General_Info_Plugin
svn co http://svn.linuxmce.org/svn/trunk/src/version.h
wget http://svn.linuxmce.org/svn/trunk/src/version.h
svn co http://svn.linuxmce.org/svn/trunk/src/lib
svn co http://svn.linuxmce.org/svn/trunk/src/RA
svn co http://svn.linuxmce.org/svn/trunk/src/mysql_wrapper


cd ../SerializeClass/
make
cd ../DCE/
make
cd ../SerializeClass/
make
cd ../PlutoUtils/
make
cd ../pluto_main/
make
cd ../pluto_media/
make
cd ../MythTV_PlugIn/

apply patch
Code: [Select]
--- MythBackEnd_Socket.cpp.orig 2014-03-06 13:42:32.009283598 +0100
+++ MythBackEnd_Socket.cpp      2014-03-06 13:45:00.554095309 +0100
@@ -17,7 +17,7 @@
 using namespace std;
 using namespace DCE;
 
-#define MYTH_PROTOCOL  72
+#define MYTH_PROTOCOL  75
 #include "Gen_Devices/AllCommandsRequests.h"
 
 MythBackEnd_Socket::MythBackEnd_Socket(MythTV_PlugIn *pMythTV_PlugIn,string sIPAddress)
@@ -157,7 +157,7 @@
        m_bConnected=true;
 
        string sResponse;
-       if( !InternalSendMythString("MYTH_PROTO_VERSION " TOSTRING(MYTH_PROTOCOL) " D78EFD6F",&sResponse,"ACCEPT") )
+       if( !InternalSendMythString("MYTH_PROTO_VERSION " TOSTRING(MYTH_PROTOCOL) " SweetRock",&sResponse,"ACCEPT") )
        {
                LoggerWrapper::GetInstance()->Write(LV_CRITICAL,"MythBackEnd_Socket::Connect couldn't send MYTH_PROTO_VERSION m_bConnected=false");
                DeleteSocket();

Code: [Select]
make

mv /usr/pluto/bin/MythTV_PlugIn.so /usr/pluto/bin/MythTV_PlugIn.so.orig
cp MythTV_PlugIn.so /usr/pluto/bin/MythTV_PlugIn.so

sudo add-apt-repository  ppa:dekarl/mythtv-unicable
sudo apt-get update
sudo apt-get dist-upgrade

Seems to work.

I wanted to attach the plugin for version 0.26 but it seems we only allowed 192KB ;-(

phenigma

  • LinuxMCE God
  • ****
  • Posts: 1758
    • View Profile
Re: MythTV in 12.04
« Reply #10 on: March 09, 2014, 10:37:12 pm »
I am not quite sure if I am ready to take ownership over the MythTV integration yet, but willing to help out any way that I can.

Hey there ata-lmce!  I am, currently, one of the primary devs on the project.  I try to work with people regularly as they are prepping new features or bug fixes.  If you need any assistance let us know.  I'd be happy to help you to get things added/updated/fixed from this end.  So even if you do not wish to take ownership we would still welcome any contributions you can provide, especially MythTV related.  :)

J.

ata-lmce

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: MythTV in 12.04
« Reply #11 on: March 11, 2014, 10:19:59 pm »
Thanks for the support. I am going through the ticket system now to learn how that works so I can start with a lot of that and get some updates pushed out. I will let you know if I have any questions or need help with anything.

thanks again