This is a fantastic program.
I would like more info on how the weather is looked up and what could be done to integrate all cities into the lookup. I also use c64os and the ReadyChat app has a city lookup in it that I am also curious about.
Viewing post in Ultimate Desk (C64) comments
Thanks! I’m glad you’re enjoying the program.
Ultimate Desk’s weather lookup has two separate parts: finding a location’s coordinates, and fetching the weather for those coordinates.
In the released R12.2 version, the first part uses an internal database containing 609 locations and 1,309 accepted names and spellings. Once it finds the latitude and longitud, Ultimate Desk requests the temperature and weather condition from Open-Meteo. The weather service works by co-ordinates, so the city restriction comes from Ultimate Desks name lookup.
An earlier online city search proved unreliable, which is why this release uses the internal list. For much broader worldwide coverage, a good approach would be an online geocoding service: enter a city, select the correct country/state from matching results, and save its coordinates locally. Open-Meteo provides a global location-search API that could support this, potentially through a small HTTP-compatible gateway for the C64. Other possible additions are manual latitude/longitude entry or a larger, indexed city database on disk. These would require further development.