Compare commits

..

1 Commits

Author SHA1 Message Date
slajob
d04da62cb3 Merge 127671047f into a12bc03dd7 2024-02-07 18:50:47 +01:00
3 changed files with 10 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
+++ /dev/fd/62 2024-01-20 23:31:31.560618969 +0000 +++ /dev/fd/62 2024-01-20 19:56:08.135834636 +0000
+I/n2t-out/Program.s.txt +I/n2t-out/Program.s.txt
++ HMI/US/portrait/n2t-out/Program.s.txt ++ HMI/US/portrait/n2t-out/Program.s.txt
+1 +12,11 @@ +1 +12,11 @@

View File

@@ -5304,8 +5304,8 @@ function GenerateMediaPage(page: NSPanel.PageMedia): NSPanel.Payload[] {
name = 'Spotify-Premium'; name = 'Spotify-Premium';
} }
author = getState(id + '.ARTIST').val + ' | ' + getState(id + '.ALBUM').val; author = getState(id + '.ARTIST').val + ' | ' + getState(id + '.ALBUM').val;
if (author.length > 37) { if (author.length > 30) {
author = author.slice(0,37) + '...'; author = getState(id + '.ARTIST').val;
} }
if ((getState(id + '.ARTIST').val).length == 0) { if ((getState(id + '.ARTIST').val).length == 0) {
author = findLocale('media','no_music_to_control'); author = findLocale('media','no_music_to_control');
@@ -5391,9 +5391,9 @@ function GenerateMediaPage(page: NSPanel.PageMedia): NSPanel.Payload[] {
//Volumio //Volumio
if (v2Adapter == 'volumio') { if (v2Adapter == 'volumio') {
media_icon = Icons.GetIcon('clock-time-twelve-outline'); if (name != undefined) { author = author + " [" + name + "]"; }
if (name != undefined) { author = author + " | " + name; } name = getState(vInstance + 'info.name').val; /* page.heading;
name = page.heading; getState(id + '.TRACK').val; */
} }
let volume = getState(id + '.VOLUME').val; let volume = getState(id + '.VOLUME').val;
@@ -5404,7 +5404,7 @@ function GenerateMediaPage(page: NSPanel.PageMedia): NSPanel.Payload[] {
if (shuffle == 'off' || shuffle == false || shuffle == 0 || shuffle == 'false') { if (shuffle == 'off' || shuffle == false || shuffle == 0 || shuffle == 'false') {
shuffle_icon = Icons.GetIcon('shuffle-disabled'); //shuffle shuffle_icon = Icons.GetIcon('shuffle-disabled'); //shuffle
} }
//if (v2Adapter == 'volumio') { shuffle_icon = Icons.GetIcon('shuffle-disabled'); } //Volumio: refresh playlist if (v2Adapter == 'volumio') { shuffle_icon = Icons.GetIcon('refresh'); } //Volumio: refresh playlist
//For all players //For all players
@@ -5447,8 +5447,6 @@ function GenerateMediaPage(page: NSPanel.PageMedia): NSPanel.Payload[] {
currentSpeaker = getState(([page.items[0].adapterPlayerInstance, 'Players.', page.items[0].mediaDevice, '.Playername'].join(''))).val; currentSpeaker = getState(([page.items[0].adapterPlayerInstance, 'Players.', page.items[0].mediaDevice, '.Playername'].join(''))).val;
} else if (v2Adapter == 'bosesoundtouch') { } else if (v2Adapter == 'bosesoundtouch') {
currentSpeaker = getState(([page.items[0].adapterPlayerInstance, 'deviceInfo.name'].join(''))).val; currentSpeaker = getState(([page.items[0].adapterPlayerInstance, 'deviceInfo.name'].join(''))).val;
} else if (v2Adapter == 'volumio') {
currentSpeaker = getState(([page.items[0].adapterPlayerInstance, 'info.name'].join(''))).val;
} }
//------------------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------------------
// All Alexa devices (the online / player and commands directory is available) are listed and linked below // All Alexa devices (the online / player and commands directory is available) are listed and linked below
@@ -5674,7 +5672,7 @@ function GenerateMediaPage(page: NSPanel.PageMedia): NSPanel.Payload[] {
} else if (v2Adapter == 'volumio') { /* Volumio: only Repeat true/false with API */ } else if (v2Adapter == 'volumio') { /* Volumio: only Repeat true/false with API */
if (getState(id + '.REPEAT').val == true) { if (getState(id + '.REPEAT').val == true) {
repeatIcon = Icons.GetIcon('repeat-variant'); repeatIcon = Icons.GetIcon('repeat-variant');
repeatIconCol = rgb_dec565(HMIOn); repeatIconCol = rgb_dec565(colMediaIcon);
} }
} }
@@ -5760,6 +5758,7 @@ function GenerateMediaPage(page: NSPanel.PageMedia): NSPanel.Payload[] {
} }
} }
async function createAutoAlarmAlias (id: string, nsPath: string){ async function createAutoAlarmAlias (id: string, nsPath: string){
try { try {
if (Debug){ if (Debug){

View File

@@ -1,6 +1,6 @@
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-config # https://developers.home-assistant.io/docs/add-ons/configuration#add-on-config
name: NSPanel Lovelace UI Addon name: NSPanel Lovelace UI Addon
version: "4.7.78" version: "4.7.77"
slug: nspanel-lovelace-ui slug: nspanel-lovelace-ui
description: NSPanel Lovelace UI Addon description: NSPanel Lovelace UI Addon
services: services: