Closed (fixed)
Project:
OpenWeather
Version:
8.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
23 Mar 2017 at 14:20 UTC
Updated:
21 Oct 2021 at 04:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jrochate commentedThe account can be created here:
http://www.geonames.org/
Then, the new username can be inserted on line 126 of src/WeatherService.php
NOTE: This will be overridden if module updates.
Comment #3
jeremiezip commentedHello,
I wrote a patch for fix different problem with geonames webservice.
In the config form, now you can save your geonames username. (instead of default "demo" username).
Bye.
Comment #4
osab commentedI think #3 is mandatory for this project.
Without it I got error
cURL error 6: Could not resolve host: ws.geonames.org (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)Comment #5
osab commentedComment #6
jeremiezip commentedHello, this is my new version of geonames patch. I added a Try ... Catch... for avoid API crashes.
Thanks
Comment #7
jeremiezip commentedNew version of patch : adding round temp min and round temp max (for avoid temperature displayed with this format : 15.6555°C)
Comment #8
Chris Charlton+1
Comment #9
Chris CharltonComment #10
Chris CharltonPatch #7 was helpful.
Comment #11
blakemorgan commentedThe patch in #7 does not apply for me using Composer or when I do it manually. I get the error (when running Composer with verbosity)
Executing command (CWD): patch '-p4' --no-backup-if-mismatch -d 'web/modules/contrib/openweather' < '/tmp/5d042684a97dd.patch'. Am I the only one the patch doesn't work for?Comment #12
jeremiezip commentedHello Blakemorgan,
This patch works with the dev version. Maybe your problem is here ?
Comment #13
Chris CharltonRTBC, anyone else?
Comment #14
prashant114606 commentedI see the issue with the syntax. please check the attached SS for more information.
Comment #16
generalredneckI did the cleanup here and got it committed.