Custom apps on FW 5.0.4

Everything about software tools, new software development and toolchains. For developers, mostly.

Moderators: marcelr, TheHogNL, TerrorSource, Toonz

Custom apps on FW 5.0.4

Postby hvxl » Mon Jan 28, 2019 11:23 pm

I've been struggling to create my own app on 5.0.4. As a simple first try I decided to recreate the clock tile, but also showing seconds and the weekday when not in dimmed state. In the past there actually was a clock app that could be modified, but that's not the case anymore.

To avoid problems with the built-in clock app, I called mine digitalclock. I created a digitalclock directory under /HCBv2/qml/apps, containing DigitalClockApp.qml, DigitalClockTile.qml, and qmldir. But after restarting qt-gui, my app doesn't show up on the tile selection page.

There no longer is a /HCBv2/qml/qb/base/Globals.qml file to add the app to.

I've been looking at existing apps in the toon store, but couldn't identify any magical trick that makes them appear which I've missed in my app. Is there something special that needs to be done, or should I continue looking for a typo in my qml files?


By the way, may I suggest to use grep -w when looking for a package in /usr/lib/opkg/status in the pre- and post-install scripts? Because with the current code, `grep ov /usr/lib/opkg/status` finds lots of lines containing "Provides:". `grep -w ov /usr/lib/opkg/status` only finds the intended "Package: ov", or nothing.
Schelte
hvxl
Senior Member
Senior Member
 
Posts: 1175
Joined: June 2010

Re: Custom apps on FW 5.0.4

Postby Toonz » Mon Jan 28, 2019 11:34 pm

Thanks for the hint for the install scripts.
Regarding your custom apps:
1. The apps folder names can only have lowercase characters (e.g. 'toonstore')
2. The folder must contain the file <Foldername>App.qml (e.g. 'ToonstoreApp.qml'), starting with a capital

when you do this the app will be loaded automatically by the TCS resource file.

In you case the folder should be ''digitalclock''
and contain a file "DigitalclockApp.qml" and "DigitalclockTile.qml", all case sensitive
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1088
Joined: December 2016

Re: Custom apps on FW 5.0.4

Postby TheHogNL » Tue Jan 29, 2019 8:25 am

And if you want to peek into the resource files you can upload your resource-base.rcc to http://qutility.nl/upload.html and receive an zipped unpacked content of all original code. This is very useful when writing your own code because you can look into the original code as example.
Member of the Toon Software Collective
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 963
Joined: August 2017

Re: Custom apps on FW 5.0.4

Postby hvxl » Tue Jan 29, 2019 4:53 pm

Toonz wrote:The folder must contain the file <Foldername>App.qml (e.g. 'ToonstoreApp.qml'), starting with a capital

Ah, thanks. That was the crucial bit I was missing. I could have stared at my code for days and never have figured that out.
It's working now.
Schelte
hvxl
Senior Member
Senior Member
 
Posts: 1175
Joined: June 2010

Re: Custom apps on FW 5.0.4

Postby hvxl » Tue Jan 29, 2019 11:32 pm

TheHogNL wrote:And if you want to peek into the resource files you can upload your resource-base.rcc to http://qutility.nl/upload.html and receive an zipped unpacked content of all original code. This is very useful when writing your own code because you can look into the original code as example.

So that's where the built-in apps were hidden. Very useful to have as a reference indeed.
Schelte
hvxl
Senior Member
Senior Member
 
Posts: 1175
Joined: June 2010

Re: Custom apps on FW 5.0.4

Postby helppp » Fri Feb 22, 2019 11:53 pm

I am trying to add Domoticzboard it to my Toon running 5.0.4 but the application is not showing up. I extracted the zip from Github, renamed it to all lower cases but still no luck, of course did a reboot. Before 5.0.4 software there was a file where you need to add the app, now it is not there. Anything else I need to do?
helppp
Starting Member
Starting Member
 
Posts: 3
Joined: January 2017


Return to Toon software development

Who is online

Users browsing this forum: No registered users and 1 guest