NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 89 90 91 92 93 Next »
New weather plugin alpha

 
  • 0 Vote(s) - 0 Average
New weather plugin alpha
CodeMonkey
Offline

Senior Member

Posts: 389
Threads: 86
Joined: Apr 2004
#1
2004-04-10, 09:54 PM
It isn't complete yet but I figured I'd let you all see what it looks like so far.  Only the current conditions and radar image work right now.  I will be adding the other 3 buttons today or tomorrow.

The source is not included yet.  But it will be when the plugin is released.  It is based heavily on the supplied weather plugin C# example.

WeatherPluginAlpha.zip

Right now when you click on the 'current' button with the mouse, it is not highlighted.  That's the only bug I know of so let me know of any others.
-CodeMonkey
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#2
2004-04-10, 10:12 PM
Well done. Thats a good start. Seems to work well here.

I see what you mean about the selection state of the current button.

Also, the top line says "Weather for Wellington, , New Zeala" here. You might want to make bounding box for this text slightly larger. On my screen it looks like it still has about 100 or so pixel to the edge of the box.

You probably want to reduce the spacing between the buttons also.

There was a line that did this in the original sample:
Graphics.FromImage(compositeScreenImage).FillRectangle(new SolidBrush(Color.Black), 233, 168, 364, 244);
You should change these dimension to match the new image size because I can see a slight darker small rectangle in the middle of the radar map.

I hope these suggestions help.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#3
2004-04-10, 10:14 PM
We need to find someone artistic (any takers?) to draw us images that we can show to represent the current outlook - windy/sunny/rain/snow etc. That would look cool.
CodeMonkey
Offline

Senior Member

Posts: 389
Threads: 86
Joined: Apr 2004
#4
2004-04-10, 11:07 PM
Do we want some sort of standard on how far apart the buttons are? For example, the code in weather is:

g.DrawImage(image, 10, 80+(i*(image.Height+10)));

clickableRegions.Add(new Rectangle(10, 80+(i*(image.Height+10)), image.Width, image.Height), button);

What is it in your main menu code?
-CodeMonkey
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#5
2004-04-10, 11:38 PM
If you take out the +10 it should be about right as there is a gap at the bottom of the button images. The main menu is done slightly differently.
CodeMonkey
Offline

Senior Member

Posts: 389
Threads: 86
Joined: Apr 2004
#6
2004-04-10, 11:47 PM
OK, all of subs suggestions are in (thanks!Wink.  Have another go [Image: smile.gif]

Latest Weather Plugin Alpha
-CodeMonkey
CodeMonkey
Offline

Senior Member

Posts: 389
Threads: 86
Joined: Apr 2004
#7
2004-04-11, 12:33 AM
I'm changing the current conditions to display the current temp and condition (cloudy etc) in a larger font, and displaying a graphic for the condition. Graphics are currently stolen from mythtv until we get our own. I should have that tonight then call it quits for today [Image: smile.gif]
-CodeMonkey
CodeMonkey
Offline

Senior Member

Posts: 389
Threads: 86
Joined: Apr 2004
#8
2004-04-11, 01:19 AM
Final one for tonight, I promise [Image: smile.gif]

This one has the temp/outlook and icon in current conditions.

It only displays the icon for 'partly cloudy' due to a brain cramp on my part, please read my next post and help [Image: smile.gif]

Another weather alpha
-CodeMonkey
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#9
2004-04-11, 01:32 AM
I've tried to download this latest version a few times - all have said corrupt archive. Can you try zipping it up again?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#10
2004-04-11, 01:36 AM
dont worry...got it.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (6): 1 2 3 4 5 6 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 2,813 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,343 2020-11-14, 08:01 PM
Last Post: sub
  VIdeo playback from plugin mvallevand 5 3,449 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 2,898 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 2,766 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,080 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 1,945 2013-03-12, 06:48 AM
Last Post: psycik
  Plugin problems with started from the command line mvallevand 11 4,980 2012-08-12, 07:56 PM
Last Post: sub
  Get NextPVR data directory from outside a plugin McBainUK 3 2,238 2012-02-11, 05:42 PM
Last Post: mvallevand
  Weather Plugin imilne 0 1,428 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