ATAG ONE thermostaat

For heating/cooling related questions in Domoticz

Moderator: leecollings

peekaboo
Posts: 5
Joined: Tuesday 12 April 2016 21:40
Target OS: Linux
Domoticz version:
Contact:

Re: ATAG ONE thermostaat

Post by peekaboo »

The password aint that hard. It got a capital, digits. Normal easy password.

Changed to simpler password still the same error. Atag error getting device id.
User avatar
gizmocuz
Posts: 2484
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: ATAG ONE thermostaat

Post by gizmocuz »

Okey, then all is left is to debug...
Quality outlives Quantity!
miko1979
Posts: 11
Joined: Friday 29 January 2016 14:00
Target OS: -
Domoticz version:
Contact:

Re: ATAG ONE thermostaat

Post by miko1979 »

Hello, i have the same problem now as well (before it worked great) loks like atag changed the webinterface.

In my opinion the problem is std::string GetFirstDeviceID(const std::string &shtml). StartRow 117 in the sourcecode.

I would recommend to add a setting in the atag hardware page in domoticz, where the id of the thermostat can be added. (The id can be copied from the atagportal).

Other possibility is to connect directly to the atag thermostat, but not sure if this is possible. See the github atag project earlier in this topic.


Verzonden vanaf mijn iPad met Tapatalk
User avatar
gizmocuz
Posts: 2484
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: ATAG ONE thermostaat

Post by gizmocuz »

Would be great if someone can make the changes and make a pull request....
Quality outlives Quantity!
peekaboo
Posts: 5
Joined: Tuesday 12 April 2016 21:40
Target OS: Linux
Domoticz version:
Contact:

Re: ATAG ONE thermostaat

Post by peekaboo »

If I only knew were to find the files within domoticz.
User avatar
gizmocuz
Posts: 2484
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: ATAG ONE thermostaat

Post by gizmocuz »

how about you do a search in the folder for a filename containing 'atag' ?
Quality outlives Quantity!
someones_domoticz
Posts: 21
Joined: Monday 12 January 2015 23:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ATAG ONE thermostaat

Post by someones_domoticz »

I am stil getting " Error: AtagOne: Error getting device_id!"

There nothing much that can be configured wrong, but any suggestions welcome, am I alone with this issue?

Thanks in advance for any help!
miko1979
Posts: 11
Joined: Friday 29 January 2016 14:00
Target OS: -
Domoticz version:
Contact:

Re: ATAG ONE thermostaat

Post by miko1979 »

Same error here, atag changed something in there webapi. But i can't solve it


Verzonden vanaf mijn iPad met Tapatalk
someones_domoticz
Posts: 21
Joined: Monday 12 January 2015 23:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ATAG ONE thermostaat

Post by someones_domoticz »

Hope it be resolved, I am no programming star, but if there is something I can do.....
just updated to release below, but no joy.

Is developer aware of the issue?

Version: 3.5263
Build Hash: 499b1f7
Compile Date: 2016-06-20 18:22:0
DanD
Posts: 159
Joined: Saturday 05 March 2016 9:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: UK
Contact:

Re: ATAG ONE thermostaat

Post by DanD »

Hi,

I think you're correct. The GetFirstDeviceID function in the AtagOne.cpp program (see code below) in the Hardware directory is looking for a specific string and I guess the structure of the api response has changed. I don't have an Atag thermostat, but there's some debugging code at the start of the program which should help troubleshooting if you remove the '//' from before the #define DEBUG)AtagOneThermostat and recompile. I'm mainly working on the Domoticz Evohome code, but as it looks like a pretty simple fix in the c++ code, I'm happy to help you out. If you can turn on the debugging and post the contents of the AtagOne_requesttoken.txt file it should help. Note: the file is set to save on E: which you may need to change for your system.

Code: Select all

std::string GetFirstDeviceID(const std::string &shtml)
{
	std::string sResult = shtml;
	// <tr onclick="javascript:changeDeviceAndRedirect('/Home/Index/{0}','6808-1401-3109_15-30-001-544');">
	size_t tpos = sResult.find("javascript:changeDeviceAndRedirect");
	if (tpos == std::string::npos)
		return "";
	sResult = sResult.substr(tpos);
	tpos = sResult.find(",'");
	if (tpos == std::string::npos)
		return "";
	sResult = sResult.substr(tpos + 2);
	tpos = sResult.find("');");
	if (tpos == std::string::npos)
		return "";
	sResult = sResult.substr(0, tpos);
	return sResult;
}
Windows 7, Raspberry Pi3, Honeywell Evohome Wifi, HGI80 + RFBee(s)
someones_domoticz
Posts: 21
Joined: Monday 12 January 2015 23:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ATAG ONE thermostaat

Post by someones_domoticz »

forgive my ignorance, but I overestimated my (google) skill set :)

I have got the source on my raspberry pi with:
git clone https://github.com/domoticz/domoticz.git domoticz
I downloaded the files with above command to /root, where they (ofcourse) end up in folder domoticz.

I have edited the AtagOne.cpp and removed the // as below:
#ifdef _DEBUG
#define DEBUG_AtagOneThermostat
#endif



I used below to get source & compile (webpage says dev-domoticz, I did not use "dev-" in the commands. :
https://www.domoticz.com/wiki/Installin ... spberry_PI

git clone https://github.com/domoticz/domoticz.git domoticz


Build Domoticz (21m15.899s on a raspberry pi 3 , 35m0.646s on a raspberry pi 2 for initial build)

If you have updated domoticz, the make step will only re-build those files that have been changed - although if a header-file common to a lot of source files has been changed, this will still take a long time

Change to the Domoticz directory, and start building
cd domoticz
cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt
make -j 3



root@domoticzpi:~/domoticz# cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found. Pleas e set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. P lease set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found. Pleas e set CMAKE_C_COMPILER to a valid compiler path or name.
-- Using builtin Mosquitto library
CMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found. Pleas e set CMAKE_C_COMPILER to a valid compiler path or name.
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the sys tem variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR)
-- Failed to find openssl include files (ssl.h), no TLS support
-- Failed to find the openssl library, no TLS support
CMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found. Pleas e set CMAKE_C_COMPILER to a valid compiler path or name.
-- Compiling Revision #5263
CMake Error at /usr/share/cmake-2.8/Modules/FindBoost.cmake:1194 (message):
Unable to find the requested Boost libraries.

Unable to find the Boost header files. Please set BOOST_ROOT to the root
directory containing Boost or BOOST_INCLUDEDIR to the directory containing
Boost's headers.
Call Stack (most recent call first):
CMakeLists.txt:412 (find_package)


-- Linking against boost static libraries
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake: 97 (MESSAGE):
Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_F AILURE_MESSAGE)
/usr/share/cmake-2.8/Modules/FindZLIB.cmake:85 (FIND_PACKAGE_HANDLE_STANDARD_A RGS)
CMakeLists.txt:429 (find_package)


CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake file s:
Boost_INCLUDE_DIR (ADVANCED)
used as include directory in directory /root/domoticz
used as include directory in directory /root/domoticz

-- Configuring incomplete, errors occurred!


I will try again tomorrow evening, If I find the time :D

Thanks
DanD
Posts: 159
Joined: Saturday 05 March 2016 9:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: UK
Contact:

Re: ATAG ONE thermostaat

Post by DanD »

Wow that was quick! Apologies, I didn't realise that you'd not compiled Domoticz from source before as I saw a reference to Beta versions, but I think you're nearly there. It looks like you've missed out the installation of the boost libraries (see the Build & Install Boost Libraries section of the wiki):
https://www.domoticz.com/wiki/Installin ... spberry_PI

Good luck!
Dan
Windows 7, Raspberry Pi3, Honeywell Evohome Wifi, HGI80 + RFBee(s)
someones_domoticz
Posts: 21
Joined: Monday 12 January 2015 23:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ATAG ONE thermostaat

Post by someones_domoticz »

I tried again, but no joy

I did:
sudo apt-get remove libboost-dev libboost-thread-dev libboost-system-dev libboost-atomic-dev libboost-regex-dev
sudo apt-get remove libboost-date-time1.55-dev libboost-date-time1.55.0 libboost-atomic1.55.0 libboost-regex1.55.0 libboost-iostreams1.55.1
sudo apt-get remove libboost-iostreams1.55.0 libboost-iostreams1.55.0 libboost-iostreams1.55.0
sudo apt-get remove libboost-serialization1.55-dev libboost-serialization1.55.0 libboost-system1.55-dev
sudo apt-get remove libboost-system1.55.0 libboost-thread1.55-dev libboost-thread1.55.0 libboost1.55-dev
sudo apt-get autoremove



Now build and install the Boost library.
mkdir boost
cd boost
wget http://sourceforge.net/projects/boost/f ... z/download
tar xvfz download
rm download
cd boost_1_60_0/
./bootstrap.sh
./b2 stage threading=multi link=static --with-thread --with-date_time --with-system --with-atomic --with-regex
sudo ./b2 install threading=multi link=static --with-thread --with-date_time --with-system --with-atomic --with-regex
cd ../../
rm -Rf boost/



After that I did the same as previous, changed the Atagone.cpp and tried the cmake command, but no joy, same error as before :(
DanD
Posts: 159
Joined: Saturday 05 March 2016 9:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: UK
Contact:

Re: ATAG ONE thermostaat

Post by DanD »

Hi,

It looks like you're also missing a compiler. Have you run these installs? If you have, maybe try to run this again and check whether there are any errors during the installs.

Code: Select all

sudo apt-get install cmake make gcc g++ libssl-dev git curl libcurl4-openssl-dev libusb-dev wiringpi
Dan
Windows 7, Raspberry Pi3, Honeywell Evohome Wifi, HGI80 + RFBee(s)
someones_domoticz
Posts: 21
Joined: Monday 12 January 2015 23:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ATAG ONE thermostaat

Post by someones_domoticz »

have been moving forward a bit, but still getting errors in the make action
Think I will make a new image for my raspberry and try again, but that might not be until next week....

c++: internal compiler error: Segmentation fault (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
CMakeFiles/domoticz.dir/build.make:2308: recipe for target 'CMakeFiles/domoticz.dir/hardware/S0MeterSerial.cpp.o' failed
make[2]: *** [CMakeFiles/domoticz.dir/hardware/S0MeterSerial.cpp.o] Error 4


c++: internal compiler error: Segmentation fault (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
CMakeFiles/domoticz.dir/build.make:2515: recipe for target 'CMakeFiles/domoticz.dir/hardware/TCPProxy/tcpproxy_server.cpp.o' failed
make[2]: *** [CMakeFiles/domoticz.dir/hardware/TCPProxy/tcpproxy_server.cpp.o] Error 4

c++: internal compiler error: Segmentation fault (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
c++: internal compiler error: Segmentation fault (program cc1plus)
CMakeFiles/domoticz.dir/build.make:2446: recipe for target 'CMakeFiles/domoticz.dir/hardware/SolarEdgeAPI.cpp.o' failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
make[2]: *** [CMakeFiles/domoticz.dir/hardware/SolarEdgeAPI.cpp.o] Error 4
CMakeFiles/domoticz.dir/build.make:2676: recipe for target 'CMakeFiles/domoticz.dir/hardware/VolcraftCO20.cpp.o' failed

make[2]: *** [CMakeFiles/domoticz.dir/hardware/VolcraftCO20.cpp.o] Error 4
c++: internal compiler error: Segmentation fault (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.


CMakeFiles/domoticz.dir/build.make:422: recipe for target 'CMakeFiles/domoticz.dir/main/SunRiseSet.cpp.o' failed
make[2]: *** [CMakeFiles/domoticz.dir/main/SunRiseSet.cpp.o] Error 4
CMakeFiles/domoticz.dir/build.make:2630: recipe for target 'CMakeFiles/domoticz.dir/hardware/Thermosmart.cpp.o' failed
make[2]: *** [CMakeFiles/domoticz.dir/hardware/Thermosmart.cpp.o] Error 4
c++: internal compiler error: Segmentation fault (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
CMakeFiles/domoticz.dir/build.make:2653: recipe for target 'CMakeFiles/domoticz.dir/hardware/ToonThermostat.cpp.o' failed
make[2]: *** [CMakeFiles/domoticz.dir/hardware/ToonThermostat.cpp.o] Error 4
c++: internal compiler error: Segmentation fault (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
DanD
Posts: 159
Joined: Saturday 05 March 2016 9:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: UK
Contact:

Re: ATAG ONE thermostaat

Post by DanD »

Hi,

It looks like you got quite a long way through the compile step which is good news. I'm also compiling Domoticz on a Pi3 and I can't always get the make -j to work if it's a full compile. I suggest just trying a make with no options, it will pick-up where it failed and it may compile successfully.

Good Luck!

Dan
Windows 7, Raspberry Pi3, Honeywell Evohome Wifi, HGI80 + RFBee(s)
someones_domoticz
Posts: 21
Joined: Monday 12 January 2015 23:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ATAG ONE thermostaat

Post by someones_domoticz »

Still have plans to do this but some other priorities....

Apols for delay
DanD
Posts: 159
Joined: Saturday 05 March 2016 9:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: UK
Contact:

Re: ATAG ONE thermostaat

Post by DanD »

No problem. I definitely think using a 'make' with no options should compile OK on your system. I've been doing a lot of recompiling of Domoticz on my Pi3 over the last week and I was never able to get a 'make -j 3' to compile the entire codebase successfully in one go, it always caused a compiler error. However, simply using 'make' worked every time.

Good luck!

Dan
Windows 7, Raspberry Pi3, Honeywell Evohome Wifi, HGI80 + RFBee(s)
someones_domoticz
Posts: 21
Joined: Monday 12 January 2015 23:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ATAG ONE thermostaat

Post by someones_domoticz »

It is compiling....awaiting result, looking good so far with just make...
someones_domoticz
Posts: 21
Joined: Monday 12 January 2015 23:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ATAG ONE thermostaat

Post by someones_domoticz »

No joy...
Think I will flush the whole thing and start over......but not today :)

[ 25%] Building CXX object CMakeFiles/domoticz.dir/main/Camera.cpp.o
In file included from /root/domoticz/main/../tcpserver/../webserver/server.hpp:14:0,
from /root/domoticz/main/../tcpserver/../webserver/cWebem.h:6,
from /root/domoticz/main/../tcpserver/../webserver/proxyclient.h:12,
from /root/domoticz/main/../tcpserver/TCPClient.h:7,
from /root/domoticz/main/../tcpserver/TCPServer.h:4,
from /root/domoticz/main/mainworker.h:11,
from /root/domoticz/main/Camera.cpp:7:
/root/domoticz/main/../tcpserver/../webserver/server_settings.hpp: In member function ‘boost::asio::ssl::context_base::method http::server::ssl_server_settings::get_ssl_method() const’:
/root/domoticz/main/../tcpserver/../webserver/server_settings.hpp:156:13: error: ‘tlsv11’ is not a member of ‘boost::asio::ssl::context’
/root/domoticz/main/../tcpserver/../webserver/server_settings.hpp:158:13: error: ‘tlsv11_server’ is not a member of ‘boost::asio::ssl::context’
/root/domoticz/main/../tcpserver/../webserver/server_settings.hpp:160:13: error: ‘tlsv12’ is not a member of ‘boost::asio::ssl::context’
/root/domoticz/main/../tcpserver/../webserver/server_settings.hpp:162:13: error: ‘tlsv12_server’ is not a member of ‘boost::asio::ssl::context’
/root/domoticz/main/../tcpserver/../webserver/server_settings.hpp: In member function ‘boost::asio::ssl::context_base::options http::server::ssl_server_settings::get_ssl_options() const’:
/root/domoticz/main/../tcpserver/../webserver/server_settings.hpp:198:26: error: ‘no_compression’ is not a member of ‘boost::asio::ssl::context’
CMakeFiles/domoticz.dir/build.make:100: recipe for target 'CMakeFiles/domoticz.dir/main/Camera.cpp.o' failed
make[2]: *** [CMakeFiles/domoticz.dir/main/Camera.cpp.o] Error 1
CMakeFiles/Makefile2:64: recipe for target 'CMakeFiles/domoticz.dir/all' failed
make[1]: *** [CMakeFiles/domoticz.dir/all] Error 2
Makefile:133: recipe for target 'all' failed
make: *** [all] Error 2
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest