I have attached the SageTVEvents plugin. This plugin uses the GetStatus plugin for SageTV to produce events for RecordStart, RecordStop, and NowPlaying.
This is the first Python code I have written, so please point out any bad code.
Any comments are welcomed.
Usage:
Add SageTVEvents Plugin.
Set address to IP of SageTV or SageTVClient which is running the GetStatus plugin.
Set port.
Set poll interval (note: set to 0 for manual polling using "Poll Server" action).
Select events to produce.
Updated:
0.0.1.8: fixed bugs added in .6 and .7
0.0.1.6: Changed config from "if" to "while"
Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
SageTV Events plugin
-
nightrader_
- Posts: 13
- Joined: Mon Nov 05, 2007 12:19 am
SageTV Events plugin
- Attachments
-
- __init__.py
- ver 0.0.1.8
- (17.1 KiB) Downloaded 185 times
-
- __init__.py
- ver 0.0.1.6
- (16.92 KiB) Downloaded 163 times
Last edited by nightrader_ on Tue Dec 04, 2007 1:00 am, edited 2 times in total.
Re: SageTV Events plugin
Gimme a minute to figure this out.
Is this dependent on a SageTV plugin? I would guess "GetStatus" plugin. However I cannot find one with that name.
This is what I know of:
Plugin: Status Monitor Interface by nielm
Plugin: LCD Smartie status display by AndersNolberger
Plugin: MizookLCD (Alternate SageTV LCDSmartie Plugin) by cslatt
Utility: SageMCEDisplay -- LCD status display by Jere_Jones
Utility: SageTray - SageTV tray application by k10ck3r
Just post a link if you can.
Is this dependent on a SageTV plugin? I would guess "GetStatus" plugin. However I cannot find one with that name.
This is what I know of:
Plugin: Status Monitor Interface by nielm
Plugin: LCD Smartie status display by AndersNolberger
Plugin: MizookLCD (Alternate SageTV LCDSmartie Plugin) by cslatt
Utility: SageMCEDisplay -- LCD status display by Jere_Jones
Utility: SageTray - SageTV tray application by k10ck3r
Just post a link if you can.
-
nightrader_
- Posts: 13
- Joined: Mon Nov 05, 2007 12:19 am
Re: SageTV Events plugin
Yes, It's the GetStatus part of the Status Monitor Interface (Nielm calls it GetStatus on his wiki page)CollinR wrote:Gimme a minute to figure this out.
Is this dependent on a SageTV plugin? I would guess "GetStatus" plugin. However I cannot find one with that name.
This is what I know of:
Plugin: Status Monitor Interface by nielm
Plugin: LCD Smartie status display by AndersNolberger
Plugin: MizookLCD (Alternate SageTV LCDSmartie Plugin) by cslatt
Utility: SageMCEDisplay -- LCD status display by Jere_Jones
Utility: SageTray - SageTV tray application by k10ck3r
Just post a link if you can.
Once you have it running on your sage box, then install the SageTVEvents plugin into EG and set the IP and port. Then your EG should receive the events anytime the status changes.
Here is the link :http://tools.assembla.com/sageplugins/w ... in#preview
Hope that clears it up.
- Bitmonster
- Site Admin
- Posts: 2239
- Joined: Mon Feb 06, 2006 10:28 pm
Re: SageTV Events plugin
Your Configure() method needs a little update ("while" instead of "if"). The __info__.py is also deprecated. You find the infos here
http://www.eventghost.org/forum/viewtopic.php?f=2&t=604
and here:
http://www.eventghost.org/wiki/Writing_Plugins
http://www.eventghost.org/forum/viewtopic.php?f=2&t=604
and here:
http://www.eventghost.org/wiki/Writing_Plugins
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
-
nightrader_
- Posts: 13
- Joined: Mon Nov 05, 2007 12:19 am
Re: SageTV Events plugin
OK, Thanks, I will make the changes when I get home from work tonight.Bitmonster wrote:Your Configure() method needs a little update ("while" instead of "if"). The __info__.py is also deprecated. You find the infos here
http://www.eventghost.org/forum/viewtopic.php?f=2&t=604
and here:
http://www.eventghost.org/wiki/Writing_Plugins
I'm guessing the rest of the code looked ok?
Thanks again.
-
Chuck Wagon
- Posts: 3
- Joined: Mon Apr 14, 2008 8:16 pm
Re: SageTV Events plugin
I just found this plugin and I am trying to use it, but it isn't working for me. I created a folder called C:\Program Files (x86)\EventGhost\plugins\SageEvents and put the attached file in the folder. Next I created a new configuration and tried adding SageTVEvents Plugin. I accept all the defaults, but after clicking ok I get the following errors in the log and the plugin won't load:
Autostart
Main.OnInit
Traceback (most recent call last):
File "C:\Program Files (x86)\EventGhost\eg\Classes\ButtonRow.py", line 108, in OnOK
self.parent.OnOK(event)
File "C:\Program Files (x86)\EventGhost\eg\Classes\TaskletDialog.py", line 161, in OnOK
self.DispatchEvent(event, wx.ID_OK)
File "C:\Program Files (x86)\EventGhost\eg\Classes\TaskletDialog.py", line 122, in DispatchEvent
self.__processingChannel.send(wx.ID_OK)
TaskletExit
Am I doing something wrong?
Autostart
Main.OnInit
Traceback (most recent call last):
File "C:\Program Files (x86)\EventGhost\eg\Classes\ButtonRow.py", line 108, in OnOK
self.parent.OnOK(event)
File "C:\Program Files (x86)\EventGhost\eg\Classes\TaskletDialog.py", line 161, in OnOK
self.DispatchEvent(event, wx.ID_OK)
File "C:\Program Files (x86)\EventGhost\eg\Classes\TaskletDialog.py", line 122, in DispatchEvent
self.__processingChannel.send(wx.ID_OK)
TaskletExit
Am I doing something wrong?