From 489af344319885e26b9859115611546b8261bd3d Mon Sep 17 00:00:00 2001 From: Armilar <102996011+Armilar@users.noreply.github.com> Date: Wed, 7 Feb 2024 22:29:31 +0100 Subject: [PATCH] =?UTF-8?q?Updated=20NSPanel=20Page=20=E2=80=90=20Typen=5F?= =?UTF-8?q?How=202=5FBeispiele=20(markdown)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NSPanel-Page-‐-Typen_How-2_Beispiele.md | 35 ++++++------------------- 1 file changed, 8 insertions(+), 27 deletions(-) diff --git a/NSPanel-Page-‐-Typen_How-2_Beispiele.md b/NSPanel-Page-‐-Typen_How-2_Beispiele.md index 72d656f..fecce1f 100644 --- a/NSPanel-Page-‐-Typen_How-2_Beispiele.md +++ b/NSPanel-Page-‐-Typen_How-2_Beispiele.md @@ -740,40 +740,21 @@ let SqueezeboxRPC: PageType = **CardMedia - Volumio** -![image](https://github.com/joBr99/nspanel-lovelace-ui/assets/102996011/3b72ecfa-07ef-42e4-88b7-b5846a6a91a2) - -```typescript -let VolumioBoss: PageType = -{ - 'type': 'cardMedia', - 'heading': 'Volumio-Büro', - 'items': [{ - id: 'alias.0.NSPanel.Volumio-Boss', - adapterPlayerInstance: 'volumio.0.', - speakerList: [], /* this must, no function */ - playList: [], /* empty for dynamic reading */ - colorMediaIcon: colorSpotify, - colorMediaTitle: colorSpotify, - colorMediaArtist: Yellow, - alwaysOnDisplay: true, - autoCreateALias: true - }] -}; -``` +![image](https://github.com/joBr99/nspanel-lovelace-ui/assets/102996011/c02474d2-a06e-47f2-8545-0eaa98723125) ```typescript -let VolumioMobil: PageType = +let Volumio: PageType = { 'type': 'cardMedia', - 'heading': 'Volumio-Mobil', + 'heading': 'Volumio-Player', 'items': [{ - id: 'alias.0.NSPanel.Volumio-Mobil', - adapterPlayerInstance: 'volumio.1.', - speakerList: [], /* this must, no function */ + id: AliasPath + 'Media.PlayerVolumio', + adapterPlayerInstance: 'volumio.0.', + speakerList: ['Volumio'], /* this must, no function */ playList: [], /* empty for dynamic reading */ - colorMediaIcon: Yellow, + colorMediaIcon: colorVolumio, colorMediaTitle: Yellow, - colorMediaArtist: Gray, + colorMediaArtist: Yellow, alwaysOnDisplay: true, autoCreateALias: true }]