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

Docker / K8 --features BLOOD_PRESSURE #193

Open
brisnick opened this issue Dec 21, 2024 · 3 comments
Open

Docker / K8 --features BLOOD_PRESSURE #193

brisnick opened this issue Dec 21, 2024 · 3 comments

Comments

@brisnick
Copy link

Hi, not so much of an issue as not well described.

How do I add the --features BLOOD_PRESSURE in either k8 or Docker containers?

Thanks,
Brisnick

@stynoo
Copy link
Contributor

stynoo commented Dec 21, 2024

Hi yes, it's not well described (yet). You will have to pass extra parameters to the docker entrypoint by completely replacing it.
ex ENTRYPOINT ["withings-sync", "--verbose", "--features BLOOD_PRESSURE"]

@brisnick
Copy link
Author

Thanks. I got this working with k8s-deployment.yaml by changing to:

    command: ["/bin/sh"]
    args: ["-c", "while true; do date; withings-sync --features BLOOD_PRESSURE; echo; sleep 21600; done"]

But with k8s-jobs.yaml I couldn't get the same to work:

     containers:
      - args: ["--features BLOOD_PRESSURE"]
        #- -v
        #- --features BLOOD_PRESSURE

2024-12-22 14:21:36 usage: withings-sync [-h] [--garmin-username GARMIN_USERNAME]
2024-12-22 14:21:36 [--garmin-password GARMIN_PASSWORD]
2024-12-22 14:21:36 [--trainerroad-username TRAINERROAD_USERNAME]
2024-12-22 14:21:36 [--trainerroad-password TRAINERROAD_PASSWORD]
2024-12-22 14:21:36 [--fromdate DATE] [--todate DATE] [--to-fit] [--to-json]
2024-12-22 14:21:36 [--output BASENAME] [--no-upload]
2024-12-22 14:21:36 [--features BLOOD_PRESSURE [BLOOD_PRESSURE ...]]
2024-12-22 14:21:36 [--verbose]
2024-12-22 14:21:36 withings-sync: error: unrecognized arguments: --features BLOOD_PRESSURE

Any ideas how to set this up as a k8s cronjob?

@brisnick
Copy link
Author

In case this helps anyone else, I think I have cracked it. My args should have been in the k8-jobs.yaml:

containers:
- args: ["--features", "BLOOD_PRESSURE"]

I will reset everything up in the next day or two and comment again that it all works.

Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants