Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

download_weather() failed to download files #452

Closed
hongyuanjia opened this issue Sep 14, 2021 · 1 comment · Fixed by #454
Closed

download_weather() failed to download files #452

hongyuanjia opened this issue Sep 14, 2021 · 1 comment · Fixed by #454
Assignees
Milestone

Comments

@hongyuanjia
Copy link
Owner

eplusr::download_weather("Singapore", dir = tempdir(), ask = FALSE, max_match = 1)
#> One matched results found. Start downloading:
#> -- SGP_Singapore.486980_IWEC ---------------------------------------------------
#>  * Country: Singapore
#>  * State or Province: 
#>  * Location: Singapore
#>  * WMO number: 486980
#>  * Source type: IWEC
#>  * Longitude: 103.98
#>  * Latitude: 1.37
#> Warning in utils::download.file(url, dest, mode = "wb"): cannot open URL
#> 'https://energyplus.net/weather-download/southwest_pacific_wmo_region_5/SGP//
#> SGP_Singapore.486980_IWEC/SGP_Singapore.486980_IWEC.epw': HTTP status was '404
#> Not Found'
#> Error in utils::download.file(url, dest, mode = "wb"): cannot open URL 'https://energyplus.net/weather-download/southwest_pacific_wmo_region_5/SGP//SGP_Singapore.486980_IWEC/SGP_Singapore.486980_IWEC.epw'

Created on 2021-09-14 by the reprex package (v2.0.1)

@hongyuanjia
Copy link
Owner Author

hongyuanjia commented Sep 14, 2021

This issue was caused by that all weather data are now stored and distributed via Amazon S3 under another domain: https://energyplus-weather.s3.amazonaws.com, instead of the previous https://energyplus.net/weather-download

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant