Tablet UI Buttons 1,2,3,4,5,6,7,8,9.....

Begonnen von AET_FHEM, 15 Januar 2016, 14:33:45

Vorheriges Thema - Nächstes Thema

AET_FHEM

Hallo,

ich steh auf dem Schlauch, und brauch mal einen Denk Anstoß

und zwar habe ich Tablet UI am Laufen und IPCAM und eine CAM mit Motor also zum Positionieren,
das funktioniert auch in FHEM alles wunder bar mit
set IPCAM_I pos 1 (erste Position)
set IPCAM_I pos 2 (zweite Position)
usw.....
jetzt will ich Buttons 1 - 15 um die Positionen anzu fahren wie mach ich das am besten, ich will ja nicht für jede Position ein Notify erstellen  :o ...

schon mal Danke


CoolTux

data-button oder data-push mit einer Zahl versehen und dann einen data-cmd wo du dein set Befehl reinhaust
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

AET_FHEM

Aha hört sich gut an wie würde das aussehen?
hast du mir mal ein Beispiel?

CoolTux

<div style="color:rgb(170, 105, 0);" data-type="pagebutton"
                                        data-color="#aa6900"
                                        data-url="kalender_steven.html"
                                        data-background-icon="fa-circle-thin" >S                                                                              </div>


Man beachte das S vor dem letzten div. Da kommt Deine Zahl rein.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

CoolTux

Oder so




<div data-type="push" data-icon="" data-device="keypad_key" data-set-on="1">1</div>
             <div data-type="push" data-icon="" data-device="keypad_key" data-set-on="2">2</div>
             <div data-type="push" data-icon="" data-device="keypad_key" data-set-on="3">3</div>
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

AET_FHEM

DANKE  ;D

hat wunder bar geklappt!!!

so sieht es jetzt aus, vielleicht hilft es noch jemandem ...

<li data-row="1" data-col="6" data-sizex="4" data-sizey="1">
   <header>CAM 2 schwenken</header>
        <div class="centered container">
       <div data-type="push" data-icon="" data-device="CAM_I" data-set-on="pos 1">1</div>
                <div data-type="push" data-icon="" data-device="CAM_I" data-set-on="pos 2">2</div>
                <div data-type="push" data-icon="" data-device="CAM_I" data-set-on="pos 3">3</div>
           <div data-type="push" data-icon="" data-device="CAM_I" data-set-on="pos 4">4</div>
                <div data-type="push" data-icon="" data-device="CAM_I" data-set-on="pos 5">5</div>
                <div data-type="push" data-icon="" data-device="CAM_I" data-set-on="pos 6">6</div>
           <div data-type="push" data-icon="" data-device="CAM_I" data-set-on="pos 7">7</div>
                <div data-type="push" data-icon="" data-device="CAM_I" data-set-on="pos 8">8</div>
                <div data-type="push" data-icon="" data-device="CAM_I" data-set-on="pos 9">9</div>
           <div data-type="push" data-icon="" data-device="CAM_I" data-set-on="pos 10">10</div>
                <div data-type="push" data-icon="" data-device="CAM_I" data-set-on="pos 11">11</div>
                <div data-type="push" data-icon="" data-device="CAM_I" data-set-on="pos 12">12</div>
           <div data-type="push" data-icon="" data-device="CAM_I" data-set-on="pos 13">13</div>
                <div data-type="push" data-icon="" data-device="CAM_I" data-set-on="pos 14">14</div>
                <div data-type="push" data-icon="" data-device="CAM_I" data-set-on="pos 15">15</div>
       </div>
</li>