Closed ROOTx2000 closed 7 months ago
开始运行是正常的,输出日志如下:
Get single run for codoon id xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx
.... Get single run for codoon id xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx
运行大概10多分钟之后,重复报如下错误:
Syncing tracks '+' means new track '.' means update tracks 2023-12-06 10:08:47,474 Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutErr or("HTTPSConnectionPool(host='nominatim.openstreetmap.org', port=443): Read timed out. (read timeout=1)")': /reverse?lat=x x.xxxxxxxxxxxx&lon=xxx.xxxxxxxxxxxxxxx&format=json&addressdetails=1
可以忽略这个
用的命令是:
python3 run_page/codoon_sync.py nnnnnnnnnn pppppppppppp --with-gpx
知道,这个是获取地点出错了,不影响使用,如果一直弹这个错你需要全局的梯子
谢谢大佬光速回复。 一直有挂全局梯子,昨天已经获取了600多条记录,之后就报错,再也没能获取到新的记录。 刚才重试的结果记录如下:
41 runs to parse
39 runs to parse
30 runs to parse
33 runs to parse
33 runs to parse
59 runs to parse
59 runs to parse
100 runs to parse
119 runs to parse
143 runs to parse
96 runs to parse
Get single run for codoon id xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx
...
Get single run for codoon id xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx
…
Syncing tracks '+' means new track '.' means update tracks
2023-12-06 10:44:05,543 Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='nominatim.openstreetmap.org', port=443): Read timed out. (read timeout=1)")': /reverse?lat=xx.xxxxxxxxxxxx&lon=xxx.xxxxxxxxxxxxxxx&format=json&addressdetails=1
2023-12-06 10:44:06,545 Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='nominatim.openstreetmap.org', port=443): Read timed out. (read timeout=1)")': /reverse?lat=xx.xxxxxxxxxxxxx&lon=xxx.xxxxxxxxxx&format=json&addressdetails=1
…
…
2023-12-06 11:28:06,482 Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 61] Connection refused')': /reverse?lat=xx.xxxxxxxxx&lon=xxx.xxxxxxxxxxx&format=json&addressdetails=1
…
ls | wc
If your points need trans from gcj02 to wgs84 coordinate which use by Mappbox TRANS_GCJ02_TO_WGS84 = True trans the coordinate data until the TRANS_END_DATE, work with TRANS_GCJ02_TO_WGS84 = True TRANS_END_DATE = "2014-03-24"
但是,2014-03-24之前的咕咚跑步记录总数不超过10条
退出没有报其它错误,最后一条错误日志仍然是上文提到的重复错误: [Errno 61] Connection refused
btw,请问除了跑步记录,是否还能导出骑行记录?——找到了,有个参数控制,待会验证下
# only for running sports, if you want others, please change the True to False
把“TRANS_GCJ02_TO_WGS84”改为“False”之后,没有报任何错误了,直接运行就结束了,没有下载到新的记录。 看起来能获取到的就是昨天这657条记录。 虽然在咕咚里看到的是729次记录。
完整的运行日志如下:
your refresh_token and user_id are xxxxxxxxxxxxxxxxxx xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 40 runs to parse 40 runs to parse 29 runs to parse 34 runs to parse 32 runs to parse 55 runs to parse 64 runs to parse 98 runs to parse 120 runs to parse 142 runs to parse 98 runs to parse Get single run for codoon id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx ID xxxxxxxxx has no total time just ignore please check No tracks found.
可以的,应该有骑行,但需要你自己diy 把 run 改成 cycle 啥的试试(api
记录已经获取完成,错误信息可以忽略
@ROOTx2000 骑行可以使用 @ben-29 的 https://github.com/ben-29/workouts_page
开始运行是正常的,输出日志如下:
Get single run for codoon id xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx
....
Get single run for codoon id xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx
运行大概10多分钟之后,重复报如下错误:
Syncing tracks '+' means new track '.' means update tracks
2023-12-06 10:08:47,474 Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutErr or("HTTPSConnectionPool(host='nominatim.openstreetmap.org', port=443): Read timed out. (read timeout=1)")': /reverse?lat=x x.xxxxxxxxxxxx&lon=xxx.xxxxxxxxxxxxxxx&format=json&addressdetails=1