Skip to content

Can't get Image Pop Up #12

@naigy81

Description

@naigy81

Hi,

Had a great deal of difficulty getting this to work (originally trying to do from ESP8266) but ended up managing in Python 3.8 from my Windows PC so may end up with doing it from my Automation Raspberry Pi once its all functional.

The code I am using is as follows (entered straight into the Python Shell if that's relevant)

`payload = {
"duration": 10,
"position": 2,
"title": "Security - Front Door",
"titleColor": "#50BFF2",
"titleSize": 10,
"message": "Someone is at the door",
"messageColor": "#fbf5f5",
"messageSize": 14,
"backgroundColor": "#0f0e0e",
"media": { "image": {
"uri": "http://192.168.1.87/webcapture.jpg?command=snap&channel=1&user=admin&password=myownpasswordhere", "width": 580
}}
}

request = requests.post('http://192.168.1.224:7979/notify',
data=json.dumps(payload),
headers={'content-type': 'application/json'})`

I have other Onvif security cameras which have different URL formats for snapshot image (with and without passwords etc. in URL) and can't get any to work. Even if I download one of them and then change the http:// to relevant file:// reference I get the same result.

Text window appears fine but just can't get an image at all.

Any suggestions what I may be doing wrong. Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions