Ankündigung

Einklappen
Keine Ankündigung bisher.

Neu Knxweb2 und Linknx 0.0.1.29

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • makki
    antwortet
    Zitat von Tru Beitrag anzeigen
    Ich hätte das feed File bereit mit fast dem ganzen sums: mit SMTP und LUA, aber ohne log4cpp und mysql.

    Othmar
    Na dann her damit ? Unfug machen kann damit eh keiner, der nicht wirklich weiss, was er tut
    oder gleich als Patch auf die openwrt-devel Liste (meins war mir bisher zu kaputt dafür.. Ausserdem hat(te?) das Makefile von linknx ein paar ganz hässliche Dinger, alte eibclient.h mitgeliefert, .. die ich mal vorher reporten wollte)

    Makki

    Einen Kommentar schreiben:


  • Tru
    antwortet
    Zitat von makki Beitrag anzeigen
    (und sollte mir langweilig sein auch für openwrt/trunk allerdings ohne den ganzen sums)
    Ich hätte das feed File bereit mit fast dem ganzen sums: mit SMTP und LUA, aber ohne log4cpp und mysql.

    Othmar

    Einen Kommentar schreiben:


  • makki
    antwortet
    Zitat von Tru Beitrag anzeigen
    [*]die Umgebung der Steuerfiles ist zur Zeit nicht sauber, weswegen das mit configure erzeugte Makefile als erstes die verschiedenen .in-Files und das configure Script neu bauen will, ..
    Die mach ich eh selber, mit Makefile.am komme ich klar, wenn mir mehr als einer bestätigt das es grundsätzlich läuft wirds für Debian lenny gepackaged, natürlich mit SMTP, log4cpp und LUA
    (und sollte mir langweilig sein auch für openwrt/trunk allerdings ohne den ganzen sums)

    Makki

    Einen Kommentar schreiben:


  • vlamers
    antwortet
    • Version 0.0.1.29 ist scheinbar Voraussetzung für knxweb2, womit ich mich aber noch nicht beschäftigt habe
    Wer lesen kann
    - Bei mir hat knxweb 2 (auf die schnelle getestet) Problem irgendwo im css. Überlagerte Grafiken innerhalb eines Buttons.

    linknx 0.0.1.29 läuft dank Tru's hilfe jetzt auch bei mir.

    @Bodo: eigentlich hab ich als Änderung zu nem "original" Wiregate nur liblua5.1 und das dev, libesmtp5-dev installiert. Dann gings ohne die Umgebungsvariablen zu exportieren.
    Das Hauptproblem bei mir waren paar squeeze Pakete

    Gruß

    Einen Kommentar schreiben:


  • Tru
    antwortet
    Zitat von makki Beitrag anzeigen
    Jo, aber ich sehe da kein Release 0.0.1.29? Meint ihr damit die SVN-Version (0 Files=leer auf SF) die CVS-Version (was völlig unbenutzbar ist, weil das keiner blickt, der da alle paar Wochen mal reinschaut, was sich geändert hat..)

    Dann kann ich das schonmal die Tage die Packerl aktualisieren aber irgendwie hört sich das ja nicht so an als würde es auch funktionieren (? wiegesagt: selbst testen werde ich nicht!), meine schwache Erinnerung sagt das .27->.28 auch nicht gerade "gülden" war..
    Makki
    Ich habe mich wegen diesem Thread in den letzten Tagen eingehend mit linknx-0.0.1.29 beschäftigt und auch einige Zeit investiert um es schliesslich zum Laufen zu bringen. Ich sehe es so:
    • Version 0.0.1.29 ist nicht wirklich released, sondern ab CVS nutzbar
    • Version 0.0.1.29 ist scheinbar Voraussetzung für knxweb2, womit ich mich aber noch nicht beschäftigt habe
    • die Umgebung der Steuerfiles ist zur Zeit nicht sauber, weswegen das mit configure erzeugte Makefile als erstes die verschiedenen .in-Files und das configure Script neu bauen will, was aber wegen Problemen mit einem Macro scheitert. Das macht es aber nur, wenn autoconf, automake und autoheader installiert sind. Als Workaround mache ich deswegen vor dem Aufruf von configure ein "touch aclocal.m4 Makefile.in config.h configure", damit das Makefile dann gleich mit Kompilieren beginnt.
    • abgesehen davon läuft es bei mir auf Ubuntu und auch OpenWrt klaglos.

    Gruss, Othmar

    Einen Kommentar schreiben:


  • vlamers
    antwortet
    Zitat von netsrac Beitrag anzeigen
    Du solltest ein Config-File anlegen
    ja das hab ich. die 0.0.1.27 ist damit ohne Probleme gelaufen.

    evtl probier ich es mit einer linknx.XML ohne rules.

    das Start script macht gar nix. ich vermute das zielt noch in einen anderen verzeichniss.

    wenn ich linknx ohne Start Skript starte bricht er mit einer fehlermelding des amixers ab??

    Gruß

    Einen Kommentar schreiben:


  • netsrac
    antwortet
    Zitat von vlamers Beitrag anzeigen
    sh -x /etc/init.d/linknx
    Hänge dahinter nochmal ein "start" - also:

    Code:
    /etc/init.d/linknx start

    Einen Kommentar schreiben:


  • netsrac
    antwortet
    Zitat von vlamers Beitrag anzeigen
    Mein Problem ist dass linknx nicht startet:
    Code:
    linknx
    1327419536 INFO main : No config file, using default values
    1327419536 INFO XmlInetServer : Starting on port 1028
    terminate called after throwing an instance of 'int'
    Du solltest ein Config-File anlegen - wichtig ist dabei das folgende:

    Code:
    <services>
            <knxconnection url="ip:127.0.0.1" />
            <xmlserver type="inet" port="1028" />
    </services>
    mit dem knxconnection gibtst Du Dein eigenes KNX interface an, mit dem xmlserver erlaubst Du es, mit LinKNX zu kommunizieren. Ich denke das ist es, was gebraucht wird, damit knxweb2 die Version bekommt.

    Natürlich müsstest Du noch ein biss'l mehr definieren.

    Ich selbst starte LinKNX immer wie folgt
    Code:
    linknx --config=/usr/local/lib/linknx/linknx.xml --daemon=/var/linknx/linknx.log
    Gruß, Netsrac

    Einen Kommentar schreiben:


  • vlamers
    antwortet
    Ich versuche dass zusammen zu fassen was ich alles drehen musste.
    Mein Problem ist dass linknx nicht startet:

    Das startscript:
    Code:
     cat /etc/init.d/linknx
    #! /bin/sh
    ### BEGIN INIT INFO
    # Provides:          linknx
    # Required-Start:    $local_fs $remote_fs eibd
    # Required-Stop:     $local_fs $remote_fs
    # Default-Start:     2 3 4 5
    # Default-Stop:      0 1 6
    # Short-Description: linknx initscript
    # Description:       This file should be used to construct scripts to be
    #                    placed in /etc/init.d.
    ### END INIT INFO
    
    # Author: 
    #
    # Please remove the "Author" lines above and replace them
    # with your own name if you copy and modify this script.
    
    # Do NOT "set -e"
    
    # PATH should only include /usr/* if it runs after the mountnfs.sh script
    PATH=/sbin:/usr/sbin:/bin:/usr/bin
    DESC="service"
    NAME=linknx
    DAEMON=/usr/bin/$NAME
    PIDFILE=/var/run/$NAME.pid
    DAEMON_ARGS="-c/etc/linknx.xml -p $PIDFILE -d -w"
    SCRIPTNAME=/etc/init.d/$NAME
    
    # Exit if the package is not installed
    [ -x "$DAEMON" ] || exit 0
    
    # Read configuration variable file if it is present
    # [ -r /etc/default/$NAME ] && . /etc/default/$NAME
    # Temp-fix! remove surrounding whitespaces from seperator '='
    [ -r /etc/default/$NAME ] && cat /etc/default/$NAME | sed 's/ =/=/' | sed 's/= /=/' > /etc/default/$NAME.out
    [ -r /etc/default/$NAME.out ] && . /etc/default/$NAME.out
    
    # Load the VERBOSE setting and other rcS variables
    . /lib/init/vars.sh
    
    # Define LSB log_* functions.
    # Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
    . /lib/lsb/init-functions
    
    #
    # Function that starts the daemon/service
    #
    do_start()
    {
            # Return
            #   0 if daemon has been started
            #   1 if daemon was already running
            #   2 if daemon could not be started
            start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
                    || return 1
            start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
                    $DAEMON_ARGS \
                    || return 2
            # Add code here, if necessary, that waits for the process to be ready
            # to handle requests from services started subsequently which depend
            # on this one.  As a last resort, sleep for some time.
    }
    
    #
    # Function that stops the daemon/service
    #
    do_stop()
    {
            # Return
            #   0 if daemon has been stopped
            #   1 if daemon was already stopped
            #   2 if daemon could not be stopped
            #   other if a failure occurred
            start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
            RETVAL="$?"
            [ "$RETVAL" = 2 ] && return 2
            # Wait for children to finish too if this is a daemon that forks
            # and if the daemon is only ever run from this initscript.
            # If the above conditions are not satisfied then add some other code
            # that waits for the process to drop all resources that could be
            # needed by services started subsequently.  A last resort is to
            # sleep for some time.
            start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON
            [ "$?" = 2 ] && return 2
            # Many daemons don't delete their pidfiles when they exit.
            rm -f $PIDFILE
            return "$RETVAL"
    }
    
    #
    # Function that sends a SIGHUP to the daemon/service
    #
    do_reload() {
            #
            # If the daemon can reload its configuration without
            # restarting (for example, when it is sent a SIGHUP),
            # then implement that here.
            #
            start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME
            return 0
    }
    
    case "$1" in
      start)
            [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
            do_start
            case "$?" in
                    0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
                    2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
            esac
            ;;
      stop)
            [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
            do_stop
            case "$?" in
                    0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
                    2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
            esac
            ;;
      #reload|force-reload)
            #
            # If do_reload() is not implemented then leave this commented out
            # and leave 'force-reload' as an alias for 'restart'.
            #
            #log_daemon_msg "Reloading $DESC" "$NAME"
            #do_reload
            #log_end_msg $?
            #;;
      restart|force-reload)
            #
            # If the "reload" option is implemented then remove the
            # 'force-reload' alias
            #
            log_daemon_msg "Restarting $DESC" "$NAME"
            do_stop
            case "$?" in
              0|1)
                    do_start
                    case "$?" in
                        0) log_end_msg 0 ;;
                        1) log_end_msg 1 ;; # Old process is still running
                        *) log_end_msg 1 ;; # Failed to start
                    esac
                    ;;
              *)
                    # Failed to stop
                    log_end_msg 1
                    ;;
            esac
            ;;
      *)
            #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
            echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
            exit 3
            ;;
    esac
    
    :



    [QUOTE]
    sh -x /etc/init.d/linknx
    + PATH=/sbin:/usr/sbin:/bin:/usr/bin
    + DESC=service
    + NAME=linknx
    + DAEMON=/usr/bin/linknx
    + PIDFILE=/var/run/linknx.pid
    + DAEMON_ARGS='-c/etc/linknx.xml -p /var/run/linknx.pid -d -w'
    + SCRIPTNAME=/etc/init.d/linknx
    + '[' -x /usr/bin/linknx ']'
    + '[' -r /etc/default/linknx ']'
    + sed 's/ =/=/'
    + cat /etc/default/linknx
    + sed 's/= /=/'
    + '[' -r /etc/default/linknx.out ']'
    + . /etc/default/linknx.out
    ++ DAEMON_OPTS=
    + . /lib/init/vars.sh
    ++ '[' -f /etc/default/rcS ']'
    ++ . /etc/default/rcS
    ++ + TMPTIME=0
    + ++ SULOGIN=no
    ++ + DELAYLOGIN=no
    ++ + UTC=yes
    ++ + VERBOSE=no
    ++ + FSCKFIX=yes
    ++ + RAMRUN=no
    ++ + RAMLOCK=no
    ++ + CONCURRENCY=shell
    + ++ CONCURRENCY=shell
    ++ '[' -r /proc/cmdline ']'
    ++ grep -q ' noswap' /proc/cmdline
    ++ NOSWAP=no
    ++ '[' '!' -e /proc/cmdline ']'
    ++ egrep -qw quiet /proc/cmdline
    ++ '[' '' ']'
    ++ true
    + . /lib/lsb/init-functions
    ++ FANCYTTY=
    ++ '[' -e /etc/lsb-base-logging.sh ']'
    ++ true
    + case "$1" in
    + echo 'Usage: /etc/init.d/linknx {start|stop|restart|force-reload}'
    Usage: /etc/init.d/linknx {start|stop|restart|force-reload}
    + exit 3
    [\QUOTE]

    [Code]
    cat /etc/default/linknx
    # Defaults for linknx initscript
    # sourced by /etc/init.d/linknx
    # installed at /etc/default/linknx by the maintainer scripts

    #
    # This is a POSIX shell fragment
    #

    # Additional options that are passed to the Daemon.
    DAEMON_OPTS=""

    [\Code]

    Liegt hier dass Problem?

    Gesendet von meinem HTC Sensation Z710e mit Tapatalk

    weit: das bekomm ich wenn ich nur linknx in die Konsole tippe:
    Code:
    linknx
    1327419536 INFO main : No config file, using default values
    1327419536 INFO XmlInetServer : Starting on port 1028
    terminate called after throwing an instance of 'int'

    Einen Kommentar schreiben:


  • Bodo
    antwortet
    Hoi Volker

    Ich hab's bis hier hin geschafft.
    Code:
    linknx 0.0.1.29
    Eben ohne Lua, e-mail und Log4ccp.
    KnxWeb2 sagt bei mir das Gleiche...

    Einen Kommentar schreiben:


  • vlamers
    antwortet
    Hi,

    also ich habs nun zum laufen gebracht (ohne tru wäre dass ein Ding der Unmöglichkeit gewesen )

    linknx -V sagt:
    Code:
    linknx 0.0.1.29
    - E-mail gateway enabled (with pthread support)
    - LUA scripting support enabled
    - Log4cpp logging enabled
    aber knxweb2 sagt:
    Code:
    Cannot determine linknx version, you probably have an old version of  linknx. You must upgrade to the last CVS version of linknx to use with  this version of knxweb.
    die php.ini passt (kuhsaft gab am Anfang des Threads einen Tipp dazu)
    die config.xml von knxweb2:
    Code:
    <linknx_host>127.0.0.1</linknx_host>
    <linknx_port>1028</linknx_port>
    woran könnte es den noch scheitern?


    Gruß Volker

    Einen Kommentar schreiben:


  • makki
    antwortet
    Also, ich hab von dem Thread jetzt mal gut nen Monat verpasst und auch ehrlichgesagt nicht alles gelesen, nur überflogen.
    Ich benutze es auch selbst nicht, ausser auf der Dreambox wo es brav die "mini-Visu" tut..
    Aber das Zeug zum Packerl-machen für Debian&OpenWRT hierliegen, die Probleme mit pthsem und mhc68 bekomme ich mittlerweile gelöst

    Zitat von mwfv Beitrag anzeigen
    ..muss Linknx auf 0.0.1.29 angehoben werden.
    Jo, aber ich sehe da kein Release 0.0.1.29? Meint ihr damit die SVN-Version (0 Files=leer auf SF) die CVS-Version (was völlig unbenutzbar ist, weil das keiner blickt, der da alle paar Wochen mal reinschaut, was sich geändert hat..)

    Dann kann ich das schonmal die Tage die Packerl aktualisieren aber irgendwie hört sich das ja nicht so an als würde es auch funktionieren (? wiegesagt: selbst testen werde ich nicht!), meine schwache Erinnerung sagt das .27->.28 auch nicht gerade "gülden" war..

    Makki

    Einen Kommentar schreiben:


  • vlamers
    antwortet
    Hi,

    Dank tru sind die ersten Fehler gefunden.

    Ich hatte noch Reste von squeeze drauf (libncurses, liblineread5 und noch ein paar). Jetzt sinds wieder lenny Pakete

    Morgen teste ich dass compilieren nochmal.
    Jetzt geh ich schlafen, spiele morgen weiter.

    Gesendet von meinem HTC Sensation Z710e mit Tapatalk

    Einen Kommentar schreiben:


  • greentux
    antwortet
    Mal so ins Blaue.
    Ggf. braucht es neben liblua5.1 noch das dazugehörige dev Paket, um weitere darauf aufbauende Software zu compilieren.

    Einen Kommentar schreiben:


  • vlamers
    antwortet
    Hi,

    alles Neuland

    ich könnte dir auch den Teamviewer frei schalten.. Es scheitert schon daran die verzeichnisse der libs zu finden

    Gruß und Danke!

    Edit:
    Ich hab deine Zeilen per copy & paste bei mir getestet. War ein schuss ins blaue ...

    Edit2:

    Also so wie es aussieht ist liblua5.1-dev nicht installiert, und lässt sich auch nicht nach installieren:
    - liblua5.1 hängt ab von: libreadline5-dev
    - libreadline5-dev hängt ab von libncurses5-dev
    - libncurses5-dev: Hängt ab: libncurses5-dev(5.7+20081213-1) aber 5.7+20100313-5 soll installiert werden

    das rote ist die Fehlermeldung die mir apt-get libncurses5-dev ausgibt. Ab hier ist dann Ende für mich. Evtl liest makki mit und kann aufklären woran es hier scheitert?


    Einen Kommentar schreiben:

Lädt...
X