Toon app: Home Assistant controller

Forum about forum-provided applications on Toon

Moderators: marcelr, TheHogNL, TerrorSource, Toonz

Re: Toon app: Home Assistant controller

Postby Luc_S » Fri Oct 11, 2019 3:02 pm

Phoolie wrote:Isn't it possible to use WinSCP and edit the files with Notepad ++?


Yes, you can also change the files and upload them with WinSCP.

Phoolie wrote:I didn't tried the other workaround, because JurnD said, it wont worked.

If you want, I can try it this weekend.


Thank you but I'm not that curious about why the workaround doesn't work :D Cheers!
Luc_S
Starting Member
Starting Member
 
Posts: 43
Joined: June 2018

Re: Toon app: Home Assistant controller

Postby Toonz » Fri Oct 11, 2019 3:06 pm

Hi all,

maybe some clarification on the images, toonstore and firmware versions is helpfull here.

From firmware version 5.x.x onwards, alle images must be included in the resourcefiles.
Absolute paths like file:///qmf/qml/apps/.../drawables or ./drawables won't workanymore.
Up to firmware 4.x.x all images where taken from the file system and app images had to be put in the drawables folder.

When I publish applications in the ToonStore I need to ensure compatibility with all firmwares.
I therefore make sure an app is running on firmware 4 before packaging for ToonStore.
Which means all references to images in the QML files should be in the form of "./drawables/" or "file:///qmf/qml/apps/xxx/drawables/"
All images should be included in the package in the drawables folder.

When the actual ToonStore package installer script detects that it is being installed on firmware 5 or higher, the installer will modify the source code of all QML files of that app after installation:
1. In the import section "QtQuick 1" will be replaced by "QtQuick 2".
2. all references to the drawables folder will be replaced by qrc:/tsc/ (tsc is a folder in the resourcefile where alle custom icons are located)
In this case the images will only be shown correctly in the app when these are present in the resourcefile.
You can find the list of actual images in the current resourcefiles here: https://github.com/ToonSoftwareCollective/tsc-images

Hope this explains a bit.
Summarizing: images should show correctly on firmware 4 at least when included in the package.
Reading all the above I might have forgotten to included newer images from Luc_S github in the latest update in ToonStore (assuming only QML files were changed).
I will check this in the weekend and correct it.
No manual copying of images should be needed normally.

New images will not be part of the resourcefile unless added to the github project above.

Kind regardz,

Toonz
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1252
Joined: December 2016

Re: Toon app: Home Assistant controller

Postby hvxl » Sun Oct 13, 2019 8:02 pm

Toonz wrote:From firmware version 5.x.x onwards, alle images must be included in the resourcefiles.

This sounds slightly exaggerated to me. At least on version 5.0.4, most images can still be loaded from the file system by placing them somewhere under /HCBv2/qml/images/... and using a http://localhost/images/... URL, as described in chapter 2.3 of the DevelopingToonApps document. The only exception is the thumbIcon. That one really has to be in the resourcefile.
Schelte
hvxl
Senior Member
Senior Member
 
Posts: 1223
Joined: June 2010

Re: Toon app: Home Assistant controller

Postby Toonz » Sun Oct 13, 2019 8:39 pm

That's indeed a nice option as well to use http indeed
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1252
Joined: December 2016

Re: Toon app: Home Assistant controller

Postby Toonz » Wed Nov 06, 2019 11:50 pm

hi all,

version 1.0.5 is released inToonStore.
No new functionality but all settings json files are now moved to the folder /mnt/data/tsc

Kind regardz,

Toonz
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1252
Joined: December 2016

Previous

Return to Toon Apps

Who is online

Users browsing this forum: No registered users and 1 guest