Toon app: Dashticz (no longer working)
Moderators: marcelr, TheHogNL, Toonz
Toon app: Dashticz (no longer working)
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)
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
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)
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
Last edited by robgeerts on Thu Dec 07, 2017 10:21 pm, edited 8 times in total.
Re: Toon app: Dashticz (for Toon)
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)
No problem!
We all have to learn from each other to make things better!
We all have to learn from each other to make things better!
Re: Toon app: Dashticz (for Toon)
Nice, good start. When leaving the beta stage we can publish it via the ToonStore as well later on if you want.
Regardz,
Toonz
Regardz,
Toonz
member of the Toon Software Collective
Re: Toon app: Dashticz (for Toon)
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,
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)
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 .
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)
Netsurf browser?
So it would maybe possible to run the normal Dashticz on Toon?
So it would maybe possible to run the normal Dashticz on Toon?
Re: Toon app: Dashticz (for Toon)
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.
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)
@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.
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)
Is your Domoticz accessible via http? Toon is not supporting httpsjozg 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,
member of the Toon Software Collective
Re: Toon app: Dashticz (for Toon)
Hello,Toonz wrote:Is your Domoticz accessible via http? Toon is not supporting httpsjozg 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,
Yes, and domoticzboard is working fine.
Any other suggestions, i'm on 4.9.23 firmware.
Thanks.
Re: Toon app: Dashticz (for Toon)
By the way, i noticed that the dashticz.settings file is empty, showing []Toonz wrote:Is your Domoticz accessible via http? Toon is not supporting httpsjozg 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,
Should the file contains the settings i made via the user interface?.
Regards
Re: Toon app: Dashticz (for Toon)
@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.
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
Re: Toon app: Dashticz (for Toon)
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)
Untill this is fixed, you can fill the settings file with:jozg wrote:By the way, i noticed that the dashticz.settings file is empty, showing []Toonz wrote:Is your Domoticz accessible via http? Toon is not supporting httpsjozg 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,
Should the file contains the settings i made via the user interface?.
Regards
Code: Select all
{"domoticzHost":"192.168.1.3","domoticzPassword":"U21hcnQy0cg==","domoticzPort":"8084","domoticzUsername":"YWW4="}