![]() |
|
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. |
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#21
|
|||
|
|||
Quote:
|
#22
|
||||
|
||||
Quote:
Good luck on your App.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#23
|
|||
|
|||
Thanks, I found the sample file and I think I understand. If I'm correct, I need to create a javascript file in the sagex/ directory that queries the SageTV server for the necessary information and outputs this information in the format needed for a Live Tile update. I then invoke this function through a call to the SageTV server using the sagex.api. I still need to work out the details and implementation but at least I'm more confident that it can be done and have a basic approach on how to accomplish it.
|
#24
|
|||
|
|||
Programming help needed
I'm trying to create an external javascript file that I can access to retrieve data from the sagex.api for live tile updates as suggested by Stuckless and have run into a problem. Specifically, I have a line of code in the javascript file that reads:
var oReg = new XMLHttpRequest(); This line of code is generating the following error message: javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "XMLHttpRequest" is not defined. (<Unknown source>#25) in <Unknown source> at line number 25 I've tried researching this online and haven't been able to find any examples where "XMLHttpRequest" is specifically defined. Does anyone know what's causing "XMLHttpRequest" to be undefined in my code or what I need to do in my code to define it? Thanks. |
#25
|
||||
|
||||
Quote:
If it is a sagex api script, then email me... metadatatools at gmail dot com.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#26
|
|||
|
|||
I'm definitely on the wrong track. I'll go back to the Sagex api documentation and see if I can figure out where I went wrong.
|
#27
|
||||
|
||||
Quote:
When you build up a reply, typically it will be a java.util.List or java.util.Map. The sagex apis will take care serialzing that as xml or json. Again, I don't mind working with you on this. When Michael was working on the Plex stuff, I worked with him on understanding how to use the sagex scripts. Just email with with what you are trying to do, and I'll try to quickly get you on your way ![]()
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#28
|
||||
|
||||
To expand on that, here's the file that plex scanner uses. They have a single "function" in their javascript that takes a filename, and it finds the mediafile for that given name.
http://code.google.com/p/sagetv-for-...rvices/plex.js When you call it from a client (ie plex client), the url would be something like this... Code:
http://SERVER/sagex/api?c=plex:GetMediaFileForName&1=SomeFileName.mkv Do that make sense? Again, if you provide something specific as to what you are wanting to do, I can help you, and maybe you don't even need a custom script, since you can do a lot with use the url api... and you only need the javascript if you want to do something more efficiently, or if you want to do something that can't be crafted easily as a url api.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#29
|
|||
|
|||
I'm making progress and am now retrieving titles and start times for scheduled recordings through my custom function.
The issue for tomorrow is how to format the start times that I'm retrieving into something recognizable for the user. Can I include a javascript date/time formatting function in the same file as my custom function and then call this function from my custom function or am I strictly limited to what's in the sagex api? Thanks for your offer of help. If I get really stuck again, I'll take you up on it. |
#30
|
||||
|
||||
Quote:
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#31
|
|||
|
|||
Metro App Development Terminated
I just received the following reply from a Microsoft Employee in response to a programming question concerning the Windows 8 Metro App for SageTV:
Quote:
|
#32
|
||||
|
||||
Wow, those are some really harsh requirements
![]() Thanks for making the effort! It's just too bad that MS came up with some whacky restrictions. (Wait, Metro Apps can't talk to ANY webservers? That seems like a huge limitation? How are any server/client type apps to be developed then?? How do weather apps get their data, etc?)
__________________
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 |
#33
|
||||
|
||||
Quote:
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#34
|
||||
|
||||
Quote:
__________________
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 |
#35
|
|||
|
|||
Quote:
|
#36
|
|||
|
|||
Won't this preclude apps like Orb, AirVideo, etc?
__________________
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 |
#37
|
|||
|
|||
Just to be sure, I sent a message to Microsoft providing the details and describing exactly what I was trying to do with the SageTV Metro app and received a reply confirming that, given those circumstances, they will not approve the app.
|
#38
|
|||
|
|||
That is very annoying and brings another downside to Win8.
Any chance of just improving the existing Gadget? I believe that gadgets still run in Win8 and will also work in Win7 and Vista.
__________________
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 |
#39
|
|||
|
|||
Quote:
FYI, if you really want to run the SageTV gadget in Win8, there are hacks available on the Internet that restore gadget functionality by copying and pasting the files, etc. from a previous version of Windows. Of course, you need to be aware of the security concerns with this approach since Microsoft is never going to fix the documented security problems in these files. For myself, I have decided not hack gadget support into Win8 on my systems. |
#40
|
||||
|
||||
Quote:
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
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 |
Potential to make many people happy... "My Movies" for SageTV? | vvulture | SageTV Customizations | 116 | 04-27-2009 04:53 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 |
Potential bug in "Keep at Most" field in Favorites Manager | jeremydmiller | SageTV Software | 9 | 03-19-2005 05:46 PM |