Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Adapt to change in NIED images API
Browse files Browse the repository at this point in the history
  • Loading branch information
o5k committed Oct 1, 2019
1 parent 7e4a06d commit 0b1e2fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nied-chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ function tryGetGraph(jptime, success, failure) {
return;
}

downloadImage(`http://www.kmoni.bosai.go.jp/new/data/map_img/RealTimeImg/acmap_s/${jptime.substring(0, 8)}/${jptime}.acmap_s.gif`, (pga) => {
downloadImage(`http://www.kmoni.bosai.go.jp/new/data/map_img/PSWaveImg/eew/${jptime.substring(0, 8)}/${jptime}.eew.gif`, (pswave) => {
downloadImage(`http://www.kmoni.bosai.go.jp/new/data/map_img/EstShindoImg/eew/${jptime.substring(0, 8)}/${jptime}.eew.gif`, (estshindo) => {
downloadImage(`http://www.kmoni.bosai.go.jp/data/map_img/RealTimeImg/acmap_s/${jptime.substring(0, 8)}/${jptime}.acmap_s.gif`, (pga) => {
downloadImage(`http://www.kmoni.bosai.go.jp/data/map_img/PSWaveImg/eew/${jptime.substring(0, 8)}/${jptime}.eew.gif`, (pswave) => {
downloadImage(`http://www.kmoni.bosai.go.jp/data/map_img/EstShindoImg/eew/${jptime.substring(0, 8)}/${jptime}.eew.gif`, (estshindo) => {
composeTotal(pga, pswave, estshindo, tempPath, tempPathEst, tempPathEst2, tempPathNoEst, wildPath, finalPath, () => {
fs.unlink(pga, ()=>{});
if (pswave !== 'assets/blank.gif') {
Expand Down

0 comments on commit 0b1e2fd

Please sign in to comment.