Software: modifications and extensions Toon

Forum about the tweaking of the Eneco Toon.

Moderator: marcelr

Re: Software: modifications and extensions Toon

Postby QuasaR » Wed Mar 01, 2017 7:59 am

marcelr wrote:We're getting somewhere. Quby are supplying updates for packages that only exist on rooted toons. :lol: :lol: :lol: :lol: :lol:
Time to start playing around with more kernel modules, so they can support these as well ... :mrgreen:


This is the complete list of packages they supplied with the last update.

Code: Select all
base-qb2-ene_3.7.9-1067-0_qb2.ipk
ca-certificates_20160104-r0_all.ipk
firmware-ba_1.43_qb2.ipk
firmware-ma_1.94_qb2.ipk
happ-kpi_1.318-master_qb2.ipk
happ-pwrusage_1.561-ene-master_qb2.ipk
happ-scsync_1.213-ene-master_qb2.ipk
happ-smartplug_1.153-master_qb2.ipk
happ-thermstat_1.1117-ene-master_qb2.ipk
happ-weather_1.115-master_qb2.ipk
hcb-bxtproxy_1.133-master_qb2.ipk
hcb-config_1.283-master_qb2.ipk
hcb-netcon_1.288-master_qb2.ipk
hcb-rrd_2.140-master_qb2.ipk
hdrv-p1_1.609-ene-master_qb2.ipk
hdrv-zwave_1.905-master_qb2.ipk
libhcb-base_1.244-master_qb2.ipk
libhcb-boxtalk_1.108-master_qb2.ipk
libhcb-com_1.109-TN-master_qb2.ipk
libhcb-drv_1.304-master_qb2.ipk
libhcb-xml_1.95-master_qb2.ipk
qt-gui_1.6755-ene-release-ene-3.7_qb2.ipk
x11vnc_0.9.13-r2_qb2.ipk
QuasaR
Starting Member
Starting Member
 
Posts: 15
Joined: February 2017

Re: Software: modifications and extensions Toon

Postby Ierlandfan » Wed Mar 01, 2017 1:49 pm

What needs to be changed to make x11vnc start happily?
Ierlandfan
Member
Member
 
Posts: 60
Joined: October 2013

Re: Software: modifications and extensions Toon

Postby QuasaR » Wed Mar 01, 2017 1:51 pm

Ierlandfan wrote:What needs to be changed to make x11vnc start happily?


Change x11vnc-bin to x11vnc in your scripts.
QuasaR
Starting Member
Starting Member
 
Posts: 15
Joined: February 2017

Re: Software: modifications and extensions Toon

Postby marcelr » Wed Mar 01, 2017 2:15 pm

What needs to be changed to make x11vnc start happily?

It won't make a shred of difference, the only thing that's changed is that now v4l and v4l2 support is compiled into the binary. Since you don't have either of these supported in the kernel, it's just a waste of memory (and you already need every byte available).
Will post the bitbake recipe later today, so maybe it'll be fixed in their next release ;-).
marcelr
Member
Member
 
Posts: 357
Joined: May 2012
Location: Ehv

Re: Software: modifications and extensions Toon

Postby Toonz » Fri Mar 03, 2017 1:50 pm

marcelr wrote:Good job again, Toonz!

Is there a simple way to incorporate this into the existing graphs screen (by adding more tabs and/or tick boxes to the "stroom" and "gas" graphs)? Might save some memory, although this one in particular is not a large app, in terms of code size. Not sure how it works out in memory requirements.
My production toon with boiler status, buienradar and x11vnc has not a lot of memory left, and sometimes the qt-gui just overloads the memory usage to the extent that the gui gets killed and restarted (especially when using x11vnc).
I am not well versed in the internals of qml, but my guess would be that (using the right #pragma's) a lot of code can be forced to be loaded into memory just once.

BTW, enjoy your holiday.


Hi Marcel,

incorporating into the standard graph screens has some disadvantages, because it will be tied to a certain release and needs updating after each new firmware release (if they change the graph app). Secondly, my version has a 33% higher graph area to make it more easy to read temperatures (I made room by removing the top buttons of the original graph screen). I prefer to keep it stand-alone to be honest.

For the reasons you mentioned I haven't installed x11vnc of my production toon. On my devtoon I use x11vnc it frequently (not started on boot, just manually when needed) and in combination with qui-restarts with the console output redirection it gives stability issues rather quickly. I am therefor rebooting the dev toon regularly.
I will do some further work on the temparatureLogger app to minimize it's memory footprint and remove all unused elements from the AreaGraphMod.qml.
Will thoroughly test on boot Toons.

Regards,

Toonz
Toonz
Member
Member
 
Posts: 95
Joined: December 2016

Re: Software: modifications and extensions Toon

Postby Toonz » Mon Mar 06, 2017 7:41 pm

Hi all,

hereby the final version of the temperature logger app, good for daily use. Tested on two Toons for a couple of days without issues.
It shows a graph (via a tray icon) of the actual and programmed temperature of the last 24h.
This version is highly optimized, all unnecessary code (ahum , most at least :) ) is removed to minimize required space on disk as well as memory usage.

Changelog compared to the earlier beta version:
- no reading and writing of the 24 values anymore to a temporary file before and after each reading .
Full table is kept in ram only. Only disadvantage: when the qt gui restarts all data from the last 24h is lost but will be build-up again of course
- y-axis scale is now 12-28 degrees instead of 0-32 before, which makes it much more easier to read specific values
- javascript module simplified
- all unused elements/functions removed from the AreaGraphMod.qml
- temperatureLoggerApp.qml simplified significantly.

Hope you like it.

One possible future feature (if there is a need, just let me know):
- save the readings of the last 24h every day to a separate file for external usage.

Sample screenshot from my dev toon in the attic (without heating ;-) ):

temperatureLogger.png
temperatureLogger.png (63.83 KiB) Viewed 1147 times
Attachments
Toon_temperatureLogger_V1.zip
(7.78 KiB) Downloaded 27 times
Toonz
Member
Member
 
Posts: 95
Joined: December 2016

Re: Software: modifications and extensions Toon

Postby Toonz » Sun Mar 12, 2017 11:27 am

Hi all,

small update on the Buienradar Rain tile on request of my family:
- added 10 minutes markers to make it easier to read the exact timing of predicted rain

NewRainTile.png
NewRainTile.png (8.28 KiB) Viewed 993 times


Regards,

Toonz
Attachments
ToonBuienradar_V7.1.zip
(28.78 KiB) Downloaded 28 times
Toonz
Member
Member
 
Posts: 95
Joined: December 2016

Re: Software: modifications and extensions Toon

Postby klaphekje » Thu Mar 16, 2017 8:38 pm

I am trying to use Toon as a interface for Domoticz. So far i have used the domoticz app posted earlier in this thread by adjego.
Because i use a reverse proxy to control domoticz i have added a baseurl option.

It works pretty well and its easy adjustable but its also very basic. I actually like to customize the standard control panel from Toon. cygnusx already has done this but i noticed he/she is not really active anymore.
The first step is to make the panel appear without any z-wave devices connected to Toon. After that i assume its possible to add buttons like the existing Domoticz app?

The problem is that i have no idea where to start...any help would be appreciated!

In the mean time i´ll just use this:
Image
Attachments
domoticz.zip
(71.22 KiB) Downloaded 26 times
klaphekje
Starting Member
Starting Member
 
Posts: 12
Joined: October 2016

Re: Software: modifications and extensions Toon

Postby BrainHunt » Sat Mar 18, 2017 10:15 pm

Hi Klaphekje,
I also am playing with using Toon as a dashboard for Domoticz. Maybe I can help but I am not sure what you are looking for. Can you describe your idea a bit further?
BrainHunt
Starting Member
Starting Member
 
Posts: 14
Joined: June 2016

Re: Software: modifications and extensions Toon

Postby klaphekje » Wed Mar 22, 2017 7:44 am

Hi Brainhunt,

