Ankündigung

Einklappen
Keine Ankündigung bisher.

LBS16000130; Wochentag

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

    LBS16000130; Wochentag

    Hello,

    I'm trying to use the LBS with the output A4, which should give week-day in text.
    However the text is in German, is it possible to edit LBS so that I can choose what language I want the text in?

    #2
    Maybe you can use the 19000310 http://service.knx-user-forum.de/?co...ad&id=19000310 . At input E2 the German designations, at E3 the Swedish ones. A4 from 16000130 is then connected to E1 from 19000310.

    Kommentar


      #3
      Thanks, didn't fully understand the E2/E3 designations, I should map up all weekdays womewhere?

      Kommentar


        #4
        or you use the output A5 of the 1600130

        Configuration 1900310:

        E1 conected to A5 from 19000310
        E2:
        PHP-Code:
        1:2:3:4:5:6:
        E3:
        PHP-Code:
        måndag:tisdag:onsdag:torsdag:fredag:lördag:söndag 
        E4:
        PHP-Code:

        Kommentar


          #5
          Thanks, never worked with PHP or Edomi before. Pretty powerful tool when paired with right knowlage
          So, if I understood you correct, this would be correct in the LBS1900310?

          Code:
          ###[LBS]###
          <?
          function LB_LBSID($id)
          {
          if ($E = getLogicEingangDataAll($id)) {
          if ( $E[1]['refresh'] ) {
          $quelle = explode($E[4]['value'],$E[2]['1:2:3:4:5:6:7']);
          $ziel = explode($E[4]['value'],$E[3]['måndag:tisdag:onsdag:torsdag:fredag:lördag:söndag']);
          $index = array_search($E[1]['value'],$quelle,true);
          if (is_numeric($index)) {
          setLogicLinkAusgang($id, 1, $ziel[$index]);
          }
          }
          }
          }
          ?>
          ###[/LBS]###

          Kommentar


            #6
            You don't need to change the source code! You don't need to understand php either Click into the field after e.g "Quellarray" and enter the values there.

            php.png

            Your module may look different, I changed it for my needs.

            Kommentar


              #7
              Ahh, that was easy! 😅
              Now it works, thanks alot. Think it will be quite a journey before I learn Edomi.
              Will probably ask alot of questions!

              edomi.png

              Kommentar


                #8
                I think you will need the module more often. This will become your translation engine

                Kommentar


                  #9
                  Yes probably, I haven't yet discovered the LBS.. Just downloaded a Demo Visu and started to elaborate with it.
                  Not a question related to this topic. But is it possible to "scroll" within a page of the visu or is the size fixed and I need to make links to other pages to display more info?
                  Thought is the screen is 800x600, can I make a page 800x1200 and scroll in the deviceto se the full screen?

                  Kommentar


                    #10
                    There is no scrolling option. You need another page.

                    Kommentar

                    Lädt...
                    X