{"id":6361,"date":"2015-02-11T10:21:00","date_gmt":"2015-02-11T10:21:00","guid":{"rendered":"http:\/\/notmart.org\/blog\/?p=6361"},"modified":"2015-02-11T10:21:59","modified_gmt":"2015-02-11T10:21:59","slug":"getting-things-back-system-monitor","status":"publish","type":"post","link":"https:\/\/notmart.org\/blog\/2015\/02\/getting-things-back-system-monitor\/","title":{"rendered":"Getting things back: System Monitor"},"content":{"rendered":"<p>In Plasma 5.3 some of the things that were lost along the way of the port to Plasma 5 due to the massive architecture change will be back.<br \/>\nToday just got back the system monitor widgets, that helps keeping an eye on the CPU load, disk usage, network traffic and so on.<br \/>\n<a href=\"http:\/\/notmart.org\/blog\/wp-content\/uploads\/2015\/02\/sysmon1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/notmart.org\/blog\/wp-content\/uploads\/2015\/02\/sysmon1-300x270.png\" alt=\"sysmon1\" width=\"300\" height=\"270\" class=\"aligncenter size-medium wp-image-6362\" srcset=\"https:\/\/notmart.org\/blog\/wp-content\/uploads\/2015\/02\/sysmon1-300x270.png 300w, https:\/\/notmart.org\/blog\/wp-content\/uploads\/2015\/02\/sysmon1-624x561.png 624w, https:\/\/notmart.org\/blog\/wp-content\/uploads\/2015\/02\/sysmon1.png 699w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nAlong the widgets, a nice reusable component to plot graphs is available to use:<\/p>\n<pre>\r\n<code>\r\nimport org.kde.kquickcontrolsaddons 2.0 as KQuickAddons\r\nKQuickAddons.Plotter {\r\n    id: plotter\r\n    dataSets: [\r\n        KQuickAddons.PlotData {\r\n            color: firstcolor\r\n        },\r\n        KQuickAddons.PlotData {\r\n            color: othercolor\r\n        }\r\n    ]\r\n}\r\n<\/code>\r\n<\/pre>\n<p>Then, (this will vary depending how your data source is implemented) every time a new data set will arrive, you can just do <\/p>\n<pre>\r\n<code>\r\nplotter.addSample([value1, value2]);\r\n<\/code>\r\n<\/pre>\n<p>You can have as many graphs painted together in the same plotter, depending how many KQuickAddons.PlotData you declare inside the dataSets property.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Plasma 5.3 some of the things that were lost along the way of the port to Plasma 5 due to the massive architecture change will be back. Today just got back the system monitor widgets, that helps keeping an eye on the CPU load, disk usage, network traffic and so on. Along the widgets, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[17,2,4,146,147],"class_list":["post-6361","post","type-post","status-publish","format-standard","hentry","category-software","tag-components","tag-kde","tag-kf5","tag-plasma4","tag-systemmonitor"],"_links":{"self":[{"href":"https:\/\/notmart.org\/blog\/wp-json\/wp\/v2\/posts\/6361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/notmart.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/notmart.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/notmart.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/notmart.org\/blog\/wp-json\/wp\/v2\/comments?post=6361"}],"version-history":[{"count":6,"href":"https:\/\/notmart.org\/blog\/wp-json\/wp\/v2\/posts\/6361\/revisions"}],"predecessor-version":[{"id":6368,"href":"https:\/\/notmart.org\/blog\/wp-json\/wp\/v2\/posts\/6361\/revisions\/6368"}],"wp:attachment":[{"href":"https:\/\/notmart.org\/blog\/wp-json\/wp\/v2\/media?parent=6361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notmart.org\/blog\/wp-json\/wp\/v2\/categories?post=6361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notmart.org\/blog\/wp-json\/wp\/v2\/tags?post=6361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}