Git Product home page Git Product logo

3djuggler's Introduction

Integration with internal website (intern)

You will need to implement internal website API, which supports following:

/job. Depending on a POST params it should:

  • Give a new job
  • Give details about job
  • Update job status

/printer. Depending on a POST params it should:

  • Refresh printer healthcheck
  • Reschedule jobs

Every API call must send Username (app) and Password (token) as POST params

Intergration with printer management device:

Printer management device will need to interact with 3djuggler in order to control the job state. By default http server will listern on localhost:8888. Juggler supports following blocking API calls:

/info

Gives information about current job state, printed percentage etc

/start

Start the job

/pause

Pause the job

/cancel

Cancel the job

/reshedule

Give more time before jobs gets marked as "timed out"

/version

In order to use this functionality, you needs to compile juggler with extra flag (see compile section)

Compile

Simply run:

go get github.com/leoleovich/3djuggler
go build github.com/leoleovich/3djuggler

If you want to enable optional /version api - you need to build juggler with extra flag:

go build -ldflags "-X main.gitCommit=123" github.com/leoleovich/3djuggler

Where 123 is a commit hash. You don't have to use this functionality. In this case /version will simply return empty string

How to run

In order to run juggler you will need a config file. Example of this file you can find in this repository. Juggler also supports following There are extra flags you may find useful:

  -config string
    Main config (default "3djuggler.json")
  -log string
    Where to log (default "/var/log/3djuggler.log")
  -verbose
    Use verbose log output

I am providing code in the repository to you under an open source license. Because this is my personal repository, the license you receive to my code is from me and not my employer (Facebook)

3djuggler's People

Contributors

leoleovich avatar yarikk avatar abulimov avatar gsaraf avatar

Watchers

James Cloos 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.