Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
41c6412
Refactoring the proxy.
Nexarian Jan 8, 2025
a7c10b2
Add better aggregation and deadlock handling
Nexarian Feb 21, 2025
0df9ed6
Updating API lock strategy
Nexarian Mar 5, 2025
a13b477
Updating api lock
Nexarian Mar 5, 2025
0db7aa8
Add fan speeds.
Nexarian Mar 13, 2025
eeffb89
Adding more parameters to vitals
Nexarian Mar 15, 2025
f46009f
Fixing bug with din reporting
Nexarian Mar 15, 2025
b9131fa
Simplify PVAC lookup
Nexarian Mar 15, 2025
8ae88ca
Use neurio for current when tesla meters are not available
Nexarian Mar 18, 2025
d45b816
Fix mia boolean
Nexarian Mar 18, 2025
bccd40b
i3 should be explicit
Nexarian Mar 18, 2025
bb35690
Filling out current and voltage metrics
Nexarian Mar 21, 2025
69902aa
Cleaning up metrics code
Nexarian Mar 21, 2025
fed204f
Add voltages from neurio meter
Nexarian Mar 21, 2025
577c191
Code updates
Nexarian Mar 21, 2025
69e77d6
Fix visualization deadlock
Nexarian Mar 26, 2025
40baf2c
Changing the webpack name
Nexarian Mar 26, 2025
02b0f7c
Fixing absolute value for voltages
Nexarian Mar 27, 2025
dbfb331
Deobfuscated powerflow component
Nexarian Mar 27, 2025
b05acb6
Fixing DIN and cache
Nexarian May 3, 2025
33a76e1
Update docker file
Nexarian May 3, 2025
d97fcdc
Updates for stability enhancements
Nexarian May 15, 2025
f836c3c
Reducing pool size and making verify false by default
Nexarian May 15, 2025
8a3c571
Add pool block
Nexarian May 15, 2025
bbd753a
Forcing pool size to 1
Nexarian May 17, 2025
c165ac4
Add pool size to TEDAPI
Nexarian May 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 19 additions & 5 deletions proxy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
FROM python:3.10-alpine
FROM python:3.13-alpine

WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip3 install -r requirements.txt
COPY . .

# 1) copy in all the things that affect pip
COPY proxy/requirements.txt .
COPY setup.py requirements.txt README.md pypowerwall/ ./pypowerwall/

# 2) install build deps, upgrade pip, install everything, then remove build deps
RUN apk add --no-cache --virtual .build-deps \
gcc musl-dev python3-dev linux-headers \
&& python3 -m pip install --root-user-action ignore --upgrade pip \
&& python3 -m pip install --no-cache-dir --root-user-action ignore -r requirements.txt \
&& python3 -m pip install --no-cache-dir --root-user-action ignore ./pypowerwall \
&& apk del .build-deps

# 3) finally copy your proxy/server code
COPY proxy .

EXPOSE 8675 8685
CMD ["python3", "server.py"]
EXPOSE 8675
13 changes: 11 additions & 2 deletions proxy/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
pypowerwall==0.12.6
bs4==0.0.2
beautifulsoup4
bs4
protobuf
psutil
pypowerwall
pyroute2
requests
setuptools
teslapy
urllib3
wheel
Loading