topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Tuesday April 16, 2024, 6:47 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

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

Mboxer511

  • Participant
  • Joined in 2019
  • *
  • default avatar
  • Posts: 8
    • View Profile
    • Donate to Member
Re: Release: sWeather (tray-based weather app)
« Reply #600 on: January 16, 2019, 01:16 AM »
If I understood correctly you mentioned there is a possibility that we could get our own individual API for free that we could use with your software? If that is the case could you explain how we could go about doing that? I would have no problem applying for an individual API and using it with your software so I could get it working again on my computer.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: Release: sWeather (tray-based weather app)
« Reply #601 on: January 16, 2019, 01:20 AM »
Hi, Mboxer511, and welcome to the DonationCoder site.   :Thmbsup:

If I understood correctly you mentioned there is a possibility that we could get our own individual API for free that we could use with your software? If that is the case could you explain how we could go about doing that? I would have no problem applying for an individual API and using it with your software so I could get it working again on my computer.

The individual API key thing applied only if I changed sWeather to use OpenWeatherMap's API which, at this point, I have no plans to do.

Drugwash

  • Participant
  • Joined in 2009
  • *
  • Posts: 54
    • View Profile
    • Donate to Member
Re: Release: sWeather (tray-based weather app)
« Reply #602 on: January 16, 2019, 06:54 AM »
@ TechTeacher: I do understand everything, the way this world goes. Morally it's a wrong way. But this kind of discussion would be way too heavy and lengthy for this topic. Don't worry, I don't get hurt so easily and there's nothing in your statements that I wouldn't agree to. So we're cool. ;)

@ wraith808: you're right on all accounts. However, 'free' from the user point of view should be completely free - not conditionalised by some private data theft, as you bluntly put it in regard to FB and most other "free" services. Indeed, the author puts in time, effort, nerves and so on only to give something to others, free of charge. When nothing but 'thanks' or a seldom donation is received, it is commendable. This is the real free stuff (and I know, because I've written AHK scripts and offered them for free as long as I had an online repository to store them in).

@ skwire/Jody: you're a fine person, I've always known it. Actually we're quite similar, I may say: we both enjoy taking ideas, creating something based on them and then giving back that something to the community. I believe that's how all human kind should work. Idealistic and naive, again.
Best wishes to you and your family, and may good things happen for a change - starting with Yahoo's API approval! :)

TechTeacher

  • Participant
  • Joined in 2019
  • *
  • default avatar
  • Posts: 11
    • View Profile
    • Donate to Member
Re: Release: sWeather (tray-based weather app)
« Reply #603 on: January 17, 2019, 01:46 AM »
Folks, looking over the past weeks posts you seem all to be polite and respectful to one another. I like this atmosphere alot. Would someone be so kind as to point me to a similar civilized forum. I'm interest in politic, social policy, security, religion and would love a place to hang.

I find Reg-edit to be to wild-west for my taste of discourse.

I'm a social-technologist with 40+ years in the business. IBM for 10, a stint at Microsoft, 10-years freelancing, 12-years teaching as a Senior Networking Instructor (with a side course in "Ethics in Information System".


tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,961
    • View Profile
    • Donate to Member
