Skip to content

web application for my fork of sharperang (paperang, 喵喵机)

Notifications You must be signed in to change notification settings

lzcjames/flask-for-sharperang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask-for-sharperang

This is a developpment for web side for my fork of sharperang,

now it supports only paperang P2/P2s (喵喵机P2/P2s)

Environment

  • Windows10 x64
  • Visual Studio Code 1.44.2+
  • Python 3.7.4+
  • Zadig 2.5+ (for detecting paperang device)

Installation

Detect the paperang device

  • Download the application "Zadig" ( https://zadig.akeo.ie/ ).
  • Click Options menu, and click List All Devices.
  • Look in the devices list for either Paperang or MPTII Printer.
  • Make sure the driver list on the right side says "WinUSB".
  • Click Replace Driver.

Install Flask

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

About

web application for my fork of sharperang (paperang, 喵喵机)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published