Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All the changes #59

Open
wants to merge 50 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 47 commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
dd4677d
Patch to prevent crashes when hostname lookups fail
ltfiend Apr 23, 2019
9161652
fix validity check to avoid no sleep condition
fzahle Apr 23, 2019
ec22440
Fix #51 Invalid Field Format
wtran63 Jun 16, 2019
bae338a
Merge pull request #2 from fzahle/validity_checks_fix
wtran63 Jun 16, 2019
f2cde22
Added vehicle_is_charging and vehicle_is_driving methods
wtran63 Jun 16, 2019
49c173d
Merge pull request #3 from wtran63/fix-car-drive-polling
wtran63 Jun 17, 2019
c9b8ee7
Renamed Functions and added usage to drive checks
wtran63 Jun 17, 2019
2a1acaa
Merge pull request #4 from wtran63/fix-car-drive-polling
wtran63 Jun 17, 2019
2d8206c
Added offline check to reduce polling.
wtran63 Jun 20, 2019
6c22526
Fix temperature not showing in defined variable
Geczy Jul 23, 2019
8ece10f
Optimize screenshots, save 64% filesize
Geczy Jul 23, 2019
69f5960
Merge branch 'master' of https://github.com/Lunars/tesla-apiscraper
Geczy Jul 23, 2019
6a80f38
Merge pull request #1 from wtran63/fix-srtmread-error
Geczy Jul 23, 2019
45e0bb8
Merge pull request #2 from fzahle/validity_checks_fix
Geczy Jul 23, 2019
c08c442
Update README.md
Geczy Jul 23, 2019
1af77bc
Update readme
Geczy Jul 23, 2019
deb3005
Update readme
Geczy Jul 23, 2019
1248a86
Readme update
Geczy Jul 23, 2019
d059199
Add auto instal script
Geczy Jul 23, 2019
73066a1
Readme update
Geczy Jul 23, 2019
33dfd3b
Readme update
Geczy Jul 23, 2019
9020aa5
Add migrate steps
Geczy Jul 23, 2019
f58b2ef
Readme update
Geczy Jul 23, 2019
7e80695
do not allow pi0 install
Geczy Jul 23, 2019
6e8d8b2
Fix installer to add correct user
Geczy Jul 23, 2019
049c359
Merge pull request #3 from wtran63/master
Geczy Jul 23, 2019
662f41a
Merge pull request #4 from wtran63/fix-car-drive-polling
Geczy Jul 23, 2019
3ba9869
Merge pull request #5 from pdevries78/master
Geczy Jul 23, 2019
2c54957
Update README.md
Geczy Jul 23, 2019
9726221
Update README.md
Geczy Jul 23, 2019
fc704a4
Update README.md
Geczy Jul 23, 2019
99bfba1
Update README.md
Geczy Jul 23, 2019
ba47b45
refactor(docker): use data/ rather than rely on /opt
STRML Jul 23, 2019
b8855c7
docs(README): simplify init
STRML Jul 23, 2019
46bb04d
fix(dashboard2docker): mac-compatible sed syntax
STRML Jul 23, 2019
60a5a91
refactor(Dockerfile): simplify Dockerfile
STRML Jul 23, 2019
1b42b6d
feat(docker-compose): add influx healthcheck & template apiscrapers
STRML Jul 23, 2019
8337f7c
Update Dockerfile.compose
Geczy Jul 23, 2019
b4f299e
Update Dockerfile
Geczy Jul 23, 2019
7c7fb3f
Update README.md
Geczy Jul 23, 2019
d1e95e8
Update Dockerfile
Geczy Jul 23, 2019
623b047
Update Dockerfile.compose
Geczy Jul 23, 2019
d72a52f
Merge pull request #6 from STRML/fix/data-dirs
Geczy Jul 23, 2019
4eceb04
Merge branch 'master' into refactor/docker-compose
Geczy Jul 23, 2019
572d6f7
Merge pull request #7 from STRML/refactor/docker-compose
Geczy Jul 23, 2019
e14bf4f
Update README.md
Geczy Jul 24, 2019
756b93a
Update docker-compose.yml
Geczy Jul 24, 2019
b78c117
Update install.sh
Geczy Jul 25, 2019
7828777
Update README.md
Geczy Jul 25, 2019
ea46ab1
Update README.md
Geczy Jul 25, 2019
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
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# Exclude
config.py
config*.py
teslajson-master/
master.zip
*.pyc
apiscraper.log
*.log
.idea
hgt/*.zip
hgt/*.hgt
hgt/*.downloading
*.iml
provisioning/dashboards/*.json
provisioning/dashboards/*.bak
data/*
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ RUN apt-get install -y nodejs
# Install Grafana addons
RUN apt-get -y install git
WORKDIR /var/lib/grafana/plugins
RUN git clone https://github.com/lephisto/grafana-trackmap-panel
RUN git clone https://github.com/Lunars/grafana-trackmap-panel
WORKDIR /var/lib/grafana/plugins/grafana-trackmap-panel
RUN git checkout v2.0.4-teslascraper
RUN git checkout master
RUN npm install
RUN npm audit fix
RUN npm run build
Expand All @@ -39,7 +39,7 @@ RUN grafana-cli plugins install natel-discrete-panel
# Install Tesla API Scraper
RUN apt-get -y install python3-pip
WORKDIR /
RUN git clone https://github.com/lephisto/tesla-apiscraper
RUN git clone https://github.com/Lunars/tesla-apiscraper
RUN pip3 install influxdb

RUN git clone https://github.com/tkrajina/srtm.py
Expand All @@ -49,7 +49,7 @@ WORKDIR /

# Configure it
WORKDIR tesla-apiscraper
RUN git checkout v2019.5
RUN git checkout master
RUN cp config.py.dist config.py

# Create temp files for dashboard API calls
Expand Down
41 changes: 12 additions & 29 deletions Dockerfile.compose
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,20 @@

FROM debian:stretch-slim

RUN apt-get -y update
# Install Dependencies
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
&& rm -rf /var/lib/apt/lists/*

# Install Python
RUN apt-get -y install python3
RUN apt-get -y install apt-transport-https
RUN apt-get -y install curl
RUN apt-get -y install gnupg2
RUN apt-get -y install git
# Install python dependencies. Do this before copying the entire project to keep cache.
COPY requirements.txt /tmp/
RUN pip3 install --requirement /tmp/requirements.txt

# Install Tesla API Scraper
RUN apt-get -y install python3-pip
WORKDIR /
RUN pip3 install influxdb

RUN git clone https://github.com/tkrajina/srtm.py
WORKDIR srtm.py
RUN python3 ./setup.py install
WORKDIR /

ARG CACHEBUST=1
ARG gitversion
# Configure it
RUN git clone https://github.com/lephisto/tesla-apiscraper
WORKDIR tesla-apiscraper
RUN git pull
RUN git checkout $gitversion
# Define our startup script
RUN echo "#!/bin/bash" > /start.sh
RUN echo "python3 /tesla-apiscraper/apiscraper.py" >> /start.sh
RUN chmod +x /start.sh
# Copy in this project
COPY . /tesla-apiscraper
WORKDIR /tesla-apiscraper

# Run it
EXPOSE 8023
CMD /start.sh
CMD ["python3", "/tesla-apiscraper/apiscraper.py"]
Loading