Toon app: DomoticzBoard

Forum about forum-provided applications on Toon

Moderators: marcelr, TheHogNL, Toonz

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

Re: Toon app: DomoticzBoard

Post by Toonz »

not sure if you have access to your Toon, but you can try the following:

Update all occurrences of 'http://' into 'https://' in the following two files:

/qmf/qml/apps/domoticzboard-1.1.13/DomoticzboardApp.qml
/qmf/qml/apps/domoticzboard-1.1.13/DomoticzboardScreen.qml


save the files and restart the gui (menu, instellingen, TSC, Restart Gui).

Kind regardz,

Toonz
member of the Toon Software Collective
ZH92
Starting Member
Starting Member
Posts: 1
Joined: Tue Mar 28, 2023 8:17 pm

Re: Toon app: DomoticzBoard

Post by ZH92 »

Hello Toonz,

I am a satisfied user of domoticzboard. unfortunately I also have the problem that after the last update 2023. Toon no longer works, or better said Domoticzboard.
Now I can log into the rooted toon using SSH. But can't change the files.. tried with vi. then I get into the file, but with which command do I save the file (perhaps a stupid question, but ctrl+O, etc does not work).

Thank you in advance!
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: DomoticzBoard

Post by Toonz »

To save a file in Vim / vi, press Esc key, type :w and hit Enter key
member of the Toon Software Collective
PeJeWe
Member
Member
Posts: 80
Joined: Thu Apr 25, 2019 6:51 am

Re: Toon app: DomoticzBoard

Post by PeJeWe »

after domoticz update i get every minute a error in the domoticz log:

Code: Select all

[WebServer] Deprecated RType (devices) for API request. Handled via fallback (getdevices), please use correct API Command! (192.168.IP_toon)
DomoticzBoard is now making a wrong api call to domoticz
Rooted Toon 1, Domoticz running on a RPI3b+, RFXCOM XL, RFLINK.
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: DomoticzBoard

Post by Toonz »

I am not running Domoticz anymore myself. Not sure if anyone is maintaining this app actually.
You can edit the api calls yourself in the qml files on Toon in /qml/qml/apps/domoticzboard/domoticzboardApp.qml and /qml/qml/apps/domoticzboard/domoticzboardScreen.qml.
Happy to publish the changes in the ToonStore when you're done.
member of the Toon Software Collective
PeJeWe
Member
Member
Posts: 80
Joined: Thu Apr 25, 2019 6:51 am

Re: Toon app: DomoticzBoard

Post by PeJeWe »

Toonz wrote: Tue Sep 19, 2023 9:01 pm I am not running Domoticz anymore myself. Not sure if anyone is maintaining this app actually.
You can edit the api calls yourself in the qml files on Toon in /qml/qml/apps/domoticzboard/domoticzboardApp.qml and /qml/qml/apps/domoticzboard/domoticzboardScreen.qml.
Happy to publish the changes in the ToonStore when you're done.
I am not that good programmer to find that particular code and to change it.
would you be so kind to help me with that?
Rooted Toon 1, Domoticz running on a RPI3b+, RFXCOM XL, RFLINK.
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: DomoticzBoard

Post by Toonz »

When I have time I can have a look, also need to setup a raspberry first and install domoticz again....
I cannot commit to any timeline yet.....
member of the Toon Software Collective
Xavier
Member
Member
Posts: 174
Joined: Wed Jan 16, 2019 1:40 am

Re: Toon app: DomoticzBoard

Post by Xavier »

Since the update to 2023.2 version of Domoticz this issue appears as an error in Domoticz log.
This is the error message:

Code: Select all

WebServer] Deprecated RType (devices) for API request. Handled via fallback (getdevices), please use correct API Command!
The mentioned IP-address resolves to my 2 Toonsv2.
Enabeling the "API Protection - Allow Basic-Auth authentication over plain HTTP (API only)." option did not fix the issue.

Perhaps also check this topic:
https://www.domoticz.com/forum/viewtopic.php?t=40415

Not really a pain in the ass but would be nice if fixed :)
Toon2 with 6.0.2 firmware TSC 2.1.7
Apps: Sonos, Calender, garbagecalender, webcam, doorcam, Onkyo, Domoticzboard, Solar and weather app.
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: DomoticzBoard

Post by Toonz »

I think the fix is rather easy:

In /qmf/qml/apps/domoticzboard-1.1.13/DomoticzboardApp.qml please change line 266 into:

Code: Select all

		xmlhttp.open("GET", "http://"+connectionPath+"/json.htm?type=command&param=getdevices&filter=all&used=true&order=Name&username=" + Qt.btoa(username) + "&password=" + Qt.btoa(password), true);
This should get rid of the Deprecated messages in the Domoticz log
Let me know if this helps so I can release this in the ToonStore as well.
I have not tested it myself.
member of the Toon Software Collective
Xavier
Member
Member
Posts: 174
Joined: Wed Jan 16, 2019 1:40 am

Re: Toon app: DomoticzBoard

Post by Xavier »

Sorry for the late reaction.
Hereby I can confirm that this fix works.
In Domoticz I don't have the "error" / message anymore.

Thanks Toonz!
Toon2 with 6.0.2 firmware TSC 2.1.7
Apps: Sonos, Calender, garbagecalender, webcam, doorcam, Onkyo, Domoticzboard, Solar and weather app.
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: DomoticzBoard

Post by Toonz »

thanks for letting me know, I will update the app in the ToonStore as well
member of the Toon Software Collective
Xavier
Member
Member
Posts: 174
Joined: Wed Jan 16, 2019 1:40 am

Re: Toon app: DomoticzBoard

Post by Xavier »

Hi all,

I need some help, since a time (don't know exactly when) none of my blinds are being displayed in the app.
So in Domoticz (v2023.2) I have marked all blinds as "Favorite", in Domoticz Dashbord I can see them.
In the app on Toon I can see all other devices (which are marked as Favorite) except the blinds.

I undid favorite in Domoticz: no result

Any toughts about this?
Toon2 with 6.0.2 firmware TSC 2.1.7
Apps: Sonos, Calender, garbagecalender, webcam, doorcam, Onkyo, Domoticzboard, Solar and weather app.
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: DomoticzBoard

Post by Toonz »

what is the "SwitchType" of your blinds in domoticz?
member of the Toon Software Collective
Xavier
Member
Member
Posts: 174
Joined: Wed Jan 16, 2019 1:40 am

Re: Toon app: DomoticzBoard

Post by Xavier »

it's set to type: "Light/switch, Switch, Blinds + Stop":
Domoticz blinds type.png
Domoticz blinds type.png (17.27 KiB) Viewed 3842 times
Toon2 with 6.0.2 firmware TSC 2.1.7
Apps: Sonos, Calender, garbagecalender, webcam, doorcam, Onkyo, Domoticzboard, Solar and weather app.
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: DomoticzBoard

Post by Toonz »

can you share the details of this switch as you get it via the api: <domoticz_IPaddress>/json.htm?type=command&param=getdevices ?
member of the Toon Software Collective
Post Reply

Return to “Toon Apps”