SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v7 Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV v7 Customizations This forums is for discussing and sharing user-created modifications for the SageTV version 7 application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss plugins for SageTV version 7 and newer.

Reply
 
Thread Tools Search this Thread Display Modes
  #41  
Old 01-07-2013, 12:32 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Quote:
Originally Posted by stuckless View Post
I was helping jusjoken briefly with some rainmeter integration... I found it oddly surprising that Rainmeter does not provide a way to parse/expose JSON data... given that JSON is widely used as a means to transfer data over the net... I only looked briefly at the apis.

If JSON processing was possible, it would seem almost trivial to expose just about any sage information using either sagex remote apis or the phoenix remote apis.
Actually it is not proving that difficult (given help from Stuckless and the phoenix apis and learning from the work Dargason has done in Rainmeter) and if all goes well and I find the time to keep playing with Rainmeter we may have some Gemstone Widget skins available that will provide very similar functionality/look as the existing Gemstone Widgets including a skin to display the results from any vfs (view) as defined in Gemstone/Phoenix or user customized in the vfs user files.

Hang tight... and I will share more when I get a little further along.

k
Reply With Quote
  #42  
Old 01-07-2013, 12:33 PM
darcilicious's Avatar
darcilicious darcilicious is offline
Sage Icon
 
Join Date: Jul 2009
Location: Venus
Posts: 1,306
Quote:
Originally Posted by jusjoken View Post
Hang tight... and I will share more when I get a little further along.

k
Wow!
__________________
SageTV Server 7.1.x w/Gemstone and Plex Home Theater v1.0.10 w/PlexPass
HD-PVR w/v1.5.6 drivers / Hauppauge IR blaster / FiOS Extreme HD / Motorola QIP6200 / SPDIF+720p Fixed Output
on HP Media Center 8400F (Phenom 9500 QuadCore 2.2GHz, nVidia GeForce 8500 GT)
via Olevia 247TFHD/Onyko TX-SR606/Harmony 550/HP MediaSmart EX490 WHS w/12TB
Plex Media Server v0.9.9.5 on HP Touchsmart Envy 23 d16qd
Sonos Play:3, Connect / SimpleTV v2 / Roku 2 XS+Plex / iPhone 5 / iPad 2
Reply With Quote
  #43  
Old 01-07-2013, 12:40 PM
darcilicious's Avatar
darcilicious darcilicious is offline
Sage Icon
 
Join Date: Jul 2009
Location: Venus
Posts: 1,306
Quote:
Originally Posted by wayner View Post
I just looked at the docs again I see that you are supposed to unzip into the Rainmeter skins folder.
If that doesn't help, post again -- it shouldn't be too hard to get you sorted out.

Quote:
But when I read some of the forums they say that (and this is from about 6 months ago) that the main sites with skins, such as Deviant Art, now only allow .rmskin files due to virus or malware issues. But pretty much all of the skins that I downloaded for stuff like weather and CPU temp were not valid .rmskin files and were just zip files. Maybe they were old.
I'm a little confused -- IIRC you either download a .zip file (in which case you use some kind of unzipping program to unzip the contents into the Rainmeter skins folder) or a .rmskin file which should be "unpacked" by Rainmeter itself.

It should really be that simple.

Quote:
What version of JSMeter are you guys using? JSMeterV? As far as I can determine from http://jsmorley.deviantart.com/art/JSMeterV-260984160 that version is from Oct 2011. Is that the latest version?
Pretty sure I've got the latest version but I can't check until later. In any case, JSMeter is a theme and has no effect in what you're trying to do (install skins, in whatever format they're downloaded in). Any theme can be installed and any skins can be installed in any theme.

A more important aspect would be the version of Rainmeter you've got installed and if .rmskin filetypes are associated with Rainmeter.
__________________
SageTV Server 7.1.x w/Gemstone and Plex Home Theater v1.0.10 w/PlexPass
HD-PVR w/v1.5.6 drivers / Hauppauge IR blaster / FiOS Extreme HD / Motorola QIP6200 / SPDIF+720p Fixed Output
on HP Media Center 8400F (Phenom 9500 QuadCore 2.2GHz, nVidia GeForce 8500 GT)
via Olevia 247TFHD/Onyko TX-SR606/Harmony 550/HP MediaSmart EX490 WHS w/12TB
Plex Media Server v0.9.9.5 on HP Touchsmart Envy 23 d16qd
Sonos Play:3, Connect / SimpleTV v2 / Roku 2 XS+Plex / iPhone 5 / iPad 2
Reply With Quote
  #44  
