mirror of
https://github.com/syuilo/ai.git
synced 2025-03-25 21:12:56 +00:00
EEWの最終報表示の修正
This commit is contained in:
parent
d41c646ed9
commit
a78bb8c06a
2 changed files with 2 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,3 +3,4 @@ built
|
|||
node_modules
|
||||
memory.json
|
||||
font.ttf
|
||||
memory.json.bak
|
|
@ -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\`\`\``;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue