This project is use pi to print image using termal printer (or use any setup printer)
Run this app on any pi that connect to internet and set already setup printer.
Pi will get data from rabbitMQ and print.
You can set up pi to n device because they get data by queue.
After install to config, copy file in Config/default.json to Config/local.json and edit to your config.
Run this app on your cloud or local server.
Install rabbitMQ on your os.
input_server.js api list.
get /
get /comment
post /print_image_64
post /upload_picture
/ will render html with input this input send data to /comment. This will generate image with user input text and save to images folder.
/print_image_64 will get image by sending image with base64 string name image_64 and save to images folder.
/upload_picture upload picture with field name avatar.
curl -F avatar=@picture_name.png localhost:3001/upload_picture
After install to config, copy file in Config/default.json to Config/local.json and edit to your config.
Current host on heroku, you can put on your server.
line_service.js will read image from your line messaging and send to your api server (input_server.js) with base64 string.
If you use heroku, please config this variable.
heroku config:set channelAccessToken=[token]
heroku config:set channelSecret=[token]
heroku config:set apiImageUrl=[full url]
Those token your can find from your line develop console.