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

Another way to check firmware instead of using the command CheckFirmware. #30

Closed
mnpg opened this issue Jun 4, 2023 · 4 comments
Closed

Comments

@mnpg
Copy link

mnpg commented Jun 4, 2023

Hi @starkillerOG,

i found another way to check the firmware update through the official Reolink Download Center if the cameras do not have the CheckFirmware command.

It's a wordpress server and you can have json results for having these informations .

Here the method :

  • First step : Retrieve the GetDevInfo of the camera specially the fields : Model and Hardware No

  • Second step : curl this url below to have all the firmware and product id listed in their database :
    https://reolink.com/wp-json/reo-v2/download/hardware-version/selection-list

  • Filter in the return hardware-version json with the GetDevInfo you got (the model and Hardware no). You will have in return a id (#id_hardware_n°#) and an dlProduct>id (#id_model#) for this model and hardware

  • After that third step : curl this url below with these ids you got :
    https://reolink.com/wp-json/reo-v2/download/firmware/?dlProductId=#id_model#&hardwareVersion=#id_hardware_n°#&lang=en

  • In the last json page, you will find the date that the firmware has been release (EPOCH date) :

data > 0 > firmwares > 0 > displayTime
you can compare it with current date and check if the display date is the same the current date

Regards

@mnpg mnpg changed the title Another ay to check firmware instead of using the command CheckFirmware. Another way to check firmware instead of using the command CheckFirmware. Jun 4, 2023
@starkillerOG
Copy link
Owner

@mnpg that is a greath find!
The build-in firmware check command is really flakey, so I think this method will work a lot better.
This also provides more information such us the new firmware version name and release notes.

I am certainly going to implement this as soon as I have some time!

This was referenced Jun 5, 2023
@mnpg mnpg closed this as completed Jun 6, 2023
@starkillerOG
Copy link
Owner

@mnpg I implemented this new method in this PR: #32 , works greath.
Thank you very much for the suggestion!

@mnpg
Copy link
Author

mnpg commented Jun 8, 2023

@starkillerOG, no problem. I'm pleased to help you and the HA Reolinkers community. Thanks to you 👍
Just one thing, i add a comment for the PR (ISP settings) that you have merged last week :#29. Can you take a look because for these isp settings are linked to getability capabilities and in the code, i ain't see something like that but i'm not sure
Tell me if i'm wrong.
Regards

@starkillerOG
Copy link
Owner

I just added the check of the capabilities in commit: 21adca6
Thanks for making me aware of this.

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