Updated README. Small fixes.

This commit is contained in:
2019-09-13 16:54:12 +02:00
parent 77e19a5b5e
commit eb3f048d11
3 changed files with 26 additions and 17 deletions
+7 -7
View File
@@ -12,7 +12,7 @@ import requests
PROTO_API_GETALLUNITSOFTWAREUPDATES_URL = "http://omt.garmin.com/Rce/ProtobufApi/SoftwareUpdateService/GetAllUnitSoftwareUpdates"
WEBUPDATER_SOFTWAREUPDATE_URL = "https://www.garmin.com/support/WUSoftwareUpdate.jsp"
GRMN_CLIENT_VERSION = "5.7.0.2"
GRMN_CLIENT_VERSION = "6.17.0.0"
class UpdateServer:
@@ -123,9 +123,9 @@ class UpdateServer:
return None
#print(r.content)
with open("protoreply.bin", "wb") as f:
f.write(r.content)
f.close()
#with open("protoreply.bin", "wb") as f:
# f.write(r.content)
# f.close()
reply = GetAllUnitSoftwareUpdates_pb2.GetAllUnitSoftwareUpdatesReply()
reply.ParseFromString(r.content)
@@ -148,8 +148,8 @@ class UpdateServer:
return None
#print(r.content)
with open("webupdaterreply.xml", "wb") as f:
f.write(r.content)
f.close()
#with open("webupdaterreply.xml", "wb") as f:
# f.write(r.content)
# f.close()
return r.content