If you connect Z-wave devices directly to toon, a menu button appears on the left side of the screen like this:
Image

I'd like to use that particulier menu to control my devices. However that menu only appears when there are devices connected directly to Toon.

What i'd like to do is to enable that menu and link those buttons to domoticz json url's.
klaphekje
Starting Member
Starting Member
 
Posts: 12
Joined: October 2016

Re: Software: modifications and extensions Toon

Postby cygnusx » Mon Mar 27, 2017 7:39 pm

Hi there!
Yes i used the original toon sidepanel to show my devices. The cool thing is that that button to slide out the panel is also visible when the screen is black. So switching your devices is always 1 click away.

It took me some work to get the button to show. You have to try some stuff out. At that time (when i started developing it) there was no vnc support, so testing it was kinda tricky.

Just play around with the settings, you just have to fill the array it builds of z-wave devices to make toon think there are devices i think.
cygnusx
Starting Member
Starting Member
 
Posts: 45
Joined: April 2015

Re: Software: modifications and extensions Toon

Postby martijnd » Tue Mar 28, 2017 10:02 pm

Hi all,

I have a suggestion for the domoticz app on toon. Is it possible to just create a tile that displays the domoticz webpage?
with domoticz you can create custom frontpages, maybe we can create one that fits on the Toon's screen.
management of switches and other devices will be far more easier..
martijnd
Starting Member
Starting Member
 
Posts: 1
Joined: March 2017

Re: Software: modifications and extensions Toon

Postby Ierlandfan » Thu Mar 30, 2017 6:36 pm

Maybe this will give you a start? No idea what is compiled in QT or whether this will work out of the box.

qtcentre.org/threads/61565-How-to-displ ... icswebview
Ierlandfan
Member
Member
 
Posts: 60
Joined: October 2013

Re: Software: modifications and extensions Toon

Postby Toonz » Fri Mar 31, 2017 11:42 am

Hi all,

last week I received my rfxcom interface for the klikaanklikuit lights I have in two bedrooms.
I installed Domoticz on my raspberry and all is working fine.
My next step was to create an app on Toon to show the status of the lights on a tile and with a screen where you can switch the lights.
I started with the app from adjego and expanded that further.
Had to draw some new icons for the Dimstate/non-dim state.

All working fine but still some stuff to do:
- current list of devices is not retrieved from Domoticz, listed devices are hardcoded in DomoticzApp (idx variable in http request).
- currently the status of the lights is refreshed every 10 seconds. Which means that after switching a light on or off it takes 0-10 seconds before the status is shown on Toon but the lights are actually switched realtime via domoticz. I still need to figure out how I can trigger the status update on Toon after switching a light on Toon (calling a function in another QML file)
- Initially I had active buttons on the tile as well but it didn't look nice in Dim state, will see if I can add this back in later

I'm quite busy coming week, expect a clean version somewhere next weekend.
Consider this as work in progress and a source of inspiration :-)

EDIT: attachment removed, see next post
Toonz
Member
Member
 
Posts: 95
Joined: December 2016

Re: Software: modifications and extensions Toon

Postby Toonz » Sat Apr 01, 2017 1:45 pm

Hi all,

'final' version on my app to control the two klikaanklikuit lights via domotics. Don't worry, no April 1st joke. :D

changelog:
- you can now click on the light icons on the tile as well to switch the lights on or off
- the new status of the lights is shown directly on the tiles as well as on the main screen.
Only the 'last seen' date-time on the main screen will be updated during the regular refresh cycle via domoticz every xx seconds (timer in DomoticzApp.qml)

Todo (at some time, not very soon):
- Implement a mechanism for Domoticz to trigger a screen refresh at Toon when lights are switched by Domoticz or the klikaanklikuit switches

Regards,

Toonz
Attachments
domoticzLights_V1.0.zip
(12.65 KiB) Downloaded 19 times
Toonz
Member
Member
 
Posts: 95
Joined: December 2016

PreviousNext

Return to Eneco Toon as Domotica controller

Who is online

Users browsing this forum: No registered users and 2 guests