Software: modifications and extensions Toon

Everything about software tools, new software development and toolchains. For developers, mostly.

Moderators: marcelr, TheHogNL, Toonz

Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Software: modifications and extensions Toon

Post by Toonz »

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.
member of the Toon Software Collective
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Software: modifications and extensions Toon

Post by Toonz »

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 363 times
member of the Toon Software Collective
QuasaR
Starting Member
Starting Member
Posts: 23
Joined: Wed Feb 08, 2017 1:06 pm

Re: Software: modifications and extensions Toon

Post by QuasaR »

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

Re: Software: modifications and extensions Toon

Post by marcelr »

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:
QuasaR
Starting Member
Starting Member
Posts: 23
Joined: Wed Feb 08, 2017 1:06 pm

Re: Software: modifications and extensions Toon

Post by QuasaR »

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
Ierlandfan
Member
Member
Posts: 151
Joined: Thu Oct 03, 2013 7:53 pm

Re: Software: modifications and extensions Toon

Post by Ierlandfan »

What needs to be changed to make x11vnc start happily?
QuasaR
Starting Member
Starting Member
Posts: 23
Joined: Wed Feb 08, 2017 1:06 pm

Re: Software: modifications and extensions Toon

Post by QuasaR »

Ierlandfan wrote:What needs to be changed to make x11vnc start happily?
Change x11vnc-bin to x11vnc in your scripts.
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Software: modifications and extensions Toon

Post by marcelr »

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 ;-).
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Software: modifications and extensions Toon

Post by Toonz »

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 11944 times
Regards,

Toonz
Attachments
ToonBuienradar_V7.1.zip
(28.78 KiB) Downloaded 390 times
member of the Toon Software Collective
klaphekje
Starting Member
Starting Member
Posts: 36
Joined: Sat Oct 08, 2016 10:05 pm

Re: Software: modifications and extensions Toon

Post by klaphekje »

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 401 times
BrainHunt
Starting Member
Starting Member
Posts: 23
Joined: Thu Jun 30, 2016 11:37 am

Re: Software: modifications and extensions Toon

Post by BrainHunt »

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?
klaphekje
Starting Member
Starting Member
Posts: 36
Joined: Sat Oct 08, 2016 10:05 pm

Re: Software: modifications and extensions Toon

Post by klaphekje »

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.
cygnusx
Starting Member
Starting Member
Posts: 48
Joined: Tue Apr 14, 2015 10:12 am

Re: Software: modifications and extensions Toon

Post by cygnusx »

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.
martijnd
Starting Member
Starting Member
Posts: 2
Joined: Mon Mar 27, 2017 10:42 pm

Re: Software: modifications and extensions Toon

Post by martijnd »

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..
Ierlandfan
Member
Member
Posts: 151
Joined: Thu Oct 03, 2013 7:53 pm

Re: Software: modifications and extensions Toon

Post by Ierlandfan »

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
Post Reply

Return to “Toon software development”