DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Last post Author Topic: Release: sWeather (tray-based weather app)  (Read 755,706 times)

joiwind

  • carpe momentum
  • Participant
  • Joined in 2009
  • *
  • Posts: 486
Re: Release: sWeather (tray-based weather app)
« Reply #75 on: May 09, 2011, 10:42 AM »
^ +2  :Thmbsup:
but still problems when coming out of sleep-mode...

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • Plugin Coding Medal
    • Participated in NANY Challenge Three Times
Re: Release: sWeather (tray-based weather app)
« Reply #76 on: May 09, 2011, 09:16 PM »
but still problems when coming out of sleep-mode...
With respect to this, I've tested some code from:

  http://www.autohotkey.com/forum/topic21697.html

Some (lightly edited) relevant bits include:

Code
OnMessage(0x218, "DispatchOnResults")
Return

DispatchOnResults(wParam, lParam)
{
  If (lParam = 0) 
  {
    ; PBT_APMSUSPEND or PBT_APMSTANDBY? -> System will sleep
    If (wParam = 4 OR wParam = 5) 
    {
;
    }
    ; PBT_APMRESUMESUSPEND or PBT_APMRESUMESTANDBY? -> System wakes up
    If (wParam = 7 OR wParam = 8) 
    {
;      
    }
  }
  Return
}

What is master skwire's opinion on this matter? ;)

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: Release: sWeather (tray-based weather app)
« Reply #77 on: May 09, 2011, 09:21 PM »
My opinion is one of, "is it really that big of a deal to manually refresh it?"  :tellme: Furthermore, just because a device comes out of hibernation doesn't guarantee that there is a network connection.

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: Release: sWeather (tray-based weather app)
« Reply #78 on: May 10, 2011, 01:13 AM »
I just uploaded v1.0.8 build 2 with the standy/hibernate tweak.  I have it set so that, fifteen seconds after a resume from standby/hibernation, it will attempt a refresh.  After that, it will go back to the default hourly refresh.

joiwind/ewemoa, please let me know if this works.  Thanks.
« Last Edit: May 10, 2011, 01:14 AM by skwire »

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • Plugin Coding Medal
    • Participated in NANY Challenge Three Times
Re: Release: sWeather (tray-based weather app)
« Reply #79 on: May 10, 2011, 02:18 PM »
Thanks for making this attempt.

I have 1.0.8 build 2 on two machines now and hope to report back with how it works before too long.


P.S. Sorry for taking a bit for getting back to you on this.

joiwind

  • carpe momentum
  • Participant
  • Joined in 2009
  • *
  • Posts: 486
Re: Release: sWeather (tray-based weather app)
« Reply #80 on: May 10, 2011, 08:49 PM »
Thanks skwire - it works fine.
BTW I only mentioned the problem because it had been mentioned before ...  :P
My opinion is one of, "is it really that big of a deal to manually refresh it?"  :tellme: Furthermore, just because a device comes out of hibernation doesn't guarantee that there is a network connection.
: perfectly true, it is no big deal but it is less annoying.

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • Plugin Coding Medal
    • Participated in NANY Challenge Three Times
Re: Release: sWeather (tray-based weather app)
« Reply #81 on: May 11, 2011, 03:18 AM »
1.0.8 build 2 definitely feels nicer  :Thmbsup:

I'm puzzled though -- by the time the resuming from hibernation is complete and I can see the icons, they already seem to be updated.  Perhaps 15 or more seconds have already passed by that time...As I recall it, for previous builds, I'd often see an NA icon.  May be more observation / timing is in order on my end.

At any rate, thanks!


P.S. Perhaps the way I use PCs is a bit odd -- I've been putting them in to hibernation when I leave my seat and I don't have some ongoing network activity.  Resuming is something that typically occurs more than a couple times a day...

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: Release: sWeather (tray-based weather app)
« Reply #82 on: May 11, 2011, 05:58 AM »
Thanks for the testing and feedback, ewemoa & joiwind.  Much appreciated.  =]

Website | Download
v1.0.9 - 2011-05-11
    + sWeather will now attempt a refresh fifteen seconds after coming out of
      hibernation mode.  (Thanks, ewemoa & joiwind)

joiwind

  • carpe momentum
  • Participant
  • Joined in 2009
  • *
  • Posts: 486
Re: Release: sWeather (tray-based weather app)
« Reply #83 on: May 11, 2011, 10:43 AM »
Perfectly working, thanks skwire.

One thing that has happened before here is that if the 'Start minimized' option is checked when loading the app then the main window appears only as a small vertical slice of the title bar - if unchecked then the window loads normally. But this may well be, and probably is, a local glitch !

