printer-monitor icon indicating copy to clipboard operation
printer-monitor copied to clipboard

Display weather, when octoprint is connected but not printing

Open labomat opened this issue 6 years ago • 2 comments

Would be nice to have an (additional) configuration option to display weather when octoprint server is connected but no print job is running.

labomat avatar Jul 15 '18 09:07 labomat

I second this.

My Octoprint is always on, so the weather is never displayed.

Maybe some kind of timeout when a job is finished and then the weather is displayed?

TheLion avatar Sep 24 '18 22:09 TheLion

  1. in file OpenWeatherMapClient.cpp replace:
  if (printing == "true") {
    printerData.isPrinting = true;
  }

with printerData.isPrinting = (printing == "true");

  1. in file printermonitor.ino
    if (!printerClient.isOperational() && !isClockOn) {

change to

    if (!printerClient.isPrinting() && !isClockOn) {
  1. in file printermonitor.ino
    } else if (printerClient.isOperational() && isClockOn) {

change to

    } else if (printerClient.isPrinting() && isClockOn) {

Evg33 avatar Jan 18 '19 15:01 Evg33