Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Printer Display, conditional if this, then that #209

Open
lightmaster opened this issue Feb 11, 2021 · 2 comments
Open

Printer Display, conditional if this, then that #209

lightmaster opened this issue Feb 11, 2021 · 2 comments
Labels
status: analysing type: question Further information is requested

Comments

@lightmaster
Copy link

This possibly already exists, but I can't seem to figure out how to do it if you can. I'd like to have conditional statements in the textbox used to generate the M117 codes for the printer display. Something like if there is an upcoming filament change, then display time left until filament change; else display estimated print completion time. I see the variables in red that would be needed to accomplish this, but I can't figure out how to do the conditional statement, if that's event possible right now.

@OllisGit
Copy link
Owner

Hi @lightmaster,
this is currently not possible. you set the variable in the output-pattern --> the value is shown.

I like the idea, but the first question that comes to my mind is: how should be the userinterface to handle all combinations...maybe on the left side list all events that could appear and on the right side you allign such event with a text base condition.....

....do you have a suggestion about that?

@OllisGit OllisGit added status: waitingForFeedback Wating for Customers feedback type: question Further information is requested labels Feb 12, 2021
@lightmaster
Copy link
Author

lightmaster commented Feb 13, 2021

I was thinking something much simpler, all text based within a larger text box. Something like:

{if [changefilamenttime_left] != ""} Filament change in [changefilamenttime_left] {else} Done in [printtime_left] {endif}

In this example, I'm not sure what [changefilamenttime_left]'s null value would actually be, but it would be adjusted such that it's only true if there is a filament change remaining.

@OllisGit OllisGit added status: analysing and removed status: waitingForFeedback Wating for Customers feedback labels Feb 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: analysing type: question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants