Toon as a domotica controller?

Everything about rooting Toons 1 and 2.

Moderators: marcelr, TheHogNL, Toonz

fkruis
Starting Member
Starting Member
Posts: 20
Joined: Sun May 01, 2016 7:44 pm

Re: Toon as a domotica controller?

Post by fkruis »

start from here:
open de vpn en upgrade to version 3.x
nawikre
Member
Member
Posts: 192
Joined: Wed Jan 27, 2010 10:53 pm
Location: Eibergen
Contact:

Re: Toon as a domotica controller?

Post 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...
greetz,

Iwan
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon as a domotica controller?

Post 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
nawikre
Member
Member
Posts: 192
Joined: Wed Jan 27, 2010 10:53 pm
Location: Eibergen
Contact:

Re: Toon as a domotica controller?

Post 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
greetz,

Iwan
RomMon
Starting Member
Starting Member
Posts: 44
Joined: Mon Aug 29, 2016 9:05 pm

Re: Toon as a domotica controller?

Post 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)
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon as a domotica controller?

Post by marcelr »

You're welcome. Have fun with your toon,

marcelr
RomMon
Starting Member
Starting Member
Posts: 44
Joined: Mon Aug 29, 2016 9:05 pm

Re: Toon as a domotica controller?

Post 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.
RomMon
Starting Member
Starting Member
Posts: 44
Joined: Mon Aug 29, 2016 9:05 pm

Re: Toon as a domotica controller?

Post 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?
BurnoutVmax
Starting Member
Starting Member
Posts: 3
Joined: Mon Nov 21, 2016 10:39 pm

Re: Toon as a domotica controller?

Post 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>
Toonz
Forum Moderator
Forum Moderator
Posts: 1877
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon as a domotica controller?

Post 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.
member of the Toon Software Collective
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon as a domotica controller?

Post 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
Toonz
Forum Moderator
Forum Moderator
Posts: 1877
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon as a domotica controller?

Post 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 :oops: )
member of the Toon Software Collective
Timeless
Member
Member
Posts: 54
Joined: Fri Jan 06, 2017 12:51 pm

Re: Toon as a domotica controller?

Post 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
"The greatest good you can do for another, is not to share your own riches, but to reveal to him, his own."
- Benjamin Disraeli -
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon as a domotica controller?

Post 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
Timeless
Member
Member
Posts: 54
Joined: Fri Jan 06, 2017 12:51 pm

Re: Toon as a domotica controller?

Post 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.
"The greatest good you can do for another, is not to share your own riches, but to reveal to him, his own."
- Benjamin Disraeli -
Post Reply

Return to “Toon Rooting”