Comments (2)
I just used this script to try 10 times.
import os
from time import sleep
from sys import argv
from os.path import exists
def importgarpy(u,p,f,fd):
print("%s,%s,%s,%s"%(u,p,f,fd))
os.system("cd %s"%fd)
print(" changed path")
os.system("sudo chown -R pi:pi ./")
os.system("touch %s/startuptest"%fd)
os.system("/home/pi/.local/bin/garpy download -u %s -p %s 2>&1 | tee %s/%s"%(u,p,fd,f))
os.system("tail -1 %s/%s > %s/lastline.txt"%(fd,f,fd))
val=open("%s/%s"%(fd,f), "r").read()
print(val)
print(val.startswith("ConnectionError: authentication failure:") )
if val.startswith("ConnectionError: authentication failure:") != 0:
print("Connection Error")
return False
else:
return True
cnt=0
print("User=",argv[1],"Pass =",argv[2],"Filelog =",argv[3],"Folder=",argv[4])
while True:
res= importgarpy(argv[1],argv[2],argv[3],argv[4])
print("count ",cnt ,res)
if res==True:
print("Done")
break
elif cnt>10:
break
sleep(30)
cnt+=1
from garpy.
Hi @Dave-DigiMim,
Sorry for not replying earlier. I am getting the same random connection error. Garmin is getting better at blocking crawlers. For the moment, I don't have an easy fix for this.
I hope to find a solution when I have some available time.
from garpy.
Related Issues (13)
- Initial Update
- Download fails with error code 402 (payment required) HOT 4
- Error stating backup directory path is invalid HOT 13
- https://sso.garmin.com HOT 4
- Credential issues again HOT 8
- Provide a Dockerfile? HOT 4
- Garmin breaks Garpy? now always getting a HTTP: 402 HOT 4
- "mkl" == "kml"? HOT 1
- ConnectionError: authentication failure: did you enter valid credentials?
- {"message":"HTTP 403 Forbidden","error":"ForbiddenException"} HOT 4
- Getting 400 error or syntax error when I run this HOT 1
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
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 garpy.