MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    js als Tabelle darstellen

    Scheduled Pinned Locked Moved Troubleshooting
    2 Posts 1 Posters 111 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C Offline
      chris47803
      last edited by

      Im folgenden Script möchte ich die Ausgabe von id:, icon: und suffix: gerne als Tabelle ausgeben.

       {
          module: 'MMM-ioBroker',
          position: 'top_right',
          header: "     ",   
          config: {
            host: '192.168.2.61',
            port: '8088',
            https: false,
            template: 'MMM-ioBroker.njk',
            devices: [
                { name: 'Küche',
                  deviceStates: [
                                    { id: '0_userdata.0.Heizung.Kueche',              icon: 'wi wi-thermometer',        suffix: ' °C'},
                                    { id: 'fritzdect.0.DECT_099950214189.battery',    icon: 'fa fa-battery-half',       suffix: '%'}                             
      
                                ]
                },
                
                { name: 'Bad',
                  deviceStates: [
                                    { id: '0_userdata.0.Heizung.Bad',                 icon: 'wi wi-thermometer',        suffix: ' °C' },
                                    { id: 'fritzdect.0.DECT_099950216627.battery',    icon: 'fa fa-battery-half',       suffix: '%'}                               
                                  
                                ]
                },
                
                { name: 'Serverraum',
                  deviceStates: [
                                    { id: '0_userdata.0.Heizung.Serverraum',          icon: 'wi wi-thermometer',        suffix: ' °C' },
                                    { id: 'fritzdect.0.DECT_099950273573.battery',    icon: 'fa fa-battery-half',       suffix: '%'}                               
                                    
                                ]
                },
                
                { name: 'Schlafzimmer',
                  deviceStates: [
                                    { id: '0_userdata.0.Heizung.Schlafzimmer',        icon: 'wi wi-thermometer',        suffix: ' °C'},
                                    { id: 'fritzdect.0.DECT_099950279527.battery',    icon: 'fa fa-battery-half',       suffix: '%'}                               
                                    
                                ]
                },
                
               { name: 'Büro',
                  deviceStates: [
                                    { id: '0_userdata.0.Heizung.Buero',               icon: 'wi wi-thermometer',        suffix: ' °C' },
                                    { id: 'fritzdect.0.DECT_139790667712.battery',    icon: 'fa fa-battery-half',       suffix: '%'}                               
                                    
                                ]
                },
                
               { name: 'Wohnzimmer',
                  deviceStates: [
                                    { id: '0_userdata.0.Heizung.Wohnzimmer',          icon: 'wi wi-thermometer',        suffix: ' °C' },
                                    { id: 'fritzdect.0.DECT_099950308576.battery',    icon: 'fa fa-battery-half',       suffix: '%'}                               
                                    
                                ]
                },
                
                         { name: 'Aussentemperatur',
                  deviceStates: [
                                    { id: 'tuya.0.bfa3627a6b9002903fte1v.1',          icon: 'wi wi-thermometer'},
                                    { id: 'tuya.0.bfa3627a6b9002903fte1v.2',          icon: 'wi wi-humidity',        suffix: '%' }                                                             
                                ]
                },
                
                         { name: 'AirRobo',
                  deviceStates: [
                                    { id: 'tuya.0.bfdcea245e055d2c20sj1i.106',        icon: 'fa fa-battery-half',    suffix: '%' }                                                           
                                ]
                },
                
                         { name: 'Briefkasten',
                  deviceStates: [
                                    { id: 'tuya.0.bf538c2e67ace7ad3eky7f.4',          icon: 'fa fa-battery-half',    suffix: '%' }                                                           
                                ]
                },     
                
                                   { name: 'Türspion',
                  deviceStates: [
                                    { id: 'alias.0.Tuerspion.145',          icon: 'fa fa-battery-half',    suffix: '%' }                                                           
                                ]
                }                 
                
              ]
          }
        },
      
      1 Reply Last reply Reply Quote 0
      • S sdetweil moved this topic from Development on
      • C Offline
        chris47803
        last edited by

        In the following script I would like to output id:, icon: and suffix: as a table.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Enjoying MagicMirror? Please consider a donation!
        MagicMirror created by Michael Teeuw.
        Forum managed by Sam, technical setup by Karsten.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy