Software: modifications and extensions Toon

Forum about the tweaking of the Eneco Toon.

Moderator: marcelr

Re: Software: modifications and extensions Toon

Postby Toonz » Mon Feb 20, 2017 6:48 pm

I just made minor change to the Buienradar app: when the data for the selected weather station is missing, the app will continue to show the data from the last reading instead of NaN etc. Code is running on my Dev Toon, will check tonight if it behaves as expected. Will post the change when succesfull.
Toonz
Member
Member
 
Posts: 166
Joined: December 2016

Re: Software: modifications and extensions Toon

Postby Toonz » Thu Feb 23, 2017 2:07 pm

small update to the Buienradar app (only BuienradarApp.qml has changed):

changelog:
- when selected weather station data is not available in the XML file (happens frequently just after midnight), the previous data will continue to be shown instead of NaN and blanks.
Attachments
ToonBuienradar_V7.1.zip
(28.41 KiB) Downloaded 31 times
Toonz
Member
Member
 
Posts: 166
Joined: December 2016

Re: Software: modifications and extensions Toon

Postby QuasaR » Tue Feb 28, 2017 3:30 pm

After the new update I am unable to start x11vnc anymore.

Code: Select all
eneco-xxx-xxxxxx:~# x11vnc
###############################################################
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#
#@                                                           @#
#@  **  WARNING  **  WARNING  **  WARNING  **  WARNING  **   @#
#@                                                           @#
#@        YOU ARE RUNNING X11VNC WITHOUT A PASSWORD!!        @#
#@                                                           @#
#@  This means anyone with network access to this computer   @#
#@  may be able to view and control your desktop.            @#
#@                                                           @#
#@ >>> If you did not mean to do this Press CTRL-C now!! <<< @#
#@                                                           @#
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#
#@                                                           @#
#@  You can create an x11vnc password file by running:       @#
#@                                                           @#
#@       x11vnc -storepasswd password /path/to/passfile      @#
#@  or   x11vnc -storepasswd /path/to/passfile               @#
#@  or   x11vnc -storepasswd                                 @#
#@                                                           @#
#@  (the last one will use ~/.vnc/passwd)                    @#
#@                                                           @#
#@  and then starting x11vnc via:                            @#
#@                                                           @#
#@      x11vnc -rfbauth /path/to/passfile                    @#
#@                                                           @#
#@  an existing ~/.vnc/passwd file from another VNC          @#
#@  application will work fine too.                          @#
#@                                                           @#
#@  You can also use the -passwdfile or -passwd options.     @#
#@  (note -passwd is unsafe if local users are not trusted)  @#
#@                                                           @#
#@  Make sure any -rfbauth and -passwdfile password files    @#
#@  cannot be read by untrusted users.                       @#
#@                                                           @#
#@  Use x11vnc -usepw to automatically use your              @#
#@  ~/.vnc/passwd or ~/.vnc/passwdfile password files.       @#
#@  (and prompt you to create ~/.vnc/passwd if neither       @#
#@  file exists.)  Under -usepw, x11vnc will exit if it      @#
#@  cannot find a password to use.                           @#
#@                                                           @#
#@                                                           @#
#@  Even with a password, the subsequent VNC traffic is      @#
#@  sent in the clear.  Consider tunnelling via ssh(1):      @#
#@                                                           @#
#@    http://www.karlrunge.com/x11vnc/#tunnelling            @#
#@                                                           @#
#@  Or using the x11vnc SSL options: -ssl and -stunnel       @#
#@                                                           @#
#@  Please Read the documention for more info about          @#
#@  passwords, security, and encryption.                     @#
#@                                                           @#
#@    http://www.karlrunge.com/x11vnc/faq.html#faq-passwd    @#
#@                                                           @#
#@  To disable this warning use the -nopw option, or put     @#
#@  'nopw' on a line in your ~/.x11vncrc file.               @#
#@                                                           @#
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#
###############################################################
28/02/2017 14:27:53 x11vnc version: 0.9.13 lastmod: 2011-08-10  pid: 2245
28/02/2017 14:27:53 This x11vnc was built without X11 support (-rawfb only).
28/02/2017 14:27:53
28/02/2017 14:27:53 *** XOpenDisplay failed. No -display or DISPLAY.
28/02/2017 14:27:53 *** Trying ":0" in 4 seconds.  Press Ctrl-C to abort.
28/02/2017 14:27:53 *** 1 2 3 4
28/02/2017 14:27:57 This x11vnc was built without X11 support (-rawfb only).
28/02/2017 14:27:57

28/02/2017 14:27:57 ***************************************
28/02/2017 14:27:57 *** XOpenDisplay failed (:0)

*** x11vnc was unable to open the X DISPLAY: ":0", it cannot continue.
*** There may be "Xlib:" error messages above with details about the failure.

Some tips and guidelines:

** An X server (the one you wish to view) must be running before x11vnc is
   started: x11vnc does not start the X server.  (however, see the -create
   option if that is what you really want).

** You must use -display <disp>, -OR- set and export your $DISPLAY
   environment variable to refer to the display of the desired X server.
- Usually the display is simply ":0" (in fact x11vnc uses this if you forget
   to specify it), but in some multi-user situations it could be ":1", ":2",
   or even ":137".  Ask your administrator or a guru if you are having
   difficulty determining what your X DISPLAY is.

** Next, you need to have sufficient permissions (Xauthority)
   to connect to the X DISPLAY.   Here are some Tips:

- Often, you just need to run x11vnc as the user logged into the X session.
   So make sure to be that user when you type x11vnc.
- Being root is usually not enough because the incorrect MIT-MAGIC-COOKIE
   file may be accessed.  The cookie file contains the secret key that
   allows x11vnc to connect to the desired X DISPLAY.
- You can explicitly indicate which MIT-MAGIC-COOKIE file should be used
   by the -auth option, e.g.:
       x11vnc -auth /home/someuser/.Xauthority -display :0
       x11vnc -auth /tmp/.gdmzndVlR -display :0
   you must have read permission for the auth file.
   See also '-auth guess' and '-findauth' discussed below.

** If NO ONE is logged into an X session yet, but there is a greeter login
   program like "gdm", "kdm", "xdm", or "dtlogin" running, you will need
   to find and use the raw display manager MIT-MAGIC-COOKIE file.
   Some examples for various display managers:

     gdm:     -auth /var/gdm/:0.Xauth
              -auth /var/lib/gdm/:0.Xauth
     kdm:     -auth /var/lib/kdm/A:0-crWk72
              -auth /var/run/xauth/A:0-crWk72
     xdm:     -auth /var/lib/xdm/authdir/authfiles/A:0-XQvaJk
     dtlogin: -auth /var/dt/A:0-UgaaXa

   Sometimes the command "ps wwwwaux | grep auth" can reveal the file location.

   Starting with x11vnc 0.9.9 you can have it try to guess by using:

              -auth guess

   (see also the x11vnc -findauth option.)

   Only root will have read permission for the file, and so x11vnc must be run
   as root (or copy it).  The random characters in the filenames will of course
   change and the directory the cookie file resides in is system dependent.

See also: http://www.karlrunge.com/x11vnc/faq.html


*Update*
It seems that a new package is installed and the binary is not x11vnc-bin anymore in the /usr/bin/ folder.
After fixing my init script I was able to start it once again.
QuasaR
Starting Member
Starting Member
 
Posts: 17
Joined: February 2017

Re: Software: modifications and extensions Toon

Postby marcelr » Tue Feb 28, 2017 7:48 pm

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:
marcelr
Member
Member
 
Posts: 455
Joined: May 2012
Location: Ehv

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: 17
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: 76
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: 17
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: 455
Joined: May 2012
Location: Ehv

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 1664 times


Regards,

Toonz
Attachments
ToonBuienradar_V7.1.zip
(28.78 KiB) Downloaded 41 times
Toonz
Member
Member
 
Posts: 166
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 45 times
klaphekje
Starting Member
Starting Member
 
Posts: 25
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: 17
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: 25
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: 48
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: 2
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: 76
Joined: October 2013

PreviousNext

Return to Eneco Toon as Domotica controller

Who is online

Users browsing this forum: djdive and 1 guest