aceinnolab / Inkycal

Create awesome e-paper dashboards within minutes! Modularity? Check! Python3? Check? Works on Raspberry Pi Zero W? Check! Support for own modules? Check!
https://aceinnolab.github.io/Inkycal/
GNU General Public License v3.0
1.16k stars 125 forks source link

Error during connection using weather API #28

Closed anglewf closed 5 years ago

anglewf commented 5 years ago

We get this error when trying to run the code. We have set the API key in the setting.py and not sure what the problem is. Thanks for your help

Calibration complete
Connecting to Openweathermap API servers...
1
Traceback (most recent call last):
  File "E-Paper.py", line 446, in <module>
    main()
  File "E-Paper.py", line 152, in main
    observation = owm.weather_at_place(location)
  File "/usr/local/lib/python3.5/dist-packages/pyowm/weatherapi25/owm25.py", line 231, in weather_at_place
    _, json_data = self._wapi.cacheable_get_json(uri, params=params)
  File "/usr/local/lib/python3.5/dist-packages/pyowm/commons/http_client.py", line 87, in cacheable_get_json
    status_code, data = self.get_json(uri, params=params, headers=headers)
  File "/usr/local/lib/python3.5/dist-packages/pyowm/commons/http_client.py", line 32, in get_json
    HttpClient.check_status_code(resp.status_code, resp.text)
  File "/usr/local/lib/python3.5/dist-packages/pyowm/commons/http_client.py", line 155, in check_status_code
    raise api_response_error.NotFoundError('Unable to find the resource')
pyowm.exceptions.api_response_error.NotFoundError: The searched item was not found.
Reason: Unable to find the resource
aceisace commented 5 years ago

@anglewf Hi, thanks for interest in this software and for opening your first issue :).

About the error you're getting, it seems to be related to a 404 error (i.e. not found error). As this may be caused by a variety of reasons, please try the following first to narrow down the cause,

Do let me know of the problem was fixed. Thanks in advance.

aceisace commented 5 years ago

@anglewf Hi, has your problem been solved now? If yes, please don't forget to close this issue, otherwise, please provide some additional feedback. Thanks in advance.

aceisace commented 5 years ago

Closing issue due to lack of feedback. If you feel a need to re-open the issue, please feel free to do so.

aceisace commented 4 years ago

@anglewf If you're still interested in a possible solution, please check the specified location in the settings file. Click here on how to select the correct location