Fixed server

This commit is contained in:
2026-06-25 10:27:12 -04:00
parent bd073a4613
commit d3ad4e15c6
2 changed files with 9 additions and 9 deletions

2
.gitignore vendored
View File

@@ -4,6 +4,8 @@
dist
node_modules
server/data/*
server/public/*
sensors/bin
sensors/include

View File

@@ -191,14 +191,12 @@ app.use((err, req, res, next) => {
// ── Start ─────────────────────────────────────────────────────────────────────
(async () => {
const c = cfg();
const c = cfg();
setTimeout(getForecast, 1)
setInterval(getForecast, forecastTTL)
await initAircraftDb();
setTimeout(getForecast, 1)
setInterval(getForecast, forecastTTL)
await initAircraftDb();
app.listen(c.PORT, () => {
app.listen(c.PORT, () => {
console.log(`🌦 Weather API — http://localhost:${c.PORT}`)
});
})()
});