blockly mailing snapthot camera issue

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
gbonny
Posts: 27
Joined: Friday 27 October 2017 22:08
Target OS: Linux
Domoticz version:
Contact:

blockly mailing snapthot camera issue

Post by gbonny »

Version 2024.7
Platform Ubuntu 22.04 LTS VM on ESXi 7
Description:

Hi, I'm trying to set up the following blockly.
blockly2.png
blockly2.png (22.05 KiB) Viewed 654 times
What is working: doorbell button is pressed (connected to my fibaro smart implant) both chimes ring.

What is not working:
1. the time is ignored for one of the chimes. I expect it shouldn't ring between 18.55h - 07.05h. (I don't want to wake the kids during the night/evening)
2. there is no snapshot sent via email. The log throws an error:
2024-10-29 20:56:17.884 Error: SMTP Mailer: Error sending Email to: <[email protected]> !
2024-10-29 20:56:17.884 Error: libcurl: (56)
2024-10-29 20:56:17.884 Error: Failure when receiving data from the peer
2024-10-29 20:56:17.884

I've setup email in settings and receive notifications normally. I have checked "Snapshots as attachments (Gmail)."
When "Snapshots as attachments (Gmail)" is unchecked I receive the image in alphabetical-format/base64(?) encoded.
I can see the image clearly in Camera settings, it's a Dahua, image URL: cgi-bin/snapshot.cgi?Channel=1

Is there anything I can do on my side? Has someone else the same problem? I haven't set it up on earlier versions of Domoticz, just now.
Domoticz 2024.7 on Ubuntu 22.04 LTS VM on ESXi 7
SolarEdge Web API, P1 meter, RFXCOM433E, OpenZWave via ZMEEUZB1, MQTT AD Client Gateway ZWave-JS-UI, Philips Hue bridge, Kodi Media server, Panasonic TV, OWM, BuienRadar and HTTP/HTTPS poller Watermeter
User avatar
waltervl
Posts: 5733
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: blockly mailing snapthot camera issue

Post by waltervl »

Technically sending snapshots is working with a Gmail account. I use it too. But perhaps there is some local storage going wrong?As you seem to have Ubuntu running as a VM?

As a test you can also use a dummy switch and attach it to the camera to have a snapshot sent. You are able to see the camera images in Domoticz?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
gbonny
Posts: 27
Joined: Friday 27 October 2017 22:08
Target OS: Linux
Domoticz version:
Contact:

Re: blockly mailing snapthot camera issue

Post by gbonny »

waltervl wrote: Wednesday 30 October 2024 0:35 Technically sending snapshots is working with a Gmail account. I use it too. But perhaps there is some local storage going wrong?As you seem to have Ubuntu running as a VM?

As a test you can also use a dummy switch and attach it to the camera to have a snapshot sent. You are able to see the camera images in Domoticz?
I have a Domoticz service in /etc/systemd/system/domoticz.service:

Code: Select all

[Unit]
       Description=domoticz_service
[Service]
       User=domoticz
       Group=domoticz

       ExecStart=/home/domoticz/domoticz/domoticz -www 0 -sslwww 443 -sslcert /home/domoticz/domoticz/server_cert.pem -log /var/log/domoticz.log
       WorkingDirectory=/home/domoticz
       #        
       # Give the right to open priviliged ports. This allows you to run on a port <1024 without root permissions (user/group setting above)
       #
       # The following works on Ubuntu 18.04
       AmbientCapabilities=CAP_NET_BIND_SERVICE
       #
       Restart=on-failure
       RestartSec=1m
       #StandardOutput=null
[Install]
       WantedBy=multi-user.target
Domoticz is running under user Domoticz. Domoticz files are located in /home/domoticz/domoticz

domoticz1:/home/domoticz/domoticz$ ps aux | grep domoticz
domoticz 844 1.0 7.9 2111772 77536 ? Ssl 10:12 0:25 /home/domoticz/domoticz/domoticz -www 0 -sslwww 443 -sslcert /home/domoticz/domoticz/server_cert.pem -log /var/log/domoticz.log

Code: Select all

domoticz1:/home/domoticz/domoticz$ ls -liah
total 44M
526129 drwxr-xr-x   8 domoticz domoticz 4.0K Oct 30 10:56 .
557423 drwxr-xr-x   9 domoticz domoticz 4.0K Jul 19 09:59 ..
524699 drwxr-xr-x   2 domoticz domoticz 4.0K Oct 23 20:17 backups
557468 drwxr-xr-x 123 domoticz domoticz 4.0K May  2 16:45 Config
525387 -rw-r--r--   1 domoticz domoticz  312 Oct 30 10:56 domocookie.txt
524919 -rwxr-xr-x   1 domoticz domoticz  18M Jul 13 17:06 domoticz
556558 -rw-r--r--   1 domoticz domoticz  12M Oct 30 10:55 domoticz.db
526431 -rw-r--r--   1 domoticz domoticz  32K Oct 30 10:56 domoticz.db-shm
524729 -rw-r--r--   1 domoticz domoticz  15M Oct 30 10:56 domoticz.db-wal
525095 -rw-r--r--   1 domoticz domoticz 5.8K Apr 25  2023 domoticz.sh
411151 drwxr-xr-x   4 domoticz domoticz 4.0K Oct 19  2022 dzVents
524992 -rw-r--r--   1 domoticz domoticz 117K Jul 13 17:02 History.txt
525028 -rw-r--r--   1 domoticz domoticz  35K Oct 19  2022 License.txt
524851 -rw-r--r--   1 domoticz domoticz  223 Oct 28 21:15 ozwcp.poll.XXXXXX.xml
525324 -rw-r--r--   1 domoticz domoticz 118K Apr  2  2023 ozwcp.stat.XXXXXX
525160 -rw-r--r--   1 domoticz domoticz   53 Apr 21  2021 ozwcp.testheal.XXXXXX
557544 drwxr-xr-x   4 domoticz domoticz 4.0K Apr 13  2021 plugins
411080 drwxr-xr-x   9 domoticz domoticz 4.0K Apr  3  2024 scripts
525109 -rw-r--r--   1 domoticz domoticz 3.4K Oct 19  2022 server_cert.pem
525125 -rwxr-xr-x   1 domoticz domoticz 1.8K Jan  2  2024 updatebeta
526312 -rwxr-xr-x   1 domoticz domoticz 1.8K Jan  2  2024 updaterelease
552691 drwxr-xr-x  14 domoticz domoticz 4.0K Jun 20 07:17 www
Which folder and what permissions should I look after?

I am able to view the snapshot and stream video in Domoticz Camera's.

Can you give more details on your suggestion: "As a test you can also use a dummy switch and attach it to the camera to have a snapshot sent"

As you suggested elsewhere this gives me also status OK:

Code: Select all

https://domoticz1/json.htm?type=command&param=emailcamerasnapshot&camidx=1&subject=test
Domoticz 2024.7 on Ubuntu 22.04 LTS VM on ESXi 7
SolarEdge Web API, P1 meter, RFXCOM433E, OpenZWave via ZMEEUZB1, MQTT AD Client Gateway ZWave-JS-UI, Philips Hue bridge, Kodi Media server, Panasonic TV, OWM, BuienRadar and HTTP/HTTPS poller Watermeter
User avatar
waltervl
Posts: 5733
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: blockly mailing snapthot camera issue

Post by waltervl »

Then it seems perhaps an issue with blocky. I don't use that.

But as the Camara wiki states you can link a (dummy) switch to a camera so when that switch is switched a screenshot can be sent. If that works it is a blockly issue.
https://www.domoticz.com/wiki/Camera_Se ... ch.2FLight
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
gbonny
Posts: 27
Joined: Friday 27 October 2017 22:08
Target OS: Linux
Domoticz version:
Contact:

Re: blockly mailing snapthot camera issue

Post by gbonny »

waltervl wrote: Wednesday 30 October 2024 14:49 Then it seems perhaps an issue with blocky. I don't use that.

But as the Camara wiki states you can link a (dummy) switch to a camera so when that switch is switched a screenshot can be sent. If that works it is a blockly issue.
https://www.domoticz.com/wiki/Camera_Se ... ch.2FLight
Thanks for the hint. I just did that, unfortunately the same error pops up in the Log, so it doesn't seem to be a Blockly issue..
Domoticz 2024.7 on Ubuntu 22.04 LTS VM on ESXi 7
SolarEdge Web API, P1 meter, RFXCOM433E, OpenZWave via ZMEEUZB1, MQTT AD Client Gateway ZWave-JS-UI, Philips Hue bridge, Kodi Media server, Panasonic TV, OWM, BuienRadar and HTTP/HTTPS poller Watermeter
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest