MAC - Ubersicht / Geektool und die Vu+

    Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

    • MAC - Ubersicht / Geektool und die Vu+

      Hallo Zusammen,
      hoffe der Bereich ist richtig.



      Weiß jmd wie ich die BoxInfos (also Kanal, now playing etc.) angezeigt bekomme ?
      Das WebIF macht es ja quasi vor, soll wohl per coffeescript oder javascript funktionieren.


      Wenn ich jetzt noch Ahnung von der Materie hätte... Uebersicht gibts unter : tracesof.net/uebersicht/ ?-(
    • also ich hab mal ein vorhandenes script zerpflückt, schön isses nicht aber es funktioniert, falls jmd interesse hat D:
      jedenfalls bekommt man jetzt das aktuelle Programm angezeigt und jmd mit nem Plan kann das bestimmt schöner ;rolleyes:


      Spoiler anzeigen



      command: 'curl -s "http://ipderbox/web/getcurrent"'

      refreshFrequency: 20000

      style: """
      bottom: 5%
      right: 0%
      color: #fff
      font-family: Helvetica Neue

      .output
      padding: 5px 10px
      width: 500px
      font-size: 15px
      font-weight: lighter
      font-smoothing: antialiased


      """

      render: (output) -> """
      <div class="output">
      Vu+ Duo² :
      <div class="zeile"></div>
      <div class="zeile2"></div>


      </div>
      """

      update: (output, domEl) ->
      # Define constants, and extract the juicy html.
      dom = $(domEl)
      xml = jQuery.parseXML(output)
      $xml = $(xml)
      description = jQuery.parseHTML($xml.find('copyright').eq(0).text())
      $description = $(description)

      # Find the info we need, and inject it into the DOM.
      dom.find('.zeile').html $xml.find('e2eventservicename').eq(0)
      dom.find('.zeile2').html $xml.find('e2eventname').eq(0)