Toon app: ToonStore

Forum about the tweaking of the Eneco Toon.

Moderator: marcelr

Toon app: ToonStore

Postby Toonz » Thu Aug 17, 2017 10:25 pm

Hi all,

I proudly present the result of our latest development project for Toon: an app store for Toon called ToonStore.
With this app you can download and install / update and remove applications on Toon itself.
No need for manual downloading, file transfers to Toon and manual editing of files anymore (except one time for the installation of this app).

You can select multiple installations/upgrades/removals in one run.
All will be processed with just one automated gui restart to make all changes active.

Please note that after hitting "Toon Bijwerken" the GUI will restart as part of the installation process. This is not a bug, it's a feature.

ToonStore has two configuration items:
- show/hide tray icon for ToonStore. ToonStore is always accessible from the menu as well.
- enable/disable automatic updates at a selected time of the day.
with this option Toon checks the ToonStore repository daily and automatically installs updates. In case updates were installed the gui will restart of course.

Each action will be reflected in a message in your inbox, just like regular firmware updates.
When set for automatic updates you can see in your inbox what has been updated when.

This is a beta version which might contain bugs but we feel confident enough to go public.
In case of app installation issues we might ask your for the log file from the /mnt/data/update folder.
Of course the ToonStore will be actively developed further and new updates will become available via ToonStore.
Also more apps will be added to the repository.
It is just the beginning of a journey.

This is a co-production with Marcelr (all background processing) and Toonz (ToonStore app).
We hope you like it and welcome all improvement suggestions and bug reports.

Installation instruction:
- unzip the attachment and transfer the ipk file to your Toon
- install with
Code: Select all
opkg install toonstore_0.8.4-r0_qb2.ipk

The gui will be restarted after installation. Enjoy!

