This is a developpment for web side for my fork of sharperang,
now it supports only paperang P2/P2s (喵喵机P2/P2s)
- Windows10 x64
- Visual Studio Code 1.44.2+
- Python 3.7.4+
- Zadig 2.5+ (for detecting paperang device)
- Download the application "Zadig" ( https://zadig.akeo.ie/ ).
- Click
Options
menu, and clickList All Devices
. - Look in the devices list for either
Paperang
orMPTII Printer
. - Make sure the driver list on the right side says "WinUSB".
- Click
Replace Driver
.
Use the package manager pip to install packages.
pip install -r requirements.txt
I use package flask-ngrok
to make Flask app running on localhost over the public internet via ngrok tool
Before running Flask app, make sure that your paperang device is connected to Windows
To launch app with ngrok, enter:
python app.py
Now you can see a random url generated in the output console:
For example:
Forwarding http:https://63b82d2d.ngrok.io -> http:https://localhost:5000
Forwarding https://63b82d2d.ngrok.io -> http:https://localhost:5000