mirror of
https://github.com/alexhopeoconnor/SunGather.git
synced 2026-10-23 02:52:10 +10:00
Little bug fixes
This commit is contained in:
+3
-1
@@ -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/ .
|
||||||
|
|
||||||
|
|||||||
@@ -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"))
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user