joiwind

  • carpe momentum
  • Participant
  • Joined in 2009
  • *
  • Posts: 486
Re: Release: sWeather (tray-based weather app)
« Reply #84 on: May 13, 2011, 09:33 PM »
v 1.0.9 build 1 : doesn't seem to update the weather automatically...

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: Release: sWeather (tray-based weather app)
« Reply #85 on: May 14, 2011, 12:22 AM »
Seems to work here fine.  Are you seeing this after a hibernation?  ewemoa, are you seeing this as well?
« Last Edit: May 14, 2011, 03:38 AM by skwire »

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • Plugin Coding Medal
    • Participated in NANY Challenge Three Times
Re: Release: sWeather (tray-based weather app)
« Reply #86 on: May 14, 2011, 02:22 AM »
AFAICT, seems to be working fine here...at least I have not seen the NA icon in some time.

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: Release: sWeather (tray-based weather app)
« Reply #87 on: May 14, 2011, 03:38 AM »
AFAICT, seems to be working fine here...at least I have not seen the NA icon in some time.

And it seems to be updating hourly even after a hibernation, right?

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • Plugin Coding Medal
    • Participated in NANY Challenge Three Times
Re: Release: sWeather (tray-based weather app)
« Reply #88 on: May 14, 2011, 07:36 AM »
it seems to be updating hourly even after a hibernation, right?
I believe so.  Took screenshots of sWeather's main window once an hour four times, and they all showed different info.

joiwind

  • carpe momentum
  • Participant
  • Joined in 2009
  • *
  • Posts: 486
Re: Release: sWeather (tray-based weather app)
« Reply #89 on: May 14, 2011, 03:03 PM »
skwire - it seems to happen only when the pop-up window is open and no difference if the window is in focus or not.

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: Release: sWeather (tray-based weather app)
« Reply #90 on: May 14, 2011, 08:50 PM »
Hmmm...I cannot reproduce the issue.  I've left it open all day and it's updating just fine.  :huh:

joiwind

  • carpe momentum
  • Participant
  • Joined in 2009
  • *
  • Posts: 486
Re: Release: sWeather (tray-based weather app)
« Reply #91 on: May 14, 2011, 10:00 PM »
I have to revise what I said - it does update but not regularly, but no big deal, please don't lose any sleep over this skwire... :D

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: Release: sWeather (tray-based weather app)
« Reply #92 on: May 14, 2011, 10:25 PM »
Maybe you're experiencing the behaviour I describe in this post?

http://www.donationcoder.com/forum/index.php?topic=25940.msg243928#msg243928

joiwind

  • carpe momentum
  • Participant
  • Joined in 2009
  • *
  • Posts: 486
Re: Release: sWeather (tray-based weather app)
« Reply #93 on: May 15, 2011, 09:17 PM »
I don't know skwire.
The pop-up window has been open on the desktop all day, it is now 23h15 here and the last update noted on the pop-up says 8h29 pm (i.e. 20h29).
Again, don't get grey hair over this !

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: Release: sWeather (tray-based weather app)
« Reply #94 on: May 15, 2011, 09:20 PM »
And, if you refresh it manually, it updates?  (I have enough grey hair to go around  :D)

joiwind

  • carpe momentum
  • Participant
  • Joined in 2009
  • *
  • Posts: 486
Re: Release: sWeather (tray-based weather app)
« Reply #95 on: May 15, 2011, 09:24 PM »
Sure, straightaway.
If you need any more grey hair just let me know, I've got enough too  :D

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Release: sWeather (tray-based weather app)
« Reply #96 on: June 19, 2011, 05:27 AM »
still loving sWeather  :up:

minor request: option to start up minimized to tray.

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: Release: sWeather (tray-based weather app)
« Reply #97 on: June 19, 2011, 05:36 AM »
still loving sWeather  :up:

minor request: option to start up minimized to tray.

Thanks, mouser.  As to your request, it's already in there. Check out the options dialog.  :D

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Release: sWeather (tray-based weather app)
« Reply #98 on: June 19, 2011, 05:50 AM »
this is embarassing.. i'm several versions behind!

new version works great.
« Last Edit: June 19, 2011, 05:54 AM by mouser »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Release: sWeather (tray-based weather app)
« Reply #99 on: September 26, 2011, 08:26 PM »
I'd like to request a small feature:

Add a menu item called "Change the Weather" and allow me to change the weather where I live.  Normally I will only be using this to eliminate rain, so I don't care too much about being able to generate rain and snow.  But it would be nice to be able to decrease the temperature in summer months. Thanks!

Original address: https://www.donationcoder.com/forum/index.php?topic=25940.0