Page 24 of 39
Re: Toon as a domotica controller?
Posted: Sun Jun 26, 2016 3:48 pm
by fkruis
start from here:
open de vpn en upgrade to version 3.x
Re: Toon as a domotica controller?
Posted: Mon Jun 27, 2016 8:15 am
by nawikre
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...
Re: Toon as a domotica controller?
Posted: Sun Jul 10, 2016 10:34 pm
by marcelr
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...
I'm a bit late here, didn't look into this thread very much after the transformation into a subforum.
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?
Posted: Wed Jul 20, 2016 9:55 am
by nawikre
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
Re: Toon as a domotica controller?
Posted: Sun Sep 04, 2016 10:36 pm
by RomMon
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)
Re: Toon as a domotica controller?
Posted: Tue Sep 06, 2016 10:14 pm
by marcelr
You're welcome. Have fun with your toon,
marcelr
Re: Toon as a domotica controller?
Posted: Sat Sep 10, 2016 11:07 am
by RomMon
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.
Re: Toon as a domotica controller?
Posted: Sun Sep 11, 2016 4:20 pm
by RomMon
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?
Re: Toon as a domotica controller?
Posted: Wed Nov 23, 2016 11:05 am
by BurnoutVmax
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>
Kinda worked for me... I changed as follows to prevent 403 Forbidden messages when using
http://toon-ip/... commands/info;
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?
Posted: Tue Dec 20, 2016 11:24 am
by Toonz
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.
Re: Toon as a domotica controller?
Posted: Tue Dec 20, 2016 7:42 pm
by marcelr
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
Re: Toon as a domotica controller?
Posted: Tue Dec 20, 2016 9:56 pm
by Toonz
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
Thanks a lot Marcel. It appeared the file was corrupted somehow at Toon.
I redownloaded from my raspberry webserver and all is fine now.
(I am a bit embarrassed I didn't check that myself earlier

)
Re: Toon as a domotica controller?
Posted: Fri Jan 06, 2017 1:04 pm
by Timeless
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
Re: Toon as a domotica controller?
Posted: Fri Jan 06, 2017 1:34 pm
by marcelr
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
Re: Toon as a domotica controller?
Posted: Fri Jan 06, 2017 2:38 pm
by Timeless
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.
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"
}
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.