[meteofrance] no forecasts
Hi!
I'm running wetboobs 1.2 on Debian Stretch (this is the latest available version on Debian stable).
Wetboobs+meteofrance either don't give any forecasts, or complains about two objects having the same ID.
Other backends, for example lameteoagricole, work well.
Simple example:
$ wetboobs
Welcome to wetboobs v1.2
Copyright(C) 2010-2017 Romain Bignon
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Type "help" to display available commands.
Loaded backends: meteofrance
wetboobs> cities marseille
1 — marseille (meteofrance)
2 — marseillette (meteofrance)
3 — marseille-en-beauvaisis (meteofrance)
4 — marseilles-les-aubigny (meteofrance)
wetboobs:/cities> forecasts 1
wetboobs:/cities> forecasts 2
2017-09-26 23:15:48,793:WARNING:iter_cities:1.2:elements.py:193:store There are two objects with the same ID! 11800
2017-09-26 23:15:48,794:WARNING:iter_cities:1.2:elements.py:193:store There are two objects with the same ID! 11800
2017-09-26 23:15:48,795:WARNING:iter_cities:1.2:elements.py:193:store There are two objects with the same ID! 11800
2017-09-26 23:15:48,796:WARNING:iter_cities:1.2:elements.py:193:store There are two objects with the same ID! 11800
2017-09-26 23:15:48,797:WARNING:iter_cities:1.2:elements.py:193:store There are two objects with the same ID! 11800
2017-09-26 23:15:48,798:WARNING:iter_cities:1.2:elements.py:193:store There are two objects with the same ID! 11800
2017-09-26 23:15:48,799:WARNING:iter_cities:1.2:elements.py:193:store There are two objects with the same ID! 11800
2017-09-26 23:15:48,800:WARNING:iter_cities:1.2:elements.py:193:store There are two objects with the same ID! 11800
2017-09-26 23:15:48,801:WARNING:iter_cities:1.2:elements.py:193:store There are two objects with the same ID! 11800
wetboobs:/cities> quit
The same example with the '-d' option:
$ wetboobs -d
2017-09-26 23:26:23,523:DEBUG:modules:1.2:modules.py:162:load_module Loaded module "meteofrance" from /users/darniere/.local/share/weboob/modules/1.2/meteofrance
2017-09-26 23:26:23,524:DEBUG:backend:1.2:modules.py:93:create_instance Created backend "meteofrance" for module "meteofrance"
2017-09-26 23:26:23,525:DEBUG:root:1.2:iniconfig.py:45:load Loading application configuration file: /users/darniere/.config/weboob/wetboobs.
2017-09-26 23:26:23,525:DEBUG:root:1.2:iniconfig.py:62:load Application configuration file loaded: /users/darniere/.config/weboob/wetboobs.
Welcome to wetboobs v1.2
Copyright(C) 2010-2017 Romain Bignon
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Type "help" to display available commands.
Loaded backends: meteofrance
wetboobs> cities marseille
2017-09-26 23:26:28,425:DEBUG:bcall:1.2:bcall.py:91:backend_process <Backend 'meteofrance'>: Calling function <bound method WetBoobs._do_complete of <weboob.applications.wetboobs.wetboobs.WetBoobs object at 0x7f94583d4a90>>
2017-09-26 23:26:28,427:DEBUG:requests.packages.urllib3.util.retry:1.2:retry.py:191:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None)
2017-09-26 23:26:28,427:DEBUG:requests.packages.urllib3.util.retry:1.2:retry.py:191:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None)
2017-09-26 23:26:28,437:DEBUG:requests.packages.urllib3.connectionpool:1.2:connectionpool.py:212:_new_conn Starting new HTTP connection (1): www.meteofrance.com
2017-09-26 23:26:28,611:DEBUG:requests.packages.urllib3.connectionpool:1.2:connectionpool.py:400:_make_request http://www.meteofrance.com:80 "GET /mf3-rpc-portlet/rest/lieu/facet/previsions/search/marseille HTTP/1.1" 200 None
2017-09-26 23:26:28,618:DEBUG:backend.meteofrance.browser:1.2:browsers.py:664:internal_callback Handle http://www.meteofrance.com/mf3-rpc-portlet/rest/lieu/facet/previsions/search/marseille with SearchCitiesPage
2017-09-26 23:26:28,618:DEBUG:bcall:1.2:bcall.py:100:backend_process <Backend 'meteofrance'>: Called function <bound method WetBoobs._do_complete of <weboob.applications.wetboobs.wetboobs.WetBoobs object at 0x7f94583d4a90>> returned: <generator object _do_complete_iter at 0x7f9450ce9cd0>
1 — marseille (meteofrance)
2 — marseillette (meteofrance)
3 — marseille-en-beauvaisis (meteofrance)
4 — marseilles-les-aubigny (meteofrance)
wetboobs:/cities> forecasts 1
2017-09-26 23:26:34,283:DEBUG:bcall:1.2:bcall.py:91:backend_process <Backend 'meteofrance'>: Calling function <bound method WetBoobs._do_complete of <weboob.applications.wetboobs.wetboobs.WetBoobs object at 0x7f94583d4a90>>
2017-09-26 23:26:34,286:DEBUG:requests.packages.urllib3.connectionpool:1.2:connectionpool.py:247:_get_conn Resetting dropped connection: www.meteofrance.com
2017-09-26 23:26:34,460:DEBUG:requests.packages.urllib3.connectionpool:1.2:connectionpool.py:400:_make_request http://www.meteofrance.com:80 "GET /mf3-rpc-portlet/rest/lieu/facet/previsions/search/13000 HTTP/1.1" 200 None
2017-09-26 23:26:34,461:DEBUG:backend.meteofrance.browser:1.2:browsers.py:664:internal_callback Handle http://www.meteofrance.com/mf3-rpc-portlet/rest/lieu/facet/previsions/search/13000 with SearchCitiesPage
2017-09-26 23:26:34,539:DEBUG:requests.packages.urllib3.connectionpool:1.2:connectionpool.py:400:_make_request http://www.meteofrance.com:80 "GET /previsions-meteo-france/marseille/13000 HTTP/1.1" 200 None
2017-09-26 23:26:34,633:DEBUG:backend.meteofrance.browser:1.2:browsers.py:664:internal_callback Handle http://www.meteofrance.com/previsions-meteo-france/marseille/13000 with WeatherPage
2017-09-26 23:26:34,634:DEBUG:bcall:1.2:bcall.py:100:backend_process <Backend 'meteofrance'>: Called function <bound method WetBoobs._do_complete of <weboob.applications.wetboobs.wetboobs.WetBoobs object at 0x7f94583d4a90>> returned: <generator object _do_complete_iter at 0x7f94504687d0>
wetboobs:/cities> forecasts 2
2017-09-26 23:26:37,562:DEBUG:bcall:1.2:bcall.py:91:backend_process <Backend 'meteofrance'>: Calling function <bound method WetBoobs._do_complete of <weboob.applications.wetboobs.wetboobs.WetBoobs object at 0x7f94583d4a90>>
2017-09-26 23:26:37,642:DEBUG:requests.packages.urllib3.connectionpool:1.2:connectionpool.py:400:_make_request http://www.meteofrance.com:80 "GET /mf3-rpc-portlet/rest/lieu/facet/previsions/search/11800 HTTP/1.1" 200 None
2017-09-26 23:26:37,714:DEBUG:backend.meteofrance.browser:1.2:browsers.py:664:internal_callback Handle http://www.meteofrance.com/mf3-rpc-portlet/rest/lieu/facet/previsions/search/11800 with SearchCitiesPage
2017-09-26 23:26:37,719:WARNING:iter_cities:1.2:elements.py:193:store There are two objects with the same ID! 11800
2017-09-26 23:26:37,720:WARNING:iter_cities:1.2:elements.py:193:store There are two objects with the same ID! 11800
2017-09-26 23:26:37,721:WARNING:iter_cities:1.2:elements.py:193:store There are two objects with the same ID! 11800
2017-09-26 23:26:37,722:WARNING:iter_cities:1.2:elements.py:193:store There are two objects with the same ID! 11800
2017-09-26 23:26:37,723:WARNING:iter_cities:1.2:elements.py:193:store There are two objects with the same ID! 11800
2017-09-26 23:26:37,724:WARNING:iter_cities:1.2:elements.py:193:store There are two objects with the same ID! 11800
2017-09-26 23:26:37,724:WARNING:iter_cities:1.2:elements.py:193:store There are two objects with the same ID! 11800
2017-09-26 23:26:37,726:WARNING:iter_cities:1.2:elements.py:193:store There are two objects with the same ID! 11800
2017-09-26 23:26:37,726:WARNING:iter_cities:1.2:elements.py:193:store There are two objects with the same ID! 11800
2017-09-26 23:26:37,982:DEBUG:requests.packages.urllib3.connectionpool:1.2:connectionpool.py:400:_make_request http://www.meteofrance.com:80 "GET /previsions-meteo-france/aigues-vives/11800 HTTP/1.1" 200 None
2017-09-26 23:26:38,069:DEBUG:backend.meteofrance.browser:1.2:browsers.py:664:internal_callback Handle http://www.meteofrance.com/previsions-meteo-france/aigues-vives/11800 with WeatherPage
2017-09-26 23:26:38,070:DEBUG:bcall:1.2:bcall.py:100:backend_process <Backend 'meteofrance'>: Called function <bound method WetBoobs._do_complete of <weboob.applications.wetboobs.wetboobs.WetBoobs object at 0x7f94583d4a90>> returned: <generator object _do_complete_iter at 0x7f94504888c0>
wetboobs:/cities> quit