Ideally remove earlier versions of applications you are going to install via ToonStore to prevent any possible interference (our installer doesn't know about earlier manual installations).
N.B. by installing the ToonStore you will not receive official firmware updates anymore from Eneco for the moment.


For now, this can be reversed by removing toonstore from your Toon
Code: Select all
opkg remove toonstore
In later versions this will be made more flexible.

ToonStore.png
ToonStore.png (58.18 KiB) Viewed 5803 times
ToonStore_messages.png
ToonStore_messages.png (80.2 KiB) Viewed 5803 times

Let us now if you want to distribute your app on ToonStore as well.

Regardz,

Toonz / marcelr

(attached zip file remove, please find a newer version near the end of this thread)
Toonz
Advanced Member
Advanced Member
 
Posts: 575
Joined: December 2016

Re: Toon app: ToonStore

Postby pkaak » Fri Aug 18, 2017 8:42 am

Dear pkaak,

Thank you for responding, next time please write in English, since that's the language at this forum.
marcelr

Na installatie restart de GUI bij mij niet automatisch.
Ik zie ook een foutmelding voorbij komen bij de installatie

Code: Select all
Installing toonstore (0.8.4-r0) to root...
Running preinstall for toonstore-0.8.4
New installation of toonstore.
Backing up public keyring ...
Backing up /etc/hosts ...
Editing /etc/hosts to enable toonstore ...
hcb_config process ID now: 683
Restarting hcb_config ...
Waiting for 3 seconds ...
hcb_config process ID now: 27383
sh: ▒▒: unknown operand
Configuring toonstore.
Running postinstall for toonstore-0.8.4 ...
Adding toonstore to Globals.qml ...
Adding toonstore key to public keyring ...
Creating symbolic link /HCBv2/qml/apps/toonstore to /HCBv2/qml/apps/toonstore-0.8.4
Posting message ...

Oh, by the way, your toon cannot receive updates from the ServiceCenter anymore ...


Na handmatig de GUI restarten lijkt alles wel goed te werken.
De eerste installatie had ik geen indicatie dat er iets werd geinstalleerd. Nadat de eerste app was geinstalleerd zag ik ineens wel een soort van installatie icoon in de tasktray.
De icoontjes van de apps zien er ook super uit.

Complimenten aan de mensen die dit werkend hebben gemaakt!
pkaak
Starting Member
Starting Member
 
Posts: 4
Joined: August 2017

Re: Toon app: ToonStore

Postby mAiden » Fri Aug 18, 2017 9:04 am

Nice done guys.

I hope that the day will be come, that i can root my Toon. I get everything what a need.. But the only dare is missing a little bit..
mAiden
Starting Member
Starting Member
 
Posts: 13
Joined: July 2017

Re: Toon app: ToonStore

Postby marcelr » Fri Aug 18, 2017 11:21 am

Dear pkaak,

Could you please check the contents of
/HCBv2/config/hcb_project.xml (version 3.x.y firmware)
or
/qmf/etc/qmf_project.xml (4.x.y firmware)

for the following (might be slightly different in your case):

Code: Select all
        <hcb_web>
                <!-- Release uses lighttpd; put hcb_web somewhere where its harmless -->
                <port>10080</port>
                <defaultEntry>/HCBv2/www/</defaultEntry>
<!--            <defaultEntry>/hdrv_zwave/</defaultEntry> -->
                <enforceWhitelist>0</enforceWhitelist>
    <whitelist>
        <item>hdrv_zwave</item>
    </whitelist>
        </hcb_web>


I am missing a part in the pre-install sequence of your installation, which is quite crucial for the toonstore to function properly. Maybe you patched this file earlier, I just want to be sure.
marcelr
Advanced Member
Advanced Member
 
Posts: 815
Joined: May 2012
Location: Ehv

Re: Toon app: ToonStore

Postby mAiden » Fri Aug 18, 2017 11:23 am

pkaak wrote:
Code: Select all
Posting message ...

Oh, by the way, your toon cannot receive updates from the ServiceCenter anymore ...



That message is s*** .. You can't update you're Toon anymore, it will be on the firmware that is now installed on you're Toon.
If a wrong, correct me plz.
mAiden
Starting Member
Starting Member
 
Posts: 13
Joined: July 2017

Re: Toon app: ToonStore

Postby marcelr » Fri Aug 18, 2017 11:28 am

mAiden wrote:That message is s*** .. You can't update you're Toon anymore, it will be on the firmware that is now installed on you're Toon.
If a wrong, correct me plz.


You are quick to judge.

Please re-read the first post in this thread:

N.B. by installing the ToonStore you will not receive official firmware updates anymore from Eneco for the moment.

For now, this can be reversed by removing toonstore from your Toon

Code: Select all
opkg remove toonstore


In later versions this will be made more flexible.
marcelr
Advanced Member
Advanced Member
 
Posts: 815
Joined: May 2012
Location: Ehv

Re: Toon app: ToonStore

Postby pkaak » Fri Aug 18, 2017 2:29 pm

marcelr wrote:Dear pkaak,

Could you please check the contents of
/HCBv2/config/hcb_project.xml (version 3.x.y firmware)
or
/qmf/etc/qmf_project.xml (4.x.y firmware)
...
I am missing a part in the pre-install sequence of your installation, which is quite crucial for the toonstore to function properly. Maybe you patched this file earlier, I just want to be sure.


Sorry that I forgot to write in english. Will remember that now.

My code is as follow:
Code: Select all
<hcb_web>
      <!-- Release uses lighttpd; put hcb_web somewhere where its harmless -->
      <port>10080</port>
      <defaultEntry>/HCBv2/www/</defaultEntry>
      <enforceWhitelist>0</enforceWhitelist>
      <whitelist>
         <item>hdrv_zwave</item>
         <item>hdrv_hue</item>
      </whitelist>
   </hcb_web>


Made some changes to that earlier because I had a 443 after rooting and needed the internal pages to work to set/get heat program/temperature by powershell.
pkaak
Starting Member
Starting Member
 
Posts: 4
Joined: August 2017

Re: Toon app: ToonStore

Postby marcelr » Fri Aug 18, 2017 2:39 pm

Thanks for sharing, that explains a lot.
marcelr
Advanced Member
Advanced Member
 
Posts: 815
Joined: May 2012
Location: Ehv

Toon app: ToonStore, new version: 0.9.1

Postby marcelr » Sun Aug 20, 2017 10:47 am

A new version of the ToonStore is available for download.
If you installed ToonStore previously, you may now update through the ToonStore.

From the changelog:

Code: Select all
0.9.1
- created a workaround for a bug which didn't start the timer correctly for the auto update function
- fixed: not all apps showed the availability of an update correctly

0.9.0
- improved display of descriptions of apps
- implemented exclusion of apps from the auto-update function (controlled via ToonStore repository
- added screen for viewing changelog per app (click on the question mark)
- activated some more deletions in the upgrade script (only the log file now remains to be deleted)
- project file patching criteria extended
- added restart of the http server after patching the project file
- fixed some issues with cleanup in the postrm script
- automated writing of version.txt

0.8.4
- added 403-forbidden patch to installer
- first beta release
Attachments
toonstore-0.9.1.zip
(30.66 KiB) Downloaded 167 times
marcelr
Advanced Member
Advanced Member
 
Posts: 815
Joined: May 2012
Location: Ehv

Re: Toon app: ToonStore

Postby odelay99 » Sat Aug 26, 2017 2:07 pm

Very cool app you've created Toonz/Marcelr, working fine and automatically updating too!

I understand the waste collection app will soon be part of this too? Will the "wastecollection_thermostat_show_waste_mod" also be updated, since I run 4.4.21 the thermostat on the display isn't showed correctly
odelay99
Starting Member
Starting Member
 
Posts: 20
Joined: May 2017

Re: Toon app: ToonStore

Postby TerrorSource » Sat Aug 26, 2017 2:19 pm

odelay99 wrote:Very cool app you've created Toonz/Marcelr, working fine and automatically updating too!

I understand the waste collection app will soon be part of this too? Will the "wastecollection_thermostat_show_waste_mod" also be updated, since I run 4.4.21 the thermostat on the display isn't showed correctly


I'n note sure if the mod is going to be in the ToonStore due to the numerous modifications you need to manually do, i guess that Toonz will look into that soon :)
TerrorSource
Member
Member
 
Posts: 96
Joined: May 2017

Re: Toon app: ToonStore

Postby marcelr » Sat Aug 26, 2017 3:10 pm

odelay99 wrote:Very cool app you've created Toonz/Marcelr, working fine and automatically updating too!

Glad you like it.
odelay99 wrote:I understand the waste collection app will soon be part of this too? Will the "wastecollection_thermostat_show_waste_mod" also be updated, since I run 4.4.21 the thermostat on the display isn't showed correctly

The wastcollection app is a tough one, since it relies on a lot of dependencies to work properly, for different waste collection services. FW edits per version are even more challenging. The first part should be ready fairly soon, the second is a lot tougher.
marcelr
Advanced Member
Advanced Member
 
Posts: 815
Joined: May 2012
Location: Ehv

Re: Toon app: ToonStore

Postby Toonz » Sat Aug 26, 2017 3:41 pm

odelay99 wrote:I understand the waste collection app will soon be part of this too? Will the "wastecollection_thermostat_show_waste_mod" also be updated, since I run 4.4.21 the thermostat on the display isn't showed correctly


Hi odelay99,

I will start working on the "wastecollection_thermostat_show_waste_mod" very soon, you are right that is was developed for old firmware versions 3.x.
I have two "change requests" to include: include the use of the new Belgian icons and the fw 4.x compatibility.

The mod itself will not be distributed via the ToonStore as it requires changes to system components which are firmware version specific (maybe something for future ToonStore versions but not very soon)
I will post the mod in the waste collection topic when ready.

Kind regardz,

Toonz
Toonz
Advanced Member
Advanced Member
 
Posts: 575
Joined: December 2016

Re: Toon app: ToonStore

Postby hayman » Mon Aug 28, 2017 6:06 pm

thanks for the great works,
i've a noob question when i go to store and click the + it's get green after that click on update ,nothing happend...?

how do i update/install apps throught the store..?

thanks
hayman
Starting Member
Starting Member
 
Posts: 24
Joined: February 2016

Re: Toon app: ToonStore

Postby Toonz » Mon Aug 28, 2017 6:17 pm

hayman wrote:thanks for the great works,
i've a noob question when i go to store and click the + it's get green after that click on update ,nothing happend...?

how do i update/install apps throught the store..?

thanks


Select all apps you want with the plus sign as you did.
When finished click 'Toon bijwerken' at the top right corner to apply all changes.

Kind regardz,

Toonz
Toonz
Advanced Member
Advanced Member
 
Posts: 575
Joined: December 2016

Next

Return to Eneco Toon as Domotica controller

Who is online

Users browsing this forum: madpatrick and 1 guest