Toon app: ToonStore

Forum about forum-provided applications on Toon

Moderators: marcelr, TheHogNL, Toonz

Post Reply
Templar
Member
Member
Posts: 178
Joined: Fri Mar 18, 2011 8:49 pm
Location: Netherlands

Re: Toon app: ToonStore

Post by Templar »

FunFair wrote:Where can i find version 1.0.2?
I found version 0.9.1 in one of the comments as attachment. But haven't seen a download link anywhere for a newer version? Or am I looking in the wrong places? :shock:

Edit
Found it... Didn't know there was a file server :D
For others if they are looking.

http://files.domoticaforum.eu/index.php?cam=/Toon
Aside from the file server: I would assume using the right package version number would work?

Code: Select all

opkg install toonstore_1.0.2-r0_qb2.ipk
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon app: ToonStore

Post by marcelr »

Yes, that should work, provided you have downloaded that package to your toon.
FunFair
Starting Member
Starting Member
Posts: 42
Joined: Sun Oct 01, 2017 11:40 am

Re: Toon app: ToonStore

Post by FunFair »

removing version 0.9.1 and installing 1.0.2 didn't fix my issue.

I opened up the /qmf/etc/qmf_project.xml file but I don't really know what I should patch.
My file looks like this.

Code: Select all

        <hcb_web>
                <!-- Release uses lighttpd; put hcb_web somewhere where its harmless -->
                <port>10080</port>
                <defaultEntry>/qmf/www/</defaultEntry>
                <enforceWhitelist>0</enforceWhitelist>
                <whitelist>
                        <item>hdrv_zwave</item>
                        <item>hdrv_hue</item>
                </whitelist>
        </hcb_web>
What should I alter?

In the firewall I opened up these port. Do I need to create a new line for port TCP 21? or did you mean my routers firewall?

Code: Select all

-A HCB-INPUT -p tcp -m tcp --dport 22 --tcp-flags SYN,RST,ACK SYN -j ACCEPT
-A HCB-INPUT -p tcp -m tcp --dport 10080 --tcp-flags SYN,RST,ACK SYN -j ACCEPT
-A HCB-INPUT -p tcp -m tcp --dport 80 --tcp-flags SYN,RST,ACK SYN -j ACCEPT
Contents of /etc/hosts

Code: Select all

127.0.0.1       ping.quby.nl
Concents of /qmf/www/feeds/qb2/upgrade/upgrade-qb2.sh

Code: Select all

###! /bin/sh
# NOTE: do not prepend #! /bin/sh, this script is executed directly via execve()
#
# upgrade-qb2.sh
# script for testing several functions for automatic updates
#
# Shamelessly copied from one of the _opkg.qb2-ene-x.y.z.script.sh scripts by
# Quby, thanks, guys ;-).
#
#
# This script is invoked by the following URL, in two cases:
#
# preparation:
# http://<URL-of-your-toon>/hcb_config?action=checkFirmwareUpdate&version=9.9.99
#
# execution:
# http://<URL-of-your-toon>/hcb_config?action=doFirmwareUpdate&version=9.9.99
#

# texts for notification screens, edit according to your needs:

INSTALL_SUBJECT="Software installatie"
INSTALL_SUBTITLE="Deze software uit de ToonStore is ge&#239;nstalleerd:"
REMOVAL_SUBJECT="Software verwijdering"
REMOVAL_SUBTITLE="Deze software uit de ToonStore is verwijderd:"

################################################################################
#
# No user-serviceable parts beyond this line
#
################################################################################

TSC_FEED_URL="http://files.domoticaforum.eu/uploads/Toon/apps"
SYNC_FILE=/tmp/install_status

INSTALL_ACTIONS="
          <actions>
           <action>
                <type>button</type>
                <btnLabel>Instellingen</btnLabel>
                <btnPos>left</btnPos>
                <cmdName>maximize</cmdName>
                <cmdArg>System.Software</cmdArg>
                <cmdTarget>widget-settings</cmdTarget>
                <returnAfterPress>false</returnAfterPress>
           </action>
          </actions>"


export PATH="/sbin:/bin:/usr/sbin:/usr/bin:$PATH"

