Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Download Credentials and Firmware for Hub #33

Open
ziogref opened this issue Nov 19, 2023 · 2 comments
Open

Unable to Download Credentials and Firmware for Hub #33

ziogref opened this issue Nov 19, 2023 · 2 comments

Comments

@ziogref
Copy link

ziogref commented Nov 19, 2023

On both my Home assistant server and my laptop I am unable to download the Firmware for the pet hub.

Here is the console output from the docker container when running pethublocal setup

Download Credentials and Firmware for Hub (highly recommended)? Y/N y INFO:pethublocal:Current Hub Firmware 233.364 INFO:pethublocal:Downloading Current Firmware for H010-0807262 INFO:pethublocal:SureHub Host hub.api.surehub.io IP Address: 15.197.140.15 INFO:pethublocal:Downloading first firmware record to get header information DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 15.197.140.15:80 DEBUG:urllib3.connectionpool:http://15.197.140.15:80 "POST /api/firmware HTTP/1.1" 400 None Traceback (most recent call last): File "/usr/local/bin/pethublocal", line 8, in <module> sys.exit(cli()) File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1157, in __call__ return self.main(*args, **kwargs) File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/local/lib/python3.9/site-packages/click/core.py", line 783, in invoke return __callback(*args, **kwargs) File "/usr/local/lib/python3.9/site-packages/click/decorators.py", line 33, in new_func return f(get_current_context(), *args, **kwargs) File "/usr/local/lib/python3.9/site-packages/pethublocal/cli/__init__.py", line 72, in setup pethubconfig = config_load(True, force) File "/usr/local/lib/python3.9/site-packages/pethublocal/functions.py", line 379, in config_load log.info(download_firmware(serial_number, force)) File "/usr/local/lib/python3.9/site-packages/pethublocal/functions.py", line 99, in download_firmware download_firmware_record(surehubio, serialnumber, BOOTLOADER, 0) File "/usr/local/lib/python3.9/site-packages/pethublocal/functions.py", line 78, in download_firmware_record response.raise_for_status() # Ensure we notice bad responses File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http://15.197.140.15/api/firmware

@flyize
Copy link

flyize commented Nov 20, 2023

IIRC, @plambrechtsen said they no longer post it. As it stands, this repo no longer works with hubs on the current firmware.

@ziogref
Copy link
Author

ziogref commented Nov 21, 2023

IIRC, @plambrechtsen said they no longer post it. As it stands, this repo no longer works with hubs on the current firmware.

Ah that sucks. Might have to keep an eye out for the ESP32 mentioned on issue #31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants