LinHES Forums
http://forum.linhes.org/

MythTV Webmin Module [released]
http://forum.linhes.org/viewtopic.php?f=6&t=9460
Page 1 of 2

Author:  LinuxSneaker [ Mon Apr 03, 2006 12:37 pm ]
Post subject:  MythTV Webmin Module [released]

IMHO, MythTV is the "killer app", and knoppmyth is the best way to go. However, I've noticed that many of the solutions to problems have been "run this script", where the script is unknown to people like me.

So...I'm going to try to write a webmin module for mythtv, and most of it will be specific to knoppmyth. The reason why I don't want to put this into mythweb is this is for the system administrater, while mythweb is for the system user (not always the same). Has this been done before?

At first it will be buttons and help screens to keep cesman & co. from answering the same question over and over. It may have more...I don't know yet. Maybe later it will have other things like MythTV status, like MythWeb.

Comments?

Author:  spalVl [ Mon Apr 03, 2006 2:07 pm ]
Post subject:  Re: MythTV Webmin Module

LinuxSneaker wrote:
So...I'm going to try to write a webmin module for mythtv, and most of it will be specific to knoppmyth. The reason why I don't want to put this into mythweb is this is for the system administrater, while mythweb is for the system user (not always the same). Has this been done before?
...
Comments?


No one has done so as far as I know. I think that would be a great contribution.

Author:  tjc [ Mon Apr 03, 2006 8:08 pm ]
Post subject: 

That sounds really fabulous. Of course it presumes that we can get newbies to set up webmin. ;-)

Author:  Girkers [ Wed Apr 05, 2006 1:06 am ]
Post subject: 

I have a script that sets up webmin, although I have not used it for a while as I haven't needed to use webmin. If the interface could be added to MythWeb I think this would be a better solution.

Author:  LinuxSneaker [ Wed Apr 05, 2006 4:27 am ]
Post subject: 

Well, it sounds like people are interested. I've set up the basic webmin module structure, made a horrible "myth TV" icon, and started working on the help files and starting and stopping mythbackend. I've not written cgi programs before, but I do have some PERL experience. Will put it out there, and if you like it great. If not, I sure can use it. My wife hates it when I kick her off the TV to do "admin" stuff... :lol:
I'll then add the buttons to run the knoppmyth script, then (if possible) the ability to change some of the mythtv settings that are stored in the mysql table.

Author:  thornsoft [ Wed Apr 05, 2006 7:51 am ]
Post subject: 

It does sound like a good plan. Webmin is good, maybe mythweb would be more accessible to new folks.

In case you can use this script, I've made this for re-starting the front-end when it locks up or gets goofy. Needs to be run as root/sudo.

#!/bin/sh
#rfe - reboot front end
#Purpose: restart the front-end when it's crashed.
#by Chris Thornton
#11/27/2005

/etc/init.d/gdm stop
#echo Sleeping 4 secs...
sleep 4
/etc/init.d/gdm start
#echo Done!

Author:  LinuxSneaker [ Fri Apr 07, 2006 2:36 pm ]
Post subject: 

Thanks. Haven't put it in yet, but I have developed the "framework". Here is the module:http://swaret.sourceforge.net/files/mythtv.wbm.gz

Right now all it does it detect the version of mythtv, and also shows different buttons depending on if mythbackend is running.

Also, it has a draft help screen, and the beginnings of things to configure. However, it doesn't do anything when you hit buttons except tell you it doesn't do anything.

Reasons why I'm putting this out:
1) I need what buttons people think should be on the page
2) I'm hoping someone will create nice "MythTV" icons for the buttons. I suck at graphics.
3) So far it doesn't error out, but I'm running a KnoppMyth box. Eventually, I want it to work on any MythTV box.
4) I'm not a great PERL programmer. What I've done can most likely be done better. Let me know.

Author:  thornsoft [ Fri Apr 07, 2006 3:28 pm ]
Post subject: 

Hmm.
I may be doing something wrong.
I went into webmin, and "install module".
I used the option to upload the mythtv.wbm file (which viewed ok on my XP pc, using TextPad, which understands Unix format just fine).

Result:
Code:
Install Module    
The following modules have been successfully installed and added to your access control list :

<-  Return to webmin configuration


I then re-started webmin, and it doesn't show up anywhere, nor does it show up on the modules that can be deleted.
Is this how to do it?

Author:  LinuxSneaker [ Fri Apr 07, 2006 3:47 pm ]
Post subject: 

Hmmm...let me remove and install....it should be under Servers....

Author:  LinuxSneaker [ Fri Apr 07, 2006 4:36 pm ]
Post subject: 

It works for me....I wonder what is wrong. There are two ways to create a .wbm file...one is to use the recent "Export Module" in the newer webmin, or you just do a "tar c mythtv > mythtv.wbm", where mythtv is the directory containing the mythtv webmin files....anyone else having this problem, or someone figure out what I did wrong?

Author:  spalVl [ Fri Apr 07, 2006 7:05 pm ]
Post subject: 

Doesn't install for me either, here is what is listed in Webmin Action Log.

Quote:
Details of logged action 1144458098.5470.0
Description Installed module
Webmin module Webmin Configuration Generated by script webmin/install_mod.cgi
Webmin user root Client IP or hostname 192.168.0.188
Session ID e9e6b6a5a5037fd1bd23b0e5940dce23 Date and time 07/Apr/2006 21:01:38

No config file changes were logged for this action

Author:  Deathwish [ Sat Apr 08, 2006 4:20 pm ]
Post subject: 

Doesn't appear here either.

Author:  LinuxSneaker [ Mon Apr 10, 2006 1:21 pm ]
Post subject: 

Ok, well the problem may be that the default webmin install for knoppmyth is set to be APLINUX 3.1 instead of Debian. I'll look into it and release the fixed module.

Right now I have the module detect if you are running a KnoppMyth box, and if so will give you additional options. What "commands" should you be able to run (such as install_mythburn.sh) under the knoppmyth section?

Author:  LinuxSneaker [ Tue Apr 11, 2006 8:54 am ]
Post subject: 

Ok, fixed the problem (I think). It seemed that the config file permissions were wrong, so Webmin just stopped the install.

The newest version is 0.0.2, and the install URL will always be http://swaret.sourceforge.net/files/mythtv.wbm.gz

Things added:
Starting & stopping mythbackend works
Detects a KnoppMyth install
Buttons for installing MythBurn, MythStream, and MythStreamTV are under the KnoppMyth menu

To Do:
Better icons
More detailed help files
More knoppmyth scripts
Configuration of remote
Pull mythtv data from mysql database
Add config files for other mythtv distros

This should be my last post under this subject. Any feedback to me please post at http://swaret.sourceforge.net/index.php?name=PNphpBB2&file=index&c=5&sid=f3321bc1cad2242de44cb3eae0b0dc34.

Author:  thornsoft [ Tue Apr 11, 2006 2:22 pm ]
Post subject: 

Still doesn't work. Sorry

Page 1 of 2 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/