Live data from Hacker News

WeatherKit

developer.apple.com

101–110 of 203 posts

Re: WeatherKit

#101
post #86
post #78

Earlier quoted context omitted.

Quite interesting reasoning given in how many places the state intervenes and how high taxes are. Though then again not that surprising that they manage to publicly fund something and then ruin it, leaving the taxpayer in the worst condition. I believe there’s even no official source of laws online in Germany decades after the internet has made it cheap and easy to provide access to information.

No disagreement on the weird reasoning from me, but I don't think the part about the laws is true. gesetze-im-internet.de is, according to their Impress, run by the ministry of justice.

They law part is not true, according to the website they provide almost all of the German laws. The site is also linked from the ministry of justice itself, so it is definitely legit: https://www.bmj.de/DE/Service/GesetzeInternet/GesetzeInterne... They even have an RSS feed when laws are updated: https://www.gesetze-im-internet.de/aktuDienst.html (Funnily enough, they also say IE 6 does not support the RSS feed)

Re: WeatherKit

#102
post #20

The Norwegian Meteorological Institute has an excellent free HTTP/JSON weather API that covers the globe. No signup required. https://developer.yr.no

Lucky for them that they’re not a public service in Germany, otherwise they would get sued for unfair competition (and lose): https://www.deskmodder.de/blog/2020/03/12/kostenlose-warnwet...

This is comparing apples to pears, as the saying goes.

Only the free app was deemed anticompetitive. All the data is available: Geoservers: https://maps.dwd.de/geoserver/web/ (weather and warnings) https://cdc.dwd.de/geoserver/web/ (climate infomarmation) https://www.dwd.de/DE/leistungen/geodienste/geodienste.html (Overview)

You are also free to embed all the information from the website (maps, etc.) and there is also the raw data server: https://opendata.dwd.de/

Re: WeatherKit

#103

Earlier quoted context omitted.

This is deliberate. Jobs saw what the calculator app looked like on an iPad and pulled it at the last minute. This is a problem specifically caused by the iPad's design. On desktop you just prohibit the user from making the calculator app window bigger than reasonable and that's that. But iPads require that the current app fill the entire screen, so any apps that can't are really awkward and frustrating to use - as c…

Sure, but they've had 12 years to solve this problem.

Is it really a problem though?

Re: WeatherKit

#104
post #92

I don't really know Swift, but does the following line from that site make any sense? "And with Swift concurrency, it’s easy to request weather data with just a few lines of code."

Basically just saying you can use async/await to fetch the data, I think

Re: WeatherKit

#105
post #63

Earlier quoted context omitted.

Lucky for them that they’re not a public service in Germany, otherwise they would get sued for unfair competition (and lose): https://www.deskmodder.de/blog/2020/03/12/kostenlose-warnwet...

They still publish all their data free of charge and are required to do so by law. For weather forecast, they dump all parameters of their recent model runs. So I guess I'm saying that you can already build such a system yourself quite trivially...

The app „Tiny Weather Forecast Germany“ (https://codeberg.org/Starfish/TinyWeatherForecastGermany) seems to exactly make use of that. There are probably others, but it is the only one I found on F-Droid.

Re: WeatherKit

#106
post #101
post #86

Earlier quoted context omitted.

No disagreement on the weird reasoning from me, but I don't think the part about the laws is true. gesetze-im-internet.de is, according to their Impress, run by the ministry of justice.

They law part is not true, according to the website they provide almost all of the German laws. The site is also linked from the ministry of justice itself, so it is definitely legit: https://www.bmj.de/DE/Service/GesetzeInternet/GesetzeInterne... They even have an RSS feed when laws are updated: https://www.gesetze-im-internet.de/aktuDienst.html (Funnily enough, they also say IE 6 does not support the RSS feed)

It’s legit but not complete, it’s not the official form (amtliche Fassung) and only the current laws, not the historic view. In Austria for instance RIS is much more complete: https://www.ris.bka.gv.at/

Edit: not directly related but a fun fact: in Switzerland you can get a copy of the constitutional laws for free at any bookstore and it’s supposed to be understandable for normal citizens and not only for lawyers.

Re: WeatherKit

#107
post #17

Earlier quoted context omitted.

There is a rest api. > It’s easy to use WeatherKit in your apps for iOS 16, iPadOS 16, macOS 13, tvOS 16, and watchOS 9 with a platform-specific Swift API, and on any other platform with a REST API. [edited for tone]

I was questioning why WeatherKit needs a "platform-specific Swift API" at all. If the general REST API in Swift is good then WeatherKit can be integrated into Swift apps as easily as any other service. If it's not easy then improvements to the general REST API could be considered.

Types is at least one thing that immediately comes to mind

Re: WeatherKit

#108
post #19

Earlier quoted context omitted.

Apple has continued to take on services third parties previously used to exploit the private information of Apple’s customers. This includes Apple Card, but also the recently introduced multi-week payment options Apple is offering to buy its products. (Previously offered by other services “for free.”) I have no doubt that Apple is looking at how data is leaking across the ecosystem and is seeking to stop it as much a…

> I have no doubt that Apple is looking at how data is leaking across the ecosystem and is seeking to stop it as much as possible. I have no doubt that Apple is looking to exploit it to their exclusive advantage as much as possible, while marketing it under the guise of their privacy measures.

Why not both? If privacy is another thing that sells, then it’s a win-win for them. Especially since no-one else seems to care about it.

Re: WeatherKit

#109
post #19

Earlier quoted context omitted.

Apple has continued to take on services third parties previously used to exploit the private information of Apple’s customers. This includes Apple Card, but also the recently introduced multi-week payment options Apple is offering to buy its products. (Previously offered by other services “for free.”) I have no doubt that Apple is looking at how data is leaking across the ecosystem and is seeking to stop it as much a…

> I have no doubt that Apple is looking at how data is leaking across the ecosystem and is seeking to stop it as much as possible. I have no doubt that Apple is looking to exploit it to their exclusive advantage as much as possible, while marketing it under the guise of their privacy measures.

Seems like a win/win when the customers and businesses interests align.

No one is pretending Apple is a charity. Of course they do all this for obscene amounts of profit. But if we get stronger privacy as a side effect, I think that’s a generally okay situation.

Re: WeatherKit

#110
Glad to see this released publicly! I used it internally last year, and it was frustrating but useful (mostly relating to not having access rights and quickly changing versions).
Post reply on HN