Commit Graph

16 Commits

Author SHA1 Message Date
Colin Kuebler
39b9bcd768 Added API methods: .device.upgrade .timer and .config
tuya.device.upgrade.get and tuya.device.upgrade.silent.get should allow upgrades on devices where s.gw.upgrade is not called
2019-07-02 14:48:36 -04:00
Colin Kuebler
beab732cfe Implemented JSONHandler.reply to reduce code repetition
Adds timestamp, serializes response, and applies appropriate headers
Fetch gwId and a from query parameters instead of manual uri parsing
Represent API responses as dict objects for clarity and flexibility
Compute upgrade.bin md5 and file size only once when the server is started
2019-07-02 14:43:24 -04:00
Colin Kuebler
2309e03e74 Merge branch 'master' into smart-link-py 2019-03-23 11:37:37 -04:00
Colin Kuebler
780e62d99f Updated references to upgrade.bin
Simplify schema to lowest common denominator
2019-03-22 17:32:08 -04:00
Colin Kuebler
ce49a76f24 Removed old backup script and replaced with curl from new intermediate firmware backup endpoint 2019-03-22 17:09:26 -04:00
Colin Kuebler
40c0c026a7 Default bind address to our fake AP 2019-03-22 16:54:01 -04:00
Colin Kuebler
6f625371a8 Merge branch 'master' into smart-link-py 2019-01-28 12:04:45 -05:00
Colin Kuebler
aa51be827e Missed file permission commit; mark main.py executable 2019-01-27 15:52:29 -05:00
Michael Behrisch
aa4b4ecf34 Update setup_ap.sh 2019-01-27 18:18:27 +01:00
Colin Kuebler
379b26ffd7 Wrote Python 3 implementation of smartconfig
Includes broadcast strategy ported from tuyapi/link
Also includes multicast strategy not yet employed in tuyapi/link
Removed JS script and updated start_flash script to reflect changes
2019-01-26 18:25:16 -05:00
ms_vtrust
927e5c448a Update fake-registration-server.py 2019-01-22 16:05:54 +01:00
Merlin Schumacher
cb650aa379 Remove useless json file & updated gitignore 2019-01-21 17:46:23 +00:00
Merlin Schumacher
244896a816 Fixes for Python 3 2019-01-21 17:44:00 +00:00
Merlin Schumacher
080a4cb574 Unify python3 usage 2019-01-21 16:42:10 +00:00
Andrijan Möcker
ee8753086e Change to Python 3 2019-01-17 15:35:25 +01:00
Merlin Schumacher
f443485a6a Initial Commit 2019-01-16 20:32:16 +01:00