*NEW* OWEATHER - A simple weather app for Atari systems

All about the serious stuff.

Moderators: Mug UK, Zorro 2, Moderator Team

User avatar
robv
Captain Atari
Captain Atari
Posts: 173
Joined: Mon Nov 09, 2020 7:39 pm
Location: Netherlands

*NEW* OWEATHER - A simple weather app for Atari systems

Post by robv »

Now that we're in lockdown again, I took inspiration from WongCK's PH-Weather app to waste some of my time. Unfortunately, PH-Weather only runs under MintNet and not on my STiK based MagicPC setup. So I tried if I could do a poor man's weather app in HiSoft Basic that will work with STiK. It gets its data from Openweathermap, one of the few that allow http api-calls. The image shows the weather in Atari, Uganda.
oweather.png
This is just an early version with limitations. If you want to try it, here's the link:
http://rob.vousten.nl/atari/downloads/oweather.zip
You do not have the required permissions to view the files attached to this post.
Rob
engaged with Atari ST since 1987
JeanMars
Captain Atari
Captain Atari
Posts: 410
Joined: Fri Apr 09, 2010 5:15 pm
Location: France
Contact:

Re: *NEW* OWEATHER - A simple weather app for Atari systems

Post by JeanMars »

Hi Rob,

nice one, I like it!
Works well on my Aranym/Mint.
PeterS
Atari Super Hero
Atari Super Hero
Posts: 601
Joined: Fri Nov 09, 2007 1:53 pm
Location: England, GB

Re: *NEW* OWEATHER - A simple weather app for Atari systems

Post by PeterS »

Nice work, it looks very good.
User avatar
robv
Captain Atari
Captain Atari
Posts: 173
Joined: Mon Nov 09, 2020 7:39 pm
Location: Netherlands

Re: *NEW* OWEATHER - A simple weather app for Atari systems

Post by robv »

A small fix. The window now adapts to long place names. Even works for that famous Welsh village I passed through a couple of years ago during one of my cycling trips. :wink:
oweather02.png
The link in the original post will give you the latest version.
You do not have the required permissions to view the files attached to this post.
Last edited by robv on Wed Dec 22, 2021 2:29 pm, edited 1 time in total.
Rob
engaged with Atari ST since 1987
User avatar
TheNameOfTheGame
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2009
Joined: Mon Jul 23, 2012 8:57 pm
Location: Almost Heaven, West Virginia

Re: *NEW* OWEATHER - A simple weather app for Atari systems

Post by TheNameOfTheGame »

Haha, nice one. Looks good!
User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 13222
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: *NEW* OWEATHER - A simple weather app for Atari systems

Post by wongck »

ha ha ha good job.
I guess doing this programming may be more fun than trying to install Magixnet.
My Stuff: FB/Falcon CT63 CTPCI ATI RTL8139 USB 512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff that are no longer for sale due to them over 30 years old - click here for list
stormy
Atari God
Atari God
Posts: 1244
Joined: Tue Jan 26, 2016 12:39 pm

Re: *NEW* OWEATHER - A simple weather app for Atari systems

Post by stormy »

This is going on all my Ataris, thanks!!!
User avatar
robv
Captain Atari
Captain Atari
Posts: 173
Joined: Mon Nov 09, 2020 7:39 pm
Location: Netherlands

Re: *NEW* OWEATHER - A simple weather app for Atari systems

Post by robv »

Now at v0.5 with some improvements.
  • Option to set UTC offset in LOCATION.INF. The openweathermap server reports time in UTC format. Set the offset for your location to get the correct sunrise/sunset times. F.i. +1 for Amsterdam, -8 for San Francisco, +9 for Tokio; see https://timeanddate.com/time/map.
  • A few minor cosmetic changes.
http://rob.vousten.nl/atari/downloads/oweather.zip
Rob
engaged with Atari ST since 1987
stormy
Atari God
Atari God
Posts: 1244
Joined: Tue Jan 26, 2016 12:39 pm

Re: *NEW* OWEATHER - A simple weather app for Atari systems

Post by stormy »

robv is that window style part of the app, or do you have a desktop theme?
User avatar
robv
Captain Atari
Captain Atari
Posts: 173
Joined: Mon Nov 09, 2020 7:39 pm
Location: Netherlands

Re: *NEW* OWEATHER - A simple weather app for Atari systems

Post by robv »

stormy wrote: Mon Dec 27, 2021 3:25 pm robv is that window style part of the app, or do you have a desktop theme?
It's the Natframe extension from Nature that has a couple of themes to change the look of the windows. Works under MagiC 6, don't know about other systems. As I haven't found any mention of it on the forum, I'll attach it here. Themes included. I'm using the Night theme.
You do not have the required permissions to view the files attached to this post.
Rob
engaged with Atari ST since 1987
stormy
Atari God
Atari God
Posts: 1244
Joined: Tue Jan 26, 2016 12:39 pm

Re: *NEW* OWEATHER - A simple weather app for Atari systems

Post by stormy »

Cheers m8 :)
joska
Hardware Guru
Hardware Guru
Posts: 5295
Joined: Tue Oct 30, 2007 2:55 pm
Location: Florø, Norway
Contact:

Re: *NEW* OWEATHER - A simple weather app for Atari systems

Post by joska »

Just tested this on my Milan running MiNT/XaAES with memory protection enabled, works fine :) I ran into a problem though - I'm living in Florø, Norway, and oWeather seems to only handle pure ASCII. It would be nice if you could use longitude/latitude, or translate the non-ASCII Atari characters.
Jo Even

VanillaMiNT - Falcon060 - Milan060 - Falcon040 - MIST - Mega STE - Mega ST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64
joska
Hardware Guru
Hardware Guru
Posts: 5295
Joined: Tue Oct 30, 2007 2:55 pm
Location: Florø, Norway
Contact:

Re: *NEW* OWEATHER - A simple weather app for Atari systems

Post by joska »

And under a multitasking OS you can change the application name from "OWEATHER" to something like "OpenWeather" using menu_register(-1, "OpenWeather") menu_register(apid, "OpenWeather").

http://toshyp.atari.org/en/00800f.html#menu_register

Edit: I should know now to never trust my memory alone :) The *correct* way to register a "nice" name under a multitasking OS is to call menu_register like an ACC, i.e. with your app's application ID. To change the *process name* you call menu_register with -1 as id. So "menu_register(-1, "OWEATHER") make sure that your application can always be found by the name "OWEATHER" by other accs/apps, and not by the executable file name.
Last edited by joska on Sat Jan 01, 2022 8:21 pm, edited 1 time in total.
Jo Even

VanillaMiNT - Falcon060 - Milan060 - Falcon040 - MIST - Mega STE - Mega ST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64
User avatar
shoggoth
Nature
Nature
Posts: 1133
Joined: Tue Aug 01, 2006 9:21 am
Location: Halmstad, Sweden
Contact:

Re: *NEW* OWEATHER - A simple weather app for Atari systems

Post by shoggoth »

Wow, looks really nice!
Ain't no space like PeP-space.
User avatar
Cyprian
10 GOTO 10
10 GOTO 10
Posts: 2565
Joined: Fri Oct 04, 2002 11:23 am
Location: Warsaw, Poland

Re: *NEW* OWEATHER - A simple weather app for Atari systems

Post by Cyprian »

joska wrote: Sat Jan 01, 2022 12:16 pm And under a multitasking OS you can change the application name from "OWEATHER" to something like "OpenWeather" using menu_register(-1, "OpenWeather").
does menu_register work only under multitasking OS? I see there a note:
"Although altering the name of the application is only documented as of AES 4.0, this feature seems to work in all TOS versions"
"Availability: All AES versions."
Mega ST 1 / 7800 / Portfolio / Lynx II / Jaguar / TT030 / Mega STe / 800 XL / 1040 STe / Falcon030 / 65 XE / 520 STm / SM124 / SC1435
DDD HDD / AT Speed C16 / TF536 / SDrive / PAK68/3 / Lynx Multi Card / LDW Super 2000 / XCA12 / SkunkBoard / CosmosEx / SatanDisk / UltraSatan / USB Floppy Drive Emulator / Eiffel / SIO2PC / Crazy Dots / PAM Net
Hatari / Steem SSE / Aranym / Saint
http://260ste.atari.org
joska
Hardware Guru
Hardware Guru
Posts: 5295
Joined: Tue Oct 30, 2007 2:55 pm
Location: Florø, Norway
Contact:

Re: *NEW* OWEATHER - A simple weather app for Atari systems

Post by joska »

You can use it under single-TOS to change your application name, but it only makes sense when you need to make sure that accessories can identify your program by a specific name. So not relevant in most cases.
Jo Even

VanillaMiNT - Falcon060 - Milan060 - Falcon040 - MIST - Mega STE - Mega ST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64
User avatar
robv
Captain Atari
Captain Atari
Posts: 173
Joined: Mon Nov 09, 2020 7:39 pm
Location: Netherlands

Re: *NEW* OWEATHER - A simple weather app for Atari systems

Post by robv »

joska wrote: Sat Jan 01, 2022 11:32 am Just tested this on my Milan running MiNT/XaAES with memory protection enabled, works fine :) I ran into a problem though - I'm living in Florø, Norway, and oWeather seems to only handle pure ASCII. It would be nice if you could use longitude/latitude, or translate the non-ASCII Atari characters.
Ah yes, I've added it as a to do for the next update.

