diff options
-rw-r--r-- | .github/workflows/ci.yml | 8 | ||||
-rw-r--r-- | NEWS.rst | 8 | ||||
-rw-r--r-- | docs/api.rst | 298 | ||||
-rw-r--r-- | docs/man/glances.1 | 2 | ||||
-rw-r--r-- | glances/__init__.py | 2 | ||||
-rw-r--r-- | glances/plugins/sensors/__init__.py | 11 | ||||
-rwxr-xr-x | setup.py | 2 | ||||
-rw-r--r-- | snap/snapcraft.yaml | 2 |
8 files changed, 164 insertions, 169 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 21a93ee5..ad42ce73 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,14 +14,6 @@ jobs: test: uses: ./.github/workflows/test.yml needs: [quality] - webui: - if: github.event_name != 'pull_request' && !contains(github.ref, 'refs/tags/') - uses: ./.github/workflows/webui.yml - needs: [quality, test] - cyber: - if: github.event_name != 'pull_request' - uses: ./.github/workflows/cyber.yml - needs: [quality, test] build: if: github.event_name != 'pull_request' uses: ./.github/workflows/build.yml @@ -3,14 +3,6 @@ ============================================================================== =============== -Version 4.2.0 -=============== - -Under development, see roadmap here: https://github.com/nicolargo/glances/milestone/73 - -Contributors are welcome ! - -=============== Version 4.1.1 =============== diff --git a/docs/api.rst b/docs/api.rst index f4353810..e5ca31d7 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -141,7 +141,7 @@ Get plugin stats:: "refresh": 3.0, "regex": True, "result": None, - "timer": 0.44504690170288086}, + "timer": 0.4461839199066162}, {"count": 0, "countmax": 20.0, "countmin": None, @@ -150,7 +150,7 @@ Get plugin stats:: "refresh": 3.0, "regex": True, "result": None, - "timer": 0.4449424743652344}] + "timer": 0.4460873603820801}] Fields descriptions: @@ -178,7 +178,7 @@ Get a specific item when field matches the given value:: "refresh": 3.0, "regex": True, "result": None, - "timer": 0.44504690170288086}]} + "timer": 0.4461839199066162}]} GET cloud --------- @@ -265,19 +265,19 @@ Get plugin stats:: # curl http://localhost:61208/api/4/cpu {"cpucore": 16, - "ctx_switches": 427467586, + "ctx_switches": 470143766, "guest": 0.0, - "idle": 93.0, - "interrupts": 359749831, - "iowait": 0.1, + "idle": 89.0, + "interrupts": 400614986, + "iowait": 0.0, "irq": 0.0, "nice": 0.0, - "soft_interrupts": 133597275, + "soft_interrupts": 148453028, "steal": 0.0, "syscalls": 0, - "system": 2.7, + "system": 3.7, "total": 6.6, - "user": 4.3} + "user": 7.2} Fields descriptions: @@ -320,10 +320,10 @@ Get plugin stats:: # curl http://localhost:61208/api/4/diskio [{"disk_name": "nvme0n1", "key": "disk_name", - "read_bytes": 7492967936, - "read_count": 277065, - "write_bytes": 24887440384, - "write_count": 1206489}, + "read_bytes": 7696793088, + "read_count": 291321, + "write_bytes": 27269166080, + "write_count": 1362029}, {"disk_name": "nvme0n1p1", "key": "disk_name", "read_bytes": 7558144, @@ -363,10 +363,10 @@ Get a specific item when field matches the given value:: # curl http://localhost:61208/api/4/diskio/disk_name/nvme0n1 {"nvme0n1": [{"disk_name": "nvme0n1", "key": "disk_name", - "read_bytes": 7492967936, - "read_count": 277065, - "write_bytes": 24887440384, - "write_count": 1206489}]} + "read_bytes": 7696793088, + "read_count": 291321, + "write_bytes": 27269166080, + "write_count": 1362029}]} GET folders ----------- @@ -393,13 +393,13 @@ Get plugin stats:: # curl http://localhost:61208/api/4/fs [{"device_name": "/dev/mapper/ubuntu--vg-ubuntu--lv", - "free": 896615452672, + "free": 896569999360, "fs_type": "ext4", "key": "mnt_point", "mnt_point": "/", "percent": 5.9, "size": 1003736440832, - "used": 56058482688}] + "used": 56103936000}] Fields descriptions: @@ -420,13 +420,13 @@ Get a specific item when field matches the given value:: # curl http://localhost:61208/api/4/fs/mnt_point// {"/": [{"device_name": "/dev/mapper/ubuntu--vg-ubuntu--lv", - "free": 896615452672, + "free": 896569999360, "fs_type": "ext4", "key": "mnt_point", "mnt_point": "/", "percent": 5.9, "size": 1003736440832, - "used": 56058482688}]} + "used": 56103936000}]} GET gpu ------- @@ -459,8 +459,8 @@ GET ip Get plugin stats:: # curl http://localhost:61208/api/4/ip - {"address": "192.168.1.26", - "gateway": "192.168.1.1", + {"address": "192.168.0.28", + "gateway": "192.168.0.254", "mask": "255.255.255.0", "mask_cidr": 24, "public_address": "", @@ -478,7 +478,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/ip/gateway - {"gateway": "192.168.1.1"} + {"gateway": "192.168.0.254"} GET irq ------- @@ -500,9 +500,9 @@ Get plugin stats:: # curl http://localhost:61208/api/4/load {"cpucore": 16, - "min1": 0.728515625, - "min15": 0.88916015625, - "min5": 0.81982421875} + "min1": 0.61279296875, + "min15": 0.96044921875, + "min5": 0.88916015625} Fields descriptions: @@ -514,7 +514,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/load/min1 - {"min1": 0.728515625} + {"min1": 0.61279296875} GET mem ------- @@ -522,16 +522,16 @@ GET mem Get plugin stats:: # curl http://localhost:61208/api/4/mem - {"active": 8275505152, - "available": 4275773440, - "buffers": 116162560, - "cached": 4656115712, - "free": 4275773440, - "inactive": 5691351040, - "percent": 74.0, - "shared": 789377024, + {"active": 8189308928, + "available": 4513206272, + "buffers": 120315904, + "cached": 4011606016, + "free": 4513206272, + "inactive": 4910346240, + "percent": 72.5, + "shared": 870084608, "total": 16422486016, - "used": 12146712576} + "used": 11909279744} Fields descriptions: @@ -558,13 +558,13 @@ GET memswap Get plugin stats:: # curl http://localhost:61208/api/4/memswap - {"free": 3367235584, - "percent": 21.6, - "sin": 12087296, - "sout": 929779712, + {"free": 3059740672, + "percent": 28.8, + "sin": 38764544, + "sout": 1242734592, "time_since_update": 1, "total": 4294963200, - "used": 927727616} + "used": 1235222528} Fields descriptions: @@ -589,15 +589,15 @@ Get plugin stats:: # curl http://localhost:61208/api/4/network [{"alias": None, "bytes_all": 0, - "bytes_all_gauge": 5602788085, + "bytes_all_gauge": 5740182673, "bytes_recv": 0, - "bytes_recv_gauge": 5324413260, + "bytes_recv_gauge": 5442631219, "bytes_sent": 0, - "bytes_sent_gauge": 278374825, + "bytes_sent_gauge": 297551454, "interface_name": "wlp0s20f3", "key": "interface_name", "speed": 0, - "time_since_update": 0.4488046169281006}] + "time_since_update": 0.4495677947998047}] Fields descriptions: @@ -626,15 +626,15 @@ Get a specific item when field matches the given value:: # curl http://localhost:61208/api/4/network/interface_name/wlp0s20f3 {"wlp0s20f3": [{"alias": None, "bytes_all": 0, - "bytes_all_gauge": 5602788085, + "bytes_all_gauge": 5740182673, "bytes_recv": 0, - "bytes_recv_gauge": 5324413260, + "bytes_recv_gauge": 5442631219, "bytes_sent": 0, - "bytes_sent_gauge": 278374825, + "bytes_sent_gauge": 297551454, "interface_name": "wlp0s20f3", "key": "interface_name", "speed": 0, - "time_since_update": 0.4488046169281006}]} + "time_since_update": 0.4495677947998047}]} GET now ------- @@ -642,7 +642,7 @@ GET now Get plugin stats:: # curl http://localhost:61208/api/4/now - {"custom": "2024-06-29 09:55:18 CEST", "iso": "2024-06-29T09:55:18+02:00"} + {"custom": "2024-06-29 16:31:55 CEST", "iso": "2024-06-29T16:31:55+02:00"} Fields descriptions: @@ -652,7 +652,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/now/iso - {"iso": "2024-06-29T09:55:18+02:00"} + {"iso": "2024-06-29T16:31:55+02:00"} GET percpu ---------- @@ -663,7 +663,7 @@ Get plugin stats:: [{"cpu_number": 0, "guest": 0.0, "guest_nice": 0.0, - "idle": 36.0, + "idle": 37.0, "iowait": 0.0, "irq": 0.0, "key": "cpu_number", @@ -671,8 +671,8 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 64.0, - "user": 1.0}, + "total": 63.0, + "user": 0.0}, {"cpu_number": 1, "guest": 0.0, "guest_nice": 0.0, @@ -685,7 +685,7 @@ Get plugin stats:: "steal": 0.0, "system": 0.0, "total": 63.0, - "user": 0.0}] + "user": 1.0}] Fields descriptions: @@ -714,12 +714,12 @@ Get plugin stats:: # curl http://localhost:61208/api/4/ports [{"description": "DefaultGateway", - "host": "192.168.1.1", + "host": "192.168.0.254", "indice": "port_0", "port": 0, "refresh": 30, "rtt_warning": None, - "status": 0.005775, + "status": None, "timeout": 3}] Fields descriptions: @@ -736,19 +736,19 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/ports/host - {"host": ["192.168.1.1"]} + {"host": ["192.168.0.254"]} Get a specific item when field matches the given value:: - # curl http://localhost:61208/api/4/ports/host/192.168.1.1 - {"192.168.1.1": [{"description": "DefaultGateway", - "host": "192.168.1.1", - "indice": "port_0", - "port": 0, - "refresh": 30, - "rtt_warning": None, - "status": 0.005775, - "timeout": 3}]} + # curl http://localhost:61208/api/4/ports/host/192.168.0.254 + {"192.168.0.254": [{"description": "DefaultGateway", + "host": "192.168.0.254", + "indice": "port_0", + "port": 0, + "refresh": 30, + "rtt_warning": None, + "status": None, + "timeout": 3}]} GET processcount ---------------- @@ -756,7 +756,7 @@ GET processcount Get plugin stats:: # curl http://localhost:61208/api/4/processcount - {"pid_max": 0, "running": 1, "sleeping": 281, "thread": 1660, "total": 426} + {"pid_max": 0, "running": 1, "sleeping": 283, "thread": 1641, "total": 423} Fields descriptions: @@ -769,7 +769,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/processcount/total - {"total": 426} + {"total": 423} GET processlist --------------- @@ -804,22 +804,22 @@ Get plugin stats:: "cpu_times": {"children_system": 0.0, "children_user": 0.0, "iowait": 0.0, - "system": 123.83, - "user": 2750.68}, + "system": 134.89, + "user": 3176.31}, "gids": {"effective": 1000, "real": 1000, "saved": 1000}, - "io_counters": [8411136, 0, 0, 0, 0], + "io_counters": [9353216, 0, 0, 0, 0], "key": "pid", - "memory_info": {"data": 3653316608, + "memory_info": {"data": 3979939840, "dirty": 0, "lib": 0, - "rss": 3612418048, - "shared": 128864256, + "rss": 3911520256, + "shared": 128909312, "text": 987136, - "vms": 6200733696}, - "memory_percent": 21.996779564802278, + "vms": 6556266496}, + "memory_percent": 23.818076338680438, "name": "Isolated Web Co", "nice": 0, - "num_threads": 28, + "num_threads": 29, "pid": 4848, "status": "S", "time_since_update": 1, @@ -851,19 +851,19 @@ Get plugin stats:: "cpu_times": {"children_system": 0.0, "children_user": 0.0, "iowait": 0.0, - "system": 52.38, - "user": 492.92}, + "system": 56.51, + "user": 529.53}, "gids": {"effective": 1000, "real": 1000, "saved": 1000}, "io_counters": [2974720, 0, 0, 0, 0], "key": "pid", - "memory_info": {"data": 1961992192, + "memory_info": {"data": 2120372224, "dirty": 0, "lib": 0, - "rss": 1941671936, - "shared": 121491456, + "rss": 2025164800, + "shared": 119304192, "text": 987136, - "vms": 4457148416}, - "memory_percent": 11.823252180627705, + "vms": 4683640832}, + "memory_percent": 12.331657935509488, "name": "Isolated Web Co", "nice": 0, "num_threads": 28, @@ -904,16 +904,16 @@ Get plugin stats:: # curl http://localhost:61208/api/4/quicklook {"cpu": 6.6, "cpu_hz": 4475000000.0, - "cpu_hz_current": 570218562.5, + "cpu_hz_current": 519943687.5, "cpu_log_core": 16, "cpu_name": "13th Gen Intel(R) Core(TM) i7-13620H", "cpu_phys_core": 10, - "load": 5.6, - "mem": 74.0, + "load": 6.0, + "mem": 72.5, "percpu": [{"cpu_number": 0, "guest": 0.0, "guest_nice": 0.0, - "idle": 36.0, + "idle": 37.0, "iowait": 0.0, "irq": 0.0, "key": "cpu_number", @@ -921,8 +921,8 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 64.0, - "user": 1.0}, + "total": 63.0, + "user": 0.0}, {"cpu_number": 1, "guest": 0.0, "guest_nice": 0.0, @@ -935,11 +935,11 @@ Get plugin stats:: "steal": 0.0, "system": 0.0, "total": 63.0, - "user": 0.0}, + "user": 1.0}, {"cpu_number": 2, "guest": 0.0, "guest_nice": 0.0, - "idle": 37.0, + "idle": 36.0, "iowait": 0.0, "irq": 0.0, "key": "cpu_number", @@ -947,12 +947,12 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 63.0, + "total": 64.0, "user": 0.0}, {"cpu_number": 3, "guest": 0.0, "guest_nice": 0.0, - "idle": 35.0, + "idle": 37.0, "iowait": 0.0, "irq": 0.0, "key": "cpu_number", @@ -960,12 +960,12 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 65.0, - "user": 2.0}, + "total": 63.0, + "user": 0.0}, {"cpu_number": 4, "guest": 0.0, "guest_nice": 0.0, - "idle": 21.0, + "idle": 7.0, "iowait": 0.0, "irq": 0.0, "key": "cpu_number", @@ -973,8 +973,8 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 2.0, - "total": 79.0, - "user": 15.0}, + "total": 93.0, + "user": 26.0}, {"cpu_number": 5, "guest": 0.0, "guest_nice": 0.0, @@ -987,11 +987,11 @@ Get plugin stats:: "steal": 0.0, "system": 0.0, "total": 63.0, - "user": 1.0}, + "user": 0.0}, {"cpu_number": 6, "guest": 0.0, "guest_nice": 0.0, - "idle": 21.0, + "idle": 30.0, "iowait": 0.0, "irq": 0.0, "key": "cpu_number", @@ -999,12 +999,12 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 1.0, - "total": 79.0, - "user": 15.0}, + "total": 70.0, + "user": 6.0}, {"cpu_number": 7, "guest": 0.0, "guest_nice": 0.0, - "idle": 38.0, + "idle": 37.0, "iowait": 0.0, "irq": 0.0, "key": "cpu_number", @@ -1012,12 +1012,12 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 62.0, + "total": 63.0, "user": 0.0}, {"cpu_number": 8, "guest": 0.0, "guest_nice": 0.0, - "idle": 37.0, + "idle": 35.0, "iowait": 0.0, "irq": 0.0, "key": "cpu_number", @@ -1025,12 +1025,12 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 63.0, - "user": 0.0}, + "total": 65.0, + "user": 1.0}, {"cpu_number": 9, "guest": 0.0, "guest_nice": 0.0, - "idle": 38.0, + "idle": 37.0, "iowait": 0.0, "irq": 0.0, "key": "cpu_number", @@ -1038,12 +1038,12 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 62.0, + "total": 63.0, "user": 0.0}, {"cpu_number": 10, "guest": 0.0, "guest_nice": 0.0, - "idle": 37.0, + "idle": 36.0, "iowait": 0.0, "irq": 0.0, "key": "cpu_number", @@ -1051,7 +1051,7 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 63.0, + "total": 64.0, "user": 0.0}, {"cpu_number": 11, "guest": 0.0, @@ -1069,28 +1069,28 @@ Get plugin stats:: {"cpu_number": 12, "guest": 0.0, "guest_nice": 0.0, - "idle": 36.0, + "idle": 37.0, "iowait": 0.0, "irq": 0.0, "key": "cpu_number", "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 1.0, - "total": 64.0, - "user": 1.0}, + "system": 0.0, + "total": 63.0, + "user": 0.0}, {"cpu_number": 13, "guest": 0.0, "guest_nice": 0.0, - "idle": 37.0, + "idle": 36.0, "iowait": 0.0, "irq": 0.0, "key": "cpu_number", "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 0.0, - "total": 63.0, + "system": 1.0, + "total": 64.0, "user": 0.0}, {"cpu_number": 14, "guest": 0.0, @@ -1104,7 +1104,7 @@ Get plugin stats:: "steal": 0.0, "system": 0.0, "total": 63.0, - "user": 0.0}, + "user": 1.0}, {"cpu_number": 15, "guest": 0.0, "guest_nice": 0.0, @@ -1118,7 +1118,7 @@ Get plugin stats:: "system": 0.0, "total": 63.0, "user": 0.0}], - "swap": 21.6} + "swap": 28.8} Fields descriptions: @@ -1156,14 +1156,14 @@ Get plugin stats:: "label": "Ambient", "type": "temperature_core", "unit": "C", - "value": 36, + "value": 37, "warning": 0}, {"critical": None, "key": "label", "label": "Ambient 3", "type": "temperature_core", "unit": "C", - "value": 31, + "value": 33, "warning": 0}] Fields descriptions: @@ -1224,7 +1224,7 @@ Get a specific item when field matches the given value:: "label": "Ambient", "type": "temperature_core", "unit": "C", - "value": 36, + "value": 37, "warning": 0}]} GET smart @@ -1268,7 +1268,7 @@ GET uptime Get plugin stats:: # curl http://localhost:61208/api/4/uptime - "19 days, 16:58:04" + "19 days, 23:34:41" GET version ----------- @@ -1276,7 +1276,7 @@ GET version Get plugin stats:: # curl http://localhost:61208/api/4/version - "4.1.0" + "4.1.1" GET wifi -------- @@ -1285,8 +1285,8 @@ Get plugin stats:: # curl http://localhost:61208/api/4/wifi [{"key": "ssid", - "quality_level": -58.0, - "quality_link": 52.0, + "quality_level": -75.0, + "quality_link": 35.0, "ssid": "wlp0s20f3"}] Get a specific field:: @@ -1298,8 +1298,8 @@ Get a specific item when field matches the given value:: # curl http://localhost:61208/api/4/wifi/ssid/wlp0s20f3 {"wlp0s20f3": [{"key": "ssid", - "quality_level": -58.0, - "quality_link": 52.0, + "quality_level": -75.0, + "quality_link": 35.0, "ssid": "wlp0s20f3"}]} GET all stats @@ -1344,34 +1344,34 @@ GET stats history History of a plugin:: # curl http://localhost:61208/api/4/cpu/history - {"system": [["2024-06-29T09:55:19.540650", 2.7], - ["2024-06-29T09:55:20.619021", 0.5], - ["2024-06-29T09:55:21.631678", 0.5]], - "user": [["2024-06-29T09:55:19.540644", 4.3], - ["2024-06-29T09:55:20.619018", 0.4], - ["2024-06-29T09:55:21.631673", 0.4]]} + {"system": [["2024-06-29T16:31:56.152620", 3.7], + ["2024-06-29T16:31:57.226915", 0.7], + ["2024-06-29T16:31:58.238907", 0.7]], + "user": [["2024-06-29T16:31:56.152614", 7.2], + ["2024-06-29T16:31:57.226912", 1.3], + ["2024-06-29T16:31:58.238902", 1.3]]} Limit history to last 2 values:: # curl http://localhost:61208/api/4/cpu/history/2 - {"system": [["2024-06-29T09:55:20.619021", 0.5], - ["2024-06-29T09:55:21.631678", 0.5]], - "user": [["2024-06-29T09:55:20.619018", 0.4], - ["2024-06-29T09:55:21.631673", 0.4]]} + {"system": [["2024-06-29T16:31:57.226915", 0.7], + ["2024-06-29T16:31:58.238907", 0.7]], + "user": [["2024-06-29T16:31:57.226912", 1.3], + ["2024-06-29T16:31:58.238902", 1.3]]} History for a specific field:: # curl http://localhost:61208/api/4/cpu/system/history - {"system": [["2024-06-29T09:55:18.389360", 2.7], - ["2024-06-29T09:55:19.540650", 2.7], - ["2024-06-29T09:55:20.619021", 0.5], - ["2024-06-29T09:55:21.631678", 0.5]]} + {"system": [["2024-06-29T16:31:54.997819", 3.7], + ["2024-06-29T16:31:56.152620", 3.7], + ["2024-06-29T16:31:57.226915", 0.7], + ["2024-06-29T16:31:58.238907", 0.7]]} Limit history for a specific field to last 2 values:: # curl http://localhost:61208/api/4/cpu/system/history - {"system": [["2024-06-29T09:55:20.619021", 0.5], - ["2024-06-29T09:55:21.631678", 0.5]]} + {"system": [["2024-06-29T16:31:57.226915", 0.7], + ["2024-06-29T16:31:58.238907", 0.7]]} GET limits (used for thresholds) -------------------------------- diff --git a/docs/man/glances.1 b/docs/man/glances.1 index c43028f7..d35c0512 100644 --- a/docs/man/glances.1 +++ b/docs/man/glances.1 @@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. -.TH "GLANCES" "1" "Jun 29, 2024" "4.1.0" "Glances" +.TH "GLANCES" "1" "Jun 29, 2024" "4.1.1" "Glances" .SH NAME glances \- An eye on your system .SH SYNOPSIS diff --git a/glances/__init__.py b/glances/__init__.py index 71ec676f..750f32a9 100644 --- a/glances/__init__.py +++ b/glances/__init__.py @@ -19,7 +19,7 @@ import tracemalloc # Global name # Version should start and end with a numerical char # See https://packaging.python.org/specifications/core-metadata/#version -__version__ = '4.2.0_beta01' +__version__ = '4.1.1' __apiversion__ = '4' __author__ = 'Nicolas Hennion <nicolas@nicolargo.com>' __license__ = 'LGPLv3' diff --git a/glances/plugins/sensors/__init__.py b/glances/plugins/sensors/__init__.py index 8449f01b..69c97953 100644 --- a/glances/plugins/sensors/__init__.py +++ b/glances/plugins/sensors/__init__.py @@ -116,6 +116,17 @@ class PluginModel(GlancesPluginModel): self.sensors_grab_map[SensorType.HDD_TEMP] = hddtemp_plugin self.sensors_grab_map[SensorType.BATTERY] = batpercent_plugin + self.sensors_grab_map: Dict[SensorType, Any] = {} + + if glances_grab_sensors_cpu_temp.init: + self.sensors_grab_map[SensorType.CPU_TEMP] = glances_grab_sensors_cpu_temp + + if glances_grab_sensors_fan_speed.init: + self.sensors_grab_map[SensorType.FAN_SPEED] = glances_grab_sensors_fan_speed + + self.sensors_grab_map[SensorType.HDD_TEMP] = hddtemp_plugin + self.sensors_grab_map[SensorType.BATTERY] = batpercent_plugin + # We want to display the stat in the curse interface self.display_curse = True @@ -56,7 +56,7 @@ def get_install_requires(): def get_install_extras_require(): extras_require = { 'action': ['chevron'], - 'browser': ['zeroconf==0.131.0'], + 'browser': ['zeroconf>=0.19.1'], 'cloud': ['requests'], 'containers': ['docker>=6.1.1', 'python-dateutil', 'six', 'podman', 'packaging'], 'export': [ diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 51114d09..afb28960 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,5 +1,5 @@ name: glances -version: '4.1.0+build01' +version: '4.1.1+build01' summary: Glances an Eye on your system. A top/htop alternative. description: | |