NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) v
« Previous 1 16 17 18 19 20 Next »
Windows Desktop/Sidebar Gadget with Recording Schedule

 
  • 0 Vote(s) - 0 Average
Windows Desktop/Sidebar Gadget with Recording Schedule
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#31
2011-10-16, 07:49 PM
UncleJohnsBand Wrote:Reddwarf....give the attached a try and report back your findings.....

Assuming this will provide "English-formatted" dates make sure you revert back to the original gadget in the first post and don't use the modified one I posted.
Reddwarf
Offline

Posting Freak

Posts: 6,629
Threads: 230
Joined: Mar 2007
#32
2011-10-16, 08:02 PM
Still no luck with the original or modified gadget, but better in IE.

"I'd rather have a bottle in front of me than a frontal lobotomy"
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#33
2011-10-16, 08:07 PM
Reddwarf Wrote:Still no luck with the original or modified gadget, but better in IE.

If IE is now displaying correctly then the gadget should be able render it correctly as well since the gadget is using the same data you are seeing in IE.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#34
2011-10-16, 08:24 PM
cncb Wrote:Please try the attached modified gadget. I'm pretty sure it is due to the different date representation for your locale that the RSS uses. Ideally I would create my own "feed" for the gadget to use instead of all the string parsing done to use the existing RSS feed but that probably won't be anytime soon.

One thing I could look into would be to provide an html data response rather than RSS.....I think I can do it since I am generating html for the css based screens....i.e. look at manage2.aspx and switch to table rather than tree view....what you see is all done via CSS telling the browser how to display those rows......I could probably create an html response that would have the data you are showing on the schedule....the gadget would then just need to have a CSS file associated with the page you display to tell the window how to display the info. You would not need to parse anything...your coding would be to build the css to display the info that way you want to present it.

Below is an example....it is one row of what the browser receives in regards to html. The CSS files in the manage screen page make it appear as it does.......if you are in IE then you can hit your F12 key to bring up the developer panel and then use the Disable menu option and select css.....you can see how the page renders without any css being applied at all....

Of course the returned data would be customized for the gadget and not exactly what is below since some of the stuff isn't usable from the gadget.....

[Image: pendingrow.jpg]


Code:
<div class="listingRow">
<div class="listings" style="width:15%">
<div class="listingPending">Pending</div>
<input name="item7873" type="checkbox" value="7873"> Delete Me <div class="quality" title="Quality">Quality: Best</div><br/>
<div class="butCancel" title="Cancel"><a href="" onclick="goCancel('Manage2.aspx?cancel=7873');return false;" class="cellItem">Cancel</div></a></div>
<div class="listings" style="margin-left: 15%; width:15%">
<div class="cellItem"><div class="airDate">Tuesday, October 18, 2011</div><br><div class="airTime">8:00 PM - 8:30 PM</div></div><br/><br/></div>
<div class="listings" style="margin-left: 30%; width:10%">
<div class="cellItem"><div class="channelNum">510</div><div class="channelName">71.1622WHTMDT</div></div></div>
<div class="listings" style="margin-left: 40%; width:60%">
<div class="cellItem">
<div class="info"><div class="new_show" title="New episode">New</div><a href="http://en.wikipedia.org/w/index.php?title=Special%3ASearch&search=Last+Man+Standing" target="_blank" title="Wikipedia link" class="wiki">Wiki</a><a href="http://www.google.com/search?hl=en&q=site%3Awww.tv.com+Last+Man+Standing+Grandparents+Day&btnI=I%27m+Feeling+Lucky" target="_blank" title="TV.com link" class="tvcom">TV.com</a><a href="http://www.netflix.com/Search?dtl=1&type=title&v1=Last+Man+Standing" target="_blank" title="Netflix link" class="netflix">Netflix</a><a href="http://www.google.com/search?hl=en&q=site%3Awww.imdb.com+Last+Man+Standing+Grandparents+Day&btnI=I%27m+Feeling+Lucky" target="_blank" title="IMDB link" class="imdb">IMDB</a></div></br>
<div class="showTitle" title="When Mike's behavior at Grandparents Day gets his grandson kicked out of preschool, he is forced to take the child to work with him; Vanessa tries to look more youthful." ><a href="Details2.aspx?id=2835538&rid=7873" onclick="EditPop5(this.href,'Add2');return false;">Last Man Standing<div class="showSubtitle" title="When Mike's behavior at Grandparents Day gets his grandson kicked out of preschool, he is forced to take the child to work with him; Vanessa tries to look more youthful.">Grandparents Day</div></a></div>
<div class="showText">When Mike's behavior at Grandparents Day gets his grandson kicked out of preschool, he is forced to take the child to work with him; Vanessa tries to look more youthful.<br><br> Rated: TV-PG<br>Genre: Sitcom<br> Original Air Date: 2011-10-18<br>(<a href="Credits2.aspx?id=2835538" onclick="EditPop2(this.href,'Add1');return false;">Credits</a>)</div>
</div></div>
</div>
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#35
2011-10-16, 09:49 PM
UncleJohnsBand Wrote:One thing I could look into would be to provide an html data response rather than RSS.....

