

More examplesĬreate a connection, register an event handler for successfull connection, which activates the printer with the slug "Delta" and enqueues and starts the job with the id 6. When both, API-Key and user credentials are supplied, the last option will be used. WithCredentials("user", "password", rememberSession: true)Įxample using a Repetier Server API-Key: RepetierConnection rc = new RepetierConnectionBuilder() In most cases you would want to create a connection by suppling a API-Key or user credentials:Įxample using user credentials: RepetierConnection rc = new RepetierConnectionBuilder() This gives you access to the repetier server with the global user profile. The most basic configuration to setup a working RepetierConnection looks like this: RepetierConnection rc = new RepetierConnectionBuilder() To establish a connection it is possible to provide the Repetier Server API-Key or user credentials. Simply start by creating an instance of the RepetierConnection class. RepetierSharp uses a fluent builder api to reduce the complexity when creating a new client instance. I will try to write a more thourough documentation as soon as possible.
Repetier server command a how to#
The following sections show some examples on how to use the RepetierSharp client. Bugs are to be expected - please bear with me and help improving RepetierSharp by submitting issues on GitHub. This was needed because I wanted to control the Repetier Server programmatically to automate certain tasks.ĭISCLAIMER: RepetierSharp is still in beta. But I could not find any client implementing the Repetier Server API.
Repetier server command a software#
I quite enjoy using the Repetier Server software to control/manage our 3d printers.

Framework supportĬurrently RepetierSharp supports. Note that you are still able to use RepetierSharp by just using the version independent event handlers for events and command responses: OnRawEvent(string eventName, string printer, byte payload) and OnRawResponse(int callbackID, string command, byte response) respectively. The serialization for most commands and events should be working with earlier versions, but there is the possibilty of crashes when using RepetierSharp with earlier versions due to undocumented changes. This library is build against and tested with RepetierServer version 1.2.0. "Repetier-Server is the professional all-in-one solution to control and manage your 3d printers and to get the most out of it." RepetierSharp is a simple, event-driven client which encapsulates the WebSocket API (as well as the REST API where needed) to control the Repetier Server.

RepetierSharp - A simple, event driven Repetier Server client Introduction
