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

Add force temperature refresh of individual camera #734

Open
Tahlor opened this issue Jul 15, 2023 · 3 comments
Open

Add force temperature refresh of individual camera #734

Tahlor opened this issue Jul 15, 2023 · 3 comments
Labels
feature-request Something that would be nice to have, or expands functionality help-wanted Assistance required due to lack of resources for testing or complexity

Comments

@Tahlor
Copy link

Tahlor commented Jul 15, 2023

Is there a way to ensure camera temperatures are contemporaneous?

With the Blink app, I seem to be able to manually request the camera to sync the temperature with the sync module/server, which can be several hours out of date. It seems like the blinkpy doesn't support this?

I.e., my understanding is that "refresh" in the various blinkpy modules refers to syncing with the server, not refreshing each camera per se (though other kinds of updates like motion, the camera will presumably have pushed these to the server).

@fronzbot
Copy link
Owner

my understanding is that "refresh" in the various blinkpy modules refers to syncing with the server, not refreshing each camera per se

Yeah that's correct. Any sensor data would have had to been communicated by the camera to the sync module. Now, if you have an option in the app to request the camera to sync sensor data that means an API endpoints must exist that we can mimic. We would just need to find that endpoint to add support.

What camera do you have that gives you the sync option? I have a Mini and an XT2 but don't see any sensor syncing options. Maybe I'm not looking in the right spot (or maybe my app/firmware is out of date)

@Tahlor
Copy link
Author

Tahlor commented Jul 15, 2023

Thanks. When I go to "General Settings" on at least the Blink XT or the Outdoor 3, I can "pull down" the screen to refresh it.

I imagine I'd need to do some MITM SSL hack to infer the API endpoint? I tried the old "Package Capture" app, but couldn't get it to work on even my old devices.

@fronzbot fronzbot added feature-request Something that would be nice to have, or expands functionality help-wanted Assistance required due to lack of resources for testing or complexity labels Aug 17, 2023
@fronzbot fronzbot changed the title Force Refresh Temperature? Add force temperature refresh of individual camera Aug 17, 2023
@Rosi2143
Copy link
Contributor

Hi @Tahlor,

for me (with my Outdoor Gen3) it does work with the temperature update.

async def get_temperature(blink):
    await blink.refresh()

    for sync in blink.sync.values():
        await sync.update_cameras()

    for camera in blink.cameras.values():
        print(camera.name)
        print(camera.temperature_calibrated)
        print(camera.temperature_c)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Something that would be nice to have, or expands functionality help-wanted Assistance required due to lack of resources for testing or complexity
Projects
None yet
Development

No branches or pull requests

3 participants