Giter VIP home page Giter VIP logo

prusa-link-web's Introduction

PrusaLink

This is a printer connect webservice. It is compatible with other 3D printer services, so many applications can use this service.

Install

npm install

Commands

npm run {command}[:{config}] [option]

Where {command} is one of the following:

  • build -> build static files with production
  • start -> run a dev server, including virtual printer mockup
  • start [http-*] -> run a dev server with authentication

{config} is one of the following:

  • sl1 -> Prusa SL1 printer configuration (see config.sl1.js)
  • m1 -> Prusa SL1 printer configuration (see config.m1.js)
  • mini -> Prusa Mini printer configuration (see config.mini.js)
  • custom -> Tries to use custom configuration file config.custom.js (not a part of the git repository)
  • if not set, default configuration from webpack.config.js is being used

option is one of the following:

  • http-basic -> enables Basic authentication on virtual printer
  • http-apikey -> enables API-KEY authentication on virtual printer

Examples:

npm run build
npm run build:mini
npm run start
npm run start http-basic
npm run start http-apikey
npm run start:sl1

Custom backend (to try on real printer)

BACKEND_URL="http://192.168.1.100/" npm run start:mini

Translations

  1. Append all new keys in src/locales/source/en.json and add default english translation.
  2. Send src/locales/source/en.json file to the content
  3. Copy all files from translators in src/locales/source folder. Name of the files should be cs_CZ.json, en_US.json, ...
  4. Run src/locales/update_translations.py script to extract only used strings.
  5. Check the diff.
  6. Delete cs_CZ.json, en_US.json, ... files.
  7. Commit

Icons

  1. Add icons into the src/assets/ directory.
  2. Run the npm run recolor script, it will do the following:
    1. Fix the primary (orange) color to use only the correct one.
    2. Create a green version for m1 printers.

The script may not recognize the primary (orange) color. If that happens, you have two choices:

  1. Add this color into tools\recolor_icons\config\fix_primary_color.js.
  2. Or manually change the color of an icon and run the script again.

prusa-link-web's People

Contributors

lowentwickler avatar brunoontheworld avatar brunoeee avatar filipkotoucek avatar vladamatena avatar ondratu avatar michalxfanta avatar shellyear avatar dependabot[bot] avatar martinatprusa avatar vorner avatar martin357 avatar vojty avatar reedy avatar martinbernat avatar achingbrain avatar iley avatar jakubsilar3d avatar helclm avatar majkluss avatar ph1p avatar cyberknet avatar simmarith avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.