MythStatusScreenlet

Conky

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
6.6
Description:

A screenlet to show the status of your MythTV backend server.
Last changelog:

8 years ago

RELEASE: 0.3.0
- Bug fix to prevent queued jobs from appearing as upcoming recordings
Thanks to beav3500 for the patch.
- Refactored XML parser into utils class to support unit testing.
- New parser logic doesn't rely on MythTV version.

RELEASE: 0.2.1
- MythTV 0.23 support

RELEASE: 0.2.0
- MythTV 0.22 support

RELEASE: 0.1.1
- Element placings and colours/font loaded from theme.conf
- DBus notifications on Recording Start/End
- Options defined in code, rather than XML config file since some users were having problems with it.

RELEASE: 0.0.3
- No longer uses xpath, so should now work in Hardy

RELEASE: 0.0.2
- Tested on Screenlets 0.0.14
- Now supports MythTV 0.20 and 0.21 xml formats
- Better handling when backend goes away/comes back

RELEASE: 0.0.1
- Initial release

Sclegnrbs

8 years ago

Hi,
I am developer of Screenlets.

Maybe you would be interested in developing your code under the project https://launchpad.net/indiv-screenlets. Notice that Screenlets 0.1.3 has implemented the requirements check and with Debian package the dependencies would be installed automatically. This would make installing of the Screenlet as well as getting the updates a bit easier for the users. And if in the project, all the packaging would be done automatically by a script.

There is some documentation on this as well as connected topics at http://www.screenlets.org/index.php/Documentation#Why_should_I_add_my_Screenlet_to_individual_Screenlets_project

But if you can't upload your screenlet we can do this with pleasure if you allow this.

Report

FrankRizz

10 years ago

Sorry if this is a dumb question but I'm new to gnome. What package would I use for screenlets???

Report

C

netwolfuk

10 years ago

Hi Frank..

You need to install a package called Screenlets.

It should be in your distro's package manager. For ubuntu, load Synaptic and search for Screenlets. Install that package.

Or, you could have a look at www.screenlets.org I think they have packages linked from the website or source if you want it.

Report

bereanmh

10 years ago

I like your applet. I kept thinking that I wished there was a way to see what myth was doing with out starting the frontend or going to mythwelcome. Finally I searched for a status thing and came across your applet.

I had some problems getting it to work under opensuse 10.2 though for some reason and had to make some changes to the code. Below is the diff on the changes.

-------
40c40
< __version__ = '0.0.3'
---
> __version__ = '0.0.2'
85,86c85,89
< import os
< self.add_options_from_file( os.curdir + '/' + \
---
> print __file__
> p = __file__.rfind('/')
> mypath = __file__[:p]
> print mypath
> self.add_options_from_file( mypath + '/' + \
195,196c198,199
< self.drawText(ctx, date_obj.strftime('%a'), 8 , [170,offset+13], colours[item['recordingStatus'] + '_normal'])
< self.drawText(ctx, date_obj.strftime('%H:%M'), 8 , [200,offset+13], colours[item['recordingStatus'] + '_normal'])
---
> self.drawText(ctx, date_obj.strftime('%a'), 8 , [180,offset], colours[item['recordingStatus'] + '_normal'])
> self.drawText(ctx, date_obj.strftime('%H:%M'), 8 , [200,offset], colours[item['recordingStatus'] + '_normal'])
275c278
< #self.drawText(ctx, "Temperature : " + str(self.__info['temperature']), 7 , [135,423], [1, 1, 1, 0.65])
---
> self.drawText(ctx, "Temperature : " + str(self.__info['temperature']), 7 , [135,423], [1, 1, 1, 0.65])

-----

In these changes I commented out the temperature output because it was not finding it in the __info dictionary. I did not really care about this so I didn't take the time to find out why it wasn't working.

Also changed the way that it finds the xml file. For some reason it was looking for MythStatusScreenlet.p/MythStatusScreenlet.xml in the current directory instead of just looking for the file.

Last of all I changed the position of the recording time text so that there was no conflict between it and the title.

I am not sure that all of the changes are perfect, but I thought you could integrate some of them. I don't know all of the code, so there may be a better way to do things than what I did. I suggest offering another them that does not have transparency. I have a desktop image that changes, so it made it difficult to see the text at times. I replaced the background image for myself with one that has a dark background.

I hope these changes are helpful. I just thought I would give back with what I did.

Report

C

netwolfuk

10 years ago

Hi Matthew, thanks for your comments.
Sorry it took so long to reply! I don't tend to check here very much, as I haven't figured out how to get notifications via email of new posts.

I've taken your suggestions. Thanks for your feedback.

To address the first point, the config is now defined in the code, rather than the external file which you had trouble loading.

For the temperature status, I now check if the temperature item is in the list of items extracted from the XML, and if it's not, I don't try to render it.

For the layout, all sizes/locations/colours are specified in the theme file. This means that the MythStatusScreenlet is completely skinable. I've even made a couple of extra themes to try it out.

I've also added Notify popups for Starting and Finishing recordings, and have tried to implement mouseover tooltips. They are a bit flakey though, so they are not enabled by default.

I hope you like the new version and thanks for using the MythStatusScreenlet.

Report

thecheatah

10 years ago

I had been waiting for you to release this screenlet for a while now! I had googled for something like this and found it on your blog a while back.

The screenlet looks very clean and fits in well with my desktop. It should be made more customizable though. (more in the changing font size or text placement).
The day of the week kind of mushes in with the time.

One thing I have noticed is that when I click on properties, and I click the close button on the bottom, nothing happens. I have to close it out by using the "x" on top. I am using screenlet engine 0.1.2.

Once again thanks for releasing this great screenlet!

Report

C

netwolfuk

10 years ago

Thanks for your comment. I'll have a think about how to give more options for text size/placement. My first thoughts are to move more of the layout stuff into the theme, like text size, placement etc.

I agree that the day text mushes into the time text. I wonder if right aligning the text of the day would fix that. It's really only a problem for me with Wed since the "W" is so wide. However, I suspect this varies with different X setups, and might be more obvious on your system.

Thanks for the note about closing. I had not noticed that.

Report

8 years ago

RELEASE: 0.3.0
- Bug fix to prevent queued jobs from appearing as upcoming recordings
Thanks to beav3500 for the patch.
- Refactored XML parser into utils class to support unit testing.
- New parser logic doesn't rely on MythTV version.

RELEASE: 0.2.1
- MythTV 0.23 support

RELEASE: 0.2.0
- MythTV 0.22 support

RELEASE: 0.1.1
- Element placings and colours/font loaded from theme.conf
- DBus notifications on Recording Start/End
- Options defined in code, rather than XML config file since some users were having problems with it.

RELEASE: 0.0.3
- No longer uses xpath, so should now work in Hardy

RELEASE: 0.0.2
- Tested on Screenlets 0.0.14
- Now supports MythTV 0.20 and 0.21 xml formats
- Better handling when backend goes away/comes back

RELEASE: 0.0.1
- Initial release

12345678910
product-maker Count:33 Rating: 6.61
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
0.3.0
updated Jun 20 2010
added Mar 07 2008
downloads today
0
page views today 2