Toon app: Dashticz (no longer working)

Forum about forum-provided applications on Toon

Moderators: marcelr, TheHogNL, Toonz

Locked
robgeerts
Starting Member
Starting Member
Posts: 38
Joined: Tue Aug 08, 2017 10:30 pm

Toon app: Dashticz (no longer working)

Post by robgeerts »

Here is the first basic version of Dashticz (for Toon).
As some of you may know, Dashticz is another frontend for Domoticz, more info: http://www.domoticz.com/forum/viewforum.php?f=67

Remember, this is still a beta version wich is only tested on version 4.8.25 of Toon! It only shows favorite (!) devices and currently only regular light switches, scene switches, fans and percentage-devices (with a computer-image) are supported. I'm planning on adding more device types and buttons (next to 'Instellingen') to add more functionality like in the original Dashticz.

Edit mod: app does not work with latest Toon firmware. Use at own risk, no support.

Manual installation:
1.) Download zip from this https://github.com/robgeerts/dashticz_toon, unzip contents to a folder named 'dashticz' and upload this folder to: '/HCBv2/qml/apps/'
2.) Add 'dashticz' to the array of 'appsToLoad' in '/HCBv2/qml/qb/base/Globals.qml'
3.) Reboot :)
4.) Click on the new (bulb) icon in the notification-bar
5.) Click on 'Instellingen' to enter ip, port, username and password (enter base64 encoded username & password)

Image



OV-tab
1.) First get the station id from http://api.9292.nl/0.1/locations?lang=nl-NL&q=eindhoven (Change eindhoven to your own search parameter).
2.) Copy the ID and enter this value in the 'Station / Halte' field

Image
Last edited by robgeerts on Thu Dec 07, 2017 10:21 pm, edited 8 times in total.
lsiepel
Starting Member
Starting Member
Posts: 14
Joined: Tue Oct 31, 2017 8:49 pm

Re: Toon app: Dashticz (for Toon)

Post by lsiepel »

Maybe good to mention dashticz is a frontend for domoticz. Do you mind if i copy cat parts of your app to try get a frontend for openHAB working?
robgeerts
Starting Member
Starting Member
Posts: 38
Joined: Tue Aug 08, 2017 10:30 pm

Re: Toon app: Dashticz (for Toon)

Post by robgeerts »

No problem! :)
We all have to learn from each other to make things better!
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Dashticz (for Toon)

Post by Toonz »

Nice, good start. When leaving the beta stage we can publish it via the ToonStore as well later on if you want.

Regardz,

Toonz
member of the Toon Software Collective
jozg
Member
Member
Posts: 56
Joined: Wed Nov 15, 2017 1:13 pm

Re: Toon app: Dashticz (for Toon)

Post by jozg »

Hello Rob,

Nice work, looks good.
Did everything in the manual, but it keeps saying "bezig met laden"
I filled in the host 192.168.1.11 the port 8080 and i have converted the username and password on https://www.base64encode.org/

Am i'm doing something wrong?

Thanks for helping.

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

Re: Toon app: Dashticz (for Toon)

Post by marcelr »

Nice job, robgeerts,
As Toonz already said, just yell when it's ready for prime time.

In the meantime, I'll cease my efforts to get netsurf working on toon. Switching /dev/fb0 owners every now and then was not such a good idea anyway ;-).
robgeerts
Starting Member
Starting Member
Posts: 38
Joined: Tue Aug 08, 2017 10:30 pm

Re: Toon app: Dashticz (for Toon)

Post by robgeerts »

Netsurf browser?
So it would maybe possible to run the normal Dashticz on Toon?
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon app: Dashticz (for Toon)

Post by marcelr »

Netsurf is one of the few browsers capable of running on a framebuffer device. It does not require a window manager.
However, when toon boots, qt-gui grabs hold of the screen framebuffer (/dev/fb0) and will only release it when it stops. Only then the browser can start. This is what I meant by switching /dev/fd0 ownership.
michel30
Member
Member
Posts: 286
Joined: Fri Aug 25, 2017 4:42 pm

