Little bug fixes

This commit is contained in:
bohdan-s
2022-03-03 16:52:28 +11:00
parent a0861ced8e
commit 8a06407d00
3 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -5,7 +5,9 @@ RUN useradd sungather
WORKDIR /usr/src/sungather WORKDIR /usr/src/sungather
COPY requirements.txt ./ COPY requirements.txt ./
RUN pip install --no-cache-dir --upgrade -r requirements.txt # pycryptodomex 3.14 currently fails to compile for arm64
#RUN pip install --no-cache-dir --upgrade -r requirements.txt
RUN pip install --no-cache-dir --upgrade pycryptodomex==3.11.0 -r requirements.txt
COPY SunGather/ . COPY SunGather/ .
+1 -1
View File
@@ -43,7 +43,7 @@ class MyServer(BaseHTTPRequestHandler):
self.send_response(200) self.send_response(200)
self.send_header("Content-type", "text/html") self.send_header("Content-type", "text/html")
self.end_headers() self.end_headers()
self.wfile.write(bytes("<html><head><title>SunGather</title><meta http-equiv='refresh' content='15'></head>", "utf-8")) self.wfile.write(bytes("<html><head><title>SunGather</title><meta charset='UTF-8'><meta http-equiv='refresh' content='15'></head>", "utf-8"))
self.wfile.write(bytes("<body>", "utf-8")) self.wfile.write(bytes("<body>", "utf-8"))
self.wfile.write(bytes(export_webserver.html_body, "utf-8")) self.wfile.write(bytes(export_webserver.html_body, "utf-8"))
self.wfile.write(bytes("</table>", "utf-8")) self.wfile.write(bytes("</table>", "utf-8"))
+1 -1
View File
@@ -201,7 +201,7 @@ registers:
level: 1 level: 1
address: 5004 address: 5004
datatype: "U32" datatype: "U32"
unit: "KWh" unit: "kWh"
- name: "total_running_time" - name: "total_running_time"
level: 1 level: 1
address: 5006 address: 5006