Re: Toon as a domotica controller?
Posted: Thu Mar 16, 2017 9:40 pm
Not sure what's going on. Can you post the complete <device> tag that holds the <wizardDone> tag?
Domotica - Home Automation Forum
https://www.domoticaforum.eu/
Yep.I don't think anyone tried to do this.
The limit is set in toon's main application : qt-gui.
To change the number, I think you'll need to patch this binary. Not an easy task, finding a single number in a 2MiB+ file.
Even if this were easy, you'd still need to root your toon to get access to this file. So, nobody really bothers, because once you're in, you can access everything anyway, no need to set the access time limit to a higher number.
The boot screen is located at /dev/mtd2, if you want to replace it, you will have to manually reflash that partition with a new boot screen. I can get you the details if you want to, and the file with the "hacked" all over it.TerrorSource wrote: I read the whole topic and got these questions, some more usefull then others tho.
1. replace boot screen( 1 full dot), which file do i need to replace? I want the fancy HACKED boot image![]()
Your end date is a bit far off. time in a linux system is a signed integer, indicating seconds from the epoch. Probably the number gets truncated, because the highest number you can put there is 2^31 -1, which is somewhere just above 2,100,000,000.TerrorSource wrote: 2. "/HCBv2/config/config_happ_scsync.xml" i changed the following value's:
<EndDate>4102444799</EndDate>
<BoilerManagement activated="0">1</BoilerManagement>
<HeatDisplay>1</HeatDisplay>
<SolarDisplay>1</SolarDisplay>
<SolarActivated>1</SolarActivated>
<OtherProviderElec>1</OtherProviderElec>
<OtherProviderGas>1</OtherProviderGas>
<SME>1</SME>
<HeatWinner>1</HeatWinner>
<TelmiEnabled>1</TelmiEnabled>
<doSolarWhatsnew>1</doSolarWhatsnew>
Nothing changed as far as i can tell.
That's for someone else to answer, I don't use Domoticz.TerrorSource wrote: 3. How do i add the Toon to my Domoticz? Got a clean Domoticz running on my Raspberry Pi 3, created a dummy sensor but got no clue how to continue.
Make sure there are NO typos whatsoever. Linux is case sensitive. I added it just after the "clock" entry, not sure if that makes a difference.TerrorSource wrote: 4. How do i run the custom apps? i added them but it wont show up.
- I've added "buienradar" into "/HCBv2/qml/apps"
- edited "/HCBv2/qml/qb/base/Globals.qml" and put " ,"buienradar" " at the end of "var appsToLoad", before the ]
Thanks for your long reply! I'm starting to understand it nowmarcelr wrote:The boot screen is located at /dev/mtd2, if you want to replace it, you will have to manually reflash that partition with a new boot screen. I can get you the details if you want to, and the file with the "hacked" all over it.TerrorSource wrote: I read the whole topic and got these questions, some more usefull then others tho.
1. replace boot screen( 1 full dot), which file do i need to replace? I want the fancy HACKED boot image![]()
If you want to change the behaviour of the subsequent steps in the bootsequence and shutdown phase as well, you will need a few more images (and a patched flash gui for the initialization steps, to be complete).
The display sequence is as follows:
Bootloader: splash screen from /dev/mtd2,
kernel booting: same splash screen,
(if you toon is brand new, or after a factory reset: flash_gui displays a separate splash screen, part of the flash gui, which is also easily edited to contain something else)
loading of all the stuff in /etc/inittab: /HCBv2/qml/themes/loadscreen_0.png
starting qt apps: /HCBv2/qml/themes/loadscreen_1.png
And then qt-gui opens the gui and you're up and running.
For my production toon I changed the splash screen in flash to contain three open circles instead of a single closed one. Then you can tell the difference between the bootloader/kernel and the flash gui, in case of factory reset.
Your end date is a bit far off. time in a linux system is a signed integer, indicating seconds from the epoch. Probably the number gets truncated, because the highest number you can put there is 2^31 -1, which is somewhere just above 2,100,000,000.TerrorSource wrote: 2. "/HCBv2/config/config_happ_scsync.xml" i changed the following value's:
<EndDate>4102444799</EndDate>
<BoilerManagement activated="0">1</BoilerManagement>
<HeatDisplay>1</HeatDisplay>
<SolarDisplay>1</SolarDisplay>
<SolarActivated>1</SolarActivated>
<OtherProviderElec>1</OtherProviderElec>
<OtherProviderGas>1</OtherProviderGas>
<SME>1</SME>
<HeatWinner>1</HeatWinner>
<TelmiEnabled>1</TelmiEnabled>
<doSolarWhatsnew>1</doSolarWhatsnew>
Nothing changed as far as i can tell.
In my toon it's set to -1, which works fine.
Oh, and set <ProductVariant> to Toon (exactly as typed here: <ProductVariant>Toon</ProductVariant>)
That's for someone else to answer, I don't use Domoticz.TerrorSource wrote: 3. How do i add the Toon to my Domoticz? Got a clean Domoticz running on my Raspberry Pi 3, created a dummy sensor but got no clue how to continue.Make sure there are NO typos whatsoever. Linux is case sensitive. I added it just after the "clock" entry, not sure if that makes a difference.TerrorSource wrote: 4. How do i run the custom apps? i added them but it wont show up.
- I've added "buienradar" into "/HCBv2/qml/apps"
- edited "/HCBv2/qml/qb/base/Globals.qml" and put " ,"buienradar" " at the end of "var appsToLoad", before the ]
buienradar should be the name of the directory in the apps dir, with everything qml in that subdir.
Hi, there is a Domoticz plugin for Toon but only working with official Toons with Eneco subscription as far as I know.TerrorSource wrote: Hoping someone can help me out with Domoticz then, saw a few people using the combination of Toon with Domoticz so hopefully they can help me out.
Thanks for the heads up, i've already replied to the topic that there's an issue with the LUA scripts.BrainHunt wrote:Hi TerrorSource,
For linking the hacked Toon with your Domoticz server, take a look at https://www.domoticz.com/forum/viewtopic.php?t=11421. This allows you to control the temperature and Toon scenes etc. through Domoticz.
Best,
BrainHunt
Thanks BrainHunt, works like a charm from my Raspberry. Opens a new world of opportunitiesBrainHunt wrote:Hi TerrorSource,
For linking the hacked Toon with your Domoticz server, take a look at https://www.domoticz.com/forum/viewtopic.php?t=11421. This allows you to control the temperature and Toon scenes etc. through Domoticz.
BrainHunt