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

OSMC link with OceanOPS down, no tsunami buoys visible #24

Open
LongJiangOceanOPS opened this issue Oct 20, 2023 · 1 comment
Open

OSMC link with OceanOPS down, no tsunami buoys visible #24

LongJiangOceanOPS opened this issue Oct 20, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@LongJiangOceanOPS
Copy link

Context/theme

DBCP

Other context (if applicable)

No response

Describe the bug

OSMC link with OceanOPS down, no tsunami buoys visible

To reproduce

No response

Expected behaviour

No response

Software/browsing information

No response

Other information

No response

@LongJiangOceanOPS LongJiangOceanOPS added the bug Something isn't working label Oct 20, 2023
@MKrieger29
Copy link
Collaborator

MKrieger29 commented Nov 3, 2023

Error in log file:
2023-08-12 07:00:12,853 ERROR l.66: HTTPSConnectionPool(host='osmc.noaa.gov', port=443): Max retries exceeded with url: /erddap/tabledap/OSMC_flattened.csv?platform_code,time,latitude,longitude,observation_depth,water_col_ht&platform_type=%22TSUNAMI%20WARNING%20STATIONS%22&time%3E=2023-08-07T00:00:00Z&water_col_ht%3E=-100 (Caused by SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:997)')))

In the load_osmc_obs_tsuna.py script, the link used to access the data is:
--# URL info
startDate = date.today() - timedelta(5)
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36'
}
dataUrl = "http://osmc.noaa.gov/erddap/tabledap/OSMC_flattened.csv?platform_code,time,latitude,longitude,observation_depth,water_col_ht&platform_type=%22TSUNAMI%20WARNING%20STATIONS%22&time>={startDate}&water_col_ht>=-100"
url = dataUrl.format(startDate=startDate.isoformat() + "T00:00:00Z")
filename = "osmc_tsunameters_obs.csv"
filenameDate = date.today().strftime("%Y%m%d") + "_" + filename

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants