mirror of
https://git.roussel.pro/public-website/singapore_rain_radar.git
synced 2026-02-09 02:20:17 +01:00
added font family to dependency
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,2 +1,2 @@
|
|||||||
images/**/*.png
|
images/**/*.png
|
||||||
**/*.mp4
|
**/*.webm
|
||||||
@@ -3,7 +3,7 @@ FROM node:18-alpine
|
|||||||
# Set TZ to Singapore to help with syncronizing with singapore's website time
|
# Set TZ to Singapore to help with syncronizing with singapore's website time
|
||||||
ENV TZ="Asia/Singapore"
|
ENV TZ="Asia/Singapore"
|
||||||
|
|
||||||
RUN apk update && apk add --no-cache ffmpeg npm pango-dev g++ make jpeg-dev giflib-dev librsvg-dev
|
RUN apk update && apk add --no-cache ffmpeg npm pango-dev g++ make jpeg-dev giflib-dev librsvg-dev ttf-dejavu
|
||||||
|
|
||||||
RUN mkdir -p /home/node/app/node_modules
|
RUN mkdir -p /home/node/app/node_modules
|
||||||
RUN mkdir -p /home/node/app/images/raw
|
RUN mkdir -p /home/node/app/images/raw
|
||||||
|
|||||||
BIN
out/output.webm
BIN
out/output.webm
Binary file not shown.
@@ -12,7 +12,7 @@ async function overlayImage(time_string) {
|
|||||||
ctx.drawImage(overlay, 0, 0, 853, 479)
|
ctx.drawImage(overlay, 0, 0, 853, 479)
|
||||||
|
|
||||||
let text = time_string.substring(8, 10) + ':' + time_string.substring(10, 12);
|
let text = time_string.substring(8, 10) + ':' + time_string.substring(10, 12);
|
||||||
ctx.font = 'bold 70px';
|
ctx.font = 'bold 70px sans-serif';
|
||||||
ctx.fillStyle = 'rgba(0,0,0,0.7)';
|
ctx.fillStyle = 'rgba(0,0,0,0.7)';
|
||||||
ctx.fillText(text, 853 - 250, 479 - 40);
|
ctx.fillText(text, 853 - 250, 479 - 40);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user