summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yml8
-rw-r--r--NEWS.rst8
-rw-r--r--docs/api.rst385
-rw-r--r--docs/man/glances.12
-rw-r--r--glances/plugins/sensors/__init__.py11
-rwxr-xr-xsetup.py2
6 files changed, 195 insertions, 221 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
diff --git a/NEWS.rst b/NEWS.rst
index 1ce3bd9a..945263bc 100644
--- a/NEWS.rst
+++ b/NEWS.rst
@@ -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.2
===============
diff --git a/docs/api.rst b/docs/api.rst
index 4bb72447..50649ee5 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.2482151985168457},
+ "timer": 0.46051621437072754},
{"count": 0,
"countmax": 20.0,
"countmin": None,
@@ -150,7 +150,7 @@ Get plugin stats::
"refresh": 3.0,
"regex": True,
"result": None,
- "timer": 0.24815130233764648}]
+ "timer": 0.4604213237762451}]
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.2482151985168457}]}
+ "timer": 0.46051621437072754}]}
GET cloud
---------
@@ -265,19 +265,19 @@ Get plugin stats::
# curl http://localhost:61208/api/4/cpu
{"cpucore": 16,
- "ctx_switches": 493080568,
+ "ctx_switches": 546195071,
"guest": 0.0,
- "idle": 86.5,
- "interrupts": 420997918,
- "iowait": 0.5,
+ "idle": 92.4,
+ "interrupts": 467876767,
+ "iowait": 0.1,
"irq": 0.0,
"nice": 0.0,
- "soft_interrupts": 155707720,
+ "soft_interrupts": 173761929,
"steal": 0.0,
"syscalls": 0,
- "system": 3.5,
- "total": 12.9,
- "user": 9.4}
+ "system": 2.9,
+ "total": 7.4,
+ "user": 4.6}
Fields descriptions:
@@ -310,7 +310,7 @@ Fields descriptions:
Get a specific field::
# curl http://localhost:61208/api/4/cpu/total
- {"total": 12.9}
+ {"total": 7.4}
GET diskio
----------
@@ -320,14 +320,14 @@ Get plugin stats::
# curl http://localhost:61208/api/4/diskio
[{"disk_name": "nvme0n1",
"key": "disk_name",
- "read_bytes": 10167291392,
- "read_count": 391026,
- "write_bytes": 31230641152,
- "write_count": 1527146},
+ "read_bytes": 10517048832,
+ "read_count": 404202,
+ "write_bytes": 35011642368,
+ "write_count": 1738213},
{"disk_name": "nvme0n1p1",
"key": "disk_name",
- "read_bytes": 7558144,
- "read_count": 605,
+ "read_bytes": 8385536,
+ "read_count": 905,
"write_bytes": 1024,
"write_count": 2}]
@@ -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": 10167291392,
- "read_count": 391026,
- "write_bytes": 31230641152,
- "write_count": 1527146}]}
+ "read_bytes": 10517048832,
+ "read_count": 404202,
+ "write_bytes": 35011642368,
+ "write_count": 1738213}]}
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": 897378041856,
+ "free": 897308430336,
"fs_type": "ext4",
"key": "mnt_point",
"mnt_point": "/",
"percent": 5.8,
"size": 1003736440832,
- "used": 55295893504}]
+ "used": 55365505024}]
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": 897378041856,
+ "free": 897308430336,
"fs_type": "ext4",
"key": "mnt_point",
"mnt_point": "/",
"percent": 5.8,
"size": 1003736440832,
- "used": 55295893504}]}
+ "used": 55365505024}]}
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
-------
@@ -499,10 +499,7 @@ GET load
Get plugin stats::
# curl http://localhost:61208/api/4/load
- {"cpucore": 16,
- "min1": 0.40185546875,
- "min15": 0.587890625,
- "min5": 0.638671875}
+ {"cpucore": 16, "min1": 1.2109375, "min15": 1.0966796875, "min5": 1.15185546875}
Fields descriptions:
@@ -514,7 +511,7 @@ Fields descriptions:
Get a specific field::
# curl http://localhost:61208/api/4/load/min1
- {"min1": 0.40185546875}
+ {"min1": 1.2109375}
GET mem
-------
@@ -522,16 +519,16 @@ GET mem
Get plugin stats::
# curl http://localhost:61208/api/4/mem
- {"active": 5094199296,
- "available": 10908983296,
- "buffers": 180162560,
- "cached": 5800796160,
- "free": 10908983296,
- "inactive": 3735175168,
- "percent": 33.6,
- "shared": 622718976,
+ {"active": 5502283776,
+ "available": 10467418112,
+ "buffers": 280461312,
+ "cached": 6802784256,
+ "free": 10467418112,
+ "inactive": 4388352000,
+ "percent": 36.3,
+ "shared": 844951552,
"total": 16422486016,
- "used": 5513502720}
+ "used": 5955067904}
Fields descriptions:
@@ -558,13 +555,13 @@ GET memswap
Get plugin stats::
# curl http://localhost:61208/api/4/memswap
- {"free": 3836997632,
- "percent": 10.7,
- "sin": 186925056,
+ {"free": 3880251392,
+ "percent": 9.7,
+ "sin": 218775552,
"sout": 1518604288,
"time_since_update": 1,
"total": 4294963200,
- "used": 457965568}
+ "used": 414711808}
Fields descriptions:
@@ -589,15 +586,15 @@ Get plugin stats::
# curl http://localhost:61208/api/4/network
[{"alias": None,
"bytes_all": 0,
- "bytes_all_gauge": 6286191015,
+ "bytes_all_gauge": 6662226672,
"bytes_recv": 0,
- "bytes_recv_gauge": 5977645732,
+ "bytes_recv_gauge": 6304144613,
"bytes_sent": 0,
- "bytes_sent_gauge": 308545283,
+ "bytes_sent_gauge": 358082059,
"interface_name": "wlp0s20f3",
"key": "interface_name",
"speed": 0,
- "time_since_update": 0.2501566410064697}]
+ "time_since_update": 0.46425318717956543}]
Fields descriptions:
@@ -626,15 +623,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": 6286191015,
+ "bytes_all_gauge": 6662226672,
"bytes_recv": 0,
- "bytes_recv_gauge": 5977645732,
+ "bytes_recv_gauge": 6304144613,
"bytes_sent": 0,
- "bytes_sent_gauge": 308545283,
+ "bytes_sent_gauge": 358082059,
"interface_name": "wlp0s20f3",
"key": "interface_name",
"speed": 0,
- "time_since_update": 0.2501566410064697}]}
+ "time_since_update": 0.46425318717956543}]}
GET now
-------
@@ -642,7 +639,7 @@ GET now
Get plugin stats::
# curl http://localhost:61208/api/4/now
- {"custom": "2024-06-29 19:17:41 CEST", "iso": "2024-06-29T19:17:41+02:00"}
+ {"custom": "2024-07-03 19:42:32 CEST", "iso": "2024-07-03T19:42:32+02:00"}
Fields descriptions:
@@ -652,7 +649,7 @@ Fields descriptions:
Get a specific field::
# curl http://localhost:61208/api/4/now/iso
- {"iso": "2024-06-29T19:17:41+02:00"}
+ {"iso": "2024-07-03T19:42:32+02:00"}
GET percpu
----------
@@ -663,7 +660,7 @@ Get plugin stats::
[{"cpu_number": 0,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 21.0,
+ "idle": 42.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
@@ -671,12 +668,12 @@ Get plugin stats::
"softirq": 0.0,
"steal": 0.0,
"system": 0.0,
- "total": 79.0,
- "user": 1.0},
+ "total": 58.0,
+ "user": 0.0},
{"cpu_number": 1,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 23.0,
+ "idle": 42.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
@@ -684,7 +681,7 @@ Get plugin stats::
"softirq": 0.0,
"steal": 0.0,
"system": 0.0,
- "total": 77.0,
+ "total": 58.0,
"user": 0.0}]
Fields descriptions:
@@ -714,12 +711,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.006275,
+ "status": 0.003735,
"timeout": 3}]
Fields descriptions:
@@ -736,19 +733,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.006275,
- "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": 0.003735,
+ "timeout": 3}]}
GET processcount
----------------
@@ -756,7 +753,7 @@ GET processcount
Get plugin stats::
# curl http://localhost:61208/api/4/processcount
- {"pid_max": 0, "running": 2, "sleeping": 277, "thread": 1508, "total": 412}
+ {"pid_max": 0, "running": 1, "sleeping": 281, "thread": 1602, "total": 420}
Fields descriptions:
@@ -769,7 +766,7 @@ Fields descriptions:
Get a specific field::
# curl http://localhost:61208/api/4/processcount/total
- {"total": 412}
+ {"total": 420}
GET processlist
---------------
@@ -779,73 +776,55 @@ Get plugin stats::
# curl http://localhost:61208/api/4/processlist
[{"cmdline": ["/snap/firefox/4336/usr/lib/firefox/firefox"],
"cpu_percent": 0.0,
- "cpu_times": {"children_system": 3.08,
- "children_user": 3.33,
+ "cpu_times": {"children_system": 190.29,
+ "children_user": 1859.41,
"iowait": 0.0,
- "system": 13.75,
- "user": 34.7},
+ "system": 497.15,
+ "user": 1644.75},
"gids": {"effective": 1000, "real": 1000, "saved": 1000},
- "io_counters": [393136128, 195969024, 0, 0, 0],
+ "io_counters": [448777216, 2910990336, 0, 0, 0],
"key": "pid",
- "memory_info": {"data": 681967616,
+ "memory_info": {"data": 927793152,
"dirty": 0,
"lib": 0,
- "rss": 443969536,
- "shared": 222199808,
+ "rss": 531296256,
+ "shared": 243904512,
"text": 987136,
- "vms": 3721211904},
- "memory_percent": 2.7034246554842674,
+ "vms": 21316730880},
+ "memory_percent": 3.2351755725800095,
"name": "firefox",
"nice": 0,
- "num_threads": 120,
+ "num_threads": 145,
"pid": 793506,
"status": "S",
"time_since_update": 1,
"username": "nicolargo"},
- {"cmdline": ["/snap/firefox/4336/usr/lib/firefox/firefox",
- "-contentproc",
- "-childID",
- "2",
- "-isForBrowser",
- "-prefsLen",
- "28218",
- "-prefMapSize",
- "244440",
- "-jsInitLen",
- "231800",
- "-parentBuildID",
- "20240527194810",
- "-greomni",
- "/snap/firefox/4336/usr/lib/firefox/omni.ja",
- "-appomni",
- "/snap/firefox/4336/usr/lib/firefox/browser/omni.ja",
- "-appDir",
- "/snap/firefox/4336/usr/lib/firefox/browser",
- "{bc853380-6b8f-46ad-afe0-9da5ba832e62}",
- "793506",
- "true",
- "tab"],
+ {"cmdline": ["/snap/code/159/usr/share/code/code",
+ "/home/nicolargo/.vscode/extensions/ms-python.vscode-pylance-2024.6.1/dist/server.bundle.js",
+ "--cancellationReceive=file:08276fdd86da3ba7774331df76f940b557481b9ffb",
+ "--node-ipc",
+ "--clientProcessId=885312"],
"cpu_percent": 0.0,
- "cpu_times": {"children_system": 0.0,
- "children_user": 0.0,
+ "cpu_times": {"children_system": 0.12,
+ "children_user": 0.55,
"iowait": 0.0,
- "system": 2.54,
- "user": 19.25},
+ "system": 3.42,
+ "user": 32.45},
"gids": {"effective": 1000, "real": 1000, "saved": 1000},
- "io_counters": [1827840, 0, 0, 0, 0],
+ "io_counters": [1064960, 225280, 0, 0, 0],
"key": "pid",
- "memory_info": {"data": 412688384,
+ "memory_info": {"data": 612491264,
"dirty": 0,
"lib": 0,
- "rss": 440922112,
- "shared": 111878144,
- "text": 987136,
- "vms": 2946224128},
- "memory_percent": 2.684868244493684,
- "name": "Isolated Web Co",
+ "rss": 483213312,
+ "shared": 64225280,
+ "text": 128315392,
+ "vms": 1210419245056},
+ "memory_percent": 2.9423883298132685,
+ "name": "code",
"nice": 0,
- "num_threads": 28,
- "pid": 793778,
+ "num_threads": 14,
+ "pid": 885867,
"status": "S",
"time_since_update": 1,
"username": "nicolargo"}]
@@ -880,18 +859,18 @@ GET quicklook
Get plugin stats::
# curl http://localhost:61208/api/4/quicklook
- {"cpu": 12.9,
+ {"cpu": 7.4,
"cpu_hz": 4475000000.0,
- "cpu_hz_current": 1666410624.9999998,
+ "cpu_hz_current": 808461187.5,
"cpu_log_core": 16,
"cpu_name": "13th Gen Intel(R) Core(TM) i7-13620H",
"cpu_phys_core": 10,
- "load": 3.7,
- "mem": 33.6,
+ "load": 6.9,
+ "mem": 36.3,
"percpu": [{"cpu_number": 0,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 21.0,
+ "idle": 42.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
@@ -899,12 +878,12 @@ Get plugin stats::
"softirq": 0.0,
"steal": 0.0,
"system": 0.0,
- "total": 79.0,
- "user": 1.0},
+ "total": 58.0,
+ "user": 0.0},
{"cpu_number": 1,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 23.0,
+ "idle": 42.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
@@ -912,25 +891,25 @@ Get plugin stats::
"softirq": 0.0,
"steal": 0.0,
"system": 0.0,
- "total": 77.0,
+ "total": 58.0,
"user": 0.0},
{"cpu_number": 2,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 18.0,
+ "idle": 42.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
"nice": 0.0,
"softirq": 0.0,
"steal": 0.0,
- "system": 1.0,
- "total": 82.0,
- "user": 5.0},
+ "system": 0.0,
+ "total": 58.0,
+ "user": 0.0},
{"cpu_number": 3,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 22.0,
+ "idle": 44.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
@@ -938,25 +917,25 @@ Get plugin stats::
"softirq": 0.0,
"steal": 0.0,
"system": 0.0,
- "total": 78.0,
+ "total": 56.0,
"user": 0.0},
{"cpu_number": 4,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 8.0,
+ "idle": 11.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
"nice": 0.0,
"softirq": 0.0,
"steal": 0.0,
- "system": 1.0,
- "total": 92.0,
- "user": 14.0},
+ "system": 3.0,
+ "total": 89.0,
+ "user": 30.0},
{"cpu_number": 5,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 23.0,
+ "idle": 43.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
@@ -964,77 +943,77 @@ Get plugin stats::
"softirq": 0.0,
"steal": 0.0,
"system": 0.0,
- "total": 77.0,
+ "total": 57.0,
"user": 0.0},
{"cpu_number": 6,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 3.0,
- "iowait": 1.0,
+ "idle": 35.0,
+ "iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
"nice": 0.0,
"softirq": 0.0,
"steal": 0.0,
- "system": 4.0,
- "total": 97.0,
- "user": 15.0},
+ "system": 1.0,
+ "total": 65.0,
+ "user": 7.0},
{"cpu_number": 7,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 23.0,
+ "idle": 42.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
"nice": 0.0,
"softirq": 0.0,
"steal": 0.0,
- "system": 1.0,
- "total": 77.0,
- "user": 0.0},
+ "system": 0.0,
+ "total": 58.0,
+ "user": 1.0},
{"cpu_number": 8,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 19.0,
+ "idle": 41.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
"nice": 0.0,
"softirq": 0.0,
"steal": 0.0,
- "system": 1.0,
- "total": 81.0,
+ "system": 0.0,
+ "total": 59.0,
"user": 3.0},
{"cpu_number": 9,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 22.0,
- "iowait": 1.0,
+ "idle": 43.0,
+ "iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
"nice": 0.0,
"softirq": 0.0,
"steal": 0.0,
"system": 0.0,
- "total": 78.0,
+ "total": 57.0,
"user": 0.0},
{"cpu_number": 10,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 22.0,
- "iowait": 0.0,
+ "idle": 40.0,
+ "iowait": 1.0,
"irq": 0.0,
"key": "cpu_number",
"nice": 0.0,
"softirq": 0.0,
"steal": 0.0,
"system": 0.0,
- "total": 78.0,
- "user": 0.0},
+ "total": 60.0,
+ "user": 2.0},
{"cpu_number": 11,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 23.0,
+ "idle": 43.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
@@ -1042,12 +1021,12 @@ Get plugin stats::
"softirq": 0.0,
"steal": 0.0,
"system": 0.0,
- "total": 77.0,
+ "total": 57.0,
"user": 0.0},
{"cpu_number": 12,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 21.0,
+ "idle": 42.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
@@ -1055,12 +1034,12 @@ Get plugin stats::
"softirq": 0.0,
"steal": 0.0,
"system": 1.0,
- "total": 79.0,
- "user": 1.0},
+ "total": 58.0,
+ "user": 0.0},
{"cpu_number": 13,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 23.0,
+ "idle": 42.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
@@ -1068,25 +1047,25 @@ Get plugin stats::
"softirq": 0.0,
"steal": 0.0,
"system": 0.0,
- "total": 77.0,
+ "total": 58.0,
"user": 0.0},
{"cpu_number": 14,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 22.0,
+ "idle": 43.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
"nice": 0.0,
"softirq": 0.0,
"steal": 0.0,
- "system": 0.0,
- "total": 78.0,
+ "system": 1.0,
+ "total": 57.0,
"user": 0.0},
{"cpu_number": 15,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 22.0,
+ "idle": 43.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
@@ -1094,9 +1073,9 @@ Get plugin stats::
"softirq": 0.0,
"steal": 0.0,
"system": 0.0,
- "total": 78.0,
- "user": 0.0}],
- "swap": 10.7}
+ "total": 57.0,
+ "user": 1.0}],
+ "swap": 9.7}
Fields descriptions:
@@ -1134,14 +1113,14 @@ Get plugin stats::
"label": "Ambient",
"type": "temperature_core",
"unit": "C",
- "value": 39,
+ "value": 35,
"warning": 0},
{"critical": None,
"key": "label",
"label": "Ambient 3",
"type": "temperature_core",
"unit": "C",
- "value": 32,
+ "value": 30,
"warning": 0}]
Fields descriptions:
@@ -1202,7 +1181,7 @@ Get a specific item when field matches the given value::
"label": "Ambient",
"type": "temperature_core",
"unit": "C",
- "value": 39,
+ "value": 35,
"warning": 0}]}
GET smart
@@ -1246,7 +1225,7 @@ GET uptime
Get plugin stats::
# curl http://localhost:61208/api/4/uptime
- "20 days, 2:20:27"
+ "24 days, 2:45:13"
GET version
-----------
@@ -1254,7 +1233,7 @@ GET version
Get plugin stats::
# curl http://localhost:61208/api/4/version
- "4.2.0_beta01"
+ "4.1.2"
GET wifi
--------
@@ -1263,8 +1242,8 @@ Get plugin stats::
# curl http://localhost:61208/api/4/wifi
[{"key": "ssid",
- "quality_level": -59.0,
- "quality_link": 51.0,
+ "quality_level": -60.0,
+ "quality_link": 50.0,
"ssid": "wlp0s20f3"}]
Get a specific field::
@@ -1276,8 +1255,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": -59.0,
- "quality_link": 51.0,
+ "quality_level": -60.0,
+ "quality_link": 50.0,
"ssid": "wlp0s20f3"}]}
GET all stats
@@ -1322,34 +1301,34 @@ GET stats history
History of a plugin::
# curl http://localhost:61208/api/4/cpu/history
- {"system": [["2024-06-29T19:17:42.396270", 3.5],
- ["2024-06-29T19:17:43.447397", 0.7],
- ["2024-06-29T19:17:44.455830", 0.7]],
- "user": [["2024-06-29T19:17:42.396268", 9.4],
- ["2024-06-29T19:17:43.447396", 4.0],
- ["2024-06-29T19:17:44.455825", 4.0]]}
+ {"system": [["2024-07-03T19:42:33.499180", 2.9],
+ ["2024-07-03T19:42:34.575670", 0.6],
+ ["2024-07-03T19:42:35.587081", 0.6]],
+ "user": [["2024-07-03T19:42:33.499174", 4.6],
+ ["2024-07-03T19:42:34.575667", 0.8],
+ ["2024-07-03T19:42:35.587076", 0.8]]}
Limit history to last 2 values::
# curl http://localhost:61208/api/4/cpu/history/2
- {"system": [["2024-06-29T19:17:43.447397", 0.7],
- ["2024-06-29T19:17:44.455830", 0.7]],
- "user": [["2024-06-29T19:17:43.447396", 4.0],
- ["2024-06-29T19:17:44.455825", 4.0]]}
+ {"system": [["2024-07-03T19:42:34.575670", 0.6],
+ ["2024-07-03T19:42:35.587081", 0.6]],
+ "user": [["2024-07-03T19:42:34.575667", 0.8],
+ ["2024-07-03T19:42:35.587076", 0.8]]}
History for a specific field::
# curl http://localhost:61208/api/4/cpu/system/history
- {"system": [["2024-06-29T19:17:41.318736", 3.5],
- ["2024-06-29T19:17:42.396270", 3.5],
- ["2024-06-29T19:17:43.447397", 0.7],
- ["2024-06-29T19:17:44.455830", 0.7]]}
+ {"system": [["2024-07-03T19:42:32.349506", 2.9],
+ ["2024-07-03T19:42:33.499180", 2.9],
+ ["2024-07-03T19:42:34.575670", 0.6],
+ ["2024-07-03T19:42:35.587081", 0.6]]}
Limit history for a specific field to last 2 values::
# curl http://localhost:61208/api/4/cpu/system/history
- {"system": [["2024-06-29T19:17:43.447397", 0.7],
- ["2024-06-29T19:17:44.455830", 0.7]]}
+ {"system": [["2024-07-03T19:42:34.575670", 0.6],
+ ["2024-07-03T19:42:35.587081", 0.6]]}
GET limits (used for thresholds)
--------------------------------
diff --git a/docs/man/glances.1 b/docs/man/glances.1
index ef009e0d..f6f7c3b1 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.2.0_beta01" "Glances"
+.TH "GLANCES" "1" "Jul 03, 2024" "4.1.2" "Glances"
.SH NAME
glances \- An eye on your system
.SH SYNOPSIS
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/