Skip to content

Commit 385c108

Browse files
authored
Merge pull request #11 from Qrome/1.3
1.3
2 parents bc33765 + d5afe27 commit 385c108

File tree

3 files changed

+1046
-1016
lines changed

3 files changed

+1046
-1016
lines changed

marquee/OctoPrintClient.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void OctoPrintClient::getPrinterJobResults() {
5454
}
5555
}
5656
else {
57-
Serial.println("connection for OctoPrint data failed"); //error message if no client connect
57+
Serial.println("Connection for OctoPrint data failed: " + String(myServer) + ":" + String(myPort)); //error message if no client connect
5858
Serial.println();
5959
printerData.state = "";
6060
return;
@@ -107,7 +107,6 @@ void OctoPrintClient::getPrinterJobResults() {
107107
Serial.println("Printer Not Opperational");
108108
}
109109

110-
111110
printClient.stop(); //stop client
112111
}
113112

marquee/Settings.h

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,20 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
SOFTWARE.
2222
*/
2323

24-
/*******************************************************
24+
/******************************************************************************
2525
* This is designed for the Wemos D1 ESP8266
2626
* Wemos D1 Mini: https://amzn.to/2qLyKJd
2727
* MAX7219 Dot Matrix Module 4-in-1 Display For Arduino
2828
* Matrix Display: https://amzn.to/2HtnQlD
29-
*******************************************************/
30-
29+
******************************************************************************/
30+
/******************************************************************************
31+
* NOTE: The settings here are the default settings for the first loading.
32+
* After loading you will manage changes to the settings via the Web Interface.
33+
* If you want to change settings again in the settings.h, you will need to
34+
* erase the file system on the Wemos or use the “Reset Settings” option in
35+
* the Web Interface.
36+
******************************************************************************/
37+
3138
#include <ESP8266WiFi.h>
3239
#include <ArduinoJson.h>
3340
#include <ESP8266WebServer.h>
@@ -49,14 +56,16 @@ SOFTWARE.
4956
// Start Settings
5057
//******************************
5158

52-
const String APIKEY = ""; // Your API Key from http://openweathermap.com/
53-
// Default City Location (use http://openweathermap.com/find to find city ID)
59+
const String APIKEY = ""; // Your API Key from http://openweathermap.org/
60+
// Default City Location (use http://openweathermap.org/find to find city ID)
5461
int CityIDs[] = { 5304391 }; //Only USE ONE for weather marquee
5562
String marqueeMessage = "";
5663
boolean IS_METRIC = false; // false = Imperial and true = Metric
5764
boolean IS_24HOUR = false; // 23:00 millitary 24 hour clock
5865
const int WEBSERVER_PORT = 80; // The port you can access this device on over HTTP
5966
const boolean WEBSERVER_ENABLED = true; // Device will provide a web interface via http://[ip]:[port]/
67+
char* www_username = "admin"; // User account for the Web Interface
68+
char* www_password = "password"; // Password for the Web Interface
6069
int minutesBetweenDataRefresh = 15; // Time in minutes between data refresh (default 15 minutes)
6170

6271
boolean NEWS_ENABLED = true;
@@ -86,4 +95,4 @@ int OctoPrintPort = 80; // the port you are running your OctoPrint server on (us
8695
boolean ENABLE_OTA = true; // this will allow you to load firmware to the device over WiFi (see OTA for ESP8266)
8796
//******************************
8897
// End Settings
89-
//******************************
98+
//******************************

0 commit comments

Comments
 (0)