<table><tr><td style="">blaws added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D17141">View Revision</a></tr></table><br /><div><div><p>To test you can apply</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="diff" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);"><span style="color: #000080">diff --git a/plasmoid/package/contents/ui/DeviceDelegate.qml b/plasmoid/package/contents/ui/DeviceDelegate.qml</span>
<span style="color: #000080">index 8640f651..9170aa1c 100644</span>
<span style="color: #a00000">--- a/plasmoid/package/contents/ui/DeviceDelegate.qml</span>
<span style="color: #00a000">+++ b/plasmoid/package/contents/ui/DeviceDelegate.qml</span>
<span style="color: #800080">@@ -48,9 +48,9 @@ PlasmaComponents.ListItem</span>
             }
 
             PlasmaComponents.Label {
<span style="color: #00a000">+        id: batts</span>
                 horizontalAlignment: Text.AlignHCenter
                 elide: Text.ElideRight
<span style="color: #a00000">-                text: (battery.available && battery.charge > -1) ? i18n("%1 (%2)", deviceName, battery.displayString) : deviceName</span>
                 Layout.fillWidth: true
                 textFormat: Text.PlainText
             }
<span style="color: #800080">@@ -77,21 +77,21 @@ PlasmaComponents.ListItem</span>
             //Find my phone
             PlasmaComponents.Button
             {
<span style="color: #a00000">-                FindMyPhone {</span>
<span style="color: #a00000">-                    id: findmyphone</span>
<span style="color: #00a000">+                SystemStats {</span>
<span style="color: #00a000">+                    id: systemstats</span>
                     device: root.device
                 }
 
                 id: ring
                 iconSource: "irc-voice"
<span style="color: #a00000">-                visible: findmyphone.available</span>
<span style="color: #00a000">+                visible: systemstats.available</span>
                 tooltip: i18n("Ring my phone")
 
<span style="color: #a00000">-                onClicked: {</span>
<span style="color: #a00000">-                    findmyphone.ring()</span>
<span style="color: #a00000">-                }</span>
             }
<span style="color: #a00000">-</span>
<span style="color: #00a000">+              Timer {</span>
<span style="color: #00a000">+                 interval: 500; running: true; repeat: true</span>
<span style="color: #00a000">+                onTriggered: {systemstats.requestStatsUpdate(); batts.text = systemstats.systemStats.CPUUsage}</span>
<span style="color: #00a000">+            }</span>
             //SFTP
             PlasmaComponents.Button
             {
<span style="color: #800080">@@ -245,7 +245,9 @@ PlasmaComponents.ListItem</span>
             id: share
             device: root.device
         }
<span style="color: #a00000">-</span>
<span style="color: #00a000">+           PlasmaComponents.Label {</span>
<span style="color: #00a000">+    id: cpuu</span>
<span style="color: #00a000">+        }</span>
         PlasmaComponents.Label {
             text: i18n("Share text")
         }
<span style="color: #000080">diff --git a/plasmoid/package/contents/ui/FindMyPhone.qml b/plasmoid/package/contents/ui/FindMyPhone.qml</span>
deleted file mode 100644
<span style="color: #000080">index 846c1530..00000000</span>
<span style="color: #a00000">--- a/plasmoid/package/contents/ui/FindMyPhone.qml</span>
<span style="color: #00a000">+++ /dev/null</span>
<span style="color: #800080">@@ -1,53 +0,0 @@</span>
<span style="color: #a00000">-/**</span>
<span style="color: #a00000">- * Copyright 2014 Samoilenko Yuri <kinnalru@gmail.com></span>
<span style="color: #a00000">- *</span>
<span style="color: #a00000">- * This program is free software; you can redistribute it and/or</span>
<span style="color: #a00000">- * modify it under the terms of the GNU General Public License as</span>
<span style="color: #a00000">- * published by the Free Software Foundation; either version 2 of</span>
<span style="color: #a00000">- * the License or (at your option) version 3 or any later version</span>
<span style="color: #a00000">- * accepted by the membership of KDE e.V. (or its successor approved</span>
<span style="color: #a00000">- * by the membership of KDE e.V.), which shall act as a proxy</span>
<span style="color: #a00000">- * defined in Section 14 of version 3 of the license.</span>
<span style="color: #a00000">- *</span>
<span style="color: #a00000">- * This program is distributed in the hope that it will be useful,</span>
<span style="color: #a00000">- * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<span style="color: #a00000">- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<span style="color: #a00000">- * GNU General Public License for more details.</span>
<span style="color: #a00000">- *</span>
<span style="color: #a00000">- * You should have received a copy of the GNU General Public License</span>
<span style="color: #a00000">- * along with this program.  If not, see <http://www.gnu.org/licenses/>.</span>
<span style="color: #a00000">- */</span>
<span style="color: #a00000">-</span>
<span style="color: #a00000">-import QtQuick 2.1</span>
<span style="color: #a00000">-import org.kde.plasma.core 2.0 as PlasmaCore</span>
<span style="color: #a00000">-import org.kde.plasma.components 2.0 as PlasmaComponents</span>
<span style="color: #a00000">-import org.kde.kdeconnect 1.0</span>
<span style="color: #a00000">-</span>
<span style="color: #a00000">-QtObject {</span>
<span style="color: #a00000">-</span>
<span style="color: #a00000">-    id: root</span>
<span style="color: #a00000">-</span>
<span style="color: #a00000">-    property alias device: checker.device</span>
<span style="color: #a00000">-    readonly property alias available: checker.available</span>
<span style="color: #a00000">-</span>
<span style="color: #a00000">-    readonly property PluginChecker pluginChecker: PluginChecker {</span>
<span style="color: #a00000">-        id: checker</span>
<span style="color: #a00000">-        pluginName: "findmyphone"</span>
<span style="color: #a00000">-    }</span>
<span style="color: #a00000">-</span>
<span style="color: #a00000">-    property variant findMyPhone: null</span>
<span style="color: #a00000">-</span>
<span style="color: #a00000">-    function ring() {</span>
<span style="color: #a00000">-        if (findMyPhone) {</span>
<span style="color: #a00000">-            findMyPhone.ring();</span>
<span style="color: #a00000">-        }</span>
<span style="color: #a00000">-    }</span>
<span style="color: #a00000">-</span>
<span style="color: #a00000">-    onAvailableChanged: {</span>
<span style="color: #a00000">-        if (available) {</span>
<span style="color: #a00000">-            findMyPhone = FindMyPhoneDbusInterfaceFactory.create(device.id())</span>
<span style="color: #a00000">-        } else {</span>
<span style="color: #a00000">-            findMyPhone = null</span>
<span style="color: #a00000">-        }</span>
<span style="color: #a00000">-    }</span>
<span style="color: #a00000">-}</span></pre></div>

<p>and create a file called SystemStats.qml in the ui directory of plasmoid containing</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">/**
 * Copyright 2014 Samoilenko Yuri <kinnalru@gmail.com>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of
 * the License or (at your option) version 3 or any later version
 * accepted by the membership of KDE e.V. (or its successor approved
 * by the membership of KDE e.V.), which shall act as a proxy
 * defined in Section 14 of version 3 of the license.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

import QtQuick 2.1
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents
import org.kde.kdeconnect 1.0

QtObject {

    id: root

    property alias device: checker.device
    readonly property alias available: checker.available

    readonly property PluginChecker pluginChecker: PluginChecker {
        id: checker
        pluginName: "systemstats"
    }

    property variant systemStats: null
    property int cpuusage: systemStats.CPUUsage

    function requestStatsUpdate() {
        if (systemStats) {
            systemStats.requestStatsUpdate();
        }
    }

    onAvailableChanged: {
        if (available) {
            systemStats = SystemStatsDbusInterfaceFactory.create(device.id())
        } else {
            systemStats = null
        }
    }
}</pre></div>

<p>the usage will show in the headerbar</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R224 KDE Connect</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D17141">https://phabricator.kde.org/D17141</a></div></div><br /><div><strong>To: </strong>blaws, KDE Connect<br /><strong>Cc: </strong>kdeconnect, varunp, shivanshukantprasad, skymoore, brute4s99, wistak, dvalencia, rmenezes, julioc, Leptopoda, timothyc, jdvr, Danial0_0, johnq, Pitel, adeen-s, SemperPeritus, daniel.z.tg, jeanv, seebauer, bugzy, MayeulC, menasshock, mikesomov, tctara, apol<br /></div>