A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
js als Tabelle darstellen
-
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: '%' } ] } ] } }, -
S sdetweil moved this topic from Development on
-
In the following script I would like to output id:, icon: and suffix: as a table.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login