Feature request: Please bring back drive temps to dashboard´s SMART widget and keep optional drive temp widget.

  • Dear developers


    Please read here #23,#24:



    Best regards

    prtigger

  • prtigger1 I discovered the dashboard widgets are easy to modify so I hacked the "smart_status.yaml" file to bring back the disk temps.


    Just ssh to your omv and...

    Code
     sudo nano/usr/share/openmediavault/workbench/dashboard.d/smart_status.yaml

    then look for the line...

    Code
    content: '{{ canonicaldevicefile }}'

    and change it to...

    Code
    content: '{{ canonicaldevicefile }}<br>{{ temperature | notavailable }}{% if temperature %}°C{% endif %}'

    Then update using

    Code
    sudo omv-mkworkbench all

    It should just come back with a command prompt when finished. If you mess up you will get a bunch of errors so you will need to fix the error in your file.


    Then Ctl+Shift+R to refresh the browser and it should look like this.



    You may just want to make a new file with a different file name in case you want to go back to just Status without disk temps. I had to change the id number of my new file so I wasn't identical to the other one.

    • Offizieller Beitrag

    If you are going to make that file, change the filename, id and title in the data section. Generate a new id with the uuid command from the command line.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • vcruser

    Hi vcruser

    Thank you for your 'manual' for changing the code...

    It's not my intention to 'hack' omv to create my own version. I use it like it is.

    If i find something useful, i try to discuss about. I'm not a software developer anymore, it's to long ago and i'm not familiar with this stuff here...

    I found the old version of the Smart widget really useful, but don't know what's going on (overhead traffic) behind.

    Now i guess, the people here like it, how it is now...


    Best regards

    and thanks for comment

    prtigger

    • Offizieller Beitrag

    It's not my intention to 'hack' omv to create my own version

    This really isn't a hack. You are creating another widget just like I would for a plugin. If you don't want to, that is fine but there is little risk for this situation. If it stops working, delete the file.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Yes, "hack" was probably a poor choice of words on my part. Also, OMV users are not discouraged from creating their own widgets. Searching the forum you will find some instruction for creating widgets as well as in the OMV documentation. OMV 6.x documentation - dashboard.d


    This is the widget code for "smart_info.yaml". I attached the file if interested.

  • Hi folks

    Yes, hack may be a wrong hard word for modifying the original sources. I'm new with OMV and like it very much.

    Generating a new personal widget is an option and i have to check the manual or wiki to understand the uuid stuff...


    Thanks for your work and informations

    prtigger

  • How about adding a system wide option to display any temperatures in either Centigrade or Fahrenheit?

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

    • Offizieller Beitrag

    How about adding a system wide option to display any temperatures in either Centigrade or Fahrenheit?

    Believe it or not, even being in the US, I would have to translate Fahrenheit to Celsius for any computer temps. I didn't even know the sensors command had a fahrenheit flag (-f) until I just looked right now.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    im on OMV 6 and this used to show. Its now gone on mine.

    It was changed in OMV 6 and 7. Creating the file from post 8 would bring it back.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • It was changed in OMV 6 and 7. Creating the file from post 8 would bring it back.

    I have the box still just says "No monitored devices"

    Plugins - compose, cputemp, omv-extras, sharerootfs.

    Drives - 1tb nvme Data, 2TB nvme Leeching, 24TB (8tbx 3 merg) Media,

    Docker - nginx-proxy-manager, plex, prowlarr, qbittorrentvpn, radarr, sonarr, watchtower.

    • Offizieller Beitrag

    I have the box still just says "No monitored devices"

  • Hi folks

    with your great help, i could change some widgets to the settings i prefer (as new renamed widgets).

    Only thing i need to know now:

    How can i do the translation for the text changes (in the widget still English) to my language German.


    Best regards

    prtigger

    • Offizieller Beitrag

    How can i do the translation for the text changes (in the widget still English) to my language German.

    That would require creating the locale files. Since you created the files, why not just change the text to German?

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • That would require creating the locale files. Since you created the files, why not just change the text to German?

    Do i understand it correct, if i want to integrate translations for newly generated widgets, i have to modify parts of OMV

    that may be overwritten by new OMV-updates with changes in this part?

    I don´t know how OMV is handling the language selection...


    I confirm, the easiest way is changing the language in the personal widgets ...


    Best regards

    prtigger

    • Offizieller Beitrag

    Do i understand it correct, if i want to integrate translations for newly generated widgets, i have to modify parts of OMV

    that may be overwritten by new OMV-updates with changes in this part?

    I don´t know how OMV is handling the language selection...

    OMV looks at its own locale files to see if there is a translation for each string first. If it does not find it, then it will look at the plugin's locale files.


    Since you are not creating a plugin, plugin locale files do not exist. So, your widgets are looking at the OMV locale files which most likely do not contain the string to translate. You would have to edit OMV locale files which will be overwritten with an OMV update.

    I confirm, the easiest way is changing the language in the personal widgets ...

    This is what I recommend doing.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!