kdeconnect-kde/plugins/battery/kdeconnect_battery.json

145 lines
8 KiB
JSON
Raw Normal View History

{
"KPlugin": {
"Authors": [
{
"Email": "albertvaka@gmail.com",
"Name": "Albert Vaca",
"Name[ar]": "Albert Vaca",
"Name[ast]": "Albert Vaca",
"Name[ca@valencia]": "Albert Vaca",
"Name[ca]": "Albert Vaca",
"Name[cs]": "Albert Vaca",
"Name[da]": "Albert Vaca",
"Name[de]": "Albert Vaca",
"Name[el]": "Albert Vaca",
"Name[en_GB]": "Albert Vaca",
"Name[es]": "Albert Vaca",
"Name[et]": "Albert Vaca",
"Name[eu]": "Albert Vaca",
"Name[fi]": "Albert Vaca",
"Name[fr]": "Albert Vaca",
"Name[gl]": "Albert Vaca",
"Name[id]": "Albert Vaca",
"Name[it]": "Albert Vaca",
"Name[ko]": "Albert Vaca",
"Name[lt]": "Albert Vaca",
"Name[nl]": "Albert Vaca",
"Name[nn]": "Albert Vaca",
"Name[pl]": "Albert Vaca",
"Name[pt]": "Albert Vaca",
"Name[pt_BR]": "Albert Vaca",
"Name[ru]": "Albert Vaca",
"Name[sk]": "Albert Vaca",
"Name[sl]": "Albert Vaca",
"Name[sr@ijekavian]": "Алберт Вака Синтора",
"Name[sr@ijekavianlatin]": "Albert Vaka Sintora",
"Name[sr@latin]": "Albert Vaka Sintora",
"Name[sr]": "Алберт Вака Синтора",
"Name[sv]": "Albert Vaca",
"Name[tr]": "Albert Vaca",
"Name[uk]": "Albert Vaca",
"Name[x-test]": "xxAlbert Vacaxx",
"Name[zh_CN]": "Albert Vaca",
"Name[zh_TW]": "Albert Vaca"
}
],
"Description": "Show your phone battery next to your computer battery",
"Description[ar]": "أظهر بطّاريّة الهاتف بجانب بطّاريّة الحاسوب",
"Description[ast]": "Amuesa la batería del preséu al llau de la del ordenador",
"Description[ca@valencia]": "Mostra la bateria del telèfon al costat de la bateria de l'ordinador",
"Description[ca]": "Mostra la bateria del telèfon al costat de la bateria de l'ordinador",
"Description[cs]": "Zobrazit baterii vedle baterie počítače",
"Description[da]": "Vis din telefons batteri ved siden af dit computerbatteri",
"Description[de]": "Zeigt den Akku Ihres Telefons neben dem Akku des Rechners",
"Description[el]": "Εμφάνιση μπαταρίας συσκευής δίπλα στη μπαταρία του υπολογιστή",
"Description[en_GB]": "Show your phone battery next to your computer battery",
"Description[es]": "Mostrar la batería del teléfono junto a la batería del equipo",
"Description[et]": "Telefoniaku näitamine otse arvutiaku kõrval",
"Description[eu]": "Erakutsi telefonoaren bateria ordenagailuaren bateriaren ondoan",
"Description[fi]": "Näytä puhelimesi akku tietokoneen akun rinnalla",
"Description[fr]": "Affichez la batterie de votre téléphone à côté de la batterie de votre ordinateur",
"Description[gl]": "Mostra o nivel de batería do teléfono canda o nivel de batería do computador",
"Description[hu]": "A telefon akkumulátorának megjelenítése a számítógépé mellett",
"Description[id]": "Tampilkan baterai teleponmu di sebelah baterai komputermu",
"Description[it]": "Mostra la batteria del telefono accanto a quella del computer",
"Description[ja]": "コンピュータのバッテリの次に端末のバッテリーを表示",
"Description[ko]": "컴퓨터 배터리와 휴대폰 배터리 같이 표시",
"Description[lt]": "Rodyti telefono akumuliatorių šalia kompiuterio akumuliatoriaus",
"Description[nl]": "Uw telefoonbatterij naast uw computerbatterij tonen",
"Description[nn]": "Vis telefonbatteriet ved sida av datamaskinbatteriet",
"Description[pl]": "Pokaż baterię swojego telefonu obok baterii komputera",
"Description[pt]": "Mostrar a bateria do seu telefone ao lado da do seu computador",
"Description[pt_BR]": "Mostra a bateria do seu celular ao lado da bateria do computador",
"Description[ru]": "Показ уровня заряда батареи телефона рядом с индикатором батареи компьютера",
"Description[sk]": "Zobrazenie batérie vášho telefónu spolu s batériou počítača",
"Description[sl]": "Kaži baterijo telefona poleg baterije računalnika",
"Description[sr@ijekavian]": "Приказ батерије телефона у системској касети",
"Description[sr@ijekavianlatin]": "Prikaz baterije telefona u sistemskoj kaseti",
"Description[sr@latin]": "Prikaz baterije telefona u sistemskoj kaseti",
"Description[sr]": "Приказ батерије телефона у системској касети",
"Description[sv]": "Visa telefonens batteri intill datorbatteriet",
"Description[tr]": "Bilgisayar pilinizin yanında telefon pil durumunu göster",
"Description[uk]": "Показ даних щодо рівня заряду акумулятора на телефоні поряд з даними щодо рівня заряду акумулятора комп’ютера",
"Description[x-test]": "xxShow your phone battery next to your computer batteryxx",
"Description[zh_CN]": "在计算机电池旁显示手机电池",
"Description[zh_TW]": "在您的電腦電池電量旁邊顯示手機電池電量",
"EnabledByDefault": true,
"Icon": "preferences-system-power-management",
"Id": "kdeconnect_battery",
"License": "GPL",
"Name": "Battery monitor",
"Name[ar]": "مرقاب البطّاريّة",
"Name[ca@valencia]": "Monitor de la bateria",
"Name[ca]": "Monitor de la bateria",
"Name[cs]": "Monitor baterie",
"Name[da]": "Batteriovervågning",
"Name[de]": "Akkuüberwachung",
"Name[el]": "Παρακολούθηση μπαταρίας",
"Name[en_GB]": "Battery monitor",
"Name[es]": "Monitor de batería",
"Name[et]": "Aku jälgija",
"Name[eu]": "Bateriaren monitorea",
"Name[fi]": "Akkuvalvonta",
"Name[fr]": "Moniteur de batterie",
"Name[gl]": "Monitor da batería",
"Name[hu]": "Akkumulátorfigyelő",
"Name[ia]": "Controlator de batteria",
"Name[id]": "Battery monitor",
"Name[it]": "Monitor della batteria",
"Name[ja]": "バッテリーモニター",
"Name[ko]": "배터리 모니터",
"Name[lt]": "Akumuliatoriaus prižiūryklė",
"Name[nl]": "Batterijmonitor",
"Name[nn]": "Batteriovervaking",
"Name[pl]": "Monitor baterii",
"Name[pt]": "Monitor da bateria",
"Name[pt_BR]": "Monitor de bateria",
"Name[ru]": "Индикатор батареи",
"Name[sk]": "Monitor batérie",
"Name[sl]": "Nadzornik baterije",
"Name[sr@ijekavian]": "Надзор батерије",
"Name[sr@ijekavianlatin]": "Nadzor baterije",
"Name[sr@latin]": "Nadzor baterije",
"Name[sr]": "Надзор батерије",
"Name[sv]": "Batteriövervakare",
"Name[tr]": "Pil izleyici",
"Name[uk]": "Монітор акумулятора",
"Name[x-test]": "xxBattery monitorxx",
"Name[zh_CN]": "电池监视器",
"Name[zh_TW]": "電池監視器",
"ServiceTypes": [
"KdeConnect/Plugin"
],
"Version": "0.1",
2019-03-23 16:34:48 +00:00
"Website": "https://albertvaka.wordpress.com"
},
"X-KdeConnect-OutgoingPacketType": [
Finally, we have support for sending out Battery information. ## Summary The core idea is as follows: 1. When a Link loads the BatteryPlugin, we query Solid for a list of batteries. 1. If the list is empty, we print a warning message and return quickly 2. Otherwise, we connect *two signals* to every object in that list 2. We send out a single new NetworkPacket as soon as we've processed that list 3. When either of those two signals emits, we send another new NetworkPacket ### Multi-battery Support BUG: 357193 To handle devices with multiple batteries (requested in that bug), we average together the battery percentages. This also includes a new field in the packet for 'number of batteries' called `batteryQuantity`. For backwards compatibility, we can assume it has a default value of one. This should ensure we support - devices with no batteries at all (like many desktop machines) - devices with hot-pluggable batteries (like those laptops with detachable screens) ### Concerns Note that the implementation isn't perfect. We'll need some new localizable text to make it clear that we now support sending battery status information. Then there's a rather significant question: maybe we should have two battery plugins on each client, like we do for the `findmyphone`/`findthisdevice` plugins? ## Test Plan We need to ensure that other clients (including those using the Android codebase) will respond correctly. The main things to look at are 1. are these new packets sent when the plugin is enabled, and not sent when it's disabled? 2. is the charge percentage accurate? 3. is the charge state (charging, discharging, or full) accurate? and 4. do we see the correct number of warnings for low-battery?
2020-04-13 06:54:11 +01:00
"kdeconnect.battery",
"kdeconnect.battery.request"
],
"X-KdeConnect-SupportedPacketType": [
Finally, we have support for sending out Battery information. ## Summary The core idea is as follows: 1. When a Link loads the BatteryPlugin, we query Solid for a list of batteries. 1. If the list is empty, we print a warning message and return quickly 2. Otherwise, we connect *two signals* to every object in that list 2. We send out a single new NetworkPacket as soon as we've processed that list 3. When either of those two signals emits, we send another new NetworkPacket ### Multi-battery Support BUG: 357193 To handle devices with multiple batteries (requested in that bug), we average together the battery percentages. This also includes a new field in the packet for 'number of batteries' called `batteryQuantity`. For backwards compatibility, we can assume it has a default value of one. This should ensure we support - devices with no batteries at all (like many desktop machines) - devices with hot-pluggable batteries (like those laptops with detachable screens) ### Concerns Note that the implementation isn't perfect. We'll need some new localizable text to make it clear that we now support sending battery status information. Then there's a rather significant question: maybe we should have two battery plugins on each client, like we do for the `findmyphone`/`findthisdevice` plugins? ## Test Plan We need to ensure that other clients (including those using the Android codebase) will respond correctly. The main things to look at are 1. are these new packets sent when the plugin is enabled, and not sent when it's disabled? 2. is the charge percentage accurate? 3. is the charge state (charging, discharging, or full) accurate? and 4. do we see the correct number of warnings for low-battery?
2020-04-13 06:54:11 +01:00
"kdeconnect.battery",
"kdeconnect.battery.request"
]
}