here is the whole code changed te icon but still not visible…
uid: Cell_system_Card_1
tags: []
props:
parameters:
- default: Raspberry Pi OH
description: Title
label: Title
name: SystemOHTitle
required: false
type: TEXT
groupName: header
- default: iconify:mdi:raspberry-pi
description: System Icon - Use f7:iconName (Framework7 icon), material:iconName
(Material icon) or iconify:iconSet:iconName
label: Icon
name: SystemOHIcon
required: false
type: TEXT
groupName: header
- context: item
description: Cpu Load % item
label: Item
name: CPULoadItem
required: false
type: TEXT
groupName: header
- default: Uptime
description: Uptime Title
label: Title
name: UptimeTitle
required: false
type: TEXT
groupName: header
- context: item
description: System Uptime item
label: Item
name: SystemUptimeItem
required: false
type: TEXT
groupName: header
- default: Cpu
description: Cpu title
label: Title
name: SystemOHCpuTitle
required: false
type: TEXT
groupName: cpu
- default: iconify:whh:cpu
description: Cpu Icon - Use f7:iconName (Framework7 icon), material:iconName
(Material icon) or iconify:iconSet:iconName
label: Icon
name: SystemOHCpuIcon
required: false
type: TEXT
groupName: cpu
- context: item
description: CPU Temperature item
label: Item
name: CPUTemperatureItem
required: false
type: TEXT
groupName: cpu
- context: item
description: Cpu Load1 item
label: Item
name: CPULoad1Item
required: false
type: TEXT
groupName: cpu
- context: item
description: Cpu Load 5 item
label: Item
name: CPULoad5Item
required: false
type: TEXT
groupName: cpu
- context: item
description: Cpu Load 15 item
label: Item
name: CPULoad15Item
required: false
type: TEXT
groupName: cpu
- default: Memory
description: Memory title
label: Title
name: SystemOHMemoryTitle
required: false
type: TEXT
groupName: memory
- default: iconify:fa-solid:memory
description: Memory Icon - Use f7:iconName (Framework7 icon), material:iconName
(Material icon) or iconify:iconSet:iconName
label: Icon
name: SystemOHMemoryIcon
required: false
type: TEXT
groupName: memory
- context: item
description: Memory Total item
label: Item
name: MemoryTotalItem
required: false
type: TEXT
groupName: memory
- context: item
description: Memory Used item
label: Item
name: MemoryUsedItem
required: false
type: TEXT
groupName: memory
- context: item
description: Memory Used Percent item
label: Item
name: MemoryUsedPercentItem
required: false
type: TEXT
groupName: memory
- context: item
description: Memory Available item
label: Item
name: MemoryAvailableItem
required: false
type: TEXT
groupName: memory
- context: item
description: Memory Available Percent item
label: Item
name: MemoryAvailablePercentItem
required: false
type: TEXT
groupName: memory
- default: Storage
description: Storage title
label: Title
name: SystemOHStorageTitle
required: false
type: TEXT
groupName: storage
- default: iconify:bi:device-ssd-fill
description: Storage Icon - Use f7:iconName (Framework7 icon), material:iconName
(Material icon) or iconify:iconSet:iconName
label: Icon
name: SystemOHStorageIcon
required: false
type: TEXT
groupName: storage
- context: item
description: Storage Total item
label: Item
name: StorageTotalItem
required: false
type: TEXT
groupName: storage
- context: item
description: Storage Used item
label: Item
name: StorageUsedItem
required: false
type: TEXT
groupName: storage
- context: item
description: Storage Used Percent item
label: Item
name: StorageUsedPercentItem
required: false
type: TEXT
groupName: storage
- context: item
description: Storage Available item
label: Item
name: StorageAvailableItem
required: false
type: TEXT
groupName: storage
- context: item
description: Storage Available Percent item
label: Item
name: StorageAvailablePercentItem
required: false
type: TEXT
groupName: storage
- default: Swap
description: Swap title
label: Title
name: SystemOHSwapTitle
required: false
type: TEXT
groupName: swap
- default: iconify:ic:outline-swap-calls
description: Swap Icon - Use f7:iconName (Framework7 icon), material:iconName
(Material icon) or iconify:iconSet:iconName
label: Icon
name: SystemOHSwapIcon
required: false
type: TEXT
groupName: swap
- context: item
description: Swap Total item
label: Item
name: SwapTotalItem
required: false
type: TEXT
groupName: swap
- context: item
description: Swap Used item
label: Item
name: SwapUsedItem
required: false
type: TEXT
groupName: swap
- context: item
description: Swap Used Percent item
label: Item
name: SwapUsedPercentItem
required: false
type: TEXT
groupName: swap
- context: item
description: Swap Available item
label: Item
name: SwapAvailableItem
required: false
type: TEXT
groupName: swap
- context: item
description: Swap Available Percent item
label: Item
name: SwapAvailablePercentItem
required: false
type: TEXT
groupName: swap
- default: Network
description: Network title
label: Title
name: SystemOHNetworkTitle
required: false
type: TEXT
groupName: network
- default: iconify:bi:ethernet
description: Network Icon - Use f7:iconName (Framework7 icon), material:iconName
(Material icon) or iconify:iconSet:iconName
label: Icon
name: SystemOHNetworkIcon
required: false
type: TEXT
groupName: network
- context: item
description: Network Data Received item
label: Item
name: NetworkDataReceivedItem
required: false
type: TEXT
groupName: network
- context: item
description: Network Data Sent item
label: Item
name: NetworkDataSentItem
required: false
type: TEXT
groupName: network
- default: iconify:mdi:high-voltage-outline
description: Voltage Icon - Use f7:iconName (Framework7 icon), material:iconName
(Material icon) or iconify:iconSet:iconName
label: Icon
name: SystemOHVoltageIcon
required: false
type: TEXT
groupName: network
- default: Voltage
description: Voltage item
label: Item
name: SystemOHVoltageTitle
required: false
type: TEXT
groupName: network
- context: item
description: Voltage item
label: Item
name: SystemOHVoltageItem
required: false
type: TEXT
groupName: network
- default: Reboot
description: Reboot command Title
label: Title
name: RebootCommandTitle
required: false
type: TEXT
groupName: command
- context: item
description: Reboot command switch item
label: Item
name: ExecRebootCommandItem
required: false
type: TEXT
groupName: command
- default: Power off
description: Power off command Title
label: Title
name: PowerOffCommandTitle
required: false
type: TEXT
groupName: command
- context: item
description: Power off command switch item
label: Item
name: ExecPoweroffCommandItem
required: false
type: TEXT
groupName: command
parameterGroups:
- name: header
label: Header
- name: gauge
label: Gauges CPU, Memory & Storage
- name: cpu
label: Cpu
- name: memory
label: Memory
- name: storage
label: Storage
- name: swap
label: Swap
- name: network
label: Network
- name: command
label: Commands
timestamp: Nov 5, 2024, 10:09:58 PM
component: oh-context
config:
constants:
widgetID: =Number.parseInt(Math.random()*8912).toString(16).padStart(4, '0')
slots:
default:
- component: f7-card
config:
style:
background-color: "=props.bgcolor ? props.bgcolor : ''"
border-radius: var(--f7-card-expandable-border-radius)
box-shadow: 5px 5px 10px 1px rgba(0,0,0,0.1)
height: 150px
margin-left: 5px
margin-right: 5px
noShadow: false
padding: 0px
slots:
content:
- component: oh-context
- component: f7-block
config:
style:
display: flex
flex-direction: row
left: 16px
position: absolute
top: -5px
slots:
default:
- component: f7-icon
config:
icon: =props.icon
size: 18
style:
margin-right: 10px
visible: "=props.icon ? true : false"
- component: Label
config:
style:
font-size: 12px
margin-top: 0px
text: "=props.title ? props.title : ''"
- component: f7-block
config:
style:
bottom: -15px
flex-direction: row
left: 16px
position: absolute
slots:
default:
- component: Label
config:
style:
font-size: 17px
font-weight: 600
margin-left: 0px
margin-top: 0px
text: "=props.header ? props.header : 'Set Props'"
- component: f7-button
config:
popupOpen: =`.popup-${const.widgetID}`
style:
bottom: -115px
left: calc(100% - 8em)
position: absolute
text: Einstellungen
- component: f7-popup
config:
class: =`popup-${const.widgetID}`
slots:
default:
- component: f7-page
config: {}
slots:
default:
- component: oh-list
config:
mediaList: true
slots:
default:
- component: oh-list-item
config:
after: =@props.CPULoadItem
icon: =props.SystemOHIcon
style:
--f7-list-item-after-font-size: 16px
--f7-list-item-after-text-color: "=themeOptions.dark === 'dark' ?
'rgb(180,180,180)' : 'rgb(80,80,80)'"
subtitle: '="Uptime: " + items[props.SystemUptimeItem].displayState'
title: =props.SystemOHTitle
- component: f7-block
config:
visible: true
style:
margin: 0px
padding: 10px
slots:
default:
- component: f7-row
config:
style:
text-align: center
slots:
default:
- component: f7-col
config:
with: 33%
slots:
default:
- component: oh-gauge
config:
borderBgColor: gray
borderColor: "=(Number.parseFloat(items[props.CPULoadItem].state) >= '75') ?
'#ff3b30' :
(Number.parseFloat(items[pr\
ops.CPULoadItem].state) >=
'50') ? '#ff6b22' :
(Number.parseFloat(items[pr\
ops.CPULoadItem].state) >=
'25') ? '#ffcc00' :
(Number.parseFloat(items[pr\
ops.CPULoadItem].state) >=
'0') ? '#4cd964' : 'gray'"
borderWidth: 10
item: =props.CPULoadItem
labelFontSize: 16
labelText: =props.SystemOHCpuTitle
type: circle
valueFontSize: 20
valueFontWeight: bold
valueText: =@props.CPULoadItem
size: 100
- component: f7-col
config:
with: 33%
slots:
default:
- component: oh-gauge
config:
borderBgColor: gray
borderColor: "#9c27b0"
borderWidth: 10
item: =props.MemoryUsedPercentItem
labelFontSize: 16
labelText: =props.SystemOHMemoryTitle
type: circle
valueFontSize: 20
valueFontWeight: bold
valueText: =@props.MemoryUsedPercentItem
size: 100
- component: f7-col
config:
with: 33%
slots:
default:
- component: oh-gauge
config:
borderBgColor: gray
borderColor: "#5ac8fa"
borderWidth: 10
item: =props.StorageUsedPercentItem
labelFontSize: 16
labelText: =props.SystemOHStorageTitle
type: circle
valueFontSize: 20
valueFontWeight: bold
valueText: =@props.StorageUsedPercentItem
size: 100
- component: oh-list-item
config:
action: analyzer
actionAnalyzerCoordSystem: time
actionAnalyzerItems: =[props.CPULoad1Item, props.CPULoad5Item,
props.CPULoad15Item, props.CPUTemperatureItem]
after: =items[props.CPUTemperatureItem].displayState
icon: =props.SystemOHCpuIcon
iconColor: gray
style:
--f7-list-item-after-font-size: 15px
--f7-list-item-after-text-color: "=themeOptions.dark === 'dark' ?
'rgb(180,180,180)' : 'rgb(100,100,100)'"
--f7-list-item-subtitle-font-size: 14px
--f7-list-item-subtitle-text-color: "=themeOptions.dark === 'dark' ?
'rgb(180,180,180)' : 'rgb(100,100,100)'"
--f7-list-item-title-font-size: 15px
--f7-list-item-title-text-color: "=themeOptions.dark === 'dark' ?
'rgb(180,180,180)' : 'rgb(100,100,100)'"
subtitle: =items[props.CPULoad1Item].state + " - " +
items[props.CPULoad5Item].state + " - " +
items[props.CPULoad15Item].state
title: =props.SystemOHCpuTitle
visible: true
- component: oh-list-item
config:
after: =items[props.MemoryTotalItem].displayState
icon: =props.SystemOHMemoryIcon
iconColor: gray
style:
--f7-list-item-after-font-size: 15px
--f7-list-item-after-text-color: "=themeOptions.dark === 'dark' ?
'rgb(180,180,180)' : 'rgb(100,100,100)'"
--f7-list-item-subtitle-font-size: 14px
--f7-list-item-subtitle-text-color: "=themeOptions.dark === 'dark' ?
'rgb(180,180,180)' : 'rgb(100,100,100)'"
--f7-list-item-title-font-size: 15px
--f7-list-item-title-text-color: "=themeOptions.dark === 'dark' ?
'rgb(180,180,180)' : 'rgb(100,100,100)'"
subtitle: =items[props.MemoryUsedItem].displayState + " ("
+ items[props.MemoryUsedPercentItem].displayState
+ ") - " +
items[props.MemoryAvailableItem].displayState
+ " ("
+ items[props.MemoryAvailablePercentItem].displayState
+ ")"
title: =props.SystemOHMemoryTitle
visible: =!props.HideMemory
- component: oh-list-item
config:
after: =items[props.StorageTotalItem].displayState
icon: =props.SystemOHStorageIcon
iconColor: gray
style:
--f7-list-item-after-font-size: 15px
--f7-list-item-after-text-color: "=themeOptions.dark === 'dark' ?
'rgb(180,180,180)' : 'rgb(100,100,100)'"
--f7-list-item-subtitle-font-size: 14px
--f7-list-item-subtitle-text-color: "=themeOptions.dark === 'dark' ?
'rgb(180,180,180)' : 'rgb(100,100,100)'"
--f7-list-item-title-font-size: 15px
--f7-list-item-title-text-color: "=themeOptions.dark === 'dark' ?
'rgb(180,180,180)' : 'rgb(100,100,100)'"
subtitle: =items[props.StorageUsedItem].displayState + " ("
+ items[props.StorageUsedPercentItem].displayState
+ ") - " +
items[props.StorageAvailableItem].displayState
+ " ("
+ items[props.StorageAvailablePercentItem].displayState
+ ")"
title: =props.SystemOHStorageTitle
visible: =!props.HideStorage
- component: oh-list-item
config:
after: =items[props.SwapTotalItem].displayState
icon: =props.SystemOHSwapIcon
iconColor: gray
style:
--f7-list-item-after-font-size: 15px
--f7-list-item-after-text-color: "=themeOptions.dark === 'dark' ?
'rgb(180,180,180)' : 'rgb(100,100,100)'"
--f7-list-item-subtitle-font-size: 14px
--f7-list-item-subtitle-text-color: "=themeOptions.dark === 'dark' ?
'rgb(180,180,180)' : 'rgb(100,100,100)'"
--f7-list-item-title-font-size: 15px
--f7-list-item-title-text-color: "=themeOptions.dark === 'dark' ?
'rgb(180,180,180)' : 'rgb(100,100,100)'"
subtitle: =items[props.SwapUsedItem].displayState + " ("
+ items[props.SwapUsedPercentItem].displayState
+ ") - " +
items[props.SwapAvailableItem].displayState +
" ("
+ items[props.SwapAvailablePercentItem].displayState
+ ")"
title: =props.SystemOHSwapTitle
visible: =!props.HideSwap
- component: oh-list-item
config:
icon: =props.SystemOHNetworkIcon
iconColor: gray
style:
--f7-list-item-after-font-size: 15px
--f7-list-item-after-text-color: "=themeOptions.dark === 'dark' ?
'rgb(180,180,180)' : 'rgb(100,100,100)'"
--f7-list-item-subtitle-font-size: 14px
--f7-list-item-subtitle-text-color: "=themeOptions.dark === 'dark' ?
'rgb(180,180,180)' : 'rgb(100,100,100)'"
--f7-list-item-title-font-size: 15px
--f7-list-item-title-text-color: "=themeOptions.dark === 'dark' ?
'rgb(180,180,180)' : 'rgb(100,100,100)'"
subtitle: ="▼" + items[props.NetworkDataReceivedItem].displayState + " ▲" +
items[props.NetworkDataSentItem].displayState
title: =props.SystemOHNetworkTitle
visible: true
- component: oh-list-item
config:
icon: =props.SystemOHVoltageIcon
iconColor: gray
style:
--f7-list-item-after-font-size: 15px
--f7-list-item-after-text-color: "=themeOptions.dark === 'dark' ?
'rgb(180,180,180)' : 'rgb(100,100,100)'"
--f7-list-item-subtitle-font-size: 14px
--f7-list-item-subtitle-text-color: "=themeOptions.dark === 'dark' ?
'rgb(180,180,180)' : 'rgb(100,100,100)'"
--f7-list-item-title-font-size: 15px
--f7-list-item-title-text-color: "=themeOptions.dark === 'dark' ?
'rgb(180,180,180)' : 'rgb(100,100,100)'"
title: =props.SystemOHVoltageTitle
item: =props.SystemOHVoltageItem
visible: true
- component: f7-button
config:
popupClose: true
text: Schließen
- component: oh-toggle
config:
item: =props.SwitchGroupItem
style:
position: absolute
right: 20px
top: 15px
visible: "=props.SwitchGroupItem ? true : false"