First up you need to run this python3 script and leave it running - it's a web server that lets you control the printer from HTTP commands
https://gist.github.com/xssfox/b911e0781a763d258d21262c5fdd2dec
You probably need to have lucon.ttf
in your systems font dir or in scripts directory
And you'll need bleak, Pillow and flask installed by pip
Some people have reported issues getting TypeError: a bytes-like object is required, not 'list'
in this case :