Skip to content

Commit 93c7e23

Browse files
committed
change special event, use token
1 parent 13d38fc commit 93c7e23

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ FROM python:3.9
33
RUN curl -sL https://particle.io/install-cli | bash
44
RUN ln -s /root/bin/particle /usr/local/bin/particle
55

6-
ARG PARTICLE_USERNAME
7-
ARG PARTICLE_PASSWORD
8-
RUN /root/bin/particle login --username $PARTICLE_USERNAME --password $PARTICLE_PASSWORD
9-
RUN unset PARTICLE_USERNAME
10-
RUN unset PARTICLE_PASSWORD
6+
ARG PARTICLE_TOKEN
7+
RUN /root/bin/particle login --token $PARTICLE_TOKEN
8+
RUN unset PARTICLE_TOKEN
119

1210
COPY darksky-master.zip .
1311
COPY forecast.patch .

wxpaper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
def allowance():
1717
return requests.get('https://3e.org/private/allowance-capy-retrieve.py').text.strip()
1818

19-
def days_until_disney():
20-
target_date = datetime(2024, 4, 5)
19+
def days_until_special_event():
20+
target_date = datetime(2024, 6, 20)
2121
current_date = datetime.now()
2222
difference = target_date - current_date
2323
return f"{difference.days} days"
@@ -164,7 +164,7 @@ def do_update():
164164
paper_smallnum(uv_one_dig(today.uv_index), 80, 310)
165165

166166
paper_fontsize(32)
167-
paper_text(allowance() + ", " + days_until_disney(), 261, 530)
167+
paper_text(allowance() + ", " + days_until_special_event(), 261, 530)
168168
paper_fontsize(32)
169169
paper_text(today.summary, 20, 570)
170170

0 commit comments

Comments
 (0)