mirror of
https://git.roussel.pro/public-website/singapore_rain_radar.git
synced 2026-02-09 02:20:17 +01:00
added function to update latest images
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
import { initImages } from './generate.mjs';
|
||||
import { initImages, updateImages } from './generate.mjs';
|
||||
|
||||
initImages(10).then(() => {
|
||||
console.log('Downloaded images successfully');
|
||||
console.log('Downloaded initial images successfully');
|
||||
});
|
||||
|
||||
setInterval(() => {
|
||||
updateImages(10).then(() => {
|
||||
console.log('Updated images successfully');
|
||||
});
|
||||
}, 5 * 60 * 1000);
|
||||
|
||||
Reference in New Issue
Block a user