SageTV Community  

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

Notices

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

Reply
 
Thread Tools Search this Thread Display Modes
  #21  
Old 10-21-2021, 04:59 AM
waynedunham waynedunham is offline
Sage Icon
 
Join Date: Sep 2004
Posts: 1,469
Quote:
Originally Posted by jusjoken View Post
Adding this comment here from your other post so I can keep this together....

Code:
Oh, one other thing I'd love to see in the Mobile Web App is something that is in the older remote app. Being able to restart SageTV from the menu. Right now I have to browse to the old app to do that. Sure would be nice to be able to do it from the newer "formatted for my tablet" Mobile Web App.
Can you let me know what this "older remote app" is as they are ALL old...

K
Yeah, I guess at this point they are all "old".

The two I'm referring to:

The "old" one is SageTV Plugin: SageTV Web Interface (accessed by browser at "server"colon"port/sage/Home")

The "new" one is SageTV Plugin: SageTv Mobile Web Interface (accessed by browser at "http://server"colon"port/sagem/m/

Note: had to put the colon character in quotes since colonP shows at a smiley face

I just checked and both of the Mobile Web main menu search functions return an error message, something about a servlet error "arrays can't be resolved", and unable to compile class for JSP PWC6199"
Both of these search functions work fine in the older web interface

Also, same error message in Mobile Web if you try to edit or create a favorite. Same message in the same class.
This also works fine in the older Web Interface

Again, all this happened when I upgraded Java to 1.8 which is what I'm currently running (32bit SageTV)

There may be more that I haven't run into. But the errors I've pointed out all seem to be in that one "class"
__________________
Wayne Dunham
Reply With Quote
  #22  
Old 10-21-2021, 06:17 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
@WayneD
Agreed - the Mobile Web app was broker by newer Java versions. Have you tried using the non-mobile version? I use it on my phone all the time without issues. It isn't ideal for a smaller screen, but it isn't so bad on modern screens with larger phones - I use an iPhone with the large screen.
__________________
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
  #23  
Old 10-21-2021, 06:53 AM
tvmaster2's Avatar
tvmaster2 tvmaster2 is offline
SageTVaholic
 
Join Date: Jun 2005
Location: tarana
Posts: 4,240
The nice thing about Stuckless’ Android app was that it was designed for small screen, PROFILE use.

https://forums.sagetv.com/forums/showthread.php?t=59248

No squinting or turning the phone sideways to do data entry, find shows, check recordings, etc.

I still think there’s a use for it alongside the Mobile Web interface and Mini Client, which is the most difficult to use on smaller screens. Not because of its operability, which is fine, but because it wasn’t designed for that in the first place.
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson
Reply With Quote
  #24  
Old 10-21-2021, 09:09 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Quote:
Originally Posted by wayner View Post
First off - thanks so much for doing this!

Here is what I have and still use that build from the Jetty server.
  1. The SageX API web server. (Base URL localhost:8080/sagex/api)
  2. The SageX web server API documentation. (Base URL localhost:8080/sagex/apidocs)
Do you have any sample calls/scripts for the sagex api i could use to see what may need updating ?

Is there a plugin for the api docs?

K
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #25  
Old 10-21-2021, 09:35 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by jusjoken View Post
Do you have any sample calls/scripts for the sagex api i could use to see what may need updating ?

Is there a plugin for the api docs?

K
On the first question, here is the top of the page that shows some documentation:

Quote:
Sage API - 9.1.7.0

NOTE: If the command arg expects a sage object, such mediafile, ariing, playlist, channel, show, plugin, favorite, series, etc, then you can still pass a reference to sage object, using mediafile:MEDIAFILE_ID, airing:AIRING_ID, playlist:PLAYLIST_NAME, channel:CHANNEL_NUMBER, show:EXTERNAL_ID, series:SERIES_INFO_ID, favorite:FAVORITE_ID, plugin:PLUGIN_ID, playlist:PLAYLIST_NAME, widget:SYMBOL, etc.

Example: /sages/api?c=IsMediaFileObject&1=mediafile:3231112
Url Format: /sagex/api?command=SAGE_COMMAND&1=arg1&2=arg2...&start=#&size=#&context=SAGE_UI_CONTEXT&encoder=xml|json|nielm|image|raw&jsoncallback=functionName&filter=Field1|Field2|Field3|...&raw_content_type=audio/x-mpegurl
command SageTV Command (can also use c= as a short form)
start If the return type is an array, start at this element (0 is the first element)
size If the return type is an array, return this # of elements
context SageTV UI Context (only needed for UI Commands)
encoder Which encoder to use for encoding the results. xml is default.
jsoncallback (json only) The callback function name if you want to return the result as a JSONP string rather than a normal JSON string
filter (json and xml only) A pipe(|) separated list of field names that will be returned. When present ONLY field names matching the list supplied will be returned.
raw_content_type (raw only) Sets the content type reply header to the be value you specify here.
Example /sagex/api?c=GetMediaFiles&start=10&size=20&filter=IsLocalFile|MediaTitle|MediaFileID
Example /sagex/api?c=GetMediaFiles&1=T
Example /sagex/api?c=GetMediaFiles&1=T&encoder=nielm
Example /sagex/api?c=EvaluateExpression&1=Sort(GetMediaFiles("T"),false,"Intelligent")
On the second question, I don't see a plugin. I am guessing that this installed automatically with the SageX API.

The SageX API was written by Stuckless and was last updated on 3/4/2018
__________________
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
  #26  
Old 10-30-2021, 07:54 AM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Making some progress on Jetty 9

This project is going to take some time as I have lots to learn and Jetty 9 is VERY different from Jetty 6...however, I thought I would provide a progress report...
  • I have the build environment setup for JettyStarter and mostly converted to Jetty 9
  • I have a Jetty 9 webserver running within SageTV 9
  • I have BMT working with only minimal changes but not fully tested
  • I have the build environment setup for SageTV Mobile Web App and mostly converted to Jetty 9
  • I have the SageTV Mobile Web App running now under SageTV 9 and Jetty 9...lots of testing yet as I am sure code changes will still be needed for much of the functionality...the web remote works well though!!
  • I have the login/security migrated to Jetty 9 so it forces a login for any of the webapps (this one took a LOT of time to get working)

And LOTS still to do to make this testable by others and validate what may need to change to support the other webapps.

Stay tuned.

K
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #27  
Old 10-30-2021, 08:30 AM
tvmaster2's Avatar
tvmaster2 tvmaster2 is offline
SageTVaholic
 
Join Date: Jun 2005
Location: tarana
Posts: 4,240
Quote:
Originally Posted by jusjoken View Post
This project is going to take some time as I have lots to learn and Jetty 9 is VERY different from Jetty 6...however, I thought I would provide a progress report...
  • I have the build environment setup for JettyStarter and mostly converted to Jetty 9
  • I have a Jetty 9 webserver running within SageTV 9
  • I have BMT working with only minimal changes but not fully tested
  • I have the build environment setup for SageTV Mobile Web App and mostly converted to Jetty 9
  • I have the SageTV Mobile Web App running now under SageTV 9 and Jetty 9...lots of testing yet as I am sure code changes will still be needed for much of the functionality...the web remote works well though!!
  • I have the login/security migrated to Jetty 9 so it forces a login for any of the webapps (this one took a LOT of time to get working)

And LOTS still to do to make this testable by others and validate what may need to change to support the other webapps.

Stay tuned.

K
Excellent, sounds like you’re making lots of progress
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson
Reply With Quote
  #28  
Old 10-30-2021, 10:51 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Great news! I don't know if this is possible or not, but the login process for the web app is very annoying in that it always asks for a password. Any way this can be changed so that it remember that you are authenticated and you don't have to log in every time? This is especially annoying on my iPhone.
__________________
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
  #29  
Old 10-30-2021, 10:53 AM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Quote:
Originally Posted by wayner View Post
Great news! I don't know if this is possible or not, but the login process for the web app is very annoying in that it always asks for a password. Any way this can be changed so that it remember that you are authenticated and you don't have to log in every time? This is especially annoying on my iPhone.
I plan to look into this. It's all new to me so if I can figure this out I will include it.

K
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #30  
Old 11-22-2021, 08:09 AM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Test cases wanted

I am not/was not a huge user of webapps other than BMT...so can some users provide me with some basic test cases for any of the apps they use. I need some currently working cases and some cases for things that should work but now fail. This will help me understand if I am getting to a working and testable plugin.

Keep them simple...do this, click this then that...expected result...etc.

K
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #31  
Old 11-22-2021, 08:58 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Do you want examples for the core web UI as well?
__________________
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
  #32  
Old 11-22-2021, 08:38 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Quote:
Originally Posted by wayner View Post
Do you want examples for the core web UI as well?
Yes please. Any of the apps will help me make sure core functions work before getting testers involved

K
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #33  
Old 11-23-2021, 02:08 AM
VCRUser VCRUser is offline
Sage Aficionado
 
Join Date: Jan 2008
Posts: 444
Quote:
Originally Posted by jusjoken View Post
I am not/was not a huge user of webapps other than BMT...so can some users provide me with some basic test cases for any of the apps they use. I need some currently working cases and some cases for things that should work but now fail. This will help me understand if I am getting to a working and testable plugin.

Keep them simple...do this, click this then that...expected result...etc.

K
I use the web interface daily. My primary uses are:
1. Manage file conversions. I do this almost daily, converting my recordings to more compact formats as defined in .properties. In so-doing, I trim off any unneeded padding at the start & end of the file. A desired enhancement would be if, instead of noting the duration in seconds to be converted, I could simply enter the desired start- and end-times. So if I have a one-hour recording of which I want to keep the first 30 minutes, I have to enter start: 0; End 1800. It's usually more of a hassle than that, of course: typically I'll want to keep the part from 0:0:09 to 0:59:36 (or something along those lines), and so either do the calculations in my head or use a spreadsheet I keep handy for the purpose.

2. Edit recording properties. I do this occasionally, when I find a file with incorrect metadata, want to add info, or adjust the properties that indicate length and related properties. Usually this works fine. However, if I convert one file into two (or more) sequential parts, I end up with two or more recording files with the same metadata. I want to edit the metadata so that each can be known as [show-episode-part number]. So instead of having two recordings named "Doctor Who Flux," I could rename them "Doctor Who Flux Part one" and "Doctor Who Flux Part Two." What usually happens though, is that if I change one, it changes both. So I can give them different file names, but changing one episode name changes both.

3. I also do a lot of searching recordings and epg schedules, & scheduling from the web interface.
__________________
Server: Windows 8.1 4gb RAM; 4TB SATA + others. Homebrew quad core AMD. Inputs: Haup. 980, 850 & 950Q on ATSC; Haup 1600 on ATSC & Comcast 2 DTAs with USBUIRT for NTSC. Haup 1800 on ATSC. HDHR Dual (ATSC). Sage 9.22 64 bit.
Reply With Quote
  #34  
Old 11-23-2021, 07:51 AM
graywolf's Avatar
graywolf graywolf is offline
Sage Icon
 
Join Date: Oct 2009
Location: NC
Posts: 1,389
Web interface.
I sometimes use the Export xml feature, then also the Import XML feature usually for exporting old airing info from 1 sage system and import/create the airing info on another sage system. then I can copy the recording from the old system, change the filename to have the new system airing id in it, do a refresh and the copied file now is a recording (archived) in the new system
Reply With Quote
  #35  
Old 11-23-2021, 08:58 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Web interface uses:

Searching the guide for shows/keywords.
  • Checking to see what clients are currently connected and whether they are playing anything.
  • Managing conflicts.
  • Managing favorites.
  • Deleting recordings by going into recordings and clicking the button and then selecting delete.
  • Using the web remote.
  • Seeing what's on using the program guide grid view or channel view.
  • Setting up timed recordings.


What I would love to be able to do:
  • Manage channels - it would be great to be able to select a large block of channels and activate or deactivate. Currently there is no ability to do any Source management in the web UI. Like use shift click to select multiple rows.
  • Similar to above, ability to mass select a whole range of shows to delete.
__________________
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
  #36  
Old 11-23-2021, 10:43 AM
KeithAbbott KeithAbbott is offline
Sage Icon
 
Join Date: Oct 2009
Location: Southeastern Michigan
Posts: 1,375
Web interface uses:

Daily usage
Home page: great summary page, particularly like the ability to give devices listed under currently watching "friendly" names.
Upcoming Recordings page: use that to see upcoming recordings over the next few days/weeks.

Periodic usage

Favorites Manager page: view and maintain favorites, gives a more comprehensive view than what is contained in SageTV itself.
Media Library pages: use whenever I need to search on imported media, can be easier than trying to search in SageTV itself.

Wish list
Some method to quantify usage by channel. This would help to determine which channels are most frequently used/recorded, and which channels are not used or rarely used.
__________________
Server: MSI Z270 SLI Plus ATX Motherboard, Intel i7-7700T CPU, 32GB Memory, Unraid 6.11.5, sagetvopen-sagetv-server-opendct-java11 Docker (version 2.0.7)
Tuners: 2 x SiliconDust HDHomeRun Prime Cable TV Tuners, SiliconDust HDHomeRun CONNECT 4K OTA Tuner
Clients: Multiple HD300 Extenders, Multiple Fire TV Stick 4K Max w/MiniClient
Miscellaneous: Multiple Sony RM-VLZ620 Universal Remote Controls
Reply With Quote
  #37  
Old 11-23-2021, 10:48 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by KeithAbbott View Post
Wish list
Some method to quantify usage by channel. This would help to determine which channels are most frequently used/recorded, and which channels are not used or rarely used.
Great suggestion!
__________________
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
  #38  
Old 11-23-2021, 10:47 PM
VCRUser VCRUser is offline
Sage Aficionado
 
Join Date: Jan 2008
Posts: 444
Quote:
Originally Posted by graywolf View Post
Web interface.
I sometimes use the Export xml feature, then also the Import XML feature usually for exporting old airing info from 1 sage system and import/create the airing info on another sage system. then I can copy the recording from the old system, change the filename to have the new system airing id in it, do a refresh and the copied file now is a recording (archived) in the new system
Interesting - last time I tried that, I couldn't import the XMLs I'd created in the main Sage interface (they weren't recognized). Maybe I should do both the export & import from the web interface. It would certainly be useful.
__________________
Server: Windows 8.1 4gb RAM; 4TB SATA + others. Homebrew quad core AMD. Inputs: Haup. 980, 850 & 950Q on ATSC; Haup 1600 on ATSC & Comcast 2 DTAs with USBUIRT for NTSC. Haup 1800 on ATSC. HDHR Dual (ATSC). Sage 9.22 64 bit.
Reply With Quote
  #39  
Old 11-23-2021, 10:51 PM
VCRUser VCRUser is offline
Sage Aficionado
 
Join Date: Jan 2008
Posts: 444
I forgot to mention another use:

On the main page is a link to "auto-delete recordings." I NEVER want anything to auto-delete, but after I run conversions (and some other occasions I've had difficulty pinning down), shows end up so designated. Going to the list, I can quickly clear the auto-delete flag. (It is also helpful in identifying the occasional show that gets its metadata messed up, since that tends to show up as an auto-delete: if the show name is not one I recognize as something I record, I can then proceed to fix the metadata.
__________________
Server: Windows 8.1 4gb RAM; 4TB SATA + others. Homebrew quad core AMD. Inputs: Haup. 980, 850 & 950Q on ATSC; Haup 1600 on ATSC & Comcast 2 DTAs with USBUIRT for NTSC. Haup 1800 on ATSC. HDHR Dual (ATSC). Sage 9.22 64 bit.
Reply With Quote
  #40  
Old 11-24-2021, 04:19 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Quote:
Originally Posted by jusjoken View Post
I am not/was not a huge user of webapps other than BMT...so can some users provide me with some basic test cases for any of the apps they use. I need some currently working cases and some cases for things that should work but now fail. This will help me understand if I am getting to a working and testable plugin.

Keep them simple...do this, click this then that...expected result...etc.

K
Thanks for the info posted so far...it will help...

Are there any functions that DO NOT WORK in any of the webapps ? I thought there were but none reported specifically here yet...let me know so I can check them out.

K
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
Reply


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
Interest in New SMM? PLUCKYHD Sage My Movies 43 06-22-2016 05:21 PM
external apps blwegrzyn SageTV v7 Customizations 9 10-30-2010 04:59 PM
PDA Cell Phone Apps electrofex SageTV Customizations 1 01-04-2010 08:27 AM
Switching between apps? Skybolt SageMC Custom Interface 3 11-24-2008 09:27 PM
Playing .TS with other apps Mike Young SageTV Beta Test Software 12 10-20-2005 08:46 PM


All times are GMT -6. The time now is 01:52 PM.


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