withings-sync
Synchronisation of Withings weight
파일 탐색기
최종 버전 다운로드 (.zip)- build-publish.yml
- docker-image.yml
- icon.png
- k8s-bootstrap.yaml
- k8s-deployment.yaml
- k8s-job.yaml
- k8s-pvc.yaml
- withings.html
- withings_app.json
- __init__.py
- fit.py
- garmin.py
- sync.py
- trainerroad.py
- withings2.py
- .env.example
- .gitignore
- Dockerfile
- LICENSE
- MANIFEST.in
- poetry.lock
- pyproject.toml
- README.md
# 설치 가이드
1. 코드 내려받기
git clone https://github.com/jaroslawhartman/withings-sync
깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.
cd withings-sync
방금 내려받은 프로젝트 폴더 안으로 이동합니다.
2. Docker
쉬움 추천사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Docker Desktop 컨테이너를 빌드하고 실행하려면 필요합니다. 설치 후 실행해서 백그라운드에 켜두세요.
./docker-compose.yml # docker-compose file
compose 설정 파일에 정의된 서비스들을 대상으로 명령을 실행합니다.
stdin_open: true # docker run -i
빌드된 이미지를 실제 컨테이너로 실행합니다.
tty: true # docker run -t
빌드된 이미지를 실제 컨테이너로 실행합니다.
$ docker compose pull
compose 설정 파일에 정의된 서비스들을 대상으로 명령을 실행합니다.
$ docker compose run -it --remove-orphans --entrypoint "poetry run withings-sync --config-folder /config" withings-sync
compose 설정 파일에 정의된 서비스들을 대상으로 명령을 실행합니다.
터미널에 docker compose ps 를 입력해 컨테이너들이 Up 상태인지 확인하세요. README에 포트 번호가 적혀있다면 브라우저에서 http://localhost:포트번호 로 접속해보세요.
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
3. Python
쉬움사전 준비물
$ pip install withings-sync
requirements.txt 등에 명시된 파이썬 라이브러리를 설치합니다.
$ docker compose run -it --remove-orphans --entrypoint "poetry run withings-sync --config-folder /config" withings-sync
compose 설정 파일에 정의된 서비스들을 대상으로 명령을 실행합니다.
echo "$(( $RANDOM % 59 +0 )) */3 * * * * * poetry run withings-sync --config-folder /config --features BLOOD_PRESSURE" > /home/withings-sync/cronjob
이 명령어를 터미널에 그대로 입력해 실행하세요.
withings-sync | DEBU[2024-12-24T09:23:55+01:00] try parse (7 fields): '53 */3 * * * poetry run'
이 명령어를 터미널에 그대로 입력해 실행하세요.
withings-sync | DEBU[2024-12-24T09:23:55+01:00] failed to parse (7 fields): '53 */3 * * * poetry run': failed: syntax error in day-of-week field: 'poetry'
이 명령어를 터미널에 그대로 입력해 실행하세요.
에러 메시지 없이 실행되고 터미널에 안내 문구가 출력되면 정상입니다.
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
// repository documentation
Was this content helpful?
(0 ratings)
