Skip to content

Commit 5395dac

Browse files
committed
delete unused gitignore_global, and setup withings scale to garmin sync
1 parent 62b3eb4 commit 5395dac

4 files changed

+20
-49
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.env

.gitignore_global

-49
This file was deleted.

systemd/withings-garmin-sync.service

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[Unit]
2+
Description=Sync weight data between Withings and Garmin
3+
After=network.target
4+
5+
[Service]
6+
EnvironmentFile=/home/pi/dotfiles/systemd/.env
7+
;ExecStart=/bin/bash -c 'echo $$GARMIN_USERNAME at 2 days ago: $(date -d -2days +%%Y-%%m-%%d), looking also for $$WITHINGS_APP and $$WITHINGS_USER'
8+
ExecStart=/bin/bash -c '/home/pi/.local/bin/withings-sync --fromdate $(date -d -2days +%%Y-%%m-%%d)'

systemd/withings-garmin-sync.timer

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[Unit]
2+
Description=Run Withings Garmin sync regularly
3+
4+
[Timer]
5+
OnBootSec=15min
6+
OnUnitActiveSec=daily
7+
RandomizedDelaySec=12h
8+
Persistent=true
9+
10+
[Install]
11+
WantedBy=timers.target

0 commit comments

Comments
 (0)