diff --git a/printermonitor/Settings.h b/printermonitor/Settings.h index 033fb13..1ab103b 100644 --- a/printermonitor/Settings.h +++ b/printermonitor/Settings.h @@ -59,7 +59,7 @@ SOFTWARE. //****************************** // OctoPrint / Repetier Monitoring -- Monitor your 3D OctoPrint or Repetier Server -#define USE_REPETIER_CLIENT // Uncomment this line to use the Repetier Printer Server -- OctoPrint is used by default and is most common +//#define USE_REPETIER_CLIENT // Uncomment this line to use the Repetier Printer Server -- OctoPrint is used by default and is most common String PrinterApiKey = ""; // ApiKey from your User Account on OctoPrint / Repetier String PrinterHostName = "octopi";// Default 'octopi' -- or hostname if different (optional if your IP changes) String PrinterServer = ""; // IP or Address of your OctoPrint / Repetier Server (DO NOT include http://) diff --git a/printermonitor/printermonitor.ino b/printermonitor/printermonitor.ino index 259f22f..caef8fd 100644 --- a/printermonitor/printermonitor.ino +++ b/printermonitor/printermonitor.ino @@ -575,11 +575,13 @@ void handleConfigure() { CHANGE_FORM += "" "

" ""; - } + } else { + CHANGE_FORM += "

"; + } CHANGE_FORM += "

" - "


"; - - String Clock_Form = "

Display Clock when printer is off

" + "

"; + + String Clock_Form = "

Display Clock when printer is off

" "

Use 24 Hour Clock (military time)

" "

Flip display orientation

" "

Flash System LED on Service Calls

" @@ -599,6 +601,11 @@ void handleConfigure() { "o.onerror=function(){e.innerHTML=\"Error connecting to server -- check IP and Port\",e.style.background=\"red\"},o.send(null)}"; server.sendContent(html); + } else { + html = ""; + server.sendContent(html); } String form = CHANGE_FORM;