Comments (8)
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.
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.
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...
and when i trying install module:
from carelink-python-client.
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.
On which linux distribution this is working for you ? What linux is using Raspberry PI ?
from carelink-python-client.
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.
Anyway, here is a modified version of carelink_client_proxy.py with syslog commented out.
from carelink-python-client.
@sebastiangrugel : Did you have any luck building and running the proxy on Windows?
from carelink-python-client.
Related Issues (13)
- Login fails due to Recaptcha HOT 52
- How to get Access Token? HOT 2
- Bad bolus datetimes returned by Medtronic HOT 2
- Token does not survive reboot HOT 8
- carelink_carepartner_api_login.py returns exception HOT 3
- :INFO]_get_data() Expecting value: line 1 column 1 (char 0) HOT 11
- Unable to disable MFA HOT 1
- Carelink in Canada HOT 16
- 400 Forbidden Error when fetching last 24h data HOT 5
- Login fails after Carelink update HOT 15
- _cli works with patient parameter, but not in own script via import HOT 2
- Reuse auth_cookie instead of relogin HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from carelink-python-client.