Old 01-07-2013, 05:31 PM
Dargason Dargason is offline
Sage Expert
 
Join Date: Oct 2003
Posts: 516
The reason the file was uploaded as a zip file and then renamed to rmskin is that the forum doesn't allow you to upload an rmskin file. Other sites may have similar restrictions.

But under the skin (ha ha) the 'installation' just unzips the files to your skins folder anyway.

Quote:
Actually it is not proving that difficult (given help from Stuckless and the phoenix apis and learning from the work Dargason has done in Rainmeter) and if all goes well and I find the time to keep playing with Rainmeter we may have some Gemstone Widget skins available that will provide very similar functionality/look as the existing Gemstone Widgets including a skin to display the results from any vfs (view) as defined in Gemstone/Phoenix or user customized in the vfs user files.
That would be great! I've learned alot about sagex and json (or xml parsing, anyway) since I wrote that, and I bet you can do a lot of cool stuff with phoenix/fanart.
Reply With Quote
  #45  
Old 01-07-2013, 07:46 PM
KryptoNyte's Avatar
KryptoNyte KryptoNyte is offline
SageTVaholic
 
Join Date: Dec 2006
Posts: 2,754
Regarding the non-rmskin zip files, I noticed that there is a section near the bottom of this document called "Installing Manually" that may help with misc older skin installations;

http://docs.rainmeter.net/manual/installing-skins
Reply With Quote
  #46  
Old 01-08-2013, 10:01 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
I think I just didn't follow the instructions on where to unzip.

Back to the Sage skin:

It would be great if the display would be customizable so that we could display any info that we wanted, assuming that it could be served up by the web pages, Sagex, or whatever the source was.

For example, I would like to see a list of all clients connected. I have many extenders but I find that the system really bogs down when about 4 or more are connected. If a Rainmeter Skin could show all connected clients that would be great as I would likely notice this more quickly than having to go to the Sage web page to check it out.

It would also be nice to be able to show JVM readings, etc.

Other suggestions - if you click the (!) indicator for system messages it would be great if that sent you to the system messages page in the Sage web UI.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #47  
Old 01-08-2013, 03:00 PM
Dargason Dargason is offline
Sage Expert
 
Join Date: Oct 2003
Posts: 516
Quote:
It would be great if the display would be customizable so that we could display any info that we wanted, assuming that it could be served up by the web pages, Sagex, or whatever the source was
IMO, Rainmeter is designed to make it easy for non-programmers to create and modify nifty gadgets for the desktop with a tremendous degree of visual customization. Unfortunately, it generally requires the user to edit the skin files themselves and it isn't really flexible enough to make a full-fledged application. Think if it like a very customizable skinning system for a predefined set of easy to use measurements (such as system memory, bandwidth usage, disk space, etc.) It can also request data from a website and very crudely parse the result using regular expressions.

For more complex skins like this one, you need to write lua scripts to parse the result and determine what to display, and you need meters (a visual element) to display the data. To make this process generic to all the different sources and types of data to display would be difficult and require an entire rewrite of the skin. I've actually considered re-writing it, but I don't have the time for it right now, and I expect Jusjoken will do a much better job than I anyway.

Quote:
For example, I would like to see a list of all clients connected.
Getting the number of clients connected is probably pretty trivial, without any modifications to the lua scripts. Creating a list of connected clients may also be fairly straightforward, depending on how flexible I wrote the script -- I'd have to check.

Quote:
It would also be nice to be able to show JVM readings, etc.
I couldn't figure out how to get the heap stuff via Sagex, and it's not on the webserver anywhere. It would be pretty trivial to parse the BMT home page for this, but it seems like overkill to run the BMT server for this if you're not already running it.

Stuckless:
Quote:
If JSON processing was possible, it would seem almost trivial to expose just about any sage information using either sagex remote apis or the phoenix remote apis.
I think rainmeter supports Lua 5.1 standard libraries, which does not include JSON parsing, but there are JSON libraries for lua 5.1 with source code here: https://github.com/luaforge/json/tree/master/json4lua

Maybe you can use this?
Reply With Quote
  #48  
Old 01-08-2013, 03:09 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by Dargason View Post
I couldn't figure out how to get the heap stuff via Sagex, and it's not on the webserver anywhere. It would be pretty trivial to parse the BMT home page for this, but it seems like overkill to run the BMT server for this if you're not already running it.
Maybe tmiranda would know as he wrote the JVM monitor Plugin.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #49  
Old 01-08-2013, 04:04 PM
darcilicious's Avatar
darcilicious darcilicious is offline
Sage Icon
 
Join Date: Jul 2009
Location: Venus
Posts: 1,306
Quote:
Originally Posted by wayner View Post
if you click the (!) indicator for system messages it would be great if that sent you to the system messages page in the Sage web UI.
This would be the easiest of your list to implement, actually.
__________________
SageTV Server 7.1.x w/Gemstone and Plex Home Theater v1.0.10 w/PlexPass
HD-PVR w/v1.5.6 drivers / Hauppauge IR blaster / FiOS Extreme HD / Motorola QIP6200 / SPDIF+720p Fixed Output
on HP Media Center 8400F (Phenom 9500 QuadCore 2.2GHz, nVidia GeForce 8500 GT)
via Olevia 247TFHD/Onyko TX-SR606/Harmony 550/HP MediaSmart EX490 WHS w/12TB
Plex Media Server v0.9.9.5 on HP Touchsmart Envy 23 d16qd
Sonos Play:3, Connect / SimpleTV v2 / Roku 2 XS+Plex / iPhone 5 / iPad 2
Reply With Quote
  #50  
Old 01-08-2013, 05:18 PM
Dargason Dargason is offline
Sage Expert
 
Join Date: Oct 2003
Posts: 516
Quote:
Quote:
Originally Posted by wayner
if you click the (!) indicator for system messages it would be great if that sent you to the system messages page in the Sage web UI.

This would be the easiest of your list to implement, actually.
Actually, I think it already does this... but I didn't want to say anything until I confirmed it on my own system.

Quote:
Maybe tmiranda would know as he wrote the JVM monitor Plugin.
Perhaps, though I think his plugin is written in Java, and I think I know how to do it from within Java.

Now that I think about it, one easy way to do this might be to write a groovy script that returns the values, and call the groovy script through the webserver. It would make skin 'installation' a little more complicated, but not terrible. Of course, I don't have any idea how to write groovy code or even if I could get the heap information from within Groovy.

Last edited by Dargason; 01-08-2013 at 05:20 PM.
Reply With Quote
  #51  
Old 01-08-2013, 06:45 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
I can help with the groovy code but when I tried to do this before there was an issue as the groovy script I initiated ran in its own JVM so I wasn't getting the info for the SageTV JVM, I was getting the info from the JVM I started to run the groovy script. In fact I think the code I ran was more generic Java code that returned this info.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #52  
Old 01-08-2013, 06:52 PM
Dargason Dargason is offline
Sage Expert
 
Join Date: Oct 2003
Posts: 516
Quote:
Originally Posted by wayner View Post
I can help with the groovy code but when I tried to do this before there was an issue as the groovy script I initiated ran in its own JVM so I wasn't getting the info for the SageTV JVM, I was getting the info from the JVM I started to run the groovy script. In fact I think the code I ran was more generic Java code that returned this info.

Hmm, yes. If it is its own JVM instance, than it wouldn't work.
Reply With Quote
  #53  
Old 01-08-2013, 09:33 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
As info...if my experiement goes well the JVM heap widget should not be difficult to replicate. I am starting with the weather widgets and then will do vfs lists and the go from there.

As for lua in Rainmeter using lua libraries like the JSON one...not now...it does not support that. But it's not that complex to parse the results as you have seen.

k
Reply With Quote
  #54  
Old 01-10-2013, 07:21 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
When I click the SageTV header or the system message (!) it opens my browser but the URL is completely blank. is this the behavior that other see or is it particular to my PC? FYI my sys is running Win7x64 and the browser is IE.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #55  
Old 01-10-2013, 07:27 PM
darcilicious's Avatar
darcilicious darcilicious is offline
Sage Icon
 
