2015-03-19 15:36:53 +00:00
|
|
|
|
{
|
|
|
|
|
"KPlugin": {
|
|
|
|
|
"Authors": [
|
|
|
|
|
{
|
2017-04-09 02:59:36 +01:00
|
|
|
|
"Email": "albertvaka@gmail.com",
|
2023-07-18 10:21:18 +01:00
|
|
|
|
"Name": "Albert Vaca Cintora",
|
|
|
|
|
"Name[ar]": "ألبرت فاكا سينتورا",
|
|
|
|
|
"Name[az]": "Albert Vaca Cintora",
|
|
|
|
|
"Name[bg]": "Albert Vaca Cintora",
|
|
|
|
|
"Name[ca@valencia]": "Albert Vaca Cintora",
|
|
|
|
|
"Name[ca]": "Albert Vaca Cintora",
|
|
|
|
|
"Name[cs]": "Albert Vaca Cintora",
|
|
|
|
|
"Name[de]": "Albert Vaca Cintora",
|
|
|
|
|
"Name[en_GB]": "Albert Vaca Cintora",
|
|
|
|
|
"Name[es]": "Albert Vaca Cintora",
|
|
|
|
|
"Name[fi]": "Albert Vaca Cintora",
|
|
|
|
|
"Name[fr]": "Albert Vaca Cintora",
|
|
|
|
|
"Name[gl]": "Albert Vaca Cintora",
|
|
|
|
|
"Name[ia]": "Albert Vaca Cintora",
|
|
|
|
|
"Name[it]": "Albert Vaca Cintora",
|
|
|
|
|
"Name[ka]": "Albert Vaca Cintora",
|
|
|
|
|
"Name[ko]": "Albert Vaca Cintora",
|
|
|
|
|
"Name[nl]": "Albert Vaca Cintora",
|
|
|
|
|
"Name[nn]": "Albert Vaca Cintora",
|
|
|
|
|
"Name[pl]": "Albert Vaca Cintora",
|
|
|
|
|
"Name[pt]": "Albert Vaca Cintora",
|
|
|
|
|
"Name[pt_BR]": "Albert Vaca Cintora",
|
|
|
|
|
"Name[sl]": "Albert Vaca Cintora",
|
2023-07-27 04:04:46 +01:00
|
|
|
|
"Name[sv]": "Albert Vaca Cintora",
|
2023-07-18 10:21:18 +01:00
|
|
|
|
"Name[tr]": "Albert Vaca Cintora",
|
|
|
|
|
"Name[uk]": "Albert Vaca Cintora",
|
|
|
|
|
"Name[x-test]": "xxAlbert Vaca Cintoraxx",
|
|
|
|
|
"Name[zh_CN]": "Albert Vaca Cintora"
|
2015-03-19 15:36:53 +00:00
|
|
|
|
}
|
2017-04-09 02:59:36 +01:00
|
|
|
|
],
|
|
|
|
|
"Description": "Show your phone battery next to your computer battery",
|
2017-09-19 03:58:52 +01:00
|
|
|
|
"Description[ar]": "أظهر بطّاريّة الهاتف بجانب بطّاريّة الحاسوب",
|
2020-09-17 05:15:05 +01:00
|
|
|
|
"Description[az]": "Telefonun batareyasını komputerin batareyasının yanında göstərmək",
|
2022-07-02 03:00:21 +01:00
|
|
|
|
"Description[bg]": "Показване на батерията на телефона до батерията на компютъра",
|
2022-06-25 02:56:17 +01:00
|
|
|
|
"Description[ca@valencia]": "Mostra la bateria del telèfon al costat de la bateria de l'ordinador",
|
2017-04-09 02:59:36 +01:00
|
|
|
|
"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",
|
2017-09-19 03:58:52 +01:00
|
|
|
|
"Description[da]": "Vis din telefons batteri ved siden af dit computerbatteri",
|
2021-01-17 05:36:34 +00:00
|
|
|
|
"Description[de]": "Den Akku Ihres Telefons neben dem Akku des Rechners anzeigen",
|
2017-09-19 03:58:52 +01:00
|
|
|
|
"Description[el]": "Εμφάνιση μπαταρίας συσκευής δίπλα στη μπαταρία του υπολογιστή",
|
2018-10-24 04:55:51 +01:00
|
|
|
|
"Description[en_GB]": "Show your phone battery next to your computer battery",
|
2017-04-09 02:59:36 +01:00
|
|
|
|
"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",
|
2017-08-06 05:02:06 +01:00
|
|
|
|
"Description[eu]": "Erakutsi telefonoaren bateria ordenagailuaren bateriaren ondoan",
|
2017-04-09 02:59:36 +01:00
|
|
|
|
"Description[fi]": "Näytä puhelimesi akku tietokoneen akun rinnalla",
|
2017-06-08 03:52:02 +01:00
|
|
|
|
"Description[fr]": "Affichez la batterie de votre téléphone à côté de la batterie de votre ordinateur",
|
2019-03-24 04:23:24 +00:00
|
|
|
|
"Description[gl]": "Mostra o nivel de batería do teléfono canda o nivel de batería do computador",
|
2017-04-09 02:59:36 +01:00
|
|
|
|
"Description[hu]": "A telefon akkumulátorának megjelenítése a számítógépé mellett",
|
2021-11-04 01:16:42 +00:00
|
|
|
|
"Description[ia]": "Monstra batteria de tu telephono proxime a tu batteria de computator",
|
2022-11-19 01:48:52 +00:00
|
|
|
|
"Description[id]": "Tampilkan baterai telepon Anda di sebelah baterai komputer Anda",
|
2023-02-04 02:05:14 +00:00
|
|
|
|
"Description[is]": "Sýna símarafhlöðuna við hlið rafhlöðu tölvunnar",
|
2018-11-21 04:40:27 +00:00
|
|
|
|
"Description[it]": "Mostra la batteria del telefono accanto a quella del computer",
|
2019-04-22 04:58:13 +01:00
|
|
|
|
"Description[ja]": "コンピュータのバッテリの次に端末のバッテリーを表示",
|
2022-12-15 01:56:04 +00:00
|
|
|
|
"Description[ka]": "ტელეფონის ელემენტის მუხტის კომპიუტერის მუხტის გვერდზე ჩვენება",
|
2020-04-06 05:09:41 +01:00
|
|
|
|
"Description[ko]": "컴퓨터 배터리와 휴대폰 배터리 같이 표시",
|
2019-06-29 04:17:17 +01:00
|
|
|
|
"Description[lt]": "Rodyti telefono akumuliatorių šalia kompiuterio akumuliatoriaus",
|
2017-04-09 02:59:36 +01:00
|
|
|
|
"Description[nl]": "Uw telefoonbatterij naast uw computerbatterij tonen",
|
|
|
|
|
"Description[nn]": "Vis telefonbatteriet ved sida av datamaskinbatteriet",
|
2021-04-19 02:18:23 +01:00
|
|
|
|
"Description[pl]": "Pokazuje baterię innego urządzenia obok baterii tego urządzenia",
|
2017-04-09 02:59:36 +01:00
|
|
|
|
"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",
|
2020-09-19 05:10:24 +01:00
|
|
|
|
"Description[ro]": "Arată acumulatorul telefonului lângă cel al calculatorului",
|
2022-08-11 02:42:55 +01:00
|
|
|
|
"Description[ru]": "Просмотр уровень заряда батареи телефона рядом с индикатором батареи компьютера",
|
2020-04-07 05:11:40 +01:00
|
|
|
|
"Description[sk]": "Zobrazenie batérie vášho telefónu spolu s batériou počítača",
|
2020-06-20 04:10:40 +01:00
|
|
|
|
"Description[sl]": "Kaži baterijo telefona poleg baterije računalnika",
|
2017-05-27 03:22:53 +01:00
|
|
|
|
"Description[sr@ijekavian]": "Приказ батерије телефона у системској касети",
|
|
|
|
|
"Description[sr@ijekavianlatin]": "Prikaz baterije telefona u sistemskoj kaseti",
|
|
|
|
|
"Description[sr@latin]": "Prikaz baterije telefona u sistemskoj kaseti",
|
|
|
|
|
"Description[sr]": "Приказ батерије телефона у системској касети",
|
2017-04-09 02:59:36 +01:00
|
|
|
|
"Description[sv]": "Visa telefonens batteri intill datorbatteriet",
|
|
|
|
|
"Description[tr]": "Bilgisayar pilinizin yanında telefon pil durumunu göster",
|
|
|
|
|
"Description[uk]": "Показ даних щодо рівня заряду акумулятора на телефоні поряд з даними щодо рівня заряду акумулятора комп’ютера",
|
2020-06-18 04:39:20 +01:00
|
|
|
|
"Description[x-test]": "xxShow your phone battery next to your computer batteryxx",
|
2017-04-09 02:59:36 +01:00
|
|
|
|
"Description[zh_CN]": "在计算机电池旁显示手机电池",
|
|
|
|
|
"Description[zh_TW]": "在您的電腦電池電量旁邊顯示手機電池電量",
|
|
|
|
|
"EnabledByDefault": true,
|
|
|
|
|
"Icon": "preferences-system-power-management",
|
|
|
|
|
"Id": "kdeconnect_battery",
|
|
|
|
|
"License": "GPL",
|
|
|
|
|
"Name": "Battery monitor",
|
2017-09-19 03:58:52 +01:00
|
|
|
|
"Name[ar]": "مرقاب البطّاريّة",
|
2020-09-17 05:15:05 +01:00
|
|
|
|
"Name[az]": "Batareyanı izləmək",
|
2022-07-02 03:00:21 +01:00
|
|
|
|
"Name[bg]": "Следене на батерия ",
|
2017-04-09 02:59:36 +01:00
|
|
|
|
"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",
|
2017-09-19 03:58:52 +01:00
|
|
|
|
"Name[el]": "Παρακολούθηση μπαταρίας",
|
2018-10-24 04:55:51 +01:00
|
|
|
|
"Name[en_GB]": "Battery monitor",
|
2017-04-09 02:59:36 +01:00
|
|
|
|
"Name[es]": "Monitor de batería",
|
|
|
|
|
"Name[et]": "Aku jälgija",
|
2017-08-06 05:02:06 +01:00
|
|
|
|
"Name[eu]": "Bateriaren monitorea",
|
2017-04-09 02:59:36 +01:00
|
|
|
|
"Name[fi]": "Akkuvalvonta",
|
2017-06-08 03:52:02 +01:00
|
|
|
|
"Name[fr]": "Moniteur de batterie",
|
2019-02-15 04:34:24 +00:00
|
|
|
|
"Name[gl]": "Monitor da batería",
|
2021-11-24 01:36:30 +00:00
|
|
|
|
"Name[hu]": "Akkufigyelő",
|
2017-09-19 03:58:52 +01:00
|
|
|
|
"Name[ia]": "Controlator de batteria",
|
2018-10-24 04:55:51 +01:00
|
|
|
|
"Name[id]": "Battery monitor",
|
2022-11-17 01:47:30 +00:00
|
|
|
|
"Name[ie]": "Monitor del batterie",
|
2022-08-25 02:46:23 +01:00
|
|
|
|
"Name[is]": "Rafhlöðuvöktun",
|
2017-04-09 02:59:36 +01:00
|
|
|
|
"Name[it]": "Monitor della batteria",
|
2019-04-22 04:58:13 +01:00
|
|
|
|
"Name[ja]": "バッテリーモニター",
|
2022-09-30 02:47:48 +01:00
|
|
|
|
"Name[ka]": "ელემენტის მონიტორი",
|
2017-04-09 02:59:36 +01:00
|
|
|
|
"Name[ko]": "배터리 모니터",
|
2019-06-29 04:17:17 +01:00
|
|
|
|
"Name[lt]": "Akumuliatoriaus prižiūryklė",
|
2017-04-09 02:59:36 +01:00
|
|
|
|
"Name[nl]": "Batterijmonitor",
|
|
|
|
|
"Name[nn]": "Batteriovervaking",
|
2021-04-19 02:18:23 +01:00
|
|
|
|
"Name[pl]": "Zgłaszanie stanu baterii",
|
2017-04-09 02:59:36 +01:00
|
|
|
|
"Name[pt]": "Monitor da bateria",
|
|
|
|
|
"Name[pt_BR]": "Monitor de bateria",
|
2020-09-19 05:10:24 +01:00
|
|
|
|
"Name[ro]": "Monitor de acumulator",
|
2017-04-09 02:59:36 +01:00
|
|
|
|
"Name[ru]": "Индикатор батареи",
|
|
|
|
|
"Name[sk]": "Monitor batérie",
|
2020-06-20 04:10:40 +01:00
|
|
|
|
"Name[sl]": "Nadzornik baterije",
|
2017-05-27 03:22:53 +01:00
|
|
|
|
"Name[sr@ijekavian]": "Надзор батерије",
|
|
|
|
|
"Name[sr@ijekavianlatin]": "Nadzor baterije",
|
|
|
|
|
"Name[sr@latin]": "Nadzor baterije",
|
|
|
|
|
"Name[sr]": "Надзор батерије",
|
2017-04-09 02:59:36 +01:00
|
|
|
|
"Name[sv]": "Batteriövervakare",
|
2023-07-25 04:11:54 +01:00
|
|
|
|
"Name[tr]": "Pil monitörü",
|
2017-04-09 02:59:36 +01:00
|
|
|
|
"Name[uk]": "Монітор акумулятора",
|
2020-06-18 04:39:20 +01:00
|
|
|
|
"Name[x-test]": "xxBattery monitorxx",
|
2017-04-09 02:59:36 +01:00
|
|
|
|
"Name[zh_CN]": "电池监视器",
|
|
|
|
|
"Name[zh_TW]": "電池監視器",
|
2015-03-19 15:36:53 +00:00
|
|
|
|
"ServiceTypes": [
|
|
|
|
|
"KdeConnect/Plugin"
|
2017-04-09 02:59:36 +01:00
|
|
|
|
],
|
|
|
|
|
"Version": "0.1",
|
2019-03-23 16:34:48 +00:00
|
|
|
|
"Website": "https://albertvaka.wordpress.com"
|
2017-04-09 02:59:36 +01:00
|
|
|
|
},
|
2018-03-04 19:48:51 +00:00
|
|
|
|
"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",
|
2016-05-31 16:16:01 +01:00
|
|
|
|
"kdeconnect.battery.request"
|
2017-04-09 02:59:36 +01:00
|
|
|
|
],
|
2018-03-04 19:48:51 +00:00
|
|
|
|
"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"
|
2015-03-25 09:09:47 +00:00
|
|
|
|
]
|
2016-12-02 03:30:30 +00:00
|
|
|
|
}
|