hashashin / OctoPrint-OpiTemp

Simple plugin to show Orange Pi (running armbian) SOC temperature in the navbar.
1 stars 2 forks source link

Orange pi with ubuntu server temperature #15

Open aleksandarpu opened 2 months ago

aleksandarpu commented 2 months ago

armbianmonitor is not present on Ubuntu server Linux use sensors application instead

Expected Behavior

Ubuntu has sensors application which with 'sensors -j' returns JSON file with SoC temperatures

Current Behavior

Possible Solution

Parse sensors -j output which is in the form: { "cpu_thermal-virtual-0":{ "Adapter": "Virtual device", "temp1":{ "temp1_input": 48.986, "temp1_crit": 100.000 } }, "gpu_thermal-virtual-0":{ "Adapter": "Virtual device", "temp1":{ "temp1_input": 49.634, "temp1_crit": 100.000 } }, "ddr_thermal-virtual-0":{ "Adapter": "Virtual device", "temp1":{ "temp1_input": 50.039 } }, "ve_thermal-virtual-0":{ "Adapter": "Virtual device", "temp1":{ "temp1_input": 48.581 } } }

Steps to Reproduce (for bugs)

1. 2. 3. 4.

Context

Your Environment