Join Date: Jul 2009
Location: Venus
Posts: 1,306
Quote:
Originally Posted by wayner View Post
When I click the SageTV header or the system message (!) it opens my browser but the URL is completely blank. is this the behavior that other see or is it particular to my PC?
When I click the SageTV header, I get the web server Home page (http://user:pass@ipaddress:port/sage/Home) as set up in the config file. Did you update the config file to use the settings for your local web server?
__________________
SageTV Server 7.1.x w/Gemstone and Plex Home Theater v1.0.10 w/PlexPass
HD-PVR w/v1.5.6 drivers / Hauppauge IR blaster / FiOS Extreme HD / Motorola QIP6200 / SPDIF+720p Fixed Output
on HP Media Center 8400F (Phenom 9500 QuadCore 2.2GHz, nVidia GeForce 8500 GT)
via Olevia 247TFHD/Onyko TX-SR606/Harmony 550/HP MediaSmart EX490 WHS w/12TB
Plex Media Server v0.9.9.5 on HP Touchsmart Envy 23 d16qd
Sonos Play:3, Connect / SimpleTV v2 / Roku 2 XS+Plex / iPhone 5 / iPad 2
Reply With Quote
  #56  
Old 01-10-2013, 07:41 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
I didn't change this, here is what I have in SageTV.ini:

HomePageUrl=#Server#/sage/Home
RecordingStatusUrl=#Server#/sage/Home?xml=currrecording
RecordingConflictsUrl=#Server#/sage/Conflicts
RecordingConflictsRSS=#Server#/sage/public/Rss/Conflicts
SystemMessagesUrl=#Server#/sage/SystemMessages

and in UserConfig.inc
Server=#Authentication#192.168.1.92:8080
Authentication=http://name:password@

And some of these variables are used to pull in some of the data in the skin which is appearing and works fine. Maybe it is a browser issue - are you using Win7? 64 or 32 bit? This PC is running Win7 HP 64 bit.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server

Last edited by wayner; 01-10-2013 at 07:43 PM.
Reply With Quote
  #57  
Old 01-10-2013, 07:45 PM
darcilicious's Avatar
darcilicious darcilicious is offline
Sage Icon
 
Join Date: Jul 2009
Location: Venus
Posts: 1,306
Quote:
Originally Posted by wayner View Post
Maybe it is a browser issue - are you using Win7? 64 or 32 bit? This PC is running Win7 HP 64 bit.
Win 7 / 64bit / HP Touchsmart -- never any issues here...
__________________
SageTV Server 7.1.x w/Gemstone and Plex Home Theater v1.0.10 w/PlexPass
HD-PVR w/v1.5.6 drivers / Hauppauge IR blaster / FiOS Extreme HD / Motorola QIP6200 / SPDIF+720p Fixed Output
on HP Media Center 8400F (Phenom 9500 QuadCore 2.2GHz, nVidia GeForce 8500 GT)
via Olevia 247TFHD/Onyko TX-SR606/Harmony 550/HP MediaSmart EX490 WHS w/12TB
Plex Media Server v0.9.9.5 on HP Touchsmart Envy 23 d16qd
Sonos Play:3, Connect / SimpleTV v2 / Roku 2 XS+Plex / iPhone 5 / iPad 2
Reply With Quote
  #58  
Old 01-10-2013, 07:51 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Strange - when I change default browser to Chrome it works fine. I changed back to IE and it doesn't work.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #59  
Old 01-10-2013, 08:01 PM
darcilicious's Avatar
darcilicious darcilicious is offline
Sage Icon
 
Join Date: Jul 2009
Location: Venus
Posts: 1,306
Ugh. IE. I just tested it with IE 9 and none of the links work (or all I get is a blank page). I blame IE (which I almost never use at home).
__________________
SageTV Server 7.1.x w/Gemstone and Plex Home Theater v1.0.10 w/PlexPass
HD-PVR w/v1.5.6 drivers / Hauppauge IR blaster / FiOS Extreme HD / Motorola QIP6200 / SPDIF+720p Fixed Output
on HP Media Center 8400F (Phenom 9500 QuadCore 2.2GHz, nVidia GeForce 8500 GT)
via Olevia 247TFHD/Onyko TX-SR606/Harmony 550/HP MediaSmart EX490 WHS w/12TB
Plex Media Server v0.9.9.5 on HP Touchsmart Envy 23 d16qd
Sonos Play:3, Connect / SimpleTV v2 / Roku 2 XS+Plex / iPhone 5 / iPad 2
Reply With Quote
  #60  
Old 01-10-2013, 08:07 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Good I am not crazy. That's why I requested this functionality as I didn't think it worked as it doesn't do anything if IE is running when you click the icon or header.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
Reply

Tags
rainmeter


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Are plugins: "Ortus MQ" & "SageTV H2 Mobile Database" needed? mkanet SageTV Customizations 2 12-06-2010 06:56 AM
"Backdrops" "SageTV" "Covers" folders - what's creating them mp328 Sage My Movies 4 09-20-2010 05:31 PM
Can anyone customize for me a Sagetv import for "movie now" "news now" .. menus thenewguy1979 SageMC Custom Interface 9 09-18-2008 02:41 PM
"Set defaults" for Series forgets "Keep"/"Auto-delete" setting maxpower SageMC Custom Interface 9 05-14-2008 09:44 PM
"-startup" and "ui/startup_type=2" BROKEN in SageTV 6.2.x mkanet SageTV Software 3 12-10-2007 01:18 PM


All times are GMT -6. The time now is 11:20 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.