Thanks for the offer, but I think XML or JSON with all the properties of all the scheduled recordings would be best since what is displayed for each recording can then be customized (as it is already setup to do).
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#36
2011-10-16, 10:49 PM
cncb Wrote:Thanks for the offer, but I think XML or JSON with all the properties of all the scheduled recordings would be best since what is displayed for each recording can then be customized (as it is already setup to do).

Not a problem....RSS is XML and I was trying to address your issue about parsing "Ideally I would create my own "feed" for the gadget to use instead of all the string parsing"......there is also a full web service already available which will return an XML document with the info in a serialized class structure.....it is secured so you would have to figure out how to log in from the gadget using the encryption format that is necessary.....I may be able to make a public web service available for this specific purpose.

Below is a single pending epgevent returned via the web service.....

Code:
<?xml version="1.0" encoding="utf-8"?>
<webServiceManage xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <webServiceManageListing>
    <webServiceEPGEvent>
      <webServiceEPGEventObjects>
        <webServiceEPGEventObject>
          <OID>2834333</OID>
          <UniqueId>EP014198720005</UniqueId>
          <ChannelOid>7166</ChannelOid>
          <StartTime>2011-10-18T00:30:00Z</StartTime>
          <EndTime>2011-10-18T01:00:00Z</EndTime>
          <Title>2 Broke Girls</Title>
          <Subtitle>And the '90s Horse Party</Subtitle>
          <Desc>Max and Caroline throw a 1990s-theme party at the diner to raise funds for their cupcake business; Caroline is horrified when her affluent ex-boyfriend visits.</Desc>
          <Rating>TV-14</Rating>
          <HasSchedule>true</HasSchedule>
          <ScheduleIsRecurring>true</ScheduleIsRecurring>
        </webServiceEPGEventObject>
        <webServiceScheduleObject>
          <OID>7864</OID>
          <ChannelOid>7166</ChannelOid>
          <Priority>0</Priority>
          <Name>2 Broke Girls</Name>
          <Quality>Best</Quality>
          <Type>Multiple</Type>
          <Day>Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday</Day>
          <StartTime>2011-10-18T00:30:00Z</StartTime>
          <EndTime>2011-10-18T01:00:00Z</EndTime>
          <Status>Pending</Status>
          <FailuerReason />
          <PrePadding>0</PrePadding>
          <PostPadding>0</PostPadding>
          <MaxRecordings>0</MaxRecordings>
          <DownloadURL />
        </webServiceScheduleObject>
        <webServiceRecurringObject>
          <OID>120</OID>
          <ChannelOid>7166</ChannelOid>
          <Priority>0</Priority>
          <Name>2 Broke Girls</Name>
          <Quality>Best</Quality>
          <Day>Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday</Day>
          <Rules>&lt;Rules&gt;
  &lt;EPGTitle&gt;2 Broke Girls&lt;/EPGTitle&gt;
  &lt;ChannelOID&gt;7166&lt;/ChannelOID&gt;
  &lt;ChannelName&gt;72.1624-WHPDT&lt;/ChannelName&gt;
  &lt;StartTime&gt;2011-09-20T01:31:00.0000000Z&lt;/StartTime&gt;
  &lt;EndTime&gt;2011-09-20T02:00:00.0000000Z&lt;/EndTime&gt;
  &lt;PrePadding&gt;0&lt;/PrePadding&gt;
  &lt;PostPadding&gt;0&lt;/PostPadding&gt;
  &lt;Quality&gt;3&lt;/Quality&gt;
  &lt;Keep&gt;0&lt;/Keep&gt;
