cant get the CPU-Temp to show up in Dashboard

  • hi i cant seem to get the cpu-temp to show up in the dashboard.. i ran


    ```

    sudo nano /usr/sbin/cpu-temp

    ```

    added to the file

    ```

    sensors cpu_thermal-virtual-0 | grep '1:' | head -n4 | cut -c 16-23

    ```

    i ran

    ```

    sudo omv-env set "OMV_CPU_TEMP_COMMAND" "/usr/sbin/cpu-temp"

    sudo omv-env set "OMV_CPU_TEMP_DIVISOR" "10"

    sudo omv-salt stage run prepare

    sudo omv-mkworkbench all

    sudo monit restart omv-engined

    ```

    the prepare log is

    ```

    mike@raspmedia:~ $ sudo omv-mkworkbench all

    mike@raspmedia:~ $ sudo monit restart omv-engined

    mike@raspmedia:~ $ sudo omv-env set "OMV_CPU_TEMP_COMMAND" "/usr/sbin/cpu-temp"

    mike@raspmedia:~ $ sudo omv-env set "OMV_CPU_TEMP_DIVISOR" "10"

    mike@raspmedia:~ $ sudo omv-salt stage run prepare

    raspmedia:

    ----------

    ID: run_state_patch

    Function: salt.state

    Result: True

    Comment: States ran successfully. No changes made to raspmedia.

    Started: 09:17:22.801468

    Duration: 536.173 ms

    Changes:

    ----------

    ID: sync_runners

    Function: salt.runner

    Name: saltutil.sync_runners

    Result: True

    Comment: Runner function 'saltutil.sync_runners' executed.

    Started: 09:17:23.338079

    Duration: 3940.243 ms

    Changes:

    ----------

    return:

    ----------

    ID: sync_modules

    Function: salt.runner

    Name: saltutil.sync_modules

    Result: True

    Comment: Runner function 'saltutil.sync_modules' executed.

    Started: 09:17:27.278682

    Duration: 3869.51 ms

    Changes:

    ----------

    return:

    ----------

    ID: sync_states

    Function: salt.runner

    Name: saltutil.sync_states

    Result: True

    Comment: Runner function 'saltutil.sync_states' executed.

    Started: 09:17:31.148551

    Duration: 3819.166 ms

    Changes:

    ----------

    return:

    ----------

    ID: populate_pillar

    Function: salt.runner

    Name: omv.populate_pillar

    Result: True

    Comment: Runner function 'omv.populate_pillar' executed.

    Started: 09:17:34.968562

    Duration: 5393.994 ms

    Changes:

    ----------

    return:

    True

    ----------

    ID: run_state_sync

    Function: salt.state

    Result: True

    Comment: States ran successfully. Updating raspmedia.

    Started: 09:17:40.363006

    Duration: 4476.476 ms

    Changes:

    raspmedia:

    ----------

    ID: clear_cache

    Function: module.run

    Result: True

    Comment: saltutil.clear_cache: True

    Started: 09:17:41.079804

    Duration: 16.798 ms

    Changes:

    ----------

    saltutil.clear_cache:

    True

    ----------

    ID: sync_grains

    Function: saltutil.sync_grains

    Result: True

    Comment: Updated grains.

    Started: 09:17:41.098699

    Duration: 1500.086 ms

    Changes:

    ----------

    grains:

    - grains.omv

    ----------

    ID: sync_states

    Function: saltutil.sync_states

    Result: True

    Comment: Updated states.

    Started: 09:17:42.599075

    Duration: 1116.072 ms

    Changes:

    ----------

    states:

    - states.omv_dpkg

    ----------

    ID: sync_modules

    Function: saltutil.sync_modules

    Result: True

    Comment: Updated modules.

    Started: 09:17:43.715421

    Duration: 1122.429 ms

    Changes:

    ----------

    modules:

    - modules.omv_conf

    - modules.omv_utils


    Summary for raspmedia

    ------------

    Succeeded: 4 (changed=4)

    Failed: 0

    ------------

    Total states run: 4

    Total run time: 3.755 s


    Summary for raspmedia

    ------------

    Succeeded: 6 (changed=5)

    Failed: 0

    ------------

    Total states run: 6

    Total run time: 22.036 s


    ```



    i cleared cache and different browsers but still wont show up what can i do to make it work?

  • macom

    Approved the thread.
    • Official Post

    What is the output of: sensors cpu_thermal-virtual-0 | grep '1:' | head -n4 | cut -c 16-23

    omv 7.4.14-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.15 | compose 7.2.16 | k8s 7.3.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    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!

  • i get 35.5c


    ```

    mike@raspmedia:~ $ sensors cpu_thermal-virtual-0 | grep '1:' | head -n4 | cut -c 16-23

    35.5°C

    mike@raspmedia:~ $ cpu-temp

    35.0°C

    mike@raspmedia:~ $

    ```

    • Official Post

    i get 35.5c

    That is the problem. You don't want the decimal point, the degree symbol, or the 'C'. You want command to return 355 and set OMV_CPU_TEMP_DIVISOR to 10.

    omv 7.4.14-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.15 | compose 7.2.16 | k8s 7.3.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    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!

  • ah ok.. and how do i do that? i followed the instructions and just modified it to for the temperature and the 0 to 1


    is it east to cut off the deciamal and the degree symbol?

  • i found a newer post where it shows about ryzen and intel cpus so i tried modifying the ryzen for the raspberry pi


    ```

    mike@raspmedia:~ $ sensors | grep -A3 cpu_thermal-virtual-0 | awk '$1 == "temp1:" { print $2 }' | grep -o '[0-9.]\+' | s

    ed 's/\.//'

    433

    mike@raspmedia:~ $ sensors | grep -A3 cpu_thermal-virtual-0 | awk '$1 == "temp1:" { print $2 }' | grep -o '[0-9.]\+' | sed 's/\.//'

    433

    mike@raspmedia:~ $ cpu-temp

    43.3°C



    ```


    i dont know how you chop that extra decimal off

    • Official Post

    You need to update the cpu-temp script with your changes.

    omv 7.4.14-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.15 | compose 7.2.16 | k8s 7.3.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    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!

  • sorry forgot...


    ```

    mike@raspmedia:~ $ sudo monit restart omv-engined

    mike@raspmedia:~ $ cpu-temp

    477

    mike@raspmedia:~ $

    ```

    but still doesnt show on dashboard


    do i need to run the other commands again to the prepare and teh divisor 10 etc

  • so i re re ran it all here is what i did below... and i clean the cache but still isnt popping up on dashboard

    did i do something wrong


    ```

    mike@raspmedia:~ $ sudo monit restart omv-engined

    mike@raspmedia:~ $ cpu-temp

    477

    mike@raspmedia:~ $ sudo omv-env set "OMV_CPU_TEMP_COMMAND" "/usr/sbin/cpu-temp"

    mike@raspmedia:~ $ sudo omv-env set "OMV_CPU_TEMP_DIVISOR" "10"

    mike@raspmedia:~ $ sudo omv-salt stage run prepare

    raspmedia:

    ----------

    ID: run_state_patch

    Function: salt.state

    Result: True

    Comment: States ran successfully. No changes made to raspmedia.

    Started: 11:47:19.224997

    Duration: 572.777 ms

    Changes:

    ----------

    ID: sync_runners

    Function: salt.runner

    Name: saltutil.sync_runners

    Result: True

    Comment: Runner function 'saltutil.sync_runners' executed.

    Started: 11:47:19.798114

    Duration: 4097.386 ms

    Changes:

    ----------

    return:

    ----------

    ID: sync_modules

    Function: salt.runner

    Name: saltutil.sync_modules

    Result: True

    Comment: Runner function 'saltutil.sync_modules' executed.

    Started: 11:47:23.895860

    Duration: 3850.063 ms

    Changes:

    ----------

    return:

    ----------

    ID: sync_states

    Function: salt.runner

    Name: saltutil.sync_states

    Result: True

    Comment: Runner function 'saltutil.sync_states' executed.

    Started: 11:47:27.746287

    Duration: 3881.296 ms

    Changes:

    ----------

    return:

    ----------

    ID: populate_pillar

    Function: salt.runner

    Name: omv.populate_pillar

    Result: True

    Comment: Runner function 'omv.populate_pillar' executed.

    Started: 11:47:31.628426

    Duration: 6668.112 ms

    Changes:

    ----------

    return:

    True

    ----------

    ID: run_state_sync

    Function: salt.state

    Result: True

    Comment: States ran successfully. Updating raspmedia.

    Started: 11:47:38.296989

    Duration: 4451.616 ms

    Changes:

    raspmedia:

    ----------

    ID: clear_cache

    Function: module.run

    Result: True

    Comment: saltutil.clear_cache: True

    Started: 11:47:38.969844

    Duration: 44.91 ms

    Changes:

    ----------

    saltutil.clear_cache:

    True

    ----------

    ID: sync_grains

    Function: saltutil.sync_grains

    Result: True

    Comment: Updated grains.

    Started: 11:47:39.016785

    Duration: 1483.522 ms

    Changes:

    ----------

    grains:

    - grains.omv

    ----------

    ID: sync_states

    Function: saltutil.sync_states

    Result: True

    Comment: Updated states.

    Started: 11:47:40.500685

    Duration: 1120.912 ms

    Changes:

    ----------

    states:

    - states.omv_dpkg

    ----------

    ID: sync_modules

    Function: saltutil.sync_modules

    Result: True

    Comment: Updated modules.

    Started: 11:47:41.621869

    Duration: 1125.136 ms

    Changes:

    ----------

    modules:

    - modules.omv_conf

    - modules.omv_utils


    Summary for raspmedia

    ------------

    Succeeded: 4 (changed=4)

    Failed: 0

    ------------

    Total states run: 4

    Total run time: 3.774 s


    Summary for raspmedia

    ------------

    Succeeded: 6 (changed=5)

    Failed: 0

    ------------

    Total states run: 6

    Total run time: 23.521 s

    mike@raspmedia:~ $ sudo omv-mkworkbench all

    mike@raspmedia:~ $ sudo monit restart omv-engined

    mike@raspmedia:~ $

    ```

  • and i ran

    ```

    sudo apt-get install lm-sensors

    sudo sensors-detect

    ```

    prior

    as running Raspibian Lite OS it didnt come with it on..

    and i running on a Raspberry Pi 4 4GB Ram



    is there a dashboard html file i can just edit and make it cpu temp there.. and is there a way to change the order of the items too

    • Official Post

    and i clean the cache but still isnt popping up on dashboard

    did i do something wrong

    What isn't popping up? The widget or the temp? What is in the list of widgets to add? The openmediavault-cputemp plugin is fully installed? dpkg -l | grep openme


    All of the commands are you are running are just to customize the cpu temp. They have nothing to do with being able to see the widget.

    is there a dashboard html file i can just edit and make it cpu temp there.. and is there a way to change the order of the items too

    No, OMV is not that simple. The widget should just work.


    Items are displayed in the order you check the boxes.

    omv 7.4.14-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.15 | compose 7.2.16 | k8s 7.3.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    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!

  • the cpu temperature widget doesnt pop up the first widget is cpu usage

    unless im not enabling the widiget somewhere?



    ```

    mike@raspmedia:~ $ dpkg -l | grep openme

    ii openmediavault 7.4.8-1 all openmediavault - The open network attached storage solution

    ii openmediavault-compose 7.2.5 all OpenMediaVault compose plugin

    ii openmediavault-cputemp 7.0.2 all cpu temperature plugin for openmediavault

    ii openmediavault-flashmemory 7.0.1 all folder2ram plugin for openmediavault

    ii openmediavault-keyring 1.0.2-2 all GnuPG archive keys of the openmediavault archive

    ii openmediavault-omvextrasorg 7.0 all OMV-Extras.org Package Repositories for OpenMediaVault

    ii openmediavault-sharerootfs 7.0-1 all openmediavault share root filesystem plugin

    mike@raspmedia:~ $

    ```


    • Official Post

    You are looking at email notifications. Those are not dashboard widgets. You need to go to the User Settings -> Dashboard in the top right of the omv web interface.

    omv 7.4.14-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.15 | compose 7.2.16 | k8s 7.3.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    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!

  • thank you i got it working.. i new to openmediavault just installed it yesterday... i used to unraid but cant install it on raspberry pi...

    i didnt even see that in the upper corner.. just only notice the left side column and i was just looking there..

    its displaying now

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!