Toon app: Dashticz (for Toon); NEW: OV Info (NL)

Forum about forum-provided applications on Toon

Moderators: marcelr, TheHogNL, TerrorSource, Toonz

Toon app: Dashticz (for Toon); NEW: OV Info (NL)

Postby robgeerts » Fri Dec 01, 2017 11:04 pm

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.

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 9:21 pm, edited 8 times in total.
Creator of Dashticz, Do you appreciate my work and want to buy me a beer? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts
robgeerts
Starting Member
Starting Member
 
Posts: 31
Joined: August 2017

Re: Toon app: Dashticz (for Toon)

Postby lsiepel » Fri Dec 01, 2017 11:09 pm

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?
lsiepel
Starting Member
Starting Member
 
Posts: 14
Joined: October 2017

Re: Toon app: Dashticz (for Toon)

Postby robgeerts » Fri Dec 01, 2017 11:11 pm

No problem! :)
We all have to learn from each other to make things better!
Creator of Dashticz, Do you appreciate my work and want to buy me a beer? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts
robgeerts
Starting Member
Starting Member
 
Posts: 31
Joined: August 2017

Re: Toon app: Dashticz (for Toon)

Postby Toonz » Sat Dec 02, 2017 10:31 am

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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 928
Joined: December 2016

Re: Toon app: Dashticz (for Toon)

Postby jozg » Sat Dec 02, 2017 10:43 am

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,
jozg
Starting Member
Starting Member
 
Posts: 39
Joined: November 2017

Re: Toon app: Dashticz (for Toon)

Postby marcelr » Sat Dec 02, 2017 12:04 pm

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 ;-).
marcelr
Global Moderator
Global Moderator
 
Posts: 969
Joined: May 2012
Location: Ehv

Re: Toon app: Dashticz (for Toon)

Postby robgeerts » Sat Dec 02, 2017 1:19 pm

Netsurf browser?
So it would maybe possible to run the normal Dashticz on Toon?
Creator of Dashticz, Do you appreciate my work and want to buy me a beer? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts
robgeerts
Starting Member
Starting Member
 
Posts: 31
Joined: August 2017

Re: Toon app: Dashticz (for Toon)

Postby marcelr » Sat Dec 02, 2017 2:53 pm

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.
marcelr
Global Moderator
Global Moderator
 
Posts: 969
Joined: May 2012
Location: Ehv

Re: Toon app: Dashticz (for Toon)

Postby michel30 » Sat Dec 02, 2017 3:10 pm

@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.
michel30
Member
Member
 
Posts: 189
Joined: August 2017

Re: Toon app: Dashticz (for Toon)

Postby Toonz » Sat Dec 02, 2017 3:19 pm

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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 928
Joined: December 2016

Re: Toon app: Dashticz (for Toon)

Postby jozg » Sat Dec 02, 2017 4:02 pm

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
Starting Member
Starting Member
 
Posts: 39
Joined: November 2017

Re: Toon app: Dashticz (for Toon)

Postby jozg » Sat Dec 02, 2017 4:23 pm

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
jozg
Starting Member
Starting Member
 
Posts: 39
Joined: November 2017

Re: Toon app: Dashticz (for Toon)

Postby Toonz » Sat Dec 02, 2017 6:03 pm

@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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 928
Joined: December 2016

Re: Toon app: Dashticz (for Toon)

Postby robgeerts » Sat Dec 02, 2017 10:28 pm

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

Code: Select all
property DashticzApp app;
Creator of Dashticz, Do you appreciate my work and want to buy me a beer? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts
robgeerts
Starting Member
Starting Member
 
Posts: 31
Joined: August 2017

Re: Toon app: Dashticz (for Toon)

Postby robgeerts » Sun Dec 03, 2017 12:33 pm

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="}
Creator of Dashticz, Do you appreciate my work and want to buy me a beer? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts
robgeerts
Starting Member
Starting Member
 
Posts: 31
Joined: August 2017

Next

Return to Toon Apps

Who is online

Users browsing this forum: No registered users and 1 guest