&lt;/Rules&gt;
</Rules>
          <StartTime>2011-09-20T01:31:00Z</StartTime>
          <EndTime>2011-09-20T02:00:00Z</EndTime>
          <Type>Recurring</Type>
          <PrePadding>0</PrePadding>
          <PostPadding>0</PostPadding>
          <MaxRecordings>0</MaxRecordings>
          <allChannels>false</allChannels>
        </webServiceRecurringObject>
        <webServiceReturn>
          <Error>false</Error>
          <Message />
        </webServiceReturn>
      </webServiceEPGEventObjects>
    </webServiceEPGEvent>
  </webServiceManageListing>
</webServiceManage>
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
Reddwarf
Offline

Posting Freak

Posts: 6,629
Threads: 230
Joined: Mar 2007
#37
2011-10-16, 11:30 PM
Evolution!!! One of natures' great processes and one of the best qualities of the cooperating members of npvr forums SmileSmile

"I'd rather have a bottle in front of me than a frontal lobotomy"
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#38
2011-10-16, 11:52 PM
UncleJohnsBand Wrote:Not a problem....RSS is XML and I was trying to address your issue about parsing

I know and I'm using the XML document. I was referring to the parsing of the strings within each element to get at the data: e.g. the 'Description' element which contains most of the properties separated by colons and breaks instead of in separate elements.

UncleJohnsBand Wrote:I may be able to make a public web service available for this specific purpose.

That would be great if you could make something public that lists the in-progress and pending recordings along with all their properties. Thanks.
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#39
2011-10-17, 01:31 AM
cncb Wrote:That would be great if you could make something public that lists the in-progress and pending recordings along with all their properties. Thanks.

I'll see what I can work up.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#40
2011-10-17, 03:53 AM (This post was last modified: 2011-10-17, 04:03 AM by UncleJohnsBand.)
Ok...here you go...see what you can get going with it......just load the patch to the web\appcode directory.

If you invoke a Post to
Code:
http://your-url:your-port/public/services/manageservice.asmx/getGadgetFeed
should return an XML document with all pending and in-progress events sorted by status, date, channel and then title. Of course you can also access it via SOAP call as well.....

Attached is a sample returned xml document.

I can also set this up to take in a parameter to limit the number of returned results. Let me know if you would like that as well....works the same way....just allows you to say only bring back the first x results.

Cheers

UJB
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (15): « Previous 1 2 3 4 5 6 … 15 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  HDHRGuide for Windows mvallevand 63 11,102 2025-06-20, 04:05 PM
Last Post: mvallevand
  Comskipped videos played back on NextPVR desktop application halt on commercial break mlopez1007 2 1,074 2023-07-03, 07:47 PM
Last Post: mvallevand
  NextTool for Windows question MrReis 12 2,685 2023-03-31, 10:23 PM
Last Post: mvallevand
  Multiple Instances of Desktop Gadget BrettB 6 2,093 2021-05-16, 04:23 PM
Last Post: mvallevand
  Automatic movie recording based on existing libraries daneo 10 5,273 2020-04-14, 08:02 PM
Last Post: daneo
  NextPVR Recording Service Monitor ChaosMageX 2 2,335 2019-09-23, 02:19 PM
Last Post: ChaosMageX
  Desktop Gadget not working after Win10 Creators Update Bobbybear 1 3,605 2017-06-26, 09:01 PM
Last Post: Bobins
  ParallelProcessing.bat Recording Growth Monitor BrettB 0 2,153 2017-05-24, 01:51 AM
Last Post: BrettB
  Desktop gadget stopped working roy 4 3,543 2017-02-18, 08:16 PM
Last Post: roy
  Created a program to purge recording directory evans036 3 3,590 2016-11-30, 11:44 AM
Last Post: Graham

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode