added todo
This commit is contained in:
parent
d1c41c1dc7
commit
284f8acad3
|
@ -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
|
Binary file not shown.
Before Width: | Height: | Size: 2.0 MiB After Width: | Height: | Size: 3.1 MiB |
Binary file not shown.
Before Width: | Height: | Size: 284 KiB After Width: | Height: | Size: 319 KiB |
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue