Issue with Darksky and email notifications when using Domoticz Beta version
Posted: Monday 04 March 2019 16:51
Hello,
I am a new comer on the forum and I appreciate a lot Domoticz as a Home Automation System.
1 – Some elements of context
1.1 I have a Raspberry PI3 running perfectly Domoticz Version: 4.9700 using database domoticz.db with RFXCOM and ZWAVE, Darksky wheather. I also use notifications by email.
In the document I will call it PI PROD.
This the configuration of the Domoticz Version:
- Build Hash: a3a45906
- Compile Date: 2018-06-23 16:24:51
- dzVents Version: 2.4.6
- Python Version: 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516]
And of the OS :
- Distributor ID: Raspbian
- Description: Raspbian GNU/Linux 9.6 (stretch)
- Release: 9.6
- Codename: stretch
1.2 I have a second Raspberry PI3 used as a sandbox where I want to install the latest Domoticz Beta Version.
In the document I will call it PI SANDBOX.
I first upgraded the OS to release 9.8.
Then I built from scratch Domoticz Beta version on 28/2/2019 (date of source clones)
using the following procedure
Step Command
1 sudo apt update
2 sudo apt upgrade
3 cat /etc/debian_version
4 cd /home/pi
5 mkdir DEV
6 cd /home/pi/DEV
7 sudo apt-get install libudev-dev
8 git clone
9 ln -s open-zwave open-zwave-read-only
10 cd open-zwave
11 Make
12 cd /usr
13 sudo chmod o+w lib
14 Copy of openzwave.a et so to /usr/lib
15 cd /etc/apt
16 sudo chmod o+w sources.list
17 using sudo nano sources.list Add `deb http://download.telldus.com/debian/ stable main` to the end of file `/etc/apt/sources.list
18 wget -q http://download.telldus.se/debian/telldus-public.key -O- | sudo apt-key add -
19 sudo apt-get update
20 sudo apt-get install libtelldus-core-dev
21 sudo apt-get install build-essential -y
22 sudo apt autoremove
23 sudo apt-get install cmake libboost-dev libboost-thread-dev libboost-system-dev libsqlite3-dev subversion curl libcurl4-openssl-dev libusb-dev libudev-dev zlib1g-dev libssl-dev
24 cd /home/pi/DEV
25 git clone https://github.com/domoticz/domoticz.git domoticz
cd domoticz
git pull
26 cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt
27 make -j 1
28 Copy of pi/DEV/domoticz in pi/domoticz via filezilla
29 Sudo reboot
30 Putty
31 Dmesg and dpkg-l
In the end after a couple of hours, Domoticz BETA version is generated correctly and PI SANDBOX runs the previous domoticz.db.
2 - Description of the Issue
The Beta Domoticz application PI SANDBOX runs the previous domoticz.db almost perfectly except for 2 things
- Darksky cannot access to Darksky Server and get the error :
o darksky error getting http data
- I cannot send email from Domoticz platform and get the following messages
o Error: SMTP Mailer: Error sending Email to:
o Error: Failed to send Email notification
o Error: Notification sent (email) => Failed
3 – Some diagnosis I made
The issue is not linked to the router which is configured the same way for both cases PI PROD and PI SANDBOX.
I compared “dpkg – l” command outcomes between PI PROD and PI SANDBOX and noticed some discrepancies
between PI SANDBOX and PI PROD
in PI SANDBOX the following libraries were installed
libapr1:armhf 1.5.2-5 armhf Apache Portable Runtime Library
libaprutil1:armhf 1.5.4-3
libjsoncpp1:armhf 1.7.4-3
liblzo2-2:armhf 2.08-1.2
libssl-dev:armhf 1.1.0j-1~deb9u1 armhf Secure Sockets Layer toolkit - development files
libssl-doc 1.1.0j-1~deb9u1 all Secure Sockets Layer toolkit - development documentation
libssl1.0.0:armhf 1.0.1t-1+deb8u11 armhf Secure Sockets Layer toolkit - shared libraries
libssl1.0.2:armhf 1.0.2r-1~deb9u1
libcurl4-openssl-dev:armhf 7.52.1-5+deb9u9
In PI PROD I had only
ii libssl1.0.2:armhf 1.0.2l-2+deb9u3
If you managed to build Domoticz executable from the beta source recently and are not facing the issues with the HTTPS access and email notification I would appreciate you revert to me with your experience.
If you are facing the same issue or have faced the same issue when rebuilding Domoticz Beta version, please let me know and share the fixes or workarounds you have made/identified to solve the problem.
Best regards
meal
I am a new comer on the forum and I appreciate a lot Domoticz as a Home Automation System.
1 – Some elements of context
1.1 I have a Raspberry PI3 running perfectly Domoticz Version: 4.9700 using database domoticz.db with RFXCOM and ZWAVE, Darksky wheather. I also use notifications by email.
In the document I will call it PI PROD.
This the configuration of the Domoticz Version:
- Build Hash: a3a45906
- Compile Date: 2018-06-23 16:24:51
- dzVents Version: 2.4.6
- Python Version: 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516]
And of the OS :
- Distributor ID: Raspbian
- Description: Raspbian GNU/Linux 9.6 (stretch)
- Release: 9.6
- Codename: stretch
1.2 I have a second Raspberry PI3 used as a sandbox where I want to install the latest Domoticz Beta Version.
In the document I will call it PI SANDBOX.
I first upgraded the OS to release 9.8.
Then I built from scratch Domoticz Beta version on 28/2/2019 (date of source clones)
using the following procedure
Step Command
1 sudo apt update
2 sudo apt upgrade
3 cat /etc/debian_version
4 cd /home/pi
5 mkdir DEV
6 cd /home/pi/DEV
7 sudo apt-get install libudev-dev
8 git clone
9 ln -s open-zwave open-zwave-read-only
10 cd open-zwave
11 Make
12 cd /usr
13 sudo chmod o+w lib
14 Copy of openzwave.a et so to /usr/lib
15 cd /etc/apt
16 sudo chmod o+w sources.list
17 using sudo nano sources.list Add `deb http://download.telldus.com/debian/ stable main` to the end of file `/etc/apt/sources.list
18 wget -q http://download.telldus.se/debian/telldus-public.key -O- | sudo apt-key add -
19 sudo apt-get update
20 sudo apt-get install libtelldus-core-dev
21 sudo apt-get install build-essential -y
22 sudo apt autoremove
23 sudo apt-get install cmake libboost-dev libboost-thread-dev libboost-system-dev libsqlite3-dev subversion curl libcurl4-openssl-dev libusb-dev libudev-dev zlib1g-dev libssl-dev
24 cd /home/pi/DEV
25 git clone https://github.com/domoticz/domoticz.git domoticz
cd domoticz
git pull
26 cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt
27 make -j 1
28 Copy of pi/DEV/domoticz in pi/domoticz via filezilla
29 Sudo reboot
30 Putty
31 Dmesg and dpkg-l
In the end after a couple of hours, Domoticz BETA version is generated correctly and PI SANDBOX runs the previous domoticz.db.
2 - Description of the Issue
The Beta Domoticz application PI SANDBOX runs the previous domoticz.db almost perfectly except for 2 things
- Darksky cannot access to Darksky Server and get the error :
o darksky error getting http data
- I cannot send email from Domoticz platform and get the following messages
o Error: SMTP Mailer: Error sending Email to:
o Error: Failed to send Email notification
o Error: Notification sent (email) => Failed
3 – Some diagnosis I made
The issue is not linked to the router which is configured the same way for both cases PI PROD and PI SANDBOX.
I compared “dpkg – l” command outcomes between PI PROD and PI SANDBOX and noticed some discrepancies
between PI SANDBOX and PI PROD
in PI SANDBOX the following libraries were installed
libapr1:armhf 1.5.2-5 armhf Apache Portable Runtime Library
libaprutil1:armhf 1.5.4-3
libjsoncpp1:armhf 1.7.4-3
liblzo2-2:armhf 2.08-1.2
libssl-dev:armhf 1.1.0j-1~deb9u1 armhf Secure Sockets Layer toolkit - development files
libssl-doc 1.1.0j-1~deb9u1 all Secure Sockets Layer toolkit - development documentation
libssl1.0.0:armhf 1.0.1t-1+deb8u11 armhf Secure Sockets Layer toolkit - shared libraries
libssl1.0.2:armhf 1.0.2r-1~deb9u1
libcurl4-openssl-dev:armhf 7.52.1-5+deb9u9
In PI PROD I had only
ii libssl1.0.2:armhf 1.0.2l-2+deb9u3
If you managed to build Domoticz executable from the beta source recently and are not facing the issues with the HTTPS access and email notification I would appreciate you revert to me with your experience.
If you are facing the same issue or have faced the same issue when rebuilding Domoticz Beta version, please let me know and share the fixes or workarounds you have made/identified to solve the problem.
Best regards
meal