Re: Toon app: Dashticz (for Toon)

Post by michel30 »

@robgeerts

Can this also work with MQTT?

I installed domoticz on my NAS, but I never get my toon or lights working on it.
I also used node red and there My toon and the lights are working okay.
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Dashticz (for Toon)

Post by Toonz »

jozg wrote:Hello Rob,

Nice work, looks good.
Did everything in the manual, but it keeps saying "bezig met laden"
I filled in the host 192.168.1.11 the port 8080 and i have converted the username and password on https://www.base64encode.org/

Am i'm doing something wrong?

Thanks for helping.

Regards,
Is your Domoticz accessible via http? Toon is not supporting https
member of the Toon Software Collective
jozg
Member
Member
Posts: 56
Joined: Wed Nov 15, 2017 1:13 pm

Re: Toon app: Dashticz (for Toon)

Post by jozg »

Toonz wrote:
jozg wrote:Hello Rob,

Nice work, looks good.
Did everything in the manual, but it keeps saying "bezig met laden"
I filled in the host 192.168.1.11 the port 8080 and i have converted the username and password on https://www.base64encode.org/

Am i'm doing something wrong?

Thanks for helping.

Regards,
Is your Domoticz accessible via http? Toon is not supporting https
Hello,

Yes, and domoticzboard is working fine.
Any other suggestions, i'm on 4.9.23 firmware.

Thanks.
jozg
Member
Member
Posts: 56
Joined: Wed Nov 15, 2017 1:13 pm

Re: Toon app: Dashticz (for Toon)

Post by jozg »

Toonz wrote:
jozg wrote:Hello Rob,

Nice work, looks good.
Did everything in the manual, but it keeps saying "bezig met laden"
I filled in the host 192.168.1.11 the port 8080 and i have converted the username and password on https://www.base64encode.org/

Am i'm doing something wrong?

Thanks for helping.

Regards,
Is your Domoticz accessible via http? Toon is not supporting https
By the way, i noticed that the dashticz.settings file is empty, showing []
Should the file contains the settings i made via the user interface?.

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

Re: Toon app: Dashticz (for Toon)

Post by Toonz »

@Rob,

When you use the 'instellingen'' screen you get a run-time error in the OnShown function at line
domoticzHostLabel.inputText = app.settings.domoticzHost;

Error:

file:///qmf/qml/apps/dashticz/DashticzSettings.qml:16: Error: Cannot assign [undefined] to QString
The settings variables are never properly populated apparently. No values are saved in dashticz.settings therefore.
member of the Toon Software Collective
robgeerts
Starting Member
Starting Member
Posts: 38
Joined: Tue Aug 08, 2017 10:30 pm

Re: Toon app: Dashticz (for Toon)

Post by robgeerts »

Ah, I guess I miss the next line of code (before OnShown{}) in DashticzSettings.qml

Code: Select all

property DashticzApp app;
robgeerts
Starting Member
Starting Member
Posts: 38
Joined: Tue Aug 08, 2017 10:30 pm

Re: Toon app: Dashticz (for Toon)

Post by robgeerts »

jozg wrote:
Toonz wrote:
jozg wrote:Hello Rob,

Nice work, looks good.
Did everything in the manual, but it keeps saying "bezig met laden"
I filled in the host 192.168.1.11 the port 8080 and i have converted the username and password on https://www.base64encode.org/

Am i'm doing something wrong?

Thanks for helping.

Regards,
Is your Domoticz accessible via http? Toon is not supporting https
By the way, i noticed that the dashticz.settings file is empty, showing []
Should the file contains the settings i made via the user interface?.

Regards
Untill this is fixed, you can fill the settings file with:

Code: Select all

{"domoticzHost":"192.168.1.3","domoticzPassword":"U21hcnQy0cg==","domoticzPort":"8084","domoticzUsername":"YWW4="}
Locked

Return to “Toon Apps”