Are you talking about Repetier-Server , because this is the host thread?
The question is where do you want to log it to and which firmware are you using. For Repetier-Firmware and Marlin and RepRapFirmware it is logged if you enable logging. Anything you send or receive from firmware gets logged with enabled logger.
In our gui you also see temperature graphs for last 5 minutes and you can query them also externally.
@Repetier Sorry for choosing the wrong category, yes it is about Repetier-Server. how do you return a value from a command for requests that come from websocket/api? I need to display the data into the frontend. best regards
Assuming from other posts that you compile your own variant and understand typescript, the send function in binding module all return a promise that contains the api response on resolve. Store it in a component variable and add the html code. Example from PrinterAction.ts
Comments
The question is where do you want to log it to and which firmware are you using. For Repetier-Firmware and Marlin and RepRapFirmware it is logged if you enable logging. Anything you send or receive from firmware gets logged with enabled logger.
In our gui you also see temperature graphs for last 5 minutes and you can query them also externally.
Sorry for choosing the wrong category, yes it is about Repetier-Server.
how do you return a value from a command for requests that come from websocket/api? I need to display the data into the frontend.
best regards
You see call to importURL and later in then it gets the result of api call and from there you can do what you want.