Page 1 of 7

Toon app: Dashticz (no longer working)

Posted: Sat Dec 02, 2017 12:04 am
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

Re: Toon app: Dashticz (for Toon)

Posted: Sat Dec 02, 2017 12:09 am
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?

Re: Toon app: Dashticz (for Toon)

Posted: Sat Dec 02, 2017 12:11 am
by robgeerts
No problem! :)
We all have to learn from each other to make things better!

Re: Toon app: Dashticz (for Toon)

Posted: Sat Dec 02, 2017 11:31 am
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

Re: Toon app: Dashticz (for Toon)

Posted: Sat Dec 02, 2017 11:43 am
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,

Re: Toon app: Dashticz (for Toon)

Posted: Sat Dec 02, 2017 1:04 pm
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 ;-).

Re: Toon app: Dashticz (for Toon)

Posted: Sat Dec 02, 2017 2:19 pm
by robgeerts
Netsurf browser?
So it would maybe possible to run the normal Dashticz on Toon?

Re: Toon app: Dashticz (for Toon)

Posted: Sat Dec 02, 2017 3:53 pm
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.

Re: Toon app: Dashticz (for Toon)

Posted: Sat Dec 02, 2017 4:10 pm
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.

Re: Toon app: Dashticz (for Toon)

Posted: Sat Dec 02, 2017 4:19 pm
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

Re: Toon app: Dashticz (for Toon)

Posted: Sat Dec 02, 2017 5:02 pm
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.

Re: Toon app: Dashticz (for Toon)

Posted: Sat Dec 02, 2017 5:23 pm
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

Re: Toon app: Dashticz (for Toon)

Posted: Sat Dec 02, 2017 7:03 pm
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.

Re: Toon app: Dashticz (for Toon)

Posted: Sat Dec 02, 2017 11:28 pm
by robgeerts
Ah, I guess I miss the next line of code (before OnShown{}) in DashticzSettings.qml

Code: Select all

property DashticzApp app;

Re: Toon app: Dashticz (for Toon)

Posted: Sun Dec 03, 2017 1:33 pm
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="}