FEATURES="RTC_WRITE INITTAB_PREPARE EXEC_RESUME CLEAN_OLD_PACKAGES"

SCRIPTPATH=$0
SCRIPTDIR=`dirname $SCRIPTPATH`
SCRIPTNAME=`basename $SCRIPTPATH`
SCRIPTSTATUS=$0.res

# Not all of those are required, but leave them here to be able to see the logic

export HCB_ARCH="$1"  # e.g., qb2
export HCB_FLAV="$2"  # e.g., ene
export HCB_VERS="$3"  # e.g., 3.2.18
export ACTION="$4"    # e.g., execute (possible options:
                      #                prepare execute execute-resume)

dropboxMessage()
{
    SUBJ="$1"
    SUBT="$2"
    MESG="$3"
    ACTS="$4"

    echo ">> dropboxMessage $MESG"

    time=`date +%s`
    Message="
        <Config>
        <message>
         <content>$MESG</content>
          <subject>$SUBJ</subject>
          <subtitle>$SUBT</subtitle>
          <messageType>critical</messageType>
          <received_t>$time</received_t>
          <internalAddress>dropboxed_$time</internalAddress>
          <read_t></read_t>
          <readMsgSend>1</readMsgSend>
          <hideOnRemove>0</hideOnRemove>
          <package>happ_usermsg</package>
          <type>message</type>
          <name>upgrade_msg</name>
          <visibility>1</visibility>$ACTS
         </message>
        </Config>"

    echo "$Message" > /tmp/dropbox_msg.xml
    mv /tmp/dropbox_msg.xml /HCBv2/config/dropbox/
}
statusSet()
{
# STATUS can be any of the following:
#
# preparing
# prepared
# executing
# executed
#
# after the STATUS has been set to executed, all stuff in the temporary
# directory can be removed.

    STATUS="$1"
    echo "$STATUS" > $SCRIPTSTATUS
    echo "$STATUS" > $SYNC_FILE
    echo ">> `date +'%Y-%m-%d %H:%M:%S %z'` (pid $$), status = $STATUS"
}


getCurrentFW()
{
    # the current FW version is stored in the opkg package listings.
    # Find the line containing the version number and take it apart:

    REF_FILE=/usr/lib/opkg/info/base-qb2-ene.control

    LINE=`grep Version $REF_FILE | awk {'print $2'}`

    export FW_MAJOR=`echo $LINE | awk -F. {'print $1'}`
    export FW_MINOR=`echo $LINE | awk -F. {'print $2'}`

    LINE=`echo $LINE | awk -F. {'print $3'}`

    export FW_PATCHLEVEL=`echo $LINE | awk -F- {'print $1'}`
    export FW_BUILD=`echo $LINE | awk -F- {'print $2'}`
    export FW_BUILD_REV=`echo $LINE | awk -F- {'print $3'}`
}


getFreeRAM()
{
    # get memory usage from top output
    # toon-specific (busybox, really).

    LINE=`top -n 1 | grep Mem`
    export RAM_USED=`echo $LINE | awk {'print $2'}`
    export RAM_FREE=`echo $LINE | awk {'print $4'}`
    RAM_SHARED=`echo $LINE | awk {'print $6'}`
    RAM_BUFFERED=`echo $LINE | awk {'print $8'}`
    RAM_CACHED=`echo $LINE | awk {'print $10'}`
}


getLoad()
{
    # get load averages for the last 1, 5, and 15 minutes.
    # toon-specific (busybox, really).

    LINE=`uptime | awk -F: {'print $5'}`
    export LOAD_1M=`echo $LINE | awk -F, {'print $1'}`
    export LOAD_5M=`echo $LINE | awk -F, {'print $2'}`
    export LOAD_15M=`echo $LINE | awk -F, {'print $3'}`
}


errorExit()
{
    STATUS="$ACTION-error-$1"
    STRING="$2"
    echo "$STATUS" > $SCRIPTSTATUS
    echo ">> `date +'%Y-%m-%d %H:%M:%S %z'` (pid $$) $STATUS '$STRING'"
    exit 1
}


featureEnabled()
{
    # test if this feature is enabled
    echo "$FEATURES" | grep -q "$1"
}


