diff --git a/config.json b/config.json index 24f8a52..5a0f5c6 100644 --- a/config.json +++ b/config.json @@ -1 +1 @@ -{"debugMode":true,"status":{"igniter":0,"blower":0,"auger":0,"igniterFinished":true,"seenFire":false,"shutdown":0,"vacuum":1,"pof":1},"timestamps":{"procStart":1671648471606,"blowerOn":1671648232716,"blowerOff":1671648326617,"igniterOn":1671648232717,"igniterOff":1671648263542},"intervals":{"augerOn":500,"augerOff":1500,"pause":3000,"igniterStart":30000,"blowerStop":10000},"web":{"port":8080,"ip":"127.0.0.1"}} \ No newline at end of file +{"debugMode":true,"status":{"igniter":0,"blower":1,"auger":1,"igniterFinished":true,"seenFire":false,"shutdown":0,"vacuum":1,"pof":1},"timestamps":{"procStart":1671671326941,"blowerOn":1671670035064,"blowerOff":1671660280248,"igniterOn":1671670035064,"igniterOff":1671670065800},"intervals":{"augerOn":500,"augerOff":1500,"pause":3000,"igniterStart":30000,"blowerStop":10000},"web":{"port":8080,"ip":"0.0.0.0"}} \ No newline at end of file diff --git a/log.txt b/log.txt index e69de29..e459d04 100644 --- a/log.txt +++ b/log.txt @@ -0,0 +1,80 @@ +[0] I: Not running on a Raspberry Pi. +== Lennox Winslow PS40 +== Pellet Stove Control Panel +== Author: Skylar Grant +== Version: v0.2.1 +== +== Startup Time: 2022-12-21T22:02:46.124Z +== +== Environment variables: +== == ONTIME=500 +== == OFFTIME=1500 +== == PAUSETIME=3000 +== == DEBUG=true +== == ONPI=false +[0.008] I: == GPIO Not Available +[0.008] I: Pausing for 3000ms +[3.012] I: Pausing for 3000ms +[6.015] I: Pausing for 3000ms +[9.016] I: Pausing for 3000ms +[12.018] I: Pausing for 3000ms +[15.02] I: Pausing for 3000ms +[18.021] I: Pausing for 3000ms +[21.023] I: Pausing for 3000ms +[21.995] I: Blower turned on. +[21.995] I: Igniter turned on. +[21.995] I: Auger enabled. +[24.024] I: The igniter is on. Started: 17:3:8. Stopping: 17:3:38. +[26.027] I: The igniter is on. Started: 17:3:8. Stopping: 17:3:38. +[28.03] I: The igniter is on. Started: 17:3:8. Stopping: 17:3:38. +[30.034] I: The igniter is on. Started: 17:3:8. Stopping: 17:3:38. +[32.037] I: The igniter is on. Started: 17:3:8. Stopping: 17:3:38. +[34.04] I: The igniter is on. Started: 17:3:8. Stopping: 17:3:38. +[36.045] I: The igniter is on. Started: 17:3:8. Stopping: 17:3:38. +[38.047] I: The igniter is on. Started: 17:3:8. Stopping: 17:3:38. +[40.05] I: The igniter is on. Started: 17:3:8. Stopping: 17:3:38. +[42.053] I: The igniter is on. Started: 17:3:8. Stopping: 17:3:38. +[44.056] I: The igniter is on. Started: 17:3:8. Stopping: 17:3:38. +[46.06] I: The igniter is on. Started: 17:3:8. Stopping: 17:3:38. +[48.063] I: The igniter is on. Started: 17:3:8. Stopping: 17:3:38. +[50.066] I: The igniter is on. Started: 17:3:8. Stopping: 17:3:38. +[52.069] I: Igniter turned off. +[52.069] I: The igniter is on. +[71.858] I: Auger disabled. +A shutdown has already been initiated and the blower is preventing shutdown. +[72.094] I: Pausing for 3000ms +A shutdown has already been initiated and the blower is preventing shutdown. +[75.096] I: Pausing for 3000ms +A shutdown has already been initiated and the blower is preventing shutdown. +[78.098] I: Pausing for 3000ms +A shutdown has already been initiated and the blower is preventing shutdown. +[81.1] I: Pausing for 3000ms +[84.101] I: Blower can be turned off. +Shutting down... +[84.102] I: Pausing for 3000ms +[87.103] I: Pausing for 3000ms +[90.105] I: Pausing for 3000ms +[93.106] I: Pausing for 3000ms +[96.108] I: Pausing for 3000ms +[98.989] I: Blower turned on. +[98.99] I: Igniter turned on. +[98.99] I: Auger enabled. +[99.11] I: The igniter is on. Started: 17:4:25. Stopping: 17:4:55. +[101.113] I: The igniter is on. Started: 17:4:25. Stopping: 17:4:55. +[103.115] I: The igniter is on. Started: 17:4:25. Stopping: 17:4:55. +[103.441] I: Auger disabled. +[103.441] I: Igniter turned off. +A shutdown has already been initiated and the blower is preventing shutdown. +[105.119] I: Pausing for 3000ms +A shutdown has already been initiated and the blower is preventing shutdown. +[108.12] I: Pausing for 3000ms +A shutdown has already been initiated and the blower is preventing shutdown. +[111.123] I: Pausing for 3000ms +[114.124] I: Blower can be turned off. +Shutting down... +[114.125] I: Pausing for 3000ms +[117.126] I: Pausing for 3000ms +[120.128] I: Pausing for 3000ms +[123.129] I: Pausing for 3000ms +[126.131] I: Pausing for 3000ms +[129.132] I: Pausing for 3000ms diff --git a/www/public/config.json b/www/public/config.json index 1fdca95..19d6015 120000 --- a/www/public/config.json +++ b/www/public/config.json @@ -1 +1 @@ -/Users/voidf1sh/pscontrolpanel/config.json \ No newline at end of file +../../config.json \ No newline at end of file diff --git a/www/public/dancing_jesus.gif b/www/public/dancing_jesus.gif new file mode 100644 index 0000000..9b118bb Binary files /dev/null and b/www/public/dancing_jesus.gif differ diff --git a/www/public/log.txt b/www/public/log.txt index 23f4044..ffd7298 120000 --- a/www/public/log.txt +++ b/www/public/log.txt @@ -1 +1 @@ -/Users/voidf1sh/pscontrolpanel/log.txt \ No newline at end of file +../../log.txt \ No newline at end of file diff --git a/www/public/main.css b/www/public/main.css index 7e8480e..c3e602b 100644 --- a/www/public/main.css +++ b/www/public/main.css @@ -1,4 +1,6 @@ html, body { + padding: 0; + margin: 0; background-color: #333; color: aqua; font-family: sans-serif; @@ -33,6 +35,12 @@ html, body { margin: 5px; } +.subheading { + font-size: 20px; + font-weight: bold; + text-align: center; +} + #log-container { text-align: center; } @@ -48,4 +56,38 @@ html, body { color: yellow; font-size: 20px; background-color: red; -} \ No newline at end of file +} + +.button-container { + padding: 0; + margin-top: 20px; + margin-bottom: 20px; + text-align: center; +} + +.button-unselected { + margin: 5px; + border-width: 0px; + font-family: times; + font-size: 20px; + height: 35px; + width: 100px; + border-top-left-radius: 0px; + border-bottom-left-radius: 0px; + border-top-right-radius: 0px; + border-bottom-right-radius: 0px; + background-color: #ccc; +} + +.button-selected { + margin: 5px; + border-width: 0px; + font-family: times; + font-size: 20px; + height: 35px; + width: 100px; + border-top-left-radius: 0px; + border-bottom-left-radius: 0px; + border-top-right-radius: 0px; + border-bottom-right-radius: 0px; +} diff --git a/www/views/index.html b/www/views/index.html index 5a6ca81..c1dd582 100644 --- a/www/views/index.html +++ b/www/views/index.html @@ -12,15 +12,24 @@