noaa icon indicating copy to clipboard operation
noaa copied to clipboard

301 Moved

Open ProTip opened this issue 14 years ago • 4 comments

This gem uses net/http. net/http does not follow redirects it would seem. NOAA moved the page :( .

ProTip avatar Oct 02 '11 09:10 ProTip

So no chance of this working? I was really hoping this Gem would pull through for marine forecast data.

Do you know of any alternatives, RazorX?

jacomarcon avatar Nov 29 '11 04:11 jacomarcon

I ended up rolling my own gem. I replaced net/http with 'open-uri'(which follows redirects). The other obvious option would be to change the url and I'm not sure why I didn't do that lol.

ProTip avatar Nov 29 '11 04:11 ProTip

Oh cool - is it at all possible that you would share your gem with me? I'm looking to integrate marine forecasts, but if yours handles mainly weather (no sea temp, wave heights, etc..) then don't worry about it. I really appreciate the speedy reply though, github is about to become a regular visitation spot.

Thanks again.

--Jacob Hunt

On Mon, Nov 28, 2011 at 11:43 PM, Greg Zapp < [email protected]

wrote:

I ended up rolling my own gem. I replaced net/http with 'open-uri'(which follows redirects). The other obvious option would be to change the url and I'm not sure why I didn't do that lol.


Reply to this email directly or view it on GitHub: https://github.com/outoftime/noaa/issues/4#issuecomment-2912859

Jacob Hunt

jacomarcon avatar Nov 29 '11 04:11 jacomarcon

I actually just modified this project and created a gem from it. If you'd like, just send me your email and I'll send you the gem.

ProTip avatar Nov 29 '11 05:11 ProTip