The meteofrance backend is still basic, but implements all methods and give a correct result.
Signed-off-by: Cedric <cedric@aiur.fr>
This commit is contained in:
parent
714b1be9ad
commit
14ac02bac5
4 changed files with 78 additions and 43 deletions
|
|
@ -40,8 +40,11 @@ class MeteofranceBackend(BaseBackend, ICapWeather):
|
|||
def create_default_browser(self):
|
||||
return self.create_browser()
|
||||
|
||||
def get_weather(self, city_id):
|
||||
return self.browser.get_weather(city_id)
|
||||
def get_current(self, city_id):
|
||||
return self.browser.get_current(city_id.split("@")[0])
|
||||
|
||||
def iter_forecast(self, city_id):
|
||||
return self.browser.iter_forecast(city_id.split("@")[0])
|
||||
|
||||
def iter_city_search(self, pattern):
|
||||
return self.browser.iter_city_search(pattern.replace(' ','+'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue