Skip to content

Commit

Permalink
🚑 cwb to cwa
Browse files Browse the repository at this point in the history
  • Loading branch information
sk5s committed Sep 16, 2023
1 parent bd9828f commit e133cb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// now in key.js

// api url
const CWB_API = `https://opendata.cwb.gov.tw/api/v1/rest/datastore/F-C0032-001?Authorization=${CWB_KEY}&format=JSON`
const CWB_API = `https://opendata.cwa.gov.tw/api/v1/rest/datastore/F-C0032-001?Authorization=${CWB_KEY}&format=JSON`
// api url
const QUOTE_API = `https://api.quotable.io/random`

Expand Down Expand Up @@ -726,7 +726,7 @@ function handleWeatherWxCIImage(Wx, CI) {
function openRadarModal() {
let modal = document.getElementById('radar_iframe_modal')
let iframe = document.getElementById('radar_iframe')
let url = 'https://www.cwb.gov.tw/V8/C/W/OBS_Radar.html'
let url = 'https://www.cwa.gov.tw/V8/C/W/OBS_Radar.html'
iframe.src = url
modal.classList.add('is-active')
}
Expand Down
2 changes: 1 addition & 1 deletion week/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function getDataService() {
cityUrl = 'F-D0047-031'
break
}
fetch_cwb(`https://opendata.cwb.gov.tw/api/v1/rest/datastore/${cityUrl}?Authorization=${CWB_KEY}&format=JSON`)
fetch_cwb(`https://opendata.cwa.gov.tw/api/v1/rest/datastore/${cityUrl}?Authorization=${CWB_KEY}&format=JSON`)
}

// fetch cwb api
Expand Down

0 comments on commit e133cb4

Please sign in to comment.