Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui

This commit is contained in:
joBr99
2022-11-27 13:23:53 +01:00
8 changed files with 735 additions and 122 deletions

View File

@@ -181,8 +181,9 @@ tIconBtnEntityName is the entiy name used in the button event for pressing the u
`entityUpd~test~1|1~6666~A~hu~8888~B~1~t0u~9999~C~2~t1u~1111~D~3~t2u~33333~E~-1~t3u~3333~F~-2~t4u~4444~G~-3~t5u` `entityUpd~test~1|1~6666~A~hu~8888~B~1~t0u~9999~C~2~t1u~1111~D~3~t2u~33333~E~-1~t3u~3333~F~-2~t4u~4444~G~-3~t5u`
### cardPower Page ### cardChart Page
`entityUpd~heading~navigation~color~yAxisLabel~yAxisTick:[yAxisTick]*[~value[:xAxisLabel]?]* `entityUpd~heading~navigation~color~yAxisLabel~yAxisTick:[yAxisTick]*[~value[:xAxisLabel]?]*`
`entityUpd~Chart Demo~1|1~6666~Gas [kWh]~20:40:60:80:100~10~7^2:00~7~6^4:00~6~7^6:00~0~7^8:00~5~1^10:00~1~10^12:00~5~6^14:00~8` `entityUpd~Chart Demo~1|1~6666~Gas [kWh]~20:40:60:80:100~10~7^2:00~7~6^4:00~6~7^6:00~0~7^8:00~5~1^10:00~1~10^12:00~5~6^14:00~8`

View File

@@ -49,6 +49,195 @@
│ { │ {
│ tSend.txt+="bPrev" │ tSend.txt+="bPrev"
│ } │ }
├── cardMedia.txt
│ @@ -15,15 +15,14 @@
│ dim=dimValueNormal
│ vis p0,0
│ vis tSend,0
│ vis tInstruction,0
│ vis tTmp,0
│ vis tId,0
│ vis t5,0
│ - vis tShuffle,0
│ vis bPrev,0
│ vis bNext,0
│ cardMedia.bco=defaultBcoColor
│ for(sys0=0;sys0<34;sys0++)
│ {
│ if(b[sys0].type==98||b[sys0].type==116)
│ {
│ @@ -46,32 +45,20 @@
│ Variable (string) strCommand
│ Attributes
│ Scope : local
│ Text :
│ Max. Text Size: 750
│ -Variable (string) tId
│ - Attributes
│ - Scope : local
│ - Text :
│ - Max. Text Size: 20
│ -
│ Variable (string) tSend
│ Attributes
│ Scope : local
│ Text :
│ Max. Text Size: 200
│ -Variable (string) tTmp
│ - Attributes
│ - Scope : local
│ - Text :
│ - Max. Text Size: 10
│ -
│ Variable (string) vaMenu
│ Attributes
│ Scope : local
│ Text :
│ Max. Text Size: 50
│ Variable (string) vaSpeakerList
│ @@ -308,14 +295,24 @@
│ //send cmd
│ printh 55 bb
│ prints sys0,2
│ prints tSend.txt,0
│ prints crcval,2
│ }
│ +Text tId
│ + Attributes
│ + Scope : local
│ + Dragging : 0
│ + Disable release event after dragging: 0
│ + Send Component ID : disabled
│ + Associated Keyboard : none
│ + Text :
│ + Max. Text Size : 20
│ +
│ Text tInstruction
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ Associated Keyboard : none
│ @@ -347,81 +344,62 @@
│ crcputs tSend.txt,0
│ //send cmd
│ printh 55 bb
│ prints sys0,2
│ prints tSend.txt,0
│ prints crcval,2
│ -Text tShuffle
│ +Text tSpeaker
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ Associated Keyboard : none
│ - Text : x
│ - Max. Text Size : 10
│ + Text :
│ + Max. Text Size : 50
│ Events
│ Touch Press Event
│ // event,buttonPress2,entn,media-next
│ //craft command
│ tSend.txt="event,buttonPress2,"
│ tSend.txt+=entn.txt+","
│ - tSend.txt+="media-shuffle"
│ + tSend.txt+="speaker-sel,"+tSpeaker.txt
│ //send calc crc
│ btlen tSend.txt,sys0
│ crcrest 1,0xffff // reset CRC
│ crcputh 55 bb
│ crcputs sys0,2
│ crcputs tSend.txt,0
│ //send cmd
│ printh 55 bb
│ prints sys0,2
│ prints tSend.txt,0
│ prints crcval,2
│ -Text tSpeaker
│ +Text tTitle
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ Associated Keyboard : none
│ Text :
│ Max. Text Size : 50
│ - Events
│ - Touch Press Event
│ - // event,buttonPress2,entn,media-next
│ - //craft command
│ - tSend.txt="event,buttonPress2,"
│ - tSend.txt+=entn.txt+","
│ - tSend.txt+="speaker-sel,"+tSpeaker.txt
│ - //send calc crc
│ - btlen tSend.txt,sys0
│ - crcrest 1,0xffff // reset CRC
│ - crcputh 55 bb
│ - crcputs sys0,2
│ - crcputs tSend.txt,0
│ - //send cmd
│ - printh 55 bb
│ - prints sys0,2
│ - prints tSend.txt,0
│ - prints crcval,2
│ -
│ -Text tTitle
│ +Text tTmp
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ Associated Keyboard : none
│ Text :
│ - Max. Text Size : 50
│ + Max. Text Size : 10
│ Picture p0
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ @@ -715,24 +693,14 @@
│ }else
│ {
│ vis t5,1
│ covx tTmp.txt,t5.pco,0,0
│ }
│ //tIconBtnEntityName
│ spstr strCommand.txt,vaMenu.txt,"~",15
│ - // shuffel btn
│ - spstr strCommand.txt,tTmp.txt,"~",16
│ - if(tTmp.txt=="disable")
│ - {
│ - vis tShuffle,0
│ - }else
│ - {
│ - vis tShuffle,1
│ - tShuffle.txt=tTmp.txt
│ - }
│ }
│ if(tInstruction.txt=="time")
│ {
│ // get set time to global variable
│ spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
│ }
│ if(tInstruction.txt=="date")
├── pageStartup.txt ├── pageStartup.txt
│ @@ -173,15 +173,15 @@ │ @@ -173,15 +173,15 @@
│ Max. Text Size : 10 │ Max. Text Size : 10

View File

@@ -673,6 +673,195 @@
│ //command format pageType,specialPageName │ //command format pageType,specialPageName
│ //write name of speical page to tId │ //write name of speical page to tId
│ spstr strCommand.txt,tId.txt,"~",1 │ spstr strCommand.txt,tId.txt,"~",1
├── cardMedia.txt
│ @@ -15,15 +15,14 @@
│ dim=dimValueNormal
│ vis p0,0
│ vis tSend,0
│ vis tInstruction,0
│ vis tTmp,0
│ vis tId,0
│ vis t5,0
│ - vis tShuffle,0
│ vis bPrev,0
│ vis bNext,0
│ cardMedia.bco=defaultBcoColor
│ for(sys0=0;sys0<34;sys0++)
│ {
│ if(b[sys0].type==98||b[sys0].type==116)
│ {
│ @@ -46,32 +45,20 @@
│ Variable (string) strCommand
│ Attributes
│ Scope : local
│ Text :
│ Max. Text Size: 750
│ -Variable (string) tId
│ - Attributes
│ - Scope : local
│ - Text :
│ - Max. Text Size: 20
│ -
│ Variable (string) tSend
│ Attributes
│ Scope : local
│ Text :
│ Max. Text Size: 200
│ -Variable (string) tTmp
│ - Attributes
│ - Scope : local
│ - Text :
│ - Max. Text Size: 10
│ -
│ Variable (string) vaMenu
│ Attributes
│ Scope : local
│ Text :
│ Max. Text Size: 50
│ Variable (string) vaSpeakerList
│ @@ -308,14 +295,24 @@
│ //send cmd
│ printh 55 bb
│ prints sys0,2
│ prints tSend.txt,0
│ prints crcval,2
│ }
│ +Text tId
│ + Attributes
│ + Scope : local
│ + Dragging : 0
│ + Disable release event after dragging: 0
│ + Send Component ID : disabled
│ + Associated Keyboard : none
│ + Text :
│ + Max. Text Size : 20
│ +
│ Text tInstruction
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ Associated Keyboard : none
│ @@ -347,81 +344,62 @@
│ crcputs tSend.txt,0
│ //send cmd
│ printh 55 bb
│ prints sys0,2
│ prints tSend.txt,0
│ prints crcval,2
│ -Text tShuffle
│ +Text tSpeaker
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ Associated Keyboard : none
│ - Text : x
│ - Max. Text Size : 10
│ + Text :
│ + Max. Text Size : 50
│ Events
│ Touch Press Event
│ // event,buttonPress2,entn,media-next
│ //craft command
│ tSend.txt="event,buttonPress2,"
│ tSend.txt+=entn.txt+","
│ - tSend.txt+="media-shuffle"
│ + tSend.txt+="speaker-sel,"+tSpeaker.txt
│ //send calc crc
│ btlen tSend.txt,sys0
│ crcrest 1,0xffff // reset CRC
│ crcputh 55 bb
│ crcputs sys0,2
│ crcputs tSend.txt,0
│ //send cmd
│ printh 55 bb
│ prints sys0,2
│ prints tSend.txt,0
│ prints crcval,2
│ -Text tSpeaker
│ +Text tTitle
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ Associated Keyboard : none
│ Text :
│ Max. Text Size : 50
│ - Events
│ - Touch Press Event
│ - // event,buttonPress2,entn,media-next
│ - //craft command
│ - tSend.txt="event,buttonPress2,"
│ - tSend.txt+=entn.txt+","
│ - tSend.txt+="speaker-sel,"+tSpeaker.txt
│ - //send calc crc
│ - btlen tSend.txt,sys0
│ - crcrest 1,0xffff // reset CRC
│ - crcputh 55 bb
│ - crcputs sys0,2
│ - crcputs tSend.txt,0
│ - //send cmd
│ - printh 55 bb
│ - prints sys0,2
│ - prints tSend.txt,0
│ - prints crcval,2
│ -
│ -Text tTitle
│ +Text tTmp
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ Associated Keyboard : none
│ Text :
│ - Max. Text Size : 50
│ + Max. Text Size : 10
│ Picture p0
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ @@ -715,24 +693,14 @@
│ }else
│ {
│ vis t5,1
│ covx tTmp.txt,t5.pco,0,0
│ }
│ //tIconBtnEntityName
│ spstr strCommand.txt,vaMenu.txt,"~",15
│ - // shuffel btn
│ - spstr strCommand.txt,tTmp.txt,"~",16
│ - if(tTmp.txt=="disable")
│ - {
│ - vis tShuffle,0
│ - }else
│ - {
│ - vis tShuffle,1
│ - tShuffle.txt=tTmp.txt
│ - }
│ }
│ if(tInstruction.txt=="time")
│ {
│ // get set time to global variable
│ spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
│ }
│ if(tInstruction.txt=="date")
├── pageStartup.txt ├── pageStartup.txt
│ @@ -118,15 +118,15 @@ │ @@ -118,15 +118,15 @@
│ Text tMsg3 │ Text tMsg3

View File

@@ -1,4 +1,4 @@
+++ /dev/fd/62 2022-11-26 21:54:17.076103274 +0000 +++ /dev/fd/62 2022-11-26 23:19:41.401474138 +0000
+rdChart.txt +rdChart.txt
+16 +175,16 @@ +16 +175,16 @@
+ Send Component ID : disabled + Send Component ID : disabled
@@ -61,6 +61,195 @@
+ Dragging : 0 + Dragging : 0
+ Disable release event after dragging: 0 + Disable release event after dragging: 0
+ Send Component ID : disabled + Send Component ID : disabled
+rdMedia.txt
+5 +15,14 @@
+ dim=dimValueNormal
+ vis p0,0
+ vis tSend,0
+ vis tInstruction,0
+ vis tTmp,0
+ vis tId,0
+ vis t5,0
+ vis tShuffle,0
+ vis bPrev,0
+ vis bNext,0
+ cardMedia.bco=defaultBcoColor
+ for(sys0=0;sys0<34;sys0++)
+ {
+ if(b[sys0].type==98||b[sys0].type==116)
+ {
+2 +45,20 @@
+
+e (string) strCommand
+ributes
+ Scope : local
+ Text :
+ Max. Text Size: 750
+
+e (string) tId
+ributes
+ Scope : local
+ Text :
+ Max. Text Size: 20
+
+e (string) tSend
+ributes
+ Scope : local
+ Text :
+ Max. Text Size: 200
+
+e (string) tTmp
+ributes
+ Scope : local
+ Text :
+ Max. Text Size: 10
+
+e (string) vaMenu
+ributes
+ Scope : local
+ Text :
+ Max. Text Size: 50
+
+e (string) vaSpeakerList
+14 +295,24 @@
+ //send cmd
+ printh 55 bb
+ prints sys0,2
+ prints tSend.txt,0
+ prints crcval,2
+ }
+
+d
+ributes
+ Scope : local
+ Dragging : 0
+ Disable release event after dragging: 0
+ Send Component ID : disabled
+ Associated Keyboard : none
+ Text :
+ Max. Text Size : 20
+
+nstruction
+ributes
+ Scope : local
+ Dragging : 0
+ Disable release event after dragging: 0
+ Send Component ID : disabled
+ Associated Keyboard : none
+81 +344,62 @@
+ crcputs tSend.txt,0
+ //send cmd
+ printh 55 bb
+ prints sys0,2
+ prints tSend.txt,0
+ prints crcval,2
+
+huffle
+peaker
+ributes
+ Scope : local
+ Dragging : 0
+ Disable release event after dragging: 0
+ Send Component ID : disabled
+ Associated Keyboard : none
+ Text : x
+ Max. Text Size : 10
+ Text :
+ Max. Text Size : 50
+
+nts
+ Touch Press Event
+ // event,buttonPress2,entn,media-next
+ //craft command
+ tSend.txt="event,buttonPress2,"
+ tSend.txt+=entn.txt+","
+ tSend.txt+="media-shuffle"
+ tSend.txt+="speaker-sel,"+tSpeaker.txt
+ //send calc crc
+ btlen tSend.txt,sys0
+ crcrest 1,0xffff // reset CRC
+ crcputh 55 bb
+ crcputs sys0,2
+ crcputs tSend.txt,0
+ //send cmd
+ printh 55 bb
+ prints sys0,2
+ prints tSend.txt,0
+ prints crcval,2
+
+peaker
+itle
+ributes
+ Scope : local
+ Dragging : 0
+ Disable release event after dragging: 0
+ Send Component ID : disabled
+ Associated Keyboard : none
+ Text :
+ Max. Text Size : 50
+
+nts
+ Touch Press Event
+ // event,buttonPress2,entn,media-next
+ //craft command
+ tSend.txt="event,buttonPress2,"
+ tSend.txt+=entn.txt+","
+ tSend.txt+="speaker-sel,"+tSpeaker.txt
+ //send calc crc
+ btlen tSend.txt,sys0
+ crcrest 1,0xffff // reset CRC
+ crcputh 55 bb
+ crcputs sys0,2
+ crcputs tSend.txt,0
+ //send cmd
+ printh 55 bb
+ prints sys0,2
+ prints tSend.txt,0
+ prints crcval,2
+
+itle
+mp
+ributes
+ Scope : local
+ Dragging : 0
+ Disable release event after dragging: 0
+ Send Component ID : disabled
+ Associated Keyboard : none
+ Text :
+ Max. Text Size : 50
+ Max. Text Size : 10
+
+ p0
+ributes
+ Scope : local
+ Dragging : 0
+ Disable release event after dragging: 0
+ Send Component ID : disabled
+24 +693,14 @@
+ }else
+ {
+ vis t5,1
+ covx tTmp.txt,t5.pco,0,0
+ }
+ //tIconBtnEntityName
+ spstr strCommand.txt,vaMenu.txt,"~",15
+ // shuffel btn
+ spstr strCommand.txt,tTmp.txt,"~",16
+ if(tTmp.txt=="disable")
+ {
+ vis tShuffle,0
+ }else
+ {
+ vis tShuffle,1
+ tShuffle.txt=tTmp.txt
+ }
+ }
+ if(tInstruction.txt=="time")
+ {
+ // get set time to global variable
+ spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
+ }
+ if(tInstruction.txt=="date")
+pupFan.txt +pupFan.txt
+14 +619,18 @@ +14 +619,18 @@
+ { + {

View File

@@ -27,6 +27,7 @@ Page cardMedia
vis tTmp,0 vis tTmp,0
vis tId,0 vis tId,0
vis t5,0 vis t5,0
vis tShuffle,0
vis bPrev,0 vis bPrev,0
vis bNext,0 vis bNext,0
cardMedia.bco=defaultBcoColor cardMedia.bco=defaultBcoColor
@@ -47,48 +48,62 @@ Page cardMedia
Variable (string) entn Variable (string) entn
Attributes Attributes
ID : 17 ID : 15
Scope : local Scope : local
Text : Text :
Max. Text Size: 80 Max. Text Size: 80
Variable (string) strCommand Variable (string) strCommand
Attributes Attributes
ID : 6 ID : 5
Scope : local Scope : local
Text : Text :
Max. Text Size: 750 Max. Text Size: 750
Variable (string) tSend Variable (string) tId
Attributes Attributes
ID : 33 ID : 33
Scope : local Scope : local
Text : Text :
Max. Text Size: 20
Variable (string) tSend
Attributes
ID : 31
Scope : local
Text :
Max. Text Size: 200 Max. Text Size: 200
Variable (string) tTmp
Attributes
ID : 34
Scope : local
Text :
Max. Text Size: 10
Variable (string) vaMenu Variable (string) vaMenu
Attributes Attributes
ID : 32 ID : 30
Scope : local Scope : local
Text : Text :
Max. Text Size: 50 Max. Text Size: 50
Variable (string) vaSpeakerList Variable (string) vaSpeakerList
Attributes Attributes
ID : 26 ID : 24
Scope : local Scope : local
Text : Text :
Max. Text Size: 400 Max. Text Size: 400
Variable (int32) vaSpeakerPos Variable (int32) vaSpeakerPos
Attributes Attributes
ID : 27 ID : 25
Scope: local Scope: local
Value: 0 Value: 0
Text t0 Text t0
Attributes Attributes
ID : 14 ID : 12
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -137,7 +152,7 @@ Text t0
Text t1 Text t1
Attributes Attributes
ID : 21 ID : 19
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -187,13 +202,13 @@ Text t1
Text t2 Text t2
Attributes Attributes
ID : 12 ID : 10
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 302 x coordinate : 306
y coordinate : 145 y coordinate : 145
Width : 50 Width : 50
Height : 50 Height : 50
@@ -236,7 +251,7 @@ Text t2
Text t3 Text t3
Attributes Attributes
ID : 22 ID : 20
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -286,7 +301,7 @@ Text t3
Text t4 Text t4
Attributes Attributes
ID : 23 ID : 21
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -316,7 +331,7 @@ Text t4
Text t5 Text t5
Attributes Attributes
ID : 28 ID : 26
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -365,7 +380,7 @@ Text t5
Text t6 Text t6
Attributes Attributes
ID : 25 ID : 23
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -407,7 +422,7 @@ Text t6
Text tAuthor Text tAuthor
Attributes Attributes
ID : 11 ID : 9
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -437,7 +452,7 @@ Text tAuthor
Text tHeading Text tHeading
Attributes Attributes
ID : 9 ID : 7
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -467,7 +482,7 @@ Text tHeading
Text tIcon Text tIcon
Attributes Attributes
ID : 16 ID : 14
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -513,39 +528,9 @@ Text tIcon
prints crcval,2 prints crcval,2
} }
Text tId
Attributes
ID : 8
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 49
y coordinate : 159
Width : 30
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 20
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tInstruction Text tInstruction
Attributes Attributes
ID : 7 ID : 6
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -575,13 +560,13 @@ Text tInstruction
Text tPlayPause Text tPlayPause
Attributes Attributes
ID : 13 ID : 11
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 199 x coordinate : 202
y coordinate : 145 y coordinate : 145
Width : 50 Width : 50
Height : 50 Height : 50
@@ -622,9 +607,58 @@ Text tPlayPause
prints tSend.txt,0 prints tSend.txt,0
prints crcval,2 prints crcval,2
Text tShuffle
Attributes
ID : 32
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 11
y coordinate : 145
Width : 50
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 3
Back. Color : 6371
Font Color : 50712
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text : x
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
// event,buttonPress2,entn,media-next
//craft command
tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+","
tSend.txt+="media-shuffle"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Text tSpeaker Text tSpeaker
Attributes Attributes
ID : 24 ID : 22
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -673,7 +707,7 @@ Text tSpeaker
Text tTitle Text tTitle
Attributes Attributes
ID : 10 ID : 8
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -701,36 +735,6 @@ Text tTitle
Horizontal Spacing : 0 Horizontal Spacing : 0
Vertical Spacing : 0 Vertical Spacing : 0
Text tTmp
Attributes
ID : 2
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 14
y coordinate : 156
Width : 27
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Picture p0 Picture p0
Attributes Attributes
ID : 1 ID : 1
@@ -750,7 +754,7 @@ Picture p0
Slider hVolume Slider hVolume
Attributes Attributes
ID : 15 ID : 13
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -796,7 +800,7 @@ Slider hVolume
Button bNext Button bNext
Attributes Attributes
ID : 3 ID : 2
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -850,7 +854,7 @@ Button bNext
Button bPrev Button bPrev
Attributes Attributes
ID : 4 ID : 3
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -904,7 +908,7 @@ Button bPrev
Hotspot mSwipeNext Hotspot mSwipeNext
Attributes Attributes
ID : 29 ID : 27
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -924,7 +928,7 @@ Hotspot mSwipeNext
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
ID : 31 ID : 29
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -944,7 +948,7 @@ Hotspot mSwipePrev
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
ID : 30 ID : 28
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -964,7 +968,7 @@ Hotspot mSwipeUp
Timer tmCooldown Timer tmCooldown
Attributes Attributes
ID : 20 ID : 18
Scope : local Scope : local
Period (ms): 100 Period (ms): 100
Enabled : no Enabled : no
@@ -975,7 +979,7 @@ Timer tmCooldown
Timer tmSerial Timer tmSerial
Attributes Attributes
ID : 5 ID : 4
Scope : local Scope : local
Period (ms): 50 Period (ms): 50
Enabled : yes Enabled : yes
@@ -1129,6 +1133,16 @@ Timer tmSerial
} }
//tIconBtnEntityName //tIconBtnEntityName
spstr strCommand.txt,vaMenu.txt,"~",15 spstr strCommand.txt,vaMenu.txt,"~",15
// shuffel btn
spstr strCommand.txt,tTmp.txt,"~",16
if(tTmp.txt=="disable")
{
vis tShuffle,0
}else
{
vis tShuffle,1
tShuffle.txt=tTmp.txt
}
} }
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
@@ -1260,7 +1274,7 @@ Timer tmSerial
Timer tmSleep Timer tmSleep
Attributes Attributes
ID : 18 ID : 16
Scope : local Scope : local
Period (ms): 1000 Period (ms): 1000
Enabled : yes Enabled : yes
@@ -1291,7 +1305,7 @@ Timer tmSleep
TouchCap tc0 TouchCap tc0
Attributes Attributes
ID : 19 ID : 17
Scope: local Scope: local
Value: 0 Value: 0

View File

@@ -55,9 +55,9 @@ cardAlarm
443 Line(s) of event code 443 Line(s) of event code
263 Unique line(s) of event code 263 Unique line(s) of event code
cardMedia cardMedia
34 Component(s) 35 Component(s)
425 Line(s) of event code 447 Line(s) of event code
224 Unique line(s) of event code 230 Unique line(s) of event code
popupThermo popupThermo
44 Component(s) 44 Component(s)
515 Line(s) of event code 515 Line(s) of event code
@@ -77,6 +77,6 @@ screensaver
Total Total
18 Page(s) 18 Page(s)
609 Component(s) 610 Component(s)
7561 Line(s) of event code 7583 Line(s) of event code
1954 Unique line(s) of event code 1959 Unique line(s) of event code

View File

@@ -19,6 +19,7 @@ Page cardMedia
vis tTmp,0 vis tTmp,0
vis tId,0 vis tId,0
vis t5,0 vis t5,0
vis tShuffle,0
vis bPrev,0 vis bPrev,0
vis bNext,0 vis bNext,0
cardMedia.bco=defaultBcoColor cardMedia.bco=defaultBcoColor
@@ -49,12 +50,24 @@ Variable (string) strCommand
Text : Text :
Max. Text Size: 750 Max. Text Size: 750
Variable (string) tId
Attributes
Scope : local
Text :
Max. Text Size: 20
Variable (string) tSend Variable (string) tSend
Attributes Attributes
Scope : local Scope : local
Text : Text :
Max. Text Size: 200 Max. Text Size: 200
Variable (string) tTmp
Attributes
Scope : local
Text :
Max. Text Size: 10
Variable (string) vaMenu Variable (string) vaMenu
Attributes Attributes
Scope : local Scope : local
@@ -299,16 +312,6 @@ Text tIcon
prints crcval,2 prints crcval,2
} }
Text tId
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 20
Text tInstruction Text tInstruction
Attributes Attributes
Scope : local Scope : local
@@ -348,6 +351,35 @@ Text tPlayPause
prints tSend.txt,0 prints tSend.txt,0
prints crcval,2 prints crcval,2
Text tShuffle
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text : x
Max. Text Size : 10
Events
Touch Press Event
// event,buttonPress2,entn,media-next
//craft command
tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+","
tSend.txt+="media-shuffle"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Text tSpeaker Text tSpeaker
Attributes Attributes
Scope : local Scope : local
@@ -387,16 +419,6 @@ Text tTitle
Text : Text :
Max. Text Size : 50 Max. Text Size : 50
Text tTmp
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Picture p0 Picture p0
Attributes Attributes
Scope : local Scope : local
@@ -697,6 +719,16 @@ Timer tmSerial
} }
//tIconBtnEntityName //tIconBtnEntityName
spstr strCommand.txt,vaMenu.txt,"~",15 spstr strCommand.txt,vaMenu.txt,"~",15
// shuffel btn
spstr strCommand.txt,tTmp.txt,"~",16
if(tTmp.txt=="disable")
{
vis tShuffle,0
}else
{
vis tShuffle,1
tShuffle.txt=tTmp.txt
}
} }
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {

View File

@@ -4,7 +4,6 @@ If you like this project consider buying me a pizza 🍕 <a href="https://paypal
[![hacs_badge](https://img.shields.io/badge/HACS-Default-41BDF5.svg)](https://github.com/hacs/integration) [![hacs_badge](https://img.shields.io/badge/HACS-Default-41BDF5.svg)](https://github.com/hacs/integration)
![hacs validation](https://github.com/joBr99/nspanel-lovelace-ui/actions/workflows/hacs-validation.yaml/badge.svg) ![hacs validation](https://github.com/joBr99/nspanel-lovelace-ui/actions/workflows/hacs-validation.yaml/badge.svg)
[![Man Hours](https://img.shields.io/endpoint?url=https%3A%2F%2Fmh.jessemillar.com%2Fhours%3Frepo%3Dhttps%3A%2F%2Fgithub.com%2FjoBr99%2Fnspanel-lovelace-ui.git)](https://jessemillar.com/r/man-hours)
NsPanel Lovelace UI is a Firmware for the nextion screen inside of NSPanel in the Design of [HomeAssistant](https://www.home-assistant.io/)'s Lovelace UI Design. NsPanel Lovelace UI is a Firmware for the nextion screen inside of NSPanel in the Design of [HomeAssistant](https://www.home-assistant.io/)'s Lovelace UI Design.