24h forecasting
This commit is contained in:
@@ -181,10 +181,10 @@ app.get('*', (req, res) => {
|
|||||||
|
|
||||||
// ── Start ─────────────────────────────────────────────────────────────────────
|
// ── Start ─────────────────────────────────────────────────────────────────────
|
||||||
|
|
||||||
// refreshForecast()
|
|
||||||
// setInterval(refreshForecast, 10 * 60 * 1000)
|
|
||||||
|
|
||||||
const c = cfg();
|
const c = cfg();
|
||||||
app.listen(c.PORT, () => {
|
app.listen(c.PORT, () => {
|
||||||
console.log(`🌦 Weather API — http://localhost:${c.PORT}`)
|
console.log(`🌦 Weather API — http://localhost:${c.PORT}`)
|
||||||
|
refreshForecast()
|
||||||
|
setInterval(refreshForecast, 10 * 60 * 1000)
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user