mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-30 09:16:11 +02:00
Merge branch 'development02' into asyncWeb02
This commit is contained in:
commit
b871ed06d2
7 changed files with 36 additions and 14 deletions
|
@ -2,6 +2,8 @@ import re
|
|||
import os
|
||||
import gzip
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
def convert2Header(inFile, compress):
|
||||
fileType = inFile.split(".")[1]
|
||||
define = inFile.split(".")[0].upper()
|
||||
|
@ -12,8 +14,10 @@ def convert2Header(inFile, compress):
|
|||
if os.getcwd()[-4:] != "html":
|
||||
outName = "html/" + "h/" + inFileVarName + ".h"
|
||||
inFile = "html/" + inFile
|
||||
Path("html/h").mkdir(exist_ok=True)
|
||||
else:
|
||||
outName = "h/" + inFileVarName + ".h"
|
||||
Path("h").mkdir(exist_ok=True)
|
||||
|
||||
f = open(inFile, "r")
|
||||
data = f.read()
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
<fieldset>
|
||||
<legend class="des">MQTT</legend>
|
||||
<label for="mqttAddr">Broker / Server IP</label>
|
||||
<input type="text" class="text" name="mqttAddr"/>
|
||||
<input type="text" class="text" name="mqttAddr" maxlength="32" />
|
||||
<label for="mqttPort">Port</label>
|
||||
<input type="text" class="text" name="mqttPort"/>
|
||||
<label for="mqttUser">Username (optional)</label>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue