Toon as a domotica controller?
Moderators: marcelr, TheHogNL, Toonz
Re: Toon as a domotica controller?
start from here:
open de vpn en upgrade to version 3.x
open de vpn en upgrade to version 3.x
Re: Toon as a domotica controller?
I have downloaded the V3 sh files and uploaded it Toon, but then....it does nothing with those two .sh files. I am not a linux programmer, so i lack the specific knowledge...
greetz,
Iwan
Iwan
Re: Toon as a domotica controller?
I'm a bit late here, didn't look into this thread very much after the transformation into a subforum.nawikre wrote:I have downloaded the V3 sh files and uploaded it Toon, but then....it does nothing with those two .sh files. I am not a linux programmer, so i lack the specific knowledge...
What shell scripts do you have? The update scripts? ( _opkg.qb2-ene-3.x.y.script.sh or similar)
grtz,
marcelr
Re: Toon as a domotica controller?
Sorry for the late reply, i needed to exchange the engine of my camper before going on vacation next week.... 
So i was a bit bussy.
I have send you a PM.
Iwan

So i was a bit bussy.
I have send you a PM.
Iwan
greetz,
Iwan
Iwan
Re: Toon as a domotica controller?
Hi marcelr, Ierlandfan, and others,
Thank you for the procedure to root my Toon.
(rooted the Toon, but still need to read through this thread)
Thank you for the procedure to root my Toon.
(rooted the Toon, but still need to read through this thread)
Re: Toon as a domotica controller?
You're welcome. Have fun with your toon,
marcelr
marcelr
Re: Toon as a domotica controller?
Small correction for the rooting toon tut:
Same like al_n mentioned here, while he was on FW 2.9.6, I also had to remove 'DISABLE' in /etc/passwd.
I rooted my Toon while on 2.9.15.
Same like al_n mentioned here, while he was on FW 2.9.6, I also had to remove 'DISABLE' in /etc/passwd.
I rooted my Toon while on 2.9.15.
Re: Toon as a domotica controller?
Does someone have the '_opkg.qb2-ene-3.x.y.script.sh' upgrade script for 3.0.32, 3.1.22, 3.2.10 and/or 3.2.18?
-
- Starting Member
- Posts: 3
- Joined: Mon Nov 21, 2016 10:39 pm
Re: Toon as a domotica controller?
Kinda worked for me... I changed as follows to prevent 403 Forbidden messages when using http://toon-ip/... commands/info;fkruis wrote:you can try this ?
<hcb_web>
<!-- Release uses lighttpd; put hcb_web somewhere where its harmless -->
<port>7080</port>
<defaultEntry>/hdrv_zwave/</defaultEntry>
<enforceWhitelist>0</enforceWhitelist>
<whitelist>
<item>hdrv_zwave</item>
</whitelist>
</hcb_web>
Edit /HCBv2/config/hcb_project.xml and change accordingly;
<hcb_web>
<!-- Release uses lighttpd; put hcb_web somewhere where its harm
<port>10080</port>
<defaultEntry>/HCBv2/www/</defaultEntry>
<enforceWhitelist>0</enforceWhitelist>
<whitelist>
<item>hdrv_zwave</item>
</whitelist>
</hcb_web>
Re: Toon as a domotica controller?
Hi, I succesfully rooted my Toon (2nd hand Marktplaats) using the manuals provided on this site.
My Toon has firmware 3.1.22.
I can now access my Toon using Putty via Wifi and login as root.
In this session I try to install the "openssh-sftp-server_7.3p1-r10.0_qb2.ipk" package.
Installation fails with the following error message:
"Collected errors:
* deb_extract: /root/openssh-sftp-server_7.3p1-r10.0_qb2.ipk: invalid magic
* pkg_init_from_file: Failed to extract control file from /root/openssh-sftp-server_7.3p1-r10.0_qb2.ipk."
Does anyone have a solution for this?
Thanks in advance.
My Toon has firmware 3.1.22.
I can now access my Toon using Putty via Wifi and login as root.
In this session I try to install the "openssh-sftp-server_7.3p1-r10.0_qb2.ipk" package.
Installation fails with the following error message:
"Collected errors:
* deb_extract: /root/openssh-sftp-server_7.3p1-r10.0_qb2.ipk: invalid magic
* pkg_init_from_file: Failed to extract control file from /root/openssh-sftp-server_7.3p1-r10.0_qb2.ipk."
Does anyone have a solution for this?
Thanks in advance.
member of the Toon Software Collective
Re: Toon as a domotica controller?
You can check the MD5 checksum of your .ipk. It should be:
MD5(openssh-sftp-server_7.3p1-r10.0_qb2.ipk)= 7cdcde6cec222c5d80f8f35a348faae6
best,
marcelr
MD5(openssh-sftp-server_7.3p1-r10.0_qb2.ipk)= 7cdcde6cec222c5d80f8f35a348faae6
best,
marcelr
Re: Toon as a domotica controller?
Thanks a lot Marcel. It appeared the file was corrupted somehow at Toon.marcelr wrote:You can check the MD5 checksum of your .ipk. It should be:
MD5(openssh-sftp-server_7.3p1-r10.0_qb2.ipk)= 7cdcde6cec222c5d80f8f35a348faae6
I redownloaded from my raspberry webserver and all is fine now.
(I am a bit embarrassed I didn't check that myself earlier

member of the Toon Software Collective
Re: Toon as a domotica controller?
Hi guys,
Great progress made here with Toon. I browsed this topic a bit but I cannot find much related info about displaying information at Toon. I do not have a Toon as for now. But if it is possible to send sensor information to Toon and display these in a widget I would certainly buy one (2nd hand).
I'm running Domoticz using RaspberryPi 3b and LEDE(OpenWRT fork) as OS. And I already have a Water/Gas/Energy meter attached and working. So my question is. Is there any way of parsing JSON data from a source (for example Domoticz) and display them in a widget on Toon?
Regards,
Timeless
Great progress made here with Toon. I browsed this topic a bit but I cannot find much related info about displaying information at Toon. I do not have a Toon as for now. But if it is possible to send sensor information to Toon and display these in a widget I would certainly buy one (2nd hand).
I'm running Domoticz using RaspberryPi 3b and LEDE(OpenWRT fork) as OS. And I already have a Water/Gas/Energy meter attached and working. So my question is. Is there any way of parsing JSON data from a source (for example Domoticz) and display them in a widget on Toon?
Regards,
Timeless
"The greatest good you can do for another, is not to share your own riches, but to reveal to him, his own."
- Benjamin Disraeli -
- Benjamin Disraeli -
Re: Toon as a domotica controller?
Welcome aboard, Timeless.
I'm no expert in Qt/qml, however, when looking at the installed version of Qt (5.3.1), and the libraries that go with it (see list below), it should be possible. In fact, it's on my list (besides an awful lot of other things
) for the next few days/weeks. With toon connected to your metering devices (P1, M-bus machinery) at least you can read out gas and electricity data. Internally, all I/O between boiler (when it's and OpenTherm driven one) and toon can be monitored as well. All internal output is already in json format
(well, sort of).
qt libraries list:
libQt5Concurrent.so.5.3.1
libQt5Core.so.5.3.1
libQt5Declarative.so.5.3.1
libQt5Gui.so.5.3.1
libQt5Network.so.5.3.1
libQt5Qml.so.5.3.1
libQt5Script.so.5.3.1
libQt5ScriptTools.so.5.3.1
libQt5Sql.so.5.3.1
libQt5Svg.so.5.3.1
libQt5Widgets.so.5.3.1
libQt5XmlPatterns.so.5.3.1
libQt5Xml.so.5.3.1
best,
marcelr
I'm no expert in Qt/qml, however, when looking at the installed version of Qt (5.3.1), and the libraries that go with it (see list below), it should be possible. In fact, it's on my list (besides an awful lot of other things


qt libraries list:
libQt5Concurrent.so.5.3.1
libQt5Core.so.5.3.1
libQt5Declarative.so.5.3.1
libQt5Gui.so.5.3.1
libQt5Network.so.5.3.1
libQt5Qml.so.5.3.1
libQt5Script.so.5.3.1
libQt5ScriptTools.so.5.3.1
libQt5Sql.so.5.3.1
libQt5Svg.so.5.3.1
libQt5Widgets.so.5.3.1
libQt5XmlPatterns.so.5.3.1
libQt5Xml.so.5.3.1
best,
marcelr
Re: Toon as a domotica controller?
Thanks for the warm welcome 
I have no experience with qt/qml so I have to learn everything from the ground up. Examples will surely accelerate the learning curve.
I'll explain my situation in some more detail.
Currently I'm using a Youless Link (in dutch) to measure my Electricity. I have a "old" digital meter with a pulse LED. This information is already uploaded(saved) to Domoticz and can be retrieved using JSON.
A example of the JSON data:
NOTE: not the actual Youless data but the daily usage data for a test project I'm currently using for this demo. Because I do not have access to my Youless sensor at this particular moment.
So I only need to create a Widget that parses this JSON data to a graphical linechart(bar graph). And ideally remove/alter the already present Energy Graph (That uses the Toon energy sensors) with my JSON sensor.

I have no experience with qt/qml so I have to learn everything from the ground up. Examples will surely accelerate the learning curve.
I'll explain my situation in some more detail.
Currently I'm using a Youless Link (in dutch) to measure my Electricity. I have a "old" digital meter with a pulse LED. This information is already uploaded(saved) to Domoticz and can be retrieved using JSON.
A example of the JSON data:
NOTE: not the actual Youless data but the daily usage data for a test project I'm currently using for this demo. Because I do not have access to my Youless sensor at this particular moment.
Code: Select all
{
"ActTime" : 1483705418,
"ServerTime" : "2017-01-06 13:23:38",
"Sunrise" : "16:51",
"Sunset" : "01:41",
"result" : [
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"Counter" : "16.241 kWh",
"CounterToday" : "0.677 kWh",
"CustomImage" : 0,
"Data" : "16.241 kWh",
"Description" : "",
"Favorite" : 1,
"HardwareID" : 4,
"HardwareName" : "Virtual",
"HardwareType" : "Dummy (Does nothing, use for virtual switches only)",
"HardwareTypeVal" : 15,
"HaveTimeout" : false,
"ID" : "14056",
"LastUpdate" : "2017-01-06 13:23:25",
"Name" : "Outdoor Lamp",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : 10,
"SubType" : "RFXMeter counter",
"SwitchTypeVal" : 0,
"Timers" : "false",
"Type" : "RFXMeter",
"TypeImg" : "counter",
"Unit" : 1,
"Used" : 1,
"ValueQuantity" : "",
"ValueUnits" : "",
"XOffset" : "0",
"YOffset" : "0",
"idx" : "7"
}
],
"status" : "OK",
"title" : "Devices"
}
"The greatest good you can do for another, is not to share your own riches, but to reveal to him, his own."
- Benjamin Disraeli -
- Benjamin Disraeli -