Skip to content

Commit 507dbb8

Browse files
committed
auto push to gitlab
1 parent 3699aab commit 507dbb8

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

.github/workflows/action.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Sync Repo to GitLab
2+
3+
on:
4+
push
5+
6+
jobs:
7+
sync:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: keninkujovic/[email protected]
11+
with:
12+
gitlab_url: ${{ secrets.GITLAB_URL }}
13+
username: ${{ secrets.USERNAME }}
14+
gitlab_pat: ${{ secrets.GITLAB_PAT }}

pyobs_weather/weather/stations/mcdvt100.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ def update(self):
9090
dt = datetime.datetime.strptime(date_line, "%d %b %Y %H:%M:%S").astimezone(pytz.timezone('US/Central'))
9191

9292
# compare with today
93-
now = datetime.datetime.now(pytz.timezone('US/Central'))
94-
if dt.date() != now.date():
95-
log.error('Weather data from server not for today.')
96-
return
93+
#now = datetime.datetime.now(pytz.timezone('US/Central'))
94+
#if dt.date() != now.date():
95+
# log.error('Weather data from server not for today.')
96+
# return
9797

9898
# 3rd, 4th, and 5th lines
9999
if lines[3].strip() != 'DATE TIME | TEMP RH DEWPT|WIND GUST WDIR|PRESSURE|DUST|RAIN':

0 commit comments

Comments
 (0)