mirror of
https://git.roussel.pro/public-website/singapore_rain_radar.git
synced 2026-02-09 02:20:17 +01:00
12 lines
285 B
JavaScript
12 lines
285 B
JavaScript
import { initImages, updateImages } from './generate.mjs';
|
|
|
|
initImages(10).then(() => {
|
|
console.log('Downloaded initial images successfully');
|
|
});
|
|
|
|
setInterval(() => {
|
|
updateImages(10).then(() => {
|
|
console.log('Updated images successfully');
|
|
});
|
|
}, 5 * 60 * 1000);
|