I already fixed sunrise/sunset times for those who live above the arctic circle in these dark days. You will now get the Atari logo instead of hh:mm if the sun is always down (or always up - as in McMurdo, Antartica). Tested it with Hammerfest, but I should have taken Tromsø, then I would have noticed the non-ASCII bug. :D
hammerfest.png
You do not have the required permissions to view the files attached to this post.
Rob
engaged with Atari ST since 1987
User avatar
robv
Captain Atari
Captain Atari
Posts: 173
Joined: Mon Nov 09, 2020 7:39 pm
Location: Netherlands

Re: *NEW* OWEATHER - A simple weather app for Atari systems

Post by robv »

Now at v0.7 with a few updates.
  • Added option to set location by lon/lat coordinates. You can override the accompanying name found by openweathermap with your own place name.
  • Sunrise/sunset times are now calculated based on the timezone as reported by openweathermap.
  • Refresh now works correctly.
http://rob.vousten.nl/atari/downloads/oweather.zip
Rob
engaged with Atari ST since 1987
Bengy
Atari maniac
Atari maniac
Posts: 98
Joined: Sat Jun 16, 2012 12:07 am

Re: *NEW* OWEATHER - A simple weather app for Atari systems

Post by Bengy »

Fantastic work, thank you.
User avatar
TheNameOfTheGame
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2009
Joined: Mon Jul 23, 2012 8:57 pm
Location: Almost Heaven, West Virginia

Re: *NEW* OWEATHER - A simple weather app for Atari systems

Post by TheNameOfTheGame »

Thanks. Getting better and better!
User avatar
robv
Captain Atari
Captain Atari
Posts: 173
Joined: Mon Nov 09, 2020 7:39 pm
Location: Netherlands

Re: *NEW* OWEATHER - A simple weather app for Atari systems

Post by robv »

Good to hear that the little program runs fine on different systems (Milan, Aranym/Mint, MagiC). It just goes to show that the Atari guys at HiSoft (Matthew Bacon and Paul Jones - well worth mentioning their names) came up with a well-designed compiler some 30 years ago.

I am now at version 0.8 which translates city names with UTF8-encoded extended ASCII characters (in the Openweathermap reply) back to Atari-ASCII.

http://rob.vousten.nl/atari/downloads/oweather.zip
Rob
engaged with Atari ST since 1987
Lostboysix
Atari freak
Atari freak
Posts: 70
Joined: Thu Sep 24, 2009 11:39 pm

Re: *NEW* OWEATHER - A simple weather app for Atari systems

Post by Lostboysix »

Hi robv,

you did a really great job! It´s fantastic to have this for MagicPC. Thank you!

Maybe you could add a "minimalistic view" as the window is relatively large to be displayed all the time on the desktop. You could for example decrease the height a lot by reducing the white space on top and the update information at the bottom.
And I think it would be nice, if the Oweather window would open right away after opening the prg.

Also I don´t have any colors, it´s just black and white for me.

But these are just minor things. As said, really good work! :)

Best,

Lostboy
User avatar
robv
Captain Atari
Captain Atari
Posts: 173
Joined: Mon Nov 09, 2020 7:39 pm
Location: Netherlands

Re: *NEW* OWEATHER - A simple weather app for Atari systems

Post by robv »

Lostboysix wrote: Sun Jan 16, 2022 9:05 pm Maybe you could add a "minimalistic view" as the window is relatively large to be displayed all the time on the desktop. You could for example decrease the height a lot by reducing the white space on top and the update information at the bottom.
And I think it would be nice, if the Oweather window would open right away after opening the prg.
Thanks for the feedback!
Now at version 0.9. Included your suggestions. Window now opens at startup and window size is reduced to 240x120 (was 240x160).
http://rob.vousten.nl/atari/downloads/oweather.zip
Rob
engaged with Atari ST since 1987
Lostboysix
Atari freak
Atari freak
Posts: 70
Joined: Thu Sep 24, 2009 11:39 pm

Re: *NEW* OWEATHER - A simple weather app for Atari systems

Post by Lostboysix »

Hi robv,

looks and works perfect.
Great job, thanks! :)
You do not have the required permissions to view the files attached to this post.
User avatar
robv
Captain Atari
Captain Atari
Posts: 173
Joined: Mon Nov 09, 2020 7:39 pm
Location: Netherlands

Re: *NEW* OWEATHER - A simple weather app for Atari systems

Post by robv »

Lostboysix wrote: Sun Jan 30, 2022 10:58 pm looks and works perfect.
Wonderful background you have there! Can you share the img?
Rob
engaged with Atari ST since 1987
Post Reply

Return to “Applications”