Coder Social home page Coder Social logo

Comments (9)

cloneofghosts avatar cloneofghosts commented on June 2, 2024

From what I can tell MerrySky does their own processing on the hourly data to categorize them as Light Rain/Rain/etc. whereas BriefSky is showing the data directly from the API. I also see you created this issue on BriefSky which I'll link here as well.

There is already an issue open to implement text summaries/descriptions (#48) but it seems to be more of a long-term goal so I wouldn't expect it as part of the V2 update. I did mention in that issue that maybe getting the translations/descriptions working would be a good first step and then the summaries can come later.

Another thing to note is that MerrySky does have caching enabled which is why there may be differences between the two outputs as it seems like BriefSky uses your own API key and gets the most up-to-date data available.

from pirateweather.

patel-jeel92 avatar patel-jeel92 commented on June 2, 2024

I looked at the dark sky translation repo. I am not sure if i understand the concept. Seems like their API was producing structured expressions that were then used to get a human readable summaries from the translation files (en.json) for example. Would pirate weather need to create the structured expression for this to work?

from pirateweather.

cloneofghosts avatar cloneofghosts commented on June 2, 2024

Yes, DarkSky used the translation repo in their app to produce the summaries/descriptions. We don't know how they used the repo in their API since the code that produced the API isn't open source.

@alexander0042 would need to write the code in order to produce the human readable summaries using the translation repo. I believe he mentioned that he was working on creating the human readable summaries before he started work on V2 of the API.

from pirateweather.

patel-jeel92 avatar patel-jeel92 commented on June 2, 2024

I see, Do you know if there is a way to run pirate weather locally or self host it with the complete architecture? Maybe if that was possible we could have other people look into it

from pirateweather.

cloneofghosts avatar cloneofghosts commented on June 2, 2024

Unfortunately there is no way to self-host or run the API locally at the moment. There is this issue #11 and it's part of the V2 road map.

from pirateweather.

patel-jeel92 avatar patel-jeel92 commented on June 2, 2024

@alexander0042 any plans to use https://github.com/blaylockbk/Herbie? seems like this would help with processing the grib files?

from pirateweather.

cloneofghosts avatar cloneofghosts commented on June 2, 2024

He did submit a PR in the Herbie repository so it looks like he is intending to use it in V2 of the API.

We're starting to get a bit off-topic here so unless the dev of BriefSky wants to implement his own processing you'd have to wait until #48 is solved for the inconsistencies end. If you'd like to discuss about open-sourcing/self-hosting you can do so here #11

Unfortunately, I cannot provide any more information as I don't have any access to the back-end code so you'll have to wait for @alexander0042 to reply with more info. He usually tries to respond to items on GitHub a couple of times a week depending on how busy he is.

from pirateweather.

alexander0042 avatar alexander0042 commented on June 2, 2024

Hey, thanks for opening this issue, and also cluing me into Briefsky, which I hadn't seen before!

To answer your initial question- I suspect the reason they're different is because Merrysky always calls the midnight forecast, which is a clever workaround to the daily high/ daily low bug; however, sometimes leads to differences in data throughout the day. V2 addresses this (including using the wonderful Herbie), so should fix this problem soon!

The self hosting question is a long running one, My goal here is to make the code open so people know where their weather data is coming from; hpowever, since everything is so tied into AWS actual self hosting is going to be very tricky to make possible. To be honest, there are some really cool AI forecasting products coming online now, and I think that's a better approach for anyone that wants to self host something. I can't think of a good use case of self hosting a weather API of the model data is still being provided by the cloud.

And text descriptions are high on the list, just need to code it! It'll be after V2, but no too far after

from pirateweather.

patel-jeel92 avatar patel-jeel92 commented on June 2, 2024

@alexander0042 Thanks for the input! I will look into how to all the midnight forecast to address the bug until V2 is out.

Also the only missing part from the open source is how to extract data from the processed file when a query for a certain latitute and longitude comes in. I dont know how to how that process is being done and it would be cool to learn.

from pirateweather.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.