*NEW* OWEATHER - A simple weather app for Atari systems
Moderators: Mug UK, Zorro 2, Moderator Team
*NEW* OWEATHER - A simple weather app for Atari systems
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.
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
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
engaged with Atari ST since 1987
Re: *NEW* OWEATHER - A simple weather app for Atari systems
Hi Rob,
nice one, I like it!
Works well on my Aranym/Mint.
nice one, I like it!
Works well on my Aranym/Mint.
Re: *NEW* OWEATHER - A simple weather app for Atari systems
Nice work, it looks very good.
Re: *NEW* OWEATHER - A simple weather app for Atari systems
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.
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
engaged with Atari ST since 1987
- TheNameOfTheGame
- 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
Haha, nice one. Looks good!
Re: *NEW* OWEATHER - A simple weather app for Atari systems
ha ha ha good job.
I guess doing this programming may be more fun than trying to install Magixnet.
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
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
Re: *NEW* OWEATHER - A simple weather app for Atari systems
This is going on all my Ataris, thanks!!!
Re: *NEW* OWEATHER - A simple weather app for Atari systems
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.
Rob
engaged with Atari ST since 1987
engaged with Atari ST since 1987
Re: *NEW* OWEATHER - A simple weather app for Atari systems
robv is that window style part of the app, or do you have a desktop theme?
Re: *NEW* OWEATHER - A simple weather app for Atari systems
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
engaged with Atari ST since 1987
Re: *NEW* OWEATHER - A simple weather app for Atari systems
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
VanillaMiNT - Falcon060 - Milan060 - Falcon040 - MIST - Mega STE - Mega ST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64
Re: *NEW* OWEATHER - A simple weather app for Atari systems
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.
http://toshyp.atari.org/en/00800f.html#menu_register
Edit: I should know now to never trust my memory alone

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
VanillaMiNT - Falcon060 - Milan060 - Falcon040 - MIST - Mega STE - Mega ST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64
Re: *NEW* OWEATHER - A simple weather app for Atari systems
Wow, looks really nice!
Ain't no space like PeP-space.
Re: *NEW* OWEATHER - A simple weather app for Atari systems
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
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
Re: *NEW* OWEATHER - A simple weather app for Atari systems
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
VanillaMiNT - Falcon060 - Milan060 - Falcon040 - MIST - Mega STE - Mega ST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64
Re: *NEW* OWEATHER - A simple weather app for Atari systems
Ah yes, I've added it as a to do for the next update.joska wrote: ↑Sat Jan 01, 2022 11:32 am Just tested this on my Milan running MiNT/XaAES with memory protection enabled, works fineI 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.
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.

You do not have the required permissions to view the files attached to this post.
Rob
engaged with Atari ST since 1987
engaged with Atari ST since 1987
Re: *NEW* OWEATHER - A simple weather app for Atari systems
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.
Rob
engaged with Atari ST since 1987
engaged with Atari ST since 1987
Re: *NEW* OWEATHER - A simple weather app for Atari systems
Fantastic work, thank you.
- TheNameOfTheGame
- 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
Thanks. Getting better and better!
Re: *NEW* OWEATHER - A simple weather app for Atari systems
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
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
engaged with Atari ST since 1987
-
- Atari freak
- Posts: 70
- Joined: Thu Sep 24, 2009 11:39 pm
Re: *NEW* OWEATHER - A simple weather app for Atari systems
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
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
Re: *NEW* OWEATHER - A simple weather app for Atari systems
Thanks for the feedback!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.
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
engaged with Atari ST since 1987
-
- Atari freak
- Posts: 70
- Joined: Thu Sep 24, 2009 11:39 pm
Re: *NEW* OWEATHER - A simple weather app for Atari systems
Hi robv,
looks and works perfect.
Great job, thanks!
looks and works perfect.
Great job, thanks!

You do not have the required permissions to view the files attached to this post.
Re: *NEW* OWEATHER - A simple weather app for Atari systems
Wonderful background you have there! Can you share the img?
Rob
engaged with Atari ST since 1987
engaged with Atari ST since 1987