Re: Release: sWeather (tray-based weather app)
« Reply #604 on: January 17, 2019, 04:09 AM »
Folks, looking over the past weeks posts you seem all to be polite and respectful to one another. I like this atmosphere alot. Would someone be so kind as to point me to a similar civilized forum. I'm interest in politic, social policy, security, religion and would love a place to hang.
hi TechTeacher,
I can't help you there - would find such a forum of interest myself.
When those topics get involved, people tend to get heated and a lot less civilised - which is why we avoid politics and religion here** (if someone insists on posting something in that direction it usually gets ignored, may even get removed, or moved to a 'basement' board that's only visible to members).

**Sometimes those topics and our topics of interest do overlap, so you will see the odd thread e.g. re Snowden
Tom
« Last Edit: January 17, 2019, 04:15 AM by tomos »

TechTeacher

  • Participant
  • Joined in 2019
  • *
  • default avatar
  • Posts: 11
    • View Profile
    • Donate to Member
Re: Release: sWeather (tray-based weather app)
« Reply #605 on: January 17, 2019, 02:15 PM »
Thanks.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: Release: sWeather (tray-based weather app)
« Reply #606 on: January 17, 2019, 04:55 PM »
I haven't heard back from Yahoo! so I sent them another email.   :-\

Drugwash

  • Participant
  • Joined in 2009
  • *
  • Posts: 54
    • View Profile
    • Donate to Member
Re: Release: sWeather (tray-based weather app)
« Reply #607 on: January 18, 2019, 02:22 AM »
@ TechTeacher: Sorry for not being able to help, I only follow a couple of tech boards (this one and AHK's).

@ skwire: They're probably swamped with h8er mail.  :P  ;D

Mboxer511

  • Participant
  • Joined in 2019
  • *
  • default avatar
  • Posts: 8
    • View Profile
    • Donate to Member
Re: Release: sWeather (tray-based weather app)
« Reply #608 on: January 18, 2019, 11:52 PM »
I haven't heard back from Yahoo! so I sent them another email.   :-\

I found another weather program called "YoWindow" and noticed they seem to utilize the National Weather Service. Would that be an option to use for your app as an alternative to Yahoo? I also found these other API's which might be able to help:


skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: Release: sWeather (tray-based weather app)
« Reply #609 on: January 20, 2019, 02:04 AM »
I've updated sWeather to work with the new API but I'd like to get a bit of testing done before releasing it fully.  If you're up to it, make a backup of your sWeather folder and grab the interim build from here:

http://www.dcmembers...eather_v1.7.5.27.zip
http://www.dcmembers...eather_v1.7.5.34.zip
http://www.dcmembers...eather_v1.7.5.35.zip

Please read the following changelog and let me know how this version works for you:

    + Added support for the new Yahoo! Weather API.  The old API was retired on
      2019-01-03.  The new API seems slower than the previous one but I don't
      know if it's because of the new OAuth requirement for this new API or
      something else.  Whatever...it works, so please be patient with it and
      apologies for any inconvenience.
    + Hovering over the "Full forecast", "Radar", and "Powered by Yahoo!" links
      shows their URL in the statusbar.  (Thanks, Drugwash)
    + Right-clicking the "Full forecast", "Radar", and "Powered by Yahoo!" links
      gives the option of copying the URL to the clipboard.
    + Added "Minimize to tray" option.  (Thanks, Drugwash)
    + Added menu option to display raw weather data.
    + Added tooltips to statusbar icons.
    * Eliminated dependencies on resources.dll and temp directory.
    - Took out the WOEID search feature because the new API doesn't support that
      currently.  Had to go back to the old method of manually getting the WOEID
      from the URL of a location on the main weather.yahoo.com website.  Yuck,
      what a travesty.  >=[
    ! Right-click clipboard context menu was broken.
    ! Fixed an extra line in one of the tray tooltips.  (Thanks, Drugwash)
« Last Edit: January 25, 2019, 12:52 AM by skwire »

TechTeacher

  • Participant
  • Joined in 2019
  • *
  • default avatar
  • Posts: 11
    • View Profile
    • Donate to Member
Re: Release: sWeather (tray-based weather app)
« Reply #610 on: January 20, 2019, 02:27 AM »
Your right about WOEID being a pain, but MAN YOU DID IT!

Thank you! I didn't know how much I missed it before it was gone. Now it's back in my tray and it's GREAT!

Next check, you get a donation!

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: Release: sWeather (tray-based weather app)
« Reply #611 on: January 20, 2019, 02:29 AM »
It wasn't the WOEID stuff that was a pain, it was the new OAuth requirements.  OAuth is a damn nightmare.

Brothbeard

  • Supporting Member
  • Joined in 2014
  • **
  • Posts: 13
    • View Profile
    • Donate to Member
Re: Release: sWeather (tray-based weather app)
« Reply #612 on: January 20, 2019, 03:54 AM »
Yeehaaaa! It's back (mostly). Basically working but the "Feels Like" temperature is 28C when the actual temperature is 0C. That's some wind chill! I can only wish it really worked that way.

Drugwash

  • Participant
  • Joined in 2009
  • *
  • Posts: 54
    • View Profile
    • Donate to Member
Re: Release: sWeather (tray-based weather app)
« Reply #613 on: January 20, 2019, 06:41 AM »
First off, thank you for getting this back working and also for incorporating some of my suggestions!  :Thmbsup:

It's mostly working, except for the aforementioned "Feels like" which is also 28°C for me while real temperature is 1°C.
The 'High' appears as N/A, no idea if that's how it comes from the API or some bug in the script.

The blank line in the tooltip is still present (you probably didn't have time to address it - just a reminder) and the date/time in the titlebar still shows Thu, January 01, 00:00 due to the IE libraries being unable to connect to the site (TLS 1.2 missing in IE8 or something).

sWeather_new.pngRelease: sWeather (tray-based weather app)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,900
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Release: sWeather (tray-based weather app)
« Reply #614 on: January 20, 2019, 07:42 AM »
Congratulations, Jody  :Thmbsup:
Amazing work -- I know it must have been a huge pain to make such a large change.. Thank you for taking care of us sWeather users.  :up: :up: :up:

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: Release: sWeather (tray-based weather app)
« Reply #615 on: January 20, 2019, 11:24 AM »
Basically working but the "Feels Like" temperature is 28C when the actual temperature is 0C.
It's mostly working, except for the aforementioned "Feels like" which is also 28°C for me while real temperature is 1°C.

The data shown is the data given by Yahoo!.  However, as best I can tell, that wind chill data is not being coverted to Celsius.  Basically, it's a Fahrenheit value no matter if I'm requesting Celsius values.  Of course, I could do the math and fix it, but I've written an email to Yahoo! to see if they'll fix it first.  If they don't, within a fair amount of time, I'll fix it manually.

The 'High' appears as N/A, no idea if that's how it comes from the API or some bug in the script.

It's a formatting bug in the data returned from Yahoo!.  I mentioned this bug as well in the aforementioned email, but I've also fixed it in my interim sWeather build in the meantime.

The blank line in the tooltip is still present (you probably didn't have time to address it - just a reminder)

I don't see this extra blank line, but let me know if I fixed it when I release the next interim build later today.

and the date/time in the titlebar still shows Thu, January 01, 00:00 due to the IE libraries being unable to connect to the site (TLS 1.2 missing in IE8 or something).

You can try disabling the "Use HTTPS when possible" option in sWeather.  However, if the TimeZoneDB site force a redirect to HTTPS (or force TLS 1.2), I doubt I can fix this for you.

Drugwash

  • Participant
  • Joined in 2009
  • *
  • Posts: 54
    • View Profile
    • Donate to Member
Re: Release: sWeather (tray-based weather app)
« Reply #616 on: January 20, 2019, 12:26 PM »
I don't see this extra blank line, but let me know if I fixed it when I release the next interim build later today.
There's an extra "`n" (new line) at the end of the tooltip text, I found it in previous version and fixed it locally. Possibly your version of Windows trims it automatically, that's why you don't see it, but XP does display it.
Tray_Tip_Format_Short := sTemp . "°" . ( CF ) . " (FL: " . sChill . "°" . ( CF )  "), " . sCondition . "`n"
. "RH: " . sHumidity . "%`n"
. "Hi: " . sHigh1 . "°" . ( CF ) . ", Lo: " . sLow1 . "°" . ( CF ) . "`n"

There's another "fix" I did in my local version: tooltips for the statusbar icons. I had no idea where those were leading to; now there's a tooltip clearing it all out.
; somewhere in autoexec
Global lnkYdev := "https://developer.yahoo.com/weather/"
Global lnkTZDB := "https://www.timezonedb.com"
; further down
SB_SetParts( 300, 65, 25, 25 )
SB_SetIcon( Temp_Dir . "\yahoo.ico", 1, 3 )
SB_SetIcon( Temp_Dir . "\timezonedb.ico", 1, 4 )
; my additions following
msg := A_IsUnicode ? 0x411 : 0x410 ; SB_SETTIPTEXTW/A
SendMessage, msg, 2, "Yahoo developer site " lnkYdev, msctls_statusbar321
SendMessage, msg, 3, "TimezoneDB site " lnkTZDB, msctls_statusbar321

You can try disabling the "Use HTTPS when possible" option in sWeather.
That seems to have worked. Can't believe I didn't try that earlier. Or did I…? Anyway, one down.  :Thmbsup: Will be waiting for Yahoo's fixes… or yours. ;)

dhry

  • Participant
  • Joined in 2012
  • *
  • Posts: 8
    • View Profile
    • Donate to Member
Re: Release: sWeather (tray-based weather app)
« Reply #617 on: January 20, 2019, 02:25 PM »
Nice job Jody, thank you! Looks like it works fine.

Dhry

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: Release: sWeather (tray-based weather app)
« Reply #618 on: January 20, 2019, 02:58 PM »
There's an extra "`n" (new line) at the end of the tooltip text

As mentioned previously, the version below should have a fix.

There's another "fix" I did in my local version: tooltips for the statusbar icons.

I had meant to add those last night (and have in the version below).  Thanks for the reminder.   :Thmbsup:

Nice job Jody, thank you! Looks like it works fine.

Great to hear.  Thank you for the report.   :Thmbsup:

Latest interim build here:
http://www.dcmembers...eather_v1.7.5.34.zip
http://www.dcmembers...eather_v1.7.5.35.zip

Please read the following changelog and let me know how this version works for you (changes from the .25 build to the .34 build are in bold):

    + Added support for the new Yahoo! Weather API.  The old API was retired on
      2019-01-03.  The new API seems slower than the previous one but I don't
      know if it's because of the new OAuth requirement for this new API or
      something else.  Whatever...it works, so please be patient with it and
      apologies for any inconvenience.
    + Hovering over the "Full forecast", "Radar", and "Powered by Yahoo!" links
      shows their URL in the statusbar.  (Thanks, Drugwash)
    + Right-clicking the "Full forecast", "Radar", and "Powered by Yahoo!" links
      gives the option of copying the URL to the clipboard.
    + Added "Minimize to tray" option.  (Thanks, Drugwash)
    + Added menu option to display raw weather data.
    + Added tooltips to statusbar icons.
    * Eliminated dependencies on resources.dll and temp directory.
    - Took out the WOEID search feature because the new API doesn't support that
      currently.  Had to go back to the old method of manually getting the WOEID
      from the URL of a location on the main weather.yahoo.com website.  Yuck,
      what a travesty.  >=[
    ! Right-click clipboard context menu was broken.
    ! Fixed an extra line in one of the tray tooltips.  (Thanks, Drugwash)
« Last Edit: January 25, 2019, 12:53 AM by skwire »

TechTeacher

  • Participant
  • Joined in 2019
  • *
  • default avatar
  • Posts: 11
    • View Profile
    • Donate to Member
Re: Release: sWeather (tray-based weather app)
« Reply #619 on: January 20, 2019, 04:09 PM »
Thanks what I meant about WOEID...

Drugwash

  • Participant
  • Joined in 2009
  • *
  • Posts: 54
    • View Profile
    • Donate to Member
Re: Release: sWeather (tray-based weather app)
« Reply #620 on: January 20, 2019, 05:19 PM »
Report:
- Tooltip blank line is fixed.
- Statusbar tooltips work properly.
- High temperature is now displayed correctly.
- Bug: main window's titlebar loses date/time when window is restored/shown by clicking the tray icon.
- Bug?: no more minimize button in titlebar.

Sorry for being brief, I'm dead tired, gotta hit the sack. Good luck!

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: Release: sWeather (tray-based weather app)
« Reply #621 on: January 20, 2019, 05:40 PM »
- Bug?: no more minimize button in titlebar.

Eh? Did you enable the "Do not show taskbar button" option or something?

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 11,186
    • View Profile
    • Donate to Member
Re: Release: sWeather (tray-based weather app)
« Reply #622 on: January 20, 2019, 05:45 PM »
It wasn't the WOEID stuff that was a pain, it was the new OAuth requirements.  OAuth is a damn nightmare.

My experiences with OAuth.



In other words, I agree.  Totally.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: Release: sWeather (tray-based weather app)
« Reply #623 on: January 20, 2019, 06:04 PM »
It wasn't the WOEID stuff that was a pain, it was the new OAuth requirements.  OAuth is a damn nightmare.

My experiences with OAuth.



In other words, I agree.  Totally.

Yeah, it's bloody ridiculous.  It's like it's complicated just for the sake of being complicated.  As for troubleshooting, yeah, right.  Troubleshooting is just trying random shit until 1) it works or 2) you just give up (re: your surrender flag above, haha).

TechTeacher

  • Participant
  • Joined in 2019
  • *
  • default avatar
  • Posts: 11
    • View Profile
    • Donate to Member
Re: Release: sWeather (tray-based weather app)
« Reply #624 on: January 20, 2019, 06:19 PM »
I just did a quick scan of RFC 6749. Having worked with PKE and PKI along with Microsoft's Hash key exchange, OAuth seems to have been developed by a team that seems to be set out to show how smart they are.

For the API call you use in sWeather, I can't see why Yahoo would implement such a challenge / response protocol. I really seems like over kill; unless this now going to be part of the base coding standard.