Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bessarabov/e8a0317b8c50846bd112a9e9ad1b7ed2 to your computer and use it in GitHub Desktop.
Save bessarabov/e8a0317b8c50846bd112a9e9ad1b7ed2 to your computer and use it in GitHub Desktop.
(venv) bessarabov@u:~$ mirobo --ip 192.168.8.1 --token 5352... update-firmware --ip 192.168.8.31 ./vacuum/output/vacuum_4004_valetudo_0_5_1.pkg
Going to update from ./vacuum/output/vacuum_4004_valetudo_0_5_1.pkg
INFO:miio.updater:Serving on 0.0.0.0:38663, timeout 10
INFO:miio.updater:Using local ./vacuum/output/vacuum_4004_valetudo_0_5_1.pkg (md5: bcc8f55ff6dbf8536d3e31c96498a5b8)
Hosting file at http://192.168.8.31:38663/vacuum_4004_valetudo_0_5_1.pkg
ERROR:miio.updater:No request was made..
ERROR:miio.protocol:unable to parse json '': Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "/home/bessarabov/flasher/venv/lib/python3.8/site-packages/miio/miioprotocol.py", line 177, in send
data, addr = s.recvfrom(1024)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/bessarabov/flasher/venv/lib/python3.8/site-packages/miio/miioprotocol.py", line 177, in send
data, addr = s.recvfrom(1024)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/bessarabov/flasher/venv/bin/mirobo", line 8, in <module>
sys.exit(cli())
File "/home/bessarabov/flasher/venv/lib/python3.8/site-packages/miio/click_common.py", line 59, in __call__
return self.main(*args, **kwargs)
File "/home/bessarabov/flasher/venv/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/bessarabov/flasher/venv/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/bessarabov/flasher/venv/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/bessarabov/flasher/venv/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/bessarabov/flasher/venv/lib/python3.8/site-packages/click/decorators.py", line 73, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/home/bessarabov/flasher/venv/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/bessarabov/flasher/venv/lib/python3.8/site-packages/miio/vacuum_cli.py", line 609, in update_firmware
update_res = vac.update(url, md5)
File "/home/bessarabov/flasher/venv/lib/python3.8/site-packages/miio/device.py", line 167, in update
return self._protocol.send("miIO.ota", payload)[0] == "ok"
File "/home/bessarabov/flasher/venv/lib/python3.8/site-packages/miio/miioprotocol.py", line 215, in send
return self.send(command, parameters, retry_count - 1)
File "/home/bessarabov/flasher/venv/lib/python3.8/site-packages/miio/miioprotocol.py", line 215, in send
return self.send(command, parameters, retry_count - 1)
File "/home/bessarabov/flasher/venv/lib/python3.8/site-packages/miio/miioprotocol.py", line 183, in send
self.__id = m.data.value["id"]
TypeError: 'NoneType' object is not subscriptable
(venv) bessarabov@u:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment