EEWの最終報表示の修正

This commit is contained in:
na2na-p 2022-05-09 15:28:41 +09:00
parent d41c646ed9
commit a78bb8c06a
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View file

@ -3,3 +3,4 @@ built
node_modules
memory.json
font.ttf
memory.json.bak

View file

@ -129,7 +129,7 @@ export default class extends Module {
if (data.report == "final") { // && data.index >= this.thresholdVal - 1
const timeString = `${data.time.getFullYear()}-${(data.time.getMonth() +
1).toString().padStart(2, '0')}-${data.time.getDate().toString().padStart(2, '0')} ${data.time.getHours().toString().padStart(2, '0')}:${data.time.getMinutes().toString().padStart(2, '0')}:${data.time.getSeconds().toString().padStart(2, '0')}`;
this.message = `\`\`\`\n緊急地震速報(最終報)\n${timeString}\n震源地: ${data.epicenter}\n震源の深さ: ${data.depth}km\n最大震度: ${this.earthquakeIntensityIndex[data.index + 1]}\nマグニチュード: ${data.magnitude}\n\`\`\``;
this.message = `\`\`\`\n緊急地震速報(最終報)\n${timeString}\n震源地: ${data.epicenter}\n震源の深さ: ${data.depth}\n最大予測震度: ${this.earthquakeIntensityIndex[data.index + 1]}\nマグニチュード: ${data.magnitude}\n\`\`\``;
}
}