NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 75 76 77 78 79 … 93 Next »
Diskspace plugin

 
  • 0 Vote(s) - 0 Average
Diskspace plugin
Dai
Offline

Member

Posts: 104
Threads: 15
Joined: Feb 2004
#1
2004-04-19, 12:31 PM
I've pretty much finished my diskspace plugin, I went on holiday which rather stoped development for a while but got back to it at the weekend. I'm using it OK but I'm sure others will be able to break it for me [Image: smile.gif]

Sub, you talked about supporting a method NeedsRegularRendering(), did you add suport for this and if so, is diskspace the kind of thing it ought to be used for and how often does it get called. I think it would be good to see your diskspace going down if a recording is taking place, an update once per minute would probably be enough.

I've been reading the posts about other plugins and I'm gonna do a bit more work on making it cope if skin files dont exist but then it will be ready for others to use. Some time later this week hopefully.

Shall I email to you sub so that it can go onto your site?

Dai
Dai
Offline

Member

Posts: 104
Threads: 15
Joined: Feb 2004
#2
2004-04-19, 01:40 PM
I've just noticed the NeedsRendering() method. It seems that I can get the screen to be updated periodically by making this return true if it is more than minute since the last update. I'll try this method.

Dai
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#3
2004-04-19, 06:28 PM
Yes, thats the in intention of the NeedRendering() method but its not fully implemented in this release. I'll need to do a couple more things to support the MVP, but it will be ready in the next release.



Guest

Unregistered
 
#4
2004-04-19, 07:26 PM
Sub,
Would it be possible to make the time between each rendering configurable, hopefully by the plugin itself. My thinking is that I would like to have my home control plugin re-render every 10 seconds or so, while the weather plugin may not need to be rerendered but every 30 minutes or so.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#5
2004-04-19, 08:24 PM
I'd prefer plugins to manage their own frequency for rendering.

While a plugin is active, I will ask it once a second if it needs rendering. You can easily store the last timestamp when the render method was called, then in the NeedRendering() method do something like:


<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
public bool NeedRendering()
{
   if (lastRenderTimeStamp < DateTime.Now.AddMinutes(-10))
   {
      return true;
   }
   
   return false;
}

public Image render(...)
{
...
lastRenderTimeStamp = DateTime.Now;
}
[/QUOTE]



Guest

Unregistered
 
#6
2004-04-19, 09:04 PM
Sub,
I'm doing some testing with this right now. I know you said it wasn't implemented in the MVP client, but is it implemented in rel 16 of the PC client? I put a debug statement in the &quot;needsRendering&quot; routine of my plug-in and it appears like it is never called.

Thanks,

Bryan
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#7
2004-04-19, 09:31 PM
I think it only works in the current release for the internal plugins (net radio etc), I'll enable it for the external plugins, and finish the MVP support for the next release.
Dai
Offline

Member

Posts: 104
Threads: 15
Joined: Feb 2004
#8
2004-04-19, 10:11 PM
Sub

I've coded the Diskspace plugin to use the NeedsRendering() method. I'll leave it like this and it will then start updating automatically when you add support.

It's late here now and I've had enough, I'll email the plugin to you tomorrow

Dai
Dai
Offline

Member

Posts: 104
Threads: 15
Joined: Feb 2004
#9
2004-04-20, 08:32 PM
Sub

I emailed the plugin to you, just checking if you got it.

Dai
sisuomin
Offline

Junior Member

Posts: 15
Threads: 3
Joined: Jan 2004
#10
2004-04-28, 07:07 PM
Hmm.. I didn't find the diskspace plugin from download page. Should it be available somewhere?
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 3,104 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,576 2020-11-14, 08:01 PM
Last Post: sub
  VIdeo playback from plugin mvallevand 5 3,653 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 3,018 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 2,893 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,340 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 2,035 2013-03-12, 06:48 AM
Last Post: psycik
  Plugin problems with started from the command line mvallevand 11 5,271 2012-08-12, 07:56 PM
Last Post: sub
  Get NextPVR data directory from outside a plugin McBainUK 3 2,349 2012-02-11, 05:42 PM
Last Post: mvallevand
  Weather Plugin imilne 0 1,507 2012-01-15, 08:33 PM
Last Post: imilne

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

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

Linear Mode
Threaded Mode