diff --git a/README.md b/README.md index 75ba604..10bb9e8 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ BKK Raindar Misskey Version ## To-Do -- Configurable values -- Splitting and organizing files into respective use cases. +- Put image into designated folder +- Delete files after posting (to prevent storage being full) ## Documentation Coming soon \ No newline at end of file diff --git a/data/animated_radar.gif b/data/animated_radar.gif index b6ebd2d..dc69c77 100644 Binary files a/data/animated_radar.gif and b/data/animated_radar.gif differ diff --git a/data/static_radar.jpg b/data/static_radar.jpg index 85afe1c..0c88732 100644 Binary files a/data/static_radar.jpg and b/data/static_radar.jpg differ diff --git a/src/index.js b/src/index.js index 23cd9a7..0313bea 100644 --- a/src/index.js +++ b/src/index.js @@ -104,10 +104,12 @@ app.get('/callback', function(req, res) { // Fetch static image let static_radar_image_name = `${raw_date.toISOString()}.jpg`; const upload_static_radar = await Post.create_image(host, access_token, static_radar_image_name, static_radar_path); + console.log(upload_static_radar) // Fetch animated image let animated_radar_image_name = `${raw_date.toISOString()}.gif`; const upload_gif_radar = await Post.create_image(host, access_token, animated_radar_image_name, animated_radar_path); + console.log(upload_gif_radar); let radar_caption = await Fetch.get_radar_caption(); let note_caption = `$[x2 Bangkok Raindar Update]\n**${raw_date.toLocaleString('th-TH')}**\n\n${radar_caption}\n\nLeft: Current Observation\nRight: 3 hour forecast\n\n#bangkok #weather #bangkokweather` @@ -127,6 +129,7 @@ app.get('/callback', function(req, res) { } } else { console.log("Note was not created"); + console.error(post_note); } }