################################################################################
#
# main routine
#
# hcb_config downloads this script and its signature from
# http://feed.hae.int/feeds/qb2/upgrade/upgrade-qb2.sh
#
# after a positive signature check, it gets renamed into
# _opkg.qb2-ene-9.9.99.script.sh, and stored in /mnt/data/update (or
# /HCBv2/tmp/opkg-cache on 3.x toons), and is executed.
#
# hcb_config then performs the first step, after a second call, the execution
# phase is started.
#
################################################################################

(
    statusSet "$ACTION"

    cd $SCRIPTDIR

    PKGCACHE=$SCRIPTDIR
    PACKAGES_TO_INSTALL_FILE=/tmp/packages_to_install.txt
    DEPENDENCIES_TO_INSTALL_FILE=/tmp/dependencies_to_install.txt
    PACKAGES_TO_REMOVE_FILE=/tmp/packages_to_delete.txt

################################################################################

    case $ACTION in

        prepare)
            echo ""
            echo ">> Welcome to the ToonStore updater,"
            echo ">> brought to you by the Toonroot Software Collective (TSC)"
            echo ">>"
            echo ">> `date +'%Y-%m-%d %H:%M:%S %z'` (pid $$) $SCRIPTNAME $@"
            echo ""

            statusSet "preparing"
            getCurrentFW ""
            echo ">> Firmware version: $FW_MAJOR.$FW_MINOR.$FW_PATCHLEVEL, build
            getLoad ""
            echo ">> System load     : $LOAD_1M"
            getFreeRAM ""
            echo ">> Free RAM        : $RAM_FREE"

            echo ">> Flushing file system buffers and cache ..."
            sync
            echo 3 > /proc/sys/vm/drop_caches
            getFreeRAM ""
            echo ">> Free RAM now    : $RAM_FREE"

            # Hotfix for writing System Time to RTC (ET-794)
            if featureEnabled RTC_WRITE
            then
                echo ">> Hotfix for writing System Time to RTC"
                echo "Hardware Clock before: `hwclock --show`"
                # here we know the system time is ok:
                # script downloaded -> internet -> hae-timesync
                hwclock --systohc --utc
                echo "Hardware Clock after : `hwclock --show`"
            fi

            # Remove stale opkg cache entries
            # All entries generated with this script start with tsc, entries
            # from quby should remain intact.

            rm /var/lib/opkg/tsc*

            # make sure $PACKAGES_TO_INSTALL_FILE is written

            sync

            # Get packages to process, and download.
            # Packages marked for deletion will be removed immediately,
            # packages marked for installion will be installed in the execution
            # phase.

            INSTALL_PACKAGES=""
            INSTALL_PACKAGE_LIST=""
            INSTALL_DEPENDENCIES=""
            REMOVAL_PACKAGES=""
            REMOVAL_PACKAGE_LIST=""

            if [ -f $PACKAGES_TO_INSTALL_FILE -o \
                 -f $PACKAGES_TO_REMOVE_FILE ] ; then

                if [ -f $PACKAGES_TO_INSTALL_FILE ] ; then

                    INSTALL_PACKAGES=`cat $PACKAGES_TO_INSTALL_FILE`

                    echo ">> Installing $INSTALL_PACKAGES"

                    # set correct feed location for initial install, clean up
                    # before writing anew.

                    rm -f /etc/opkg/*-feed.conf /usr/lib/opkg/lists/*
                    sync

                    # opkg update reads the Packages info file(s) and
                    # signatures from the repositories defined below. The
                    # Packages and Packages.sig files are then transferred to
                    # /var/lib/opkg, and renamed to reflect the repository
                    # names (tsc1, tsc1.sig, tsc2, etc., in this case).

                    echo ">> Extracting packages from the following repo('s):"

                    COUNTER=0

                    for PACKAGE in $INSTALL_PACKAGES ;
                    do
                        let COUNTER=COUNTER+1
                        echo "src/gz tsc$COUNTER ${TSC_FEED_URL}/$PACKAGE"
                        echo "src/gz tsc$COUNTER ${TSC_FEED_URL}/$PACKAGE"  \
                            >> /etc/opkg/tsc-feed.conf
                        INSTALL_PACKAGE_LIST="${INSTALL_PACKAGE_LIST}${PACKAGE}BR"

                        # check for presence of dependencies
                        DEPENDENCIES=""
                        DEPENDENCIES="`wget -q "${TSC_FEED_URL}/$PACKAGE/dependencies" -O -`"
                        if [ "$DEPENDENCIES" ] ; then
                            for DEP in $DEPENDENCIES ;
                            do
                                let COUNTER=COUNTER+1
                                echo "src/gz tsc$COUNTER ${TSC_FEED_URL}/../pkgs/$DEP"
                                echo "src/gz tsc$COUNTER ${TSC_FEED_URL}/../pkgs/$DEP"  \
                            >> /etc/opkg/tsc-feed.conf
                                echo -n "$DEP " >> $DEPENDENCIES_TO_INSTALL_FILE
                            done
                        fi
                    done
                    sync

                    echo ">> configured opkg feeds:"
                    cat /etc/opkg/*-feed.conf

                    # get package list(s)

                    echo ">> opkg update"
                    opkg update 2>&1; EXITCODE=$?

                    [ "$EXITCODE" != "0" ] && \
                        errorExit "opkg-update" \
                        "Exit code $EXITCODE for: opkg update"

                    # Package repodata read and stored, now get the packages


                    echo ">> Package cache: $PKGCACHE"

                    # merge packages and dependencies

                    for PACKAGE in $INSTALL_PACKAGES ;
                    do
                        PACKAGE_SHORT_NAME=`echo $PACKAGE | awk -F- '{ print $1 }' `
                        echo ">> opkg --cache $PKGCACHE install --download-only $PACKAGE_SHORT_NAME"
                        opkg --cache $PKGCACHE install --download-only \
                            $PACKAGE_SHORT_NAME  2>&1; \
                            EXITCODE=$?
                    done

                    INSTALL_PACKAGES=`cat $DEPENDENCIES_TO_INSTALL_FILE`

                    for PACKAGE in $INSTALL_PACKAGES ;
                    do
                        PACKAGE_SHORT_NAME=`echo $PACKAGE | awk -F- '{ print $1 }' `
                        echo ">> opkg --cache $PKGCACHE install --download-only $PACKAGE_SHORT_NAME"
                        opkg --cache $PKGCACHE install --download-only \
                            $PACKAGE_SHORT_NAME  2>&1; \
                            EXITCODE=$?
                    done

                    # intermediate cleanup

                    rm -rf /tmp/opkg-*

                    # ensure the log greps below always work

                    sync

                    # error handling

                    (  # error handler subshell start
                        if [ "$EXITCODE" != "0" ]
                        then
                            # * opkg_install_pkg: Package xxx md5sum mismatch.
                            # Either the opkg or the package index are corrupt.
                            if tail -n20 $SCRIPTPATH.log | \
                                grep -q 'md5sum mismatch'
                            then
                                rm -f $PKGCACHE/*.ipk
                                errorExit "opkg-upgrade-md5sum" \
                                    "opkg upgrade found an md5sum mismatch: removed *.ipk!"
                            fi

                            # * opkg_download: Failed to download http://...ipk:
                            # Timeout was reached.
                            # * opkg_download: Failed to download http://...ipk:
                            # Couldn't connect to server.
                            if tail -n20 $SCRIPTPATH.log | \
                                grep -q 'Failed to download'
                            then
                                errorExit "opkg-update-download" \
                                    "opkg update download failed"
                            fi

                            if tail -n20 $SCRIPTPATH.log | grep -q \
                                'Cannot satisfy the following dependencies for'
                            then
                                # never mind, dependencies should be fulfilled
                                # through proper packaging.

                                echo "dependency check failed, carrying on ..."
                                exit
                            fi

                            # generic error
                            errorExit "opkg-update" \
                                "Exit code $EXITCODE for: opkg install --download-only"
                        fi
                    ) #error handler subshell end

                    echo ">> downloaded:"
                    du -ch $PKGCACHE/*.ipk | grep total

                    # notify the user

                    INSTALL_MESSAGE="${INSTALL_PACKAGE_LIST}BRBekijk de berichten voor deze software voor informatie

                    dropboxMessage "$INSTALL_SUBJECT" "$INSTALL_SUBTITLE" \
                        "$INSTALL_MESSAGE" "$INSTALL_ACTIONS"

                else

                    echo ">> no packages to be installed"

                fi

                if [ -f $PACKAGES_TO_REMOVE_FILE ] ; then

                    REMOVAL_PACKAGES=`cat $PACKAGES_TO_REMOVE_FILE`

                    echo ">> Removing $REMOVAL_PACKAGES"

                    # do more or less the same for the removal of packages:

                    for PACKAGE in $REMOVAL_PACKAGES ;
                    do
                        PACKAGE_SHORT_NAME=`echo $PACKAGE | awk -F- '{ print $1 }' `
                        REMOVAL_PACKAGE_LIST="${REMOVAL_PACKAGE_LIST}${PACKAGE}BR"
                        echo ">> opkg remove $PACKAGE_SHORT_NAME"
                        opkg remove $PACKAGE_SHORT_NAME  2>&1; \
                            EXITCODE=$?
                    done

                    # Error handling not yet implemented

                    sync

                    # post a message, and yes, $INSTALL_ACTIONS is correct here:

                    REMOVAL_MESSAGE="${REMOVAL_PACKAGE_LIST}BR"

                    dropboxMessage "$REMOVAL_SUBJECT" "$REMOVAL_SUBTITLE" \
                        "$REMOVAL_MESSAGE" "$INSTALL_ACTIONS"

                else
                    echo ">> no packages to be removed"
                fi

            else
                echo ">> no packages to process, exiting .. "
                exit
            fi

            sync

            statusSet "prepared"

            ;;

###############################################################################


        execute|execute-resume)

            statusSet "executing"

            # re-read install packages list, and install.

            if [ -f $PACKAGES_TO_INSTALL_FILE ] ; then
                INSTALL_PACKAGES=`cat $PACKAGES_TO_INSTALL_FILE`

                for PACKAGE in $INSTALL_PACKAGES ;
                do
                    PACKAGE_SHORT_NAME=`echo $PACKAGE | awk -F- '{ print $1 }' `
                    echo ">> opkg --cache $PKGCACHE install $PACKAGE_SHORT_NAME"
                    opkg --cache $PKGCACHE install $PACKAGE_SHORT_NAME  2>&1; \
                        EXITCODE=$?
                done


            # Hmm, needs some error handling ...

            fi
            if [ -f $DEPENDENCIES_TO_INSTALL_FILE ] ; then
                INSTALL_PACKAGES=`cat $DEPENDENCIES_TO_INSTALL_FILE`

                for PACKAGE in $INSTALL_PACKAGES ;
                do
                    PACKAGE_SHORT_NAME=`echo $PACKAGE | awk -F- '{ print $1 }' `
                    echo ">> opkg --cache $PKGCACHE install $PACKAGE_SHORT_NAME"
                    opkg --cache $PKGCACHE install $PACKAGE_SHORT_NAME  2>&1; \
                        EXITCODE=$?
                done


            # Hmm, needs some error handling ...

            fi

            # clean up

            if [ -f $PACKAGES_TO_INSTALL_FILE ] ; then
                echo ">> deleting $PACKAGES_TO_INSTALL_FILE"
                rm $PACKAGES_TO_INSTALL_FILE
            fi
            if [ -f $DEPENDENCIES_TO_INSTALL_FILE ] ; then
                echo ">> deleting $DEPENDENCIES_TO_INSTALL_FILE"
                rm $DEPENDENCIES_TO_INSTALL_FILE
            fi
            if [ -f $PACKAGES_TO_REMOVE_FILE ] ; then
                echo ">> deleting $PACKAGES_TO_REMOVE_FILE"
                rm $PACKAGES_TO_REMOVE_FILE
            fi

            echo ">> reinstating cache handling (default 0)"
            echo 0 > /proc/sys/vm/drop_caches

            if [ -f $SYNC_FILE ] ; then
                echo ">> deleting $SYNC_FILE"
                rm $SYNC_FILE
            else
                echo ">> no $SYNC_FILE found, shouldn't happen"
            fi

            echo ">> deleting all in $PKGCACHE"
            echo ">>(this may give some errors, no problem here ...)"
            rm $PKGCACHE/*.ipk
            rm $PKGCACHE/*.sh
            rm $PKGCACHE/*.sh.sig
#           rm $PKGCACHE/*


            statusSet "executed"
            rm $PKGCACHE/*.sh.res
            sync

            # Restart http daemon, qt-gui and hcb_config, to activate the
            # new installations/removals. Needs to be the last comand in the
            # update. These commands need to remain on a SINGLE line

            echo ">> Restarting qt-gui and hcb_config ..."
            killall qt-gui ; killall hcb_config

            ;;

###############################################################################

        *)
            echo ">> Unknown ACTION arg! Aborting."
            errorExit "unknown-action" "Unknown ACTION arg! Aborting."

            ;;
    esac

) </dev/null >>$SCRIPTPATH.log 2>&1
Hope i didn't make a copy past error.
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon app: ToonStore

Post by marcelr »

Your hosts file is a bit off.
It should at least contain this line for the toonstore to work:
127.0.0.1 feed.hae.int feed
FunFair
Starting Member
Starting Member
Posts: 42
Joined: Sun Oct 01, 2017 11:40 am

Re: Toon app: ToonStore

Post by FunFair »

still nothing... when I try to install an app, it just returns to the homescreen immediatly.
the log file remains empty aswell.

I've added "feed.hae.int" and "feed.hae.int feed" (didn't know if it was needed this way, so I tried both) to the hosts file and directed it to 127.0.0.1
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon app: ToonStore

Post by marcelr »

Is your webserver running at all?

Can you check the output of
ps | grep lighttpd
FunFair
Starting Member
Starting Member
Posts: 42
Joined: Sun Oct 01, 2017 11:40 am

Re: Toon app: ToonStore

Post by FunFair »

I think so?

Code: Select all

  741 root     12040 S    /HCBv2/bin/lighttpd -D -m /HCBv2/lib/lighttpd -f /HC
Btw. I've installed some apps manually from the fileserver. They seem to install fine (Buienradar & Afvalwijzer).
Others still give the ssl error.

Is it possible that firmware 4.7 is just not compatible?
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon app: ToonStore

Post by marcelr »

That's OK.

There have been no changes to /etc/hosts in the firmware updates since the initial install (FW 1.9.10 or thereabouts). On my toon, and many others, the toonstore works just fine. Not sure what's wrong with your installation.
FunFair
Starting Member
Starting Member
Posts: 42
Joined: Sun Oct 01, 2017 11:40 am

Re: Toon app: ToonStore

Post by FunFair »

what should the normal hosts file contain? Cause when rooting it I noticed there were multiple entries seem to be not there anymore.
Now it only contains the ping and feed adress.
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon app: ToonStore

Post by marcelr »

This:

Code: Select all

# <persistent /etc/hosts content can be added to /etc/hosts.template file>
127.0.0.1               localhost.localdomain           localhost               eneco-001-123456
172.20.48.1             feed.hae.int            feed
The toonstore installer just edits the line with feed.hae.int and replaces its IP address with the one for localhost.
If your hosts file does not have this entry, there's nothing to edit and toonstore won't work.
FunFair
Starting Member
Starting Member
Posts: 42
Joined: Sun Oct 01, 2017 11:40 am

Re: Toon app: ToonStore

Post by FunFair »

ok, the log file is working now! :)

Code: Select all

>> 2017-10-15 16:55:40 +0200 (pid 1395), status = prepare

>> Welcome to the ToonStore updater,
>> brought to you by the Toonroot Software Collective (TSC)
>>
>> 2017-10-15 16:55:40 +0200 (pid 1395) _opkg.qb2-ene-9.9.99.script.sh qb2 ene 9.9.99 prepare

>> 2017-10-15 16:55:40 +0200 (pid 1395), status = preparing
>> Firmware version: 4.7.23, build 1147, rev 0.
>> System load     : 
>> Free RAM        : 22276K
>> Flushing file system buffers and cache ...
>> Free RAM now    : 32280K
>> Hotfix for writing System Time to RTC
Hardware Clock before: Sun Oct 15 14:55:42 2017  0.000000 seconds
Hardware Clock after : Sun Oct 15 14:55:42 2017  0.000000 seconds
rm: can't remove '/var/lib/opkg/tsc*': No such file or directory
>> Installing fileinfo-1.0.6 buienradar-8.2.0 
>> Extracting packages from the following repo('s):
src/gz tsc1 http://files.domoticaforum.eu/uploads/Toon/apps/fileinfo-1.0.6
src/gz tsc2 http://files.domoticaforum.eu/uploads/Toon/apps/buienradar-8.2.0
>> configured opkg feeds:
src/gz tsc1 http://files.domoticaforum.eu/uploads/Toon/apps/fileinfo-1.0.6
src/gz tsc2 http://files.domoticaforum.eu/uploads/Toon/apps/buienradar-8.2.0
>> opkg update
Downloading http://files.domoticaforum.eu/uploads/Toon/apps/fileinfo-1.0.6/Packages.gz.
Inflating http://files.domoticaforum.eu/uploads/Toon/apps/fileinfo-1.0.6/Packages.gz.
Updated list of available packages in /var/lib/opkg/tsc1.
Downloading http://files.domoticaforum.eu/uploads/Toon/apps/fileinfo-1.0.6/Packages.sig.
Signature check passed.
Downloading http://files.domoticaforum.eu/uploads/Toon/apps/buienradar-8.2.0/Packages.gz.
Inflating http://files.domoticaforum.eu/uploads/Toon/apps/buienradar-8.2.0/Packages.gz.
Updated list of available packages in /var/lib/opkg/tsc2.
Downloading http://files.domoticaforum.eu/uploads/Toon/apps/buienradar-8.2.0/Packages.sig.
Signature check passed.
>> Package cache: /mnt/data/update
>> opkg --cache /mnt/data/update install --download-only fileinfo
Downloading http://files.domoticaforum.eu/uploads/Toon/apps/fileinfo-1.0.6/fileinfo_1.0.6-r0_qb2.ipk.
>> opkg --cache /mnt/data/update install --download-only buienradar
Downloading http://files.domoticaforum.eu/uploads/Toon/apps/buienradar-8.2.0/buienradar_8.2.0-r0_qb2.ipk.
cat: can't open '/tmp/dependencies_to_install.txt': No such file or directory
>> downloaded:
76.0K	total
>> dropboxMessage fileinfo-1.0.6BRbuienradar-8.2.0BRBRBekijk de berichten voor deze software voor informatie over eventuele configuratie.
>> no packages to be removed
>> 2017-10-15 16:55:49 +0200 (pid 1395), status = prepared
The .ipk files are in the folder. But they didn't install.
Rudolf
Member
Member
Posts: 135
Joined: Mon Dec 04, 2017 8:50 pm

Re: Toon app: ToonStore

Post by Rudolf »

Code: Select all

eneco-001-037311:~# opkg install toonstore_1.0.2-r0_qb2.ipk
Installing toonstore (1.0.2-r0) to root...
Executing pre-install script for toonstore-1.0.2
New installation of toonstore.
Backing up public keyring ...
Backing up /etc/hosts ...
Editing /etc/hosts to enable toonstore ...
hcb_config process ID now:
Restarting hcb_config ...
killall: hcb_config: no process killed
Waiting for 3 seconds ...
hcb_config process ID now:
Creating backup for /qmf/etc/qmf_project.xml ...
Patching /qmf/etc/qmf_project.xml for 403-forbidden error ...
Restarting http server ...
killall: lighttpd: no process killed
Collected errors:
 * pkg_run_script: package "toonstore" preinst script returned status 1.
 * preinst_configure: Aborting installation of toonstore.
 * opkg_install_cmd: Cannot install package toonstore.
Latest firmware, hoping ToonStore would fix the 403-Forbidden error.

As the user above my /qmf/etc/qmf_project.xml contains the following:

Code: Select all

        <hcb_web>
                <!-- Release uses lighttpd; put hcb_web somewhere where its harmless -->
                <port>10080</port>
                <defaultEntry>/qmf/www/</defaultEntry>
                <enforceWhitelist>0</enforceWhitelist>
                <whitelist>
                        <item>hdrv_zwave</item>
                        <item>hdrv_hue</item>
                </whitelist>
        </hcb_web>
The Store looks promising. Keep up the good work!

Edit: It seems to have fixed the 403-Forbidden anyways...
hayman
Starting Member
Starting Member
Posts: 36
Joined: Fri Feb 26, 2016 6:16 pm

Re: Toon app: ToonStore

Post by hayman »

Rudolf wrote:

Code: Select all

eneco-001-037311:~# opkg install toonstore_1.0.2-r0_qb2.ipk
Installing toonstore (1.0.2-r0) to root...
Executing pre-install script for toonstore-1.0.2
New installation of toonstore.
Backing up public keyring ...
Backing up /etc/hosts ...
Editing /etc/hosts to enable toonstore ...
hcb_config process ID now:
Restarting hcb_config ...
killall: hcb_config: no process killed
Waiting for 3 seconds ...
hcb_config process ID now:
Creating backup for /qmf/etc/qmf_project.xml ...
Patching /qmf/etc/qmf_project.xml for 403-forbidden error ...
Restarting http server ...
killall: lighttpd: no process killed
Collected errors:
 * pkg_run_script: package "toonstore" preinst script returned status 1.
 * preinst_configure: Aborting installation of toonstore.
 * opkg_install_cmd: Cannot install package toonstore.
Latest firmware, hoping ToonStore would fix the 403-Forbidden error.

As the user above my /qmf/etc/qmf_project.xml contains the following:

Code: Select all

        <hcb_web>
                <!-- Release uses lighttpd; put hcb_web somewhere where its harmless -->
                <port>10080</port>
                <defaultEntry>/qmf/www/</defaultEntry>
                <enforceWhitelist>0</enforceWhitelist>
                <whitelist>
                        <item>hdrv_zwave</item>
                        <item>hdrv_hue</item>
                </whitelist>
        </hcb_web>
The Store looks promising. Keep up the good work!

Edit: It seems to have fixed the 403-Forbidden anyways...

mine hcb_project.xml

is

<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>
</whitelist>
</hcb_web>


and still no luck with update of getting the browser to work ...


shall i chage it like this

<hcb_web>
<!-- Release uses lighttpd; put hcb_web somewhere where its harmless -->
<port>10080</port>
<defaultEntry>/qmf/www/</defaultEntry>
<enforceWhitelist>0</enforceWhitelist>
<whitelist>
<item>hdrv_zwave</item>
<item>hdrv_hue</item>
</whitelist>
</hcb_web>..


.?
thanks
michel30
Member
Member
Posts: 286
Joined: Fri Aug 25, 2017 4:42 pm

Re: Toon app: ToonStore

Post by michel30 »

Hello,

I have:

Code: Select all


<hcb_web>                                                                                                                                                                 
                <!-- Release uses lighttpd; put hcb_web somewhere where its harmless -->                                                                                          
                <port>10080</port>                                                                                                                                                
                <defaultEntry>/qmf/www/</defaultEntry>                                                                                                                            
                <enforceWhitelist>0</enforceWhitelist>                                                                                                                            
                <whitelist>                                                                                                                                                       
                        <item>hdrv_zwave</item>                                                                                                                                   
                        <item>hdrv_hue</item>                                                                                                                                     
                </whitelist>                                                                                                                                                      
        </hcb_web>                

 
In the latest firmware of Toon, no problem here.
Arcidodo
Starting Member
Starting Member
Posts: 23
Joined: Fri Apr 03, 2015 1:06 pm

Re: Toon app: ToonStore

Post by Arcidodo »

hello,
i'm on firmware 4.10.6 and i try to install the toonstore on my toon but i get an error message is this related to the qmf_project.xml file?

Code: Select all

eneco-001-XXXXXX:~/ipkg# opkg install toonstore_1.0.2-r0_qb2.ipk 
Installing toonstore (1.0.2-r0) to root...
Executing pre-install script for toonstore-1.0.2
Hmmm ... no project file found. Shouldn't happen.
and the file qmf_project.xml file doesnt exist anymore! so i can't fix the 403 Forbidden issue!

Code: Select all

eneco-001-XXXXXXX:/qmf# cat  /qmf/etc/qmf_project.xml
cat: can't open '/qmf/etc/qmf_project.xml': No such file or director
y
Last edited by Arcidodo on Thu Dec 21, 2017 5:31 pm, edited 1 time in total.
Post Reply

Return to “Toon Apps”