1
0
mirror of https://github.com/mbirth/tcl_ota_check.git synced 2024-11-14 00:06:46 +00:00
Commit Graph

39 Commits

Author SHA1 Message Date
42b499290c
When downloading new prds.json, display list of changes - if any. 2017-12-20 00:01:55 +01:00
9d8e0e8ff1
Bugfix with ANSI codes. 2017-12-19 23:58:26 +01:00
e56599d3b4
Download latest variants and versions from web service. 2017-12-17 03:12:09 +01:00
0da722a048
Added correct URL to uploader tool. Added notice if logs collected. 2017-11-12 22:19:04 +01:00
thurask
407ac1031e
force utf-8 encoding when writing xml 2017-11-08 16:25:31 -05:00
bce4cb9035
Also ignore HTTP 502 errors from remote servers. 2017-11-07 13:57:05 +01:00
697e332eb8 Force proper encoding before handling XML. 2017-11-03 11:46:31 +01:00
0446ac89e5 Revert "work around encoding errors with chinese text in check response"
This reverts commit 79357d7fdd.
2017-11-03 11:43:55 +01:00
thurask
79357d7fdd
work around encoding errors with chinese text in check response 2017-11-03 01:32:19 -04:00
bd6b1e9b0b
Use normpath() for readability. 2017-11-02 02:44:46 +01:00
thurask
5518afd17f
cross platform paths 2017-11-01 21:34:31 -04:00
a39cc4d050
Also dump download responses. 2017-11-02 02:08:22 +01:00
24ae0ba168
Dump all XML responses to files for later upload. 2017-11-02 02:02:13 +01:00
ae756192e4
Added new parameter ckot (query type: firmware OTA, app OTA or both).
Currently unused.
2017-10-30 23:17:45 +01:00
a25897e3fa
Colourise new OTA versions. More colours in tcllib. 2017-10-18 22:42:05 +02:00
thurask
eaa7418c34
fix type issues with post params 2017-10-14 20:15:37 -04:00
thurask
69315d8fe2
replace numeric constants with enums 2017-10-14 19:51:38 -04:00
thurask
173060dff1
use argparse 2017-10-10 15:25:38 -04:00
4fa9393fd6
Add requirements.txt and require defusedxml. 2017-10-06 22:25:11 +02:00
a3b1b90874
Added actual weighted choice. Numpy for now, Python 3.6 has it in
random.choices().
2017-10-06 02:49:23 +02:00
9253cf7f1f
Implemented weighting by response time. 2017-10-06 01:37:10 +02:00
f4319fcbbf
Added weighting of servers to preferrably choose faster ones. 2017-10-06 01:19:56 +02:00
8b7de97f84
Move retry code for checks into tcllib. 2017-10-05 23:51:07 +02:00
d167f06c3f More ANSI colours. 2017-10-05 17:59:27 +02:00
0fcb008232 Make timeout for check configurable. 2017-10-05 17:59:08 +02:00
ab18cc66c5 Highlight full versions different to latest OTA. 2017-10-05 16:21:48 +02:00
095ba8cebb
Moved ANSI_UP_DEL to tcllib. 2017-09-27 00:39:19 +02:00
thurask
c7f3e7bcaa
add scanner for unknown prds 2017-09-25 22:13:25 -04:00
thurask
0e3ebafb2d
make escape characters semi-work on windows 2017-09-23 16:17:57 -04:00
f1071509db Throw human readable exception for 404 errors. 2017-09-12 21:39:37 +02:00
thurask
1ba638df00
clean up network error messages 2017-09-07 12:47:13 -04:00
thurask
1d3e6db9a6
trickery 2017-09-01 15:53:21 -04:00
7077d6f675 Output file hash. Also better error output. 2017-09-01 18:34:15 +02:00
3dd99f9580 Raise RequestException instead of printing to console. 2017-09-01 17:58:36 +02:00
d864a2002a Add method to reset session for multiple update checks for different
PRDs.
2017-09-01 17:58:00 +02:00
03dc98b4e2 Add timeout of 10 seconds to check.php request. 2017-09-01 17:57:34 +02:00
98daf57086 Rename encrypt_header to do_encrypt_header. Changed signature. Also
write header.bin since we already received it.
2017-09-01 14:07:06 +02:00
525b2b4256 Separate credentials to also get them for checksum.php later. Fix
missing random import.
2017-09-01 13:59:12 +02:00
e827c6d679 Split into module + program. 2017-09-01 13:43:10 +02:00