Giter VIP home page Giter VIP logo

Comments (2)

Dave-DigiMim avatar Dave-DigiMim commented on June 19, 2024

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.

felipeam86 avatar felipeam86 commented on June 19, 2024

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)

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.