Giter Site home page Giter Site logo

Comments (8)

ondrej1024 avatar ondrej1024 commented on July 24, 2024

All you need is Python3 installed on the machine you want to run carelink_client_proxy.py on. The machine can be in your local network (I use a RPi) or anywhere in the Cloud.

Make sure carelink_client.py and carelink_client_proxy.py are in the same directory and launch the proxy from command line with the -h option, which gives you a detailed description of the parameters:

python3 carelink_client_proxy.py -h

You get this output:

usage: carelink_client_proxy.py [-h] --username USERNAME --password PASSWORD
                                --country COUNTRY [--wait WAIT] [--verbose]

optional arguments:
  -h, --help            show this help message and exit
  --username USERNAME, -u USERNAME
                        CareLink username
  --password PASSWORD, -p PASSWORD
                        CareLink password
  --country COUNTRY, -c COUNTRY
                        CareLink two letter country code
  --wait WAIT, -w WAIT  Wait seconds between repeated calls (default 300)
  --verbose, -v         Verbose mode

So basically you have to provide your Carelink username, password and your two letter country code as command line parameters.

I will also provide a systemd init script which can be installed on Debian based systems to run carelink_client_proxy as systemd service. And I guess I need to update the README with some installation instructions 🤔

from carelink-python-client.

ondrej1024 avatar ondrej1024 commented on July 24, 2024

Actually I wouldn't recommend running carelink_client_proxy on a public Cloud service because it provides your personal Carelink data in plain text and without any authorization via its API. So it needs to run only in your local network.

from carelink-python-client.

sebastiangrugel avatar sebastiangrugel commented on July 24, 2024

Thanks for suggestion. For now i wanted test this and RUN those 2 files on my laptop with Windows 10 (on WSL2 Windows Sybsystem for Linux that same issue) where i have installed Python. Im trying install module "syslog" - looks like i have some issue...

image

and when i trying install module:
image

from carelink-python-client.

ondrej1024 avatar ondrej1024 commented on July 24, 2024

I'm afraid I cannot help you with Windows issues. But maybe Google can 😉
Alternatively you can just remove all syslog calls from the source code. You will loose logging functionality but the program should still work fine.

from carelink-python-client.

sebastiangrugel avatar sebastiangrugel commented on July 24, 2024

On which linux distribution this is working for you ? What linux is using Raspberry PI ?

from carelink-python-client.

ondrej1024 avatar ondrej1024 commented on July 24, 2024

I tried on a PC with Ubuntu and RaspberryPi with Raspbian (now Raspberry Pi OS). But it should just run on any distro with Python support.

from carelink-python-client.

ondrej1024 avatar ondrej1024 commented on July 24, 2024

Anyway, here is a modified version of carelink_client_proxy.py with syslog commented out.

from carelink-python-client.

ondrej1024 avatar ondrej1024 commented on July 24, 2024

@sebastiangrugel : Did you have any luck building and running the proxy on Windows?

from carelink-python-client.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.