Live data from Hacker News

Show HN: Briefsky – a free Dark Sky clone for multiple weather APIs

briefsky.app

41–50 of 72 posts

Re: Show HN: Briefsky – a free Dark Sky clone for multiple weather APIs

#41
post #40
post #37

The US government has a public, free API for getting weather data, and it will spit out JSON even. http://api.weather.gov documentation here: https://www.weather.gov/documentation/services-web-api I never understood why people go through all these other API's that consistently get shut down, cancelled or become pay for use eventually.

Seems to be limited to the US only? Plugging in a random location in Canada and I get "Unable to provide data for requested point 45.5451,-78.8739" Which is really disappointing, since the weather models they use must model the entire world...

Looks like the Canadian govt offers their own API: https://api.weather.gc.ca

Re: Show HN: Briefsky – a free Dark Sky clone for multiple weather APIs

#42
post #41
post #40

Earlier quoted context omitted.

Seems to be limited to the US only? Plugging in a random location in Canada and I get "Unable to provide data for requested point 45.5451,-78.8739" Which is really disappointing, since the weather models they use must model the entire world...

Looks like the Canadian govt offers their own API: https://api.weather.gc.ca

Yes, but if I'm making a website supporting hundreds of different APIs with different schemas and slightly different information available isn't really practical. Local providers aren't really a substitute for a single global source of weather data.

Re: Show HN: Briefsky – a free Dark Sky clone for multiple weather APIs

#43
post #4

Earlier quoted context omitted.

FYI, the iOS Weather app does have this now. If you click on a day in the 10-day forecast, you get a detail view with hour-by-hour forecast data for many metrics. One of them is pressure (although I don't normally look at barometric pressure so maybe this different than what you need). Edit: You can also click on the "pressure" widget and it brings up the same hour-by-hour detail view.

"Chance of precipitation" isn't one of them though, they'll only give you a predicted inches of rainfall. Should I assume that if there's a nonzero amount of rain in the graph it's a definitely going to happen and I should carry around my umbrella? Darksky used to make that really easy to check for the entire day and I'm not loving Weather as a replacement.

I have this exact same bone to pick with the Weather app

Re: Show HN: Briefsky – a free Dark Sky clone for multiple weather APIs

#45
post #9

Would be nice if it automatically uses degrees Celcius instead of Fahrenheit if the location is Europe. Also for visibility and wind speed, km instead of mi.

I considered handling this with some coarse longitude heuristic, but settled on just using the browser's locale for now, so it should default to metric for non-US locales. In the metric setting, the visibility and wind speed will be km and km/h, respectively.

In Australia at least (which uses metric), a lot of people use EN-US as the locale, as it's the default for so many things.

Re: Show HN: Briefsky – a free Dark Sky clone for multiple weather APIs

#46
post #43

Earlier quoted context omitted.

"Chance of precipitation" isn't one of them though, they'll only give you a predicted inches of rainfall. Should I assume that if there's a nonzero amount of rain in the graph it's a definitely going to happen and I should carry around my umbrella? Darksky used to make that really easy to check for the entire day and I'm not loving Weather as a replacement.

I have this exact same bone to pick with the Weather app

Glad I'm not the only one, I was starting to wonder if I was crazy because that felt like the main piece of data in Dark Sky to me. But I saw a lot of iOS news coverage saying basically "Dark Sky is shutting down, but don't worry about it because Weather app has its local forecast features now!"

Meanwhile Weather app completely missed the point and gives me a bunch of stuff I don't care about.

You can tell me that the wind at 4 PM is going to be 5 MPH west northwest but you can't tell me there's a 30% chance of rain? Gee that's great, thanks for shutting down Dark Sky!

Re: Show HN: Briefsky – a free Dark Sky clone for multiple weather APIs

#47

For a long while, I had been looking for Weather Apps with great UIs. They seemed so hard to find. Now I have two that look great on the Desktop and easy on the eyes (ie; without the chaos I find on other sites): https://merrysky.net/ and https://briefsky.app/ Only tested on the Desktop but I'm finding I have to do a bit more work (vs MerrySky) - that is, I have to keep clicking each day. Usability could be improved…

I'm planning to rewrite https://uw.leftium.com/. Any suggestions?

I'm trying to figure out a good way to add 60-min forecast (precipitation in next hour.)

Re: Show HN: Briefsky – a free Dark Sky clone for multiple weather APIs

#48
post #37

The US government has a public, free API for getting weather data, and it will spit out JSON even. http://api.weather.gov documentation here: https://www.weather.gov/documentation/services-web-api I never understood why people go through all these other API's that consistently get shut down, cancelled or become pay for use eventually.

Unfortunately, the NWS API is missing machine readable condition codes/icons in the daily and hourly forecast, which is why it isn't available in briefsky. The API has nearly everything else, though. If I had a solution for those icons, I probably would have added support for their weather alerts too, and also made it the default for US locations. See here for notes on other unsupported providers: https://github.com/…

According to your link it's missing 2 things, and I would argue neither are true.

Sunrise/sunset data can be calculate yourself: https://gml.noaa.gov/grad/solcalc/calcdetails.html

As for the code/icons, there is indeed an 'icon' in the hourly forecast, for example:

From this url: https://api.weather.gov/gridpoints/PDT/31,35/forecast/hourly which returns an hourly forecast for someplace or other, there is this:

"icon": "https://api.weather.gov/icons/land/night/snow,20?size=small",

Re: Show HN: Briefsky – a free Dark Sky clone for multiple weather APIs

#49
post #5

Nice! Small feature request; when I paste in from Google's "copy coordinates" feature, it could detect my paste contents are "coord,coord" and populate the form appropriately, splitting on the ",".

Thanks, I'll add it to my list. At some point I was thinking of adding a location search too, just depends on a free & reliable geocoding API.

- https://open-meteo.com/en/docs/geocoding-api

- https://openweathermap.org/api/geocoding-api

I'm using the openweathermap geocoding API for https://uw.leftium.com/ (IP address -> lat/long -> location)

Source code: https://github.com/Leftium/ultra-weather/blob/0f4ea58d2603f4...

Re: Show HN: Briefsky – a free Dark Sky clone for multiple weather APIs

#50
post #42
post #41

Earlier quoted context omitted.

Looks like the Canadian govt offers their own API: https://api.weather.gc.ca

Yes, but if I'm making a website supporting hundreds of different APIs with different schemas and slightly different information available isn't really practical. Local providers aren't really a substitute for a single global source of weather data.

Assuming all of those things, I agree it's not great, but if you truly need global weather information, you either pay for an API(assuming one exists, I have no idea) or afford to hire developers/dedicate time to make one for you.

I would never expect a govt to provide global weather forecasts for places outside their jurisdiction. Though now I wonder is the US govt one provides weather for the US territories and other US places outside the 50 states. I don't have time to play with that at the moment, sadly.

Post reply on HN