|
SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI. |
|
Thread Tools | Search this Thread | Display Modes |
#2221
|
||||
|
||||
Problems with streaming to my phone
When I try to stream videos to my phone, sometimes I am successful. Most times, though, I get an "Unhandled win32 exception" for vlc on my Sage Server PC.
Does anybody know what is going wrong? |
#2222
|
|||
|
|||
using XMLImporter through the command line
I would like to be able to use the XMLImporter via a command line, either through wget, lynx, etc.. OR with java.
I plan on automatizing (is that a word ? ) the importation of my TV episodes that I get from other means than through recording (download, DVD transfer, VHS tapes, etc...), and I need to be able to include this function in a batch file. (see this for more details...) I assume it would look something like that: wget.exe "http://username:ypassword@localhost:8080/sage/XMLImporter&&FileName=N:\MEDIA\Videos\TV\sometvepisode.xml" But I think I would need to pass other parameters like "import tv files", etc... to make it work. I am also not sure that I am calling the right thing (XMLIMporter) .... Any clue ? |
#2223
|
||||
|
||||
I'll see if I can give you enough buzzwords to point you in the right direction
XMLImporter (source) is the right servlet to use. The data will have to be submitted using the HTTP POST method and a multipart form. By default wget uses HTTP GET, however it does have command line parameters to do POST requests but I haven't used it. There are also libraries for Java (Apache has one) that can do HTTP form posting. I'm sure it can be done via scripting languages (python, perl, etc) as well. Another option would be to use Stuckless' remote APIs along with his scripting framework and nielm's sagexmlinfo jar file to do the same thing the servlet does (parse the xml and call Sage APIs) but from your own script on the command line. Take a look at the page source for /sage/XMLImporter to see all the form fields that need to be submitted. That's pretty high level but hopefully gives you an idea of what's necessary.
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun. Extender: STP-HD300, Harmony 550 Remote, Netgear MCA1001 Ethernet over Coax. SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client, Java 1.6. Plugins: Jetty, Nielm's Web Server, Mobile Web Interface. |
#2224
|
|||
|
|||
Thanks for the buzzwords
I went through much of those options already, but although the Stuckless's and nielm's stuff are really great, I was looking for a "quick and dirty solution" After some ready on curl (which seem to be able to handle POST better than wget) and a lot of fidlding around, I came up with the good syntax: (FWI: this has been tested on Cygwin) curl -F "impTVFiles=checked" \ -F "impShowOverwrite=checked" \ -F "impMFOverwrite=checked" \ -F "impMFRename=keep" \ -F "impMFRedate=redateFromAiring" \ -F "xmlFile=@exemple.xml" \ -F "Import=submit" \ http://username:fpasswd@locahost:808...ter?Import=yes Now if I can convince evilpenguin to modify his mediaScraper to output xml files, I'll be in Heaven, and so will my wife !!! |
#2225
|
|||
|
|||
So, if one has a dynamic, as opposed to static IP, how does one go about always knowing the IP address? For instance, i'm going to the UK in may, for 2 months, and there are some shows i'd like to record on schedule, but it would be cool, if from the UK i could log in, and set something to record on my desktop here in the states.
Is this functionality already included? If not, could it be bound to a Hamachi IP address? Hamachi if you don't know, is a program that lets you create a vpn without having a static IP through your ISP, they give you a static IP, you log in, their service connects the two computers, and then the service lets the two computers talk, and gets out of the middle.
__________________
Phenom Quad Core x64 2.66ghz Processor, MSI K9n SLI Platinum Motherboard, 8gb Corsair 1066mhz ddr2, Geforce 8500 Video Card, Windows 7 Ultimate x64, Latest Sage TV beta http://www.kenbakerwebdesign.com http://www.apostlesforchrist.com<br> http://www.kbworldmissions.org |
#2226
|
|||
|
|||
Use a dynamic dns service. So instead of connecting to an ip address, you get a named url to connect to. You install a service on your server that pings your cable modem (or whatever you use) to check your ip address at some timed interval, like every 5 minutes. If it notices a change, it updates the dns entry. So if your ip address changes, the maximum amount of time it would be out of sync would be 5 minutes. I use dyndns - it's free and works great.
|
#2227
|
||||
|
||||
Anybody? Anybody? Bueller? Bueller?
|
#2228
|
||||
|
||||
Some router firmware (e.g., DD-WRT) does this too. No need for interaction on the part of the PC; the router detects a change and automagically updates your new IP on the www.
__________________
Server: Ubuntu 16.04 running Sage for Linux v9 |
#2229
|
|||
|
|||
Quote:
|
#2230
|
||||
|
||||
OK - I take back my previous comments. I went back to VLC 0.8.6f, and I don't seem to be seeing the crash messages anymore.
However, it seems that I can't stream at all now. Not to my phone, or to a internet-connected PC, or to anything remote that I control via the Webserver. My home setup with my STX-HD100 still works fine, though. (Thank goodness!) Are there any ideas on how to fix this? Is there any further information I need to provide to debug this? I'm currently running Sage 6.5.8, and I'll be upgrading to the released 6.5 tomorrow. Any help would be appreciated! Cheers! |
#2231
|
||||
|
||||
External App using webserver to control extender?
I am trying to use and external app to pass the web commands to the web server, I am having some trouble formulating the proper command structure.
I have tried these for the "Pause" command. server - /sage/webremote.html? "SageCommand?000dfe077d44=SAGETV_PROCESS_LOCAL_UI&command=Pause&returnto=webremote.html%3F000dfe077d44%3DSAGETV_PROCESS_LOCAL_UI%26000dfe077d44%3DLocal%2520SageTV" and "SageCommand?RetImage=no&command=Pause&000dfe077d44" And these don't work. I am obviouly just stabbing in dark with no clue - Does anyone no how to approach this? Thanks, Skybolt |
#2232
|
|||
|
|||
Quote:
|
#2233
|
||||
|
||||
Quote:
Thanks for your offer to post code. -Skybolt |
#2234
|
||||
|
||||
I got it - thanks to wire shark.
If anyone is interested, just open the webremote.html file and get the proper word for the command such as "play" and us it in theis line, where context is the MAC address of the extender. "http://192.168.2.51:87/sage/SageCommand?RetImage=no&nocache=1234103577546&command=Play&context=000dfe077d44" The reason this is of value to me is for HomeSeer Touch. Tis now allows me to make a custom interface and use these commands to control a specific extender. This is alot quicker and more customizable then the web interface it self. -Skybolt |
#2235
|
||||
|
||||
Quote:
Thanks.
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun. Extender: STP-HD300, Harmony 550 Remote, Netgear MCA1001 Ethernet over Coax. SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client, Java 1.6. Plugins: Jetty, Nielm's Web Server, Mobile Web Interface. |
#2236
|
||||
|
||||
Quote:
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun. Extender: STP-HD300, Harmony 550 Remote, Netgear MCA1001 Ethernet over Coax. SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client, Java 1.6. Plugins: Jetty, Nielm's Web Server, Mobile Web Interface. |
#2237
|
||||
|
||||
I haven't used this before, but I assume the 2.2 version that is available works and is stable with version 6.59 of the Sage server?
|
#2238
|
||||
|
||||
Yes. I've been using it with 6.5.9 for a few days now without any problems.
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun. Extender: STP-HD300, Harmony 550 Remote, Netgear MCA1001 Ethernet over Coax. SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client, Java 1.6. Plugins: Jetty, Nielm's Web Server, Mobile Web Interface. |
#2239
|
|||
|
|||
Is there a way to automatically import the XML recordings instead of doing one-by-one via the web interface?
|
#2240
|
||||
|
||||
Quote:
Quote:
Quote:
|
Tags |
web |
Currently Active Users Viewing This Thread: 2 (0 members and 2 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Plugin: Mobile Web Interface 1.2 | jreichen | SageTV Customizations | 281 | 06-17-2011 02:20 PM |
Can't get Web-based User Interface to install | SSBrian | SageTV Customizations | 3 | 11-04-2008 08:12 PM |
Web User interface link for the metadata file. | zzmystique | SageTV Customizations | 0 | 06-21-2008 02:26 AM |
Idea to enhance the Web User Interface: Messaging | jbarr | SageTV Customizations | 3 | 05-14-2007 03:59 PM |
Linkplayer, Linktheater with SageTV Web User Interface | fyodor | SageTV Customizations | 0 | 10-08-2006 06:03 PM |