loftux / homebridge-teslafi

Homebridge Teslafi plugin
11 stars 2 forks source link

Get rid of Puppeteer #4

Open FezVrasta opened 3 years ago

FezVrasta commented 3 years ago

This renders the picture starting from an SVG and doesn't require Puppeteer, it can run both on the browser or on Node.

https://codesandbox.io/s/fervent-monad-rjwv7 (It requires the SF Pro font installed on the system to render properly)

Example output:

image

loftux commented 3 years ago

Thanks! Can I ask how you created the template.svg.js? This looks like I could use pretty much as is, but could be good to know if I need to update for more information or change layout.

FezVrasta commented 3 years ago

I created it with Affinity Designer and modified it manually to insert text dynamically

loftux commented 3 years ago

Referenced the wrong issue in the commit, this will be implemented later...