Ankündigung

Einklappen
Keine Ankündigung bisher.

xxAPI² aktueller Entwicklungsstand

Einklappen
Dieses Thema ist geschlossen.
X
Das ist ein wichtiges Thema.
X
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    Client xxAPI² aktueller Entwicklungsstand

    ich werde diesen Post nicht immer direkt pflegen, aber von Zeit zu Zeit den Entwicklungsstand ergänzen.

    Status (beta)
    die xxAPI Funktionen aus Version 1 der xxAPI sind bereits alle integriert,
    lediglich die Popups für Universalschaltuhr/Wochenschaltuhr/Feiertags- und Urlaubskalendar fehlen noch um auch 100% der HSAV Funktionalität zu haben


    Version 2.040:
    Client
    * Seitenaufrufe/Befehle
    * Navigation: Start und zurück
    * Refresh der Seiten
    * Refresh von Cams/Diagrammen und XXIMG
    * Bilder/Texte und Boxen aktualisiern sich
    * Cams indirekt / direkt (wenn Browser unterstützt mit Basic Auth)
    * Diagramme
    * Zentrieren Initial und beim größe Ändern
    * bei Mobilgeräten auf Viewport skalieren
    * Panning mit einem Finger deaktivert (Rubberbanding verhindern)
    * auf Desktopgeräten auf Browsergröße skalieren
    * speichern der Zugangsdaten ohne Cookie im Browserspeicher
    * übergeben von Zugangsdaten mit Hilfe des Url-Hash #user=&pass=&design=
    * bei nicht sichtbarer Visu werden die Refreshzeiten auf 120sec gesetzt
    * automatischer Reconnect
    * anpassbarer visueller Effekte und Aussehen (custom.css / theme.css)
    * anpassbare und eigene Javascript Funktionen (custom.js)
    * Visu Popups (mit intelligenter Maus naher Platzierung)
    * Werteingabe (anpassbar von Funktion und Design)
    * Bilder und Diagramm Aufruf
    * Kameraarchive
    * Meldungsarchive
    * Buddyliste
    * Icons lokal cachen (nur mit Baustein 12280)


    xxAPI Funktionen
    * XXSCRIPT (alte xxAPI wird ignoriert und leitet auf nächste Seite)
    * XXHTML / XXEHTML
    * XXETEXT
    * XXEXECUTE / XXEEXECUTE
    * XXLONGPRESS
    * XXLINK / XXHTTP
    * XXIFRAME
    * XXIMG
    * XXPAGE / XXPOPUP (frei plazierbares Popup)
    * XXWRAPTEXT (neue Funktion für Fließtexte die umbrechen)
    * XXMARK
    * XXMODUL
    * XXMODULCLICK
    * XXTRIGGER
    * XXCLICK
    * XXGEOLOCATION
    * XXGEOLOCATE
    * XXSLIDER
    * XXKNOB
    * XXGAUGE


    aktuelle Änderungen https://github.com/knxuf/xxAPI2/commits/

    Paypal Spende für xxAPI oder Amazon Wunschzettel

    Die Installation ist am einfachsten mit dem xxAPI²Loader Logikbaustein

    Die Installation der Entwicklungsversion (kann man später auch gerne Produktiv nutzen, läd die Dateien halt nur von github bzw bald über das knx-user-forum) ist recht einfach.

    Man lädt lediglich die xstart.htm herunter, und speichert sie im Projektordner des Experten in dem Verzeichniss "projektname\hsupload" als xstart.htm
    (Achtung Dateiendung beachten) ab.
    Danach muss im Experten unter Projekt -> Oberfläche darauf geachtet werden, dass entweder "Alle" Verzeichnisse übertragen werden, oder aber ein Haken bei der xstart.htm ist.
    Beim anschließenden Übertragen des Projekts auf den Homeserver ist darauf zu achten, dass die Checkbox "Bilder+Daten+Ansagen übertragen" ausgewählt ist.

    Danach ist die xxAPI² unter http://[homeserver-ip]/opt/xstart.htm aufgerufen werden.
    Zuletzt geändert von NilsS; 29.06.2016, 14:32.
    Nils

    aktuelle Bausteine:
    BusAufsicht - ServiceCheck - Pushover - HS-Insight

    #2
    Wenn jetzt was nicht mehr geht, fragt mich nicht wieder nach Docu xD

    /*
    * XXAPICONFIG opens the xxAPI configmenu

    * Argument 1 (optional) is the text shown on Visu
    XXAPICONFIG*
    */

    /*
    * old xxAPI is ignored but the action "Seite aufrufen" is triggered
    * it is used on xxAPI-INIT page to go to the next page

    * Argument 1 (deprecated) is the old xxAPI
    XXSCRIPT*[old xxAPI in base64]
    */

    /*
    * With XXHTML the textelement is interpreted as HTML-Code to manipulate the text

    * Argument 1 is the HTML-Code
    XXHTML*<span style='color:red;'>Some Text</span>
    */

    /*
    * XXEHTML is similar to XXHTML, but the arguments are base64-encoded to handle
    * linebreaks, specialchars and quotes

    * Argument 1 is the base64 encoded HTML-Code
    XXEHTML*base64 encoded HTML-Code
    */

    /*
    * XXETEXT is similar to XXEHTML, but the arguments is base64-encoded Text not HTML

    * Argument 1 is the base64 encoded Text
    XXETEXT*base64 encoded Text
    */


    /*
    * XXLINK is used to set the URL for XXIFRAME elements.
    * To access Homeserver-archivs the URL can also be
    * The first argument can be omitted if used as an overlay
    * HSLIST:name_of_archiv

    * Argument 1 (can be blank) is the text shown on Visu
    * Argument 2 is the URL
    XXLINK*[Linktext or blank]*https://knx-user-forum.de/
    XXLINK**https://knx-user-forum.de
    */

    /*
    * XXHTTP is used to open links in a new tab/window.
    * The syntax is the same as XXLINK

    * Argument 1 (can be blank) is the text shown on Visu
    * Argument 2 is the URL
    XXHTTP*[Linktext or blank]*HSLIST:meldungen
    XXHTTP**https://knx-user-forum.de
    */

    /*
    * XXIFRAME is either used standalone or with an URL as argument.
    * If the argument is omitted, the URL is provided by XXLINK

    * Argument 1 (optional) is the URL
    XXIFRAME*https://knx-user-forum.de
    XXFRAME*
    */

    /*
    * XXEXECUTE is a function to execute Javascript code which is executed as a function
    * with the itemobject as the argument. The item can be manipulated within the code

    * Argument 1 is the Javascript code
    XXEXECUTE*item.text='';item.bg_color=red;
    */

    /*
    * XXEEXCECUTE is an base64 encoded version of XXEXECUTE an can be used
    * for complexer code with quotes,linebreaks and specialchars

    * Argument 1 is the base64 encoded Javascript code
    XXEEXECUTE*base64code
    */

    /*
    * XXMARK is used to give pages a name to call them later
    * with XXMODUL or XXMODULCLICK. XXMARK should be placed on
    * the xxAPI-INIT page to make them globaly available.
    * The action of the textelement must be "Seite aufrufen"
    * with the page called is aliased by the name.

    * Argument 1 is the alias for the page
    XXMARK*Weatherstation
    */

    /*
    * To integrate other pages as modules in another page
    * XXMODUL can be used. There are diffent ways to use it.

    * Argument 1 is always the name for the module, which is
    * also the name for the session to connect to the Homeserver,
    * it will be reused if present.
    * Argument 2 (optional) is the name of an XXMARK'ed page,
    * if it is omitted the pageaction "Seite aufrufen" is used
    * for the startpage of the module
    * (no Argument 2 and no "Seite aufrufen" is deprecated but can still be used)
    XXMODUL*Modulename
    XXMODUL*Modulename*Weatherstation
    */

    /*
    * XXMODULCLICK is used to change other modulepages, it can
    * be used in different ways. Commands attached to the item
    * are also executed.

    * Argument 1 (can be blank) is the text shown on visu
    * Argument [2,4,6...] is the name of the module that will be changed
    * Argument [3,5,7...] (can be blank) is the XXMARK'ed pagename
    * (if blank the Visu-Page from "Seite aufrufen" is used)
    XXMODULCLICK**Modulename*Weatherstation
    XXMODULCLICK**Modulename*Weatherstation*Othermodul

    */

    /*
    * xxAPI.functions.modul_click is a Helperfunction to change Modulepages with XXEXECUTE

    * Argument 1 is the name of the module
    * Argument 2 (can be empty if argument 3) is the pagename
    * Argument 3 (optional) is for using the items "Seite aufrufen" page
    */

    /*
    * xxAPI.modulClick is a backwardcompatible alias for xxAPI.functions.modul_click (deprecated)
    */

    /*
    * XXCLICK is used to execute Javascript if the item is clicked

    * Argument 1 (can be blank) is the text shown on Visu
    * Argument 2 is the Javascript
    */

    /*
    * XXTRIGGER is used as a timer function that triggers
    * the items action and commands to a given time.

    * Argument 1 (optional defaults to 50ms) is the delay in milliseconds
    * Argument 2 (optional) is Javascript code

    XXTRIGGER*30000 (30 seconds)
    */

    /*
    * XXIMG is used to load an image from an URL and refresh it

    * Argument 1 is the image URL
    * Argument 2 (optinal) is the refreshtime in seconds
    XXIMG*http://1.2.3.4/image?qual=1024*5
    */

    /*
    * XXLONGPRESS is used to send different values based on
    * duration the item is pressed. It is used in combination
    * with the "Logikbaustein" XXLONGPRESSHELPER and must always
    * be used with an item that has action "Werteingabe" with an
    * internal KO of type EIS2,6 (8-Bit 0-255). It sends the
    * following values:
    1 = click
    2 = longpress
    4 = longpress stopped
    * which can be bitshiftet with optinal Argument 2

    * Argument 1 (optional) is the time in milliseconds
    * Argument 2 (optonal) is an integer used to bitshift the values
    * Argument 3 (optonal) is Javascript code executed on longpress
    XXLONGPRESS*
    */

    /*
    * XXREGICON is used to register xxAPI functions to an image.

    * Argument 1 is the image icon-id found top right in Experte on symbol
    * Argument 2 is the xxAPI function as it would be in a text item.
    XXREGICON*GIRA0815*XXMODULCLICK**Modulname*Weather station
    */

    /*
    * XXPAGE is either used as a text item or with
    * images with icon-id XXPAGE or XXPOPUP
    * XXPAGE is used to limit a page to a specifiv width,
    * the position of this item. The backgroundimage is scaled.
    * XXPAGE*POPUP is used to limit a page and open it as a popup.

    * Argument 1 (can be blank) is POPUP for a popup page.
    * Argument 2 (optinonal) CSS attributes to change the page
    * with special string MOUSE+0px can be used for top and left
    * to open the popup near the mouseclick
    XXPAGE*POPUP*top:MOUSE+10px;left:MOUSE+0px;
    */

    /*
    * Text prefixed with XXWRAPTEXT is wraped inside the item text.

    * Argument 1 is the text that is to be wraped
    XXWRAPTEXT*The quick brown fox jumps over the lazy dog
    * $$BR$$ in the Text from Argument 1 will be replaced with newlines
    */

    /*
    * With XXGEOLOCATION, attributes from the browsers geolocation
    get tied to a Werteingabe function that will be called if attribute is received

    * Argument 1 is one of the getCurrentPosition attributes the Browser support
    * latitude, longitude, altitude, accuracy, altitudeAccuracy heading, speed, timestamp

    * The Element must be configured with Action "Werteingabe" with a 4 Byte EIS9 IEEE Float KO
    */

    /*
    * The XXGEOLOCATE is used to fire the geoloaction from the browser
    * it will send its data to predefined XXGEOLOCATION*attribute

    */
    Nils

    aktuelle Bausteine:
    BusAufsicht - ServiceCheck - Pushover - HS-Insight

    Kommentar


      #3
      Visu Demo Projekt (preview)

      -> Funktions Live Demo <- (nicht mehr aktiv)

      User: visu Passwort: visu

      Ihr könnt klicken was ihr wollt der HS ist nicht am Bus.
      Angehängte Dateien
      Zuletzt geändert von NilsS; 03.03.2016, 12:28.
      Nils

      aktuelle Bausteine:
      BusAufsicht - ServiceCheck - Pushover - HS-Insight

      Kommentar


        #4
        Die xxAPI² lässt sich jetzt am einfachsten mit dem xxAPI²Loader Logikbaustein installieren und ermöglicht damit auch die Nutzung des HTML5 Application Cache.

        http://service.knx-user-forum.de/?co...nload&id=12280
        Nils

        aktuelle Bausteine:
        BusAufsicht - ServiceCheck - Pushover - HS-Insight

        Kommentar

        Lädt...
        X