Compare commits
136 Commits
v2.28
...
72b96c8f4d
Author | SHA1 | Date | |
---|---|---|---|
|
72b96c8f4d | ||
|
8956c0afb6 | ||
|
c1d4045890 | ||
|
1dc2117eb2 | ||
|
2729182420 | ||
|
9852ae39c3 | ||
|
acdd44564b | ||
|
8db9820ffa | ||
|
ddc66baccb | ||
|
61afdc0566 | ||
|
e50d365e65 | ||
|
d1f5abfc1f | ||
|
0dd8bd72ff | ||
|
b2f1025a18 | ||
|
3566920114 | ||
|
7ba0d76bf6 | ||
|
e284cd2d4a | ||
|
46e44ada30 | ||
|
960a069d99 | ||
|
c78ca4c318 | ||
|
0d28543156 | ||
|
6e735ccd30 | ||
|
d534c60998 | ||
|
4b206f4501 | ||
|
03ff4b570b | ||
|
27dc66d005 | ||
|
9dbae5a64a | ||
|
2923c8faec | ||
|
a37b9842cb | ||
|
ec2324a8d1 | ||
|
7d77a79ad8 | ||
|
756647d156 | ||
|
25cbcfe59a | ||
|
04dec1a8ba | ||
|
46740fac76 | ||
|
474bd552ad | ||
|
649f0f250d | ||
|
5a0bd98ddb | ||
|
ce81c6af0a | ||
|
3d7b588d2c | ||
|
166b5f4ec3 | ||
|
57128bf7a4 | ||
|
64bebded0a | ||
|
b9db9af3bf | ||
|
ad7d278072 | ||
|
dd484aa615 | ||
|
f224268554 | ||
|
e9f6ccfd0d | ||
|
ad8a895f58 | ||
|
549b04f349 | ||
|
dca99cc1a9 | ||
|
f76a4b60c7 | ||
|
24232acfbe | ||
|
50eccad4dc | ||
|
8b641f1ee9 | ||
|
c1cddc54e4 | ||
|
fa8ec2ec4d | ||
|
c2f99d71ad | ||
|
8a8d64bcab | ||
|
55bbb4901c | ||
|
3396c6c47d | ||
|
4cfd3ffb6b | ||
|
d8f944b02f | ||
|
3e0de7ad6e | ||
|
6574cf5bac | ||
|
c0a99946f8 | ||
|
e8f901167f | ||
|
d110826392 | ||
|
d645adb3c9 | ||
|
9e7ac9de6d | ||
|
d43c2d427f | ||
|
c599b9fcf3 | ||
|
0d73de494e | ||
|
a686e1a104 | ||
|
8868f2152c | ||
|
f28a060bf5 | ||
|
5b58a0c1be | ||
|
084e7144cc | ||
|
1ad5cb3263 | ||
|
af3820c7a8 | ||
|
70f05e8912 | ||
|
7239bc85c0 | ||
|
c138fad6ca | ||
|
9641313492 | ||
|
6f5e591910 | ||
|
e2722319a6 | ||
|
0b84983eaf | ||
|
d32135af63 | ||
|
db3fbd9886 | ||
|
be7eed1ae1 | ||
|
576f8c4a64 | ||
|
979d85fce5 | ||
|
ac899ff784 | ||
|
b45f02ef7b | ||
|
62f0e711c9 | ||
|
b2b8ffb332 | ||
|
172d4ad1e4 | ||
|
460f247728 | ||
|
a6b4925ff7 | ||
|
3672a598fb | ||
|
f6d0916315 | ||
|
6db7b67536 | ||
|
e5df010af8 | ||
|
ee964ce882 | ||
|
ee9da24592 | ||
|
906cdf7371 | ||
|
7dd85937fa | ||
|
d141c03104 | ||
|
842a31a1cc | ||
|
5639ff5c42 | ||
|
8b3e86a00f | ||
|
6dbcea94cf | ||
|
b28daacafd | ||
|
029a9f373e | ||
|
ec044c5408 | ||
|
659a060c76 | ||
|
3acef26fea | ||
|
e898fc1fe5 | ||
|
4df1fd69bc | ||
|
fc19599586 | ||
|
13f70af45a | ||
|
90ed1f4bea | ||
|
2117b27210 | ||
|
df7874e825 | ||
|
f3c5947b82 | ||
|
47a930828a | ||
|
ef299bcaf6 | ||
|
f0eb9c26b1 | ||
|
f1c592179d | ||
|
4ed81df60a | ||
|
b4f5f34760 | ||
|
4cf5a0ae26 | ||
|
b44d4c6155 | ||
|
f2d65aa6e3 | ||
|
6b2aa3135a | ||
|
907848b5fb |
6
.github/workflows/translate.yml
vendored
@@ -23,11 +23,11 @@ jobs:
|
||||
uses: actions/setup-python@v4.7.1
|
||||
|
||||
- run: |
|
||||
pip install beautifulsoup4
|
||||
pip install deep-translator
|
||||
pip install lxml
|
||||
pip install google-genai beautifulsoup4 lxml
|
||||
|
||||
- run: python translate.py
|
||||
env:
|
||||
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
|
||||
|
||||
# Commit all changed files back to the repository
|
||||
- uses: stefanzweifel/git-auto-commit-action@v5
|
||||
|
7
.vscode/settings.json
vendored
@@ -2,5 +2,10 @@
|
||||
"cSpell.words": [
|
||||
"usbs",
|
||||
"Venu"
|
||||
]
|
||||
],
|
||||
"files.exclude": {
|
||||
"resources-*": true,
|
||||
"bin": true,
|
||||
"export": true
|
||||
}
|
||||
}
|
@@ -1,4 +1,4 @@
|
||||
[Home](README.md) | [Switches](examples/Switches.md) | [Actions](examples/Actions.md) | [Templates](examples/Templates.md) | Battery Reporting | [Trouble Shooting](TroubleShooting.md) | [Version History](HISTORY.md)
|
||||
[Home](README.md) | [Switches](examples/Switches.md) | [Actions](examples/Actions.md) | [Templates](examples/Templates.md) | [Glance](examples/Glance.md) | [Background Service](BackgroundService.md) | [Wi-Fi](Wi-Fi.md) | [HTTP Headers](HTTP_Headers.md) | [Trouble Shooting](TroubleShooting.md) | [Version History](HISTORY.md)
|
||||
|
||||
# Background Service
|
||||
|
||||
|
21
HISTORY.md
@@ -1,4 +1,4 @@
|
||||
[Home](README.md) | [Switches](examples/Switches.md) | [Actions](examples/Actions.md) | [Templates](examples/Templates.md) | [Background Service](BackgroundService.md) | [Trouble Shooting](TroubleShooting.md) | Version History
|
||||
[Home](README.md) | [Switches](examples/Switches.md) | [Actions](examples/Actions.md) | [Templates](examples/Templates.md) | [Glance](examples/Glance.md) | [Background Service](BackgroundService.md) | [Wi-Fi](Wi-Fi.md) | [HTTP Headers](HTTP_Headers.md) | [Trouble Shooting](TroubleShooting.md) | [Version History](HISTORY.md)
|
||||
|
||||
# Version History
|
||||
|
||||
@@ -9,14 +9,14 @@
|
||||
| 1.2 | Do not crash on zero items to update. Report unreachable URLs. Verify API URL does not have a trailing slash '/'. Increased HTTP response diagnosis. Reduced minimum API Level required from 3.3.0 to 3.1.0 to allow more device "part numbers" to be satisfied. |
|
||||
| 1.3 | Tap for scripts was working in emulation but not on some phones. Decision is to make the 'service' field in the JSON compulsory for 'tap' menu items. This is a breaking change, but for many might be a fix for something not working correctly. Improve language support, we can now accept language corrections and prevent the automated translation of strings from clobbering manually refined entries. Thank you to two new contributors. |
|
||||
| 1.4 | New lean user Interface with thanks to [Someone0nEarth](https://github.com/Someone0nEarth) for their contribution which is now the default. If you prefer the old style you can still select it in the settings. The provision of a 'service' tag is now not just heavily suggested by the JSON schema, it is enforced in code. With apologies to anyone suffering a breakage as a result. |
|
||||
| 1.5 | <img src="images/confirmation_view.png" width="200" title="Confirmation View"/><br/>Added an optional confirmation dialogue view to prevent accidental execution of actions on mistaken tap. This also brings a change in the JSON schema to allow an optional field to specify that the confirmation should be used for a menu item. As we are now maturing and adding features we have decided to mitigate breaking changes to the JSON schema by being more careful to adopt the Home Assistant schema (noting there is a 1:1 mapping between YAML and JSON). This change does deprecate the top level `service` tag in favour of `tag_action` containing multiple fields including `service` & `confirm`. Users should migrate to the new format for the new functionality, but the timescale for actual deprecation are long and undecided. |
|
||||
| 1.5 | <img src="images/confirmation_view.png" width="200" title="Confirmation View"/><br/>Added an optional confirmation dialogue view to prevent accidental execution of actions on mistaken tap. This also brings a change in the JSON schema to allow an optional field to specify that the confirmation should be used for a menu item. As we are now maturing and adding features we have decided to mitigate breaking changes to the JSON schema by being more careful to adopt the HomeAssistant schema (noting there is a 1:1 mapping between YAML and JSON). This change does deprecate the top level `service` tag in favour of `tag_action` containing multiple fields including `service` & `confirm`. Users should migrate to the new format for the new functionality, but the timescale for actual deprecation are long and undecided. |
|
||||
| 1.6 | Added a user configurable 'timeout' in seconds so that when no action is taken the application automatically closes, stopping the continuous polling for changes of status and hence saving the drain on the battery. This can be disabled with timeout=0. |
|
||||
| 1.7 | Added timeout to confirmation views so that when used for security devices it does not linger when left unconfirmed. Thanks to [Jan Schneider](https://github.com/j-a-n) for the contribution. Known bug for devices not supporting [`WatchUi.getCurrentView()`](https://developer.garmin.com/connect-iq/api-docs/Toybox/WatchUi.html#getCurrentView-instance_function) API call which is only available on API Level 3.4.0, e.g. Vivoactive 4S. |
|
||||
| 2.0 | A significant code base change to enable both a 'widget' version for older devices, e.g. Venu (1), and an application with a glance, e.g. Venu2. These two versions must now be distributed under separate application IDs, but they have the same code base. A further 20 more devices are now supported, the settings have been internationalised, and there's a bug fix for older devices when trying to display a helpful error message but instead the application crashed. This version has come from a significant collaboration with [Someone0nEarth](https://github.com/Someone0nEarth). |
|
||||
| 2.1 | Deployment of an idea to provide Home Assistant with access to the watch battery level. Using this requires [significant setup](BackgroundService.md) on the Home Assistant configuration and hence is detailed separately. Due to this, the default state for this battery option is _off_. Changed the application settings user interface to be more intuitive, and hence amended the way settings are managed in the background. |
|
||||
| 2.1 | Deployment of an idea to provide HomeAssistant with access to the watch battery level. Using this requires [significant setup](BackgroundService.md) on the HomeAssistant configuration and hence is detailed separately. Due to this, the default state for this battery option is _off_. Changed the application settings user interface to be more intuitive, and hence amended the way settings are managed in the background. |
|
||||
| 2.2 | Adds a feature to cache the menu configuration and save the time taken for an HTTP request to fetch it. You as the user are responsible for managing the cache by clearing it when you update your configuration. Improvement to widget root display updates. Bug fix for battery level reporting when in the glance carousel. Fixed an uninternationalised string, "Execute". Unfixed issue with battery level updates when the user is not an administrator. |
|
||||
| 2.3 | Fix for battery level updates where previously the function only worked for administrator accounts. The new solution is based on Webhooks and is simpler to implement on Home Assistant. Language support fix where an automatic translation produced an inappropriate word, possibly in more than one language. |
|
||||
| 2.4 | Sensor status reporting via Home Assistant 'templates'. This provides a generalised way of viewing the status of any entity as long as the result can be rendered as text, e.g. 'uncovered', 'open', '76%', '21 °C'. Removal of the menu style option. The original style was kept after the introduction of the icon style solely to keep the code for a possible re-use for sensor statuses. This version delivers that new feature, hence the style option has been removed. The new JSON configuration file format allows for the old style to be replicated if you are desperate! Added a feature to provide parameters to actions (`tap` or `template`). Added a feature to confirm `toggle` menu items. |
|
||||
| 2.3 | Fix for battery level updates where previously the function only worked for administrator accounts. The new solution is based on Webhooks and is simpler to implement on HomeAssistant. Language support fix where an automatic translation produced an inappropriate word, possibly in more than one language. |
|
||||
| 2.4 | Sensor status reporting via HomeAssistant 'templates'. This provides a generalised way of viewing the status of any entity as long as the result can be rendered as text, e.g. 'uncovered', 'open', '76%', '21 °C'. Removal of the menu style option. The original style was kept after the introduction of the icon style solely to keep the code for a possible re-use for sensor statuses. This version delivers that new feature, hence the style option has been removed. The new JSON configuration file format allows for the old style to be replicated if you are desperate! Added a feature to provide parameters to actions (`tap` or `template`). Added a feature to confirm `toggle` menu items. |
|
||||
| 2.5 | A small memory efficiency of about 1kB by removing `RezStrings.mc`. This will aid widgets on old watches that only have 60kB available to an application and are using about 45kB before the menu is fetched, hence 1kB is more significant to those devices. |
|
||||
| 2.6 | Added more information reporting to the background service, in addition to the device battery level and charging status, we now include location, location accuracy, and (if supported by your device) the activity information. Note the updates are sent periodically and are not event driven. |
|
||||
| 2.7 | Bug fix release: 1. Handling a settings change, 2. Avoid caching a bad menu, 3. Managing bad JSON in menu definitions. |
|
||||
@@ -34,10 +34,19 @@
|
||||
| 2.19 | A template to evaluate is now optionally allowed on both `group` and `toggle` menu items. The template to evaluate is non-optional on a `template` menu item. All updates are performed in a single HTTP GET request for efficiency. Bug fix for negative heading values. Vibration now (optionally) confirms toggle menu items being tapped. |
|
||||
| 2.20 | Simplified the code base now that templates have been requested in all menu items. This means the `template` menu item became a superset of `tap`. Therefore the `tap` code has been has been upgraded to include `template` and the latter deprecated. JSON menu definitions continue to support `template` items by instantiating a `tap` menu item, but the schema marks them as deprecated and users should migrate their menu definitions now. Use the [web editor](https://house-of-abbey.github.io/GarminHomeAssistant/web/) for assistance with changes. |
|
||||
| 2.21 | Added 7 new devices (`edge1050`, `enduro3`, `fenix843mm`, `fenix847mm`, `fenix8solar47mm`, `fenix8solar51mm`, `fenixe`) and upgraded the SDK to 7.3.0. Fix for a bug on Edge devices introduced by v2.16 activity reporting improvements. |
|
||||
| 2.22 | Major feature release adding an optional PIN to menu items. This significant new feature has been provided by [moesterheld](https://github.com/moesterheld). Please do not rely on this application for security. Use at your own risk! |
|
||||
| 2.22 | <img src="images/pin_view.png" width="200" title="PIN Entry View"/><br/>Major feature release adding an optional PIN to menu items. This significant new feature has been provided by [moesterheld](https://github.com/moesterheld). Please do not rely on this application for security. Use at your own risk! |
|
||||
| 2.23 | Added "info" menu item for displaying information via a template without a tap or toggle. Essentially like the old 'template' type that was deprecated when all items were amended to display evaluated templates. That action removed the display only items too hastily. Added 5 new devices in the model range Instinct 3 and Instinct E. |
|
||||
| 2.24 | Experiment to prevent new Webhook IDs being created unnecessarily. Reduced the latency for the first menu update. Added 4 new devices: approachs50, descentg2, descentmk1, and gpsmap66. |
|
||||
| 2.25 | 2 Bug fixes. First time startup issues caused by v2.24 change and a fix for pure numbers in returned templates. |
|
||||
| 2.26 | Retry responsive menu fix failed in v2.24. Cosmetic internal class changes. |
|
||||
| 2.27 | Trivial bug fix for the glance view to prevent the "Unconfigured" result being erroneously displayed because the settings were not yet pulled from persistent storage. |
|
||||
| 2.28 | Added support for Vivoactive 6 device which also required an SDK update to 8.1.0. |
|
||||
| 2.29 | Added support for three new devices, Forerunners 570 42mm & 47mm and 970. |
|
||||
| 2.30 | <img src="images/Venu2_glance_default.png" width="200" title="Default Glance"/><br/>Extensive re-work of the [Glance](examples/Glance.md) view, including the ability to customise it with a user supplied template. |
|
||||
| 2.31 | Adding [two new options](./examples/Actions.md#exit-on-tap) to the menu items: 1) The ability to disable a menu item, e.g. temporarily for seasonal changes, 2) The option to exit after a menu item has been select. |
|
||||
| 2.32 | Bug fix for a breaking change extracting options caused by the need to rearrange function parameters for an [annoying compiler error](https://github.com/house-of-abbey/GarminHomeAssistant/issues/253). |
|
||||
| 3.0 | First version with the ability to use [Wi-Fi or LTE](Wi-Fi.md) instead of Bluetooth but with limited functionality, thanks to [@vincentezw](https://github.com/vincentezw). |
|
||||
| 3.1 | Added the ability for users to provide [custom HTTP headers](HTTP_Headers.md) for their HomeAssistant server. Improved German language translations. Thanks to [@tispokes](https://github.com/tispokes) for assisting with both of those. Removed all groups in settings as the SDK is buggy. Fixed a bug with templates in glances causing application crash on startup. |
|
||||
| 3.2 | Only enable or disable sensors on HomeAssistant when the background service options is changed, i.e. do not call the API to enable on start up every time. |
|
||||
| 3.3 | Providing automatic detection for menu definition updates, but still requires an application restart. |
|
||||
| 3.4 | Fixed a bug where templates failed to display in toggle menu items (at least on some devices). Fixed a bug where a menu item requesting to exit on completion appeared to indicate failure when using Wi-Fi or LTE. The fix uses a delay in exiting the application modelled as sufficient for a Venu 2 device, so this might need tweaking for other devices. Attempt to fixed an "Out of Memory" bug caused by v3.3 by making automatic checking for menu updates both optional and automatically turned off when insufficient memory is available. This last bug is device dependent and may require another attempt. |
|
||||
|
37
HTTP_Headers.md
Normal file
@@ -0,0 +1,37 @@
|
||||
[Home](README.md) | [Switches](examples/Switches.md) | [Actions](examples/Actions.md) | [Templates](examples/Templates.md) | [Glance](examples/Glance.md) | [Background Service](BackgroundService.md) | [Wi-Fi](Wi-Fi.md) | [HTTP Headers](HTTP_Headers.md) | [Trouble Shooting](TroubleShooting.md) | [Version History](HISTORY.md)
|
||||
|
||||
# User Specified Custom HTTP Headers
|
||||
|
||||
Principally for those who use HomeAssistant add-on [Cloudflared](https://github.com/brenner-tobias/addon-cloudflared) in order to provide additional security via Cloudflare's Web Application Firewall (WAF). But Garmin does not support certificates in requests. And the solution is generic enough for other use cases.
|
||||
|
||||
Please let us know if this solution is found to be useful for other situations.
|
||||
|
||||
## Setup
|
||||
|
||||
The settings contain two options for users to specify both the HTTP header name and the value as two free form strings.
|
||||
|
||||
<img src="images/http_header_settings.png" width="400" title="Application Settings"/>
|
||||
|
||||
If you don't know why you need these, leave them empty and ignore.
|
||||
|
||||
### Cloudflare WAF rule example
|
||||
|
||||
`(any(http.request.headers["your-header-name"][*] eq "your-header-key"))`
|
||||
|
||||
Make the key strong enough!
|
||||
|
||||
## Support
|
||||
|
||||
**None!**
|
||||
|
||||
The authors of the Garmin HomeAssistant application do not use, and hence do not know, the [Cloudflared](https://github.com/brenner-tobias/addon-cloudflared) add-on. While we have enabled the HTTP headers to support using this add-on, it does mean _you support yourself_. Please do not raise issues about this functionality unless you are supplying the answers for any required changes too!
|
||||
|
||||
## Credits
|
||||
|
||||
With thanks to Lars Pöpperl ([@tispokes](https://github.com/tispokes)) for contributing to this solution.
|
||||
|
||||
|
||||
## References
|
||||
|
||||
* [Using Cloudflare ZeroTrust and mTLS to securely access HomeAssistant via the internet](https://kcore.org/2024/06/28/using-cloudflare-zerotrust-and-mtls-with-home-assistant-via-the-internet/)
|
||||
* [HomeAssistant Add-on: Cloudflared](https://github.com/brenner-tobias/addon-cloudflared)
|
@@ -4,5 +4,9 @@
|
||||
"path": "."
|
||||
}
|
||||
],
|
||||
"settings": {}
|
||||
"settings": {
|
||||
"cSpell.words": [
|
||||
"Initialiser"
|
||||
]
|
||||
}
|
||||
}
|
107
README.md
@@ -1,22 +1,29 @@
|
||||
Home | [Switches](examples/Switches.md) | [Actions](examples/Actions.md) | [Templates](examples/Templates.md) | [Background Service](BackgroundService.md) | [Trouble Shooting](TroubleShooting.md) | [Version History](HISTORY.md)
|
||||
[Home](README.md) | [Switches](examples/Switches.md) | [Actions](examples/Actions.md) | [Templates](examples/Templates.md) | [Glance](examples/Glance.md) | [Background Service](BackgroundService.md) | [Wi-Fi](Wi-Fi.md) | [HTTP Headers](HTTP_Headers.md) | [Trouble Shooting](TroubleShooting.md) | [Version History](HISTORY.md)
|
||||
|
||||
# GarminHomeAssistant
|
||||
|
||||
<img src="images/Actual_Venu2_Theme.jpg" width="200" title="Venu 2"/>
|
||||
|
||||
A Garmin application to provide a "dashboard" to control your devices via [Home Assistant](https://www.home-assistant.io/). The application will never be as fully fledged as a Home Assistant dashboard, so it is designed to be good enough for the simple and essential things. Those things that can be activated via an on/off toggle or a tap. That should cover lights, switches, and anything requiring a single press such as an automation. For anything more complicated, e.g. thermostat, it would always be quicker and simpler to reach for your phone or tablet... or the device's own remote control!
|
||||
A Garmin application to provide a "dashboard" to control your devices via [HomeAssistant](https://www.home-assistant.io/). The application will never be as fully fledged as a HomeAssistant dashboard, so it is designed to be good enough for the simple and essential things. Those things that can be activated via an on/off toggle or a tap. That should cover lights, switches, and anything requiring a single press such as an automation. For anything more complicated, e.g. thermostat, it would always be quicker and simpler to reach for your phone or tablet... or the device's own remote control!
|
||||
|
||||
The application is designed around a simple scrollable menu where menu items have been extended to interface with the [Home Assistant API](https://developers.home-assistant.io/docs/api/rest/), e.g. to get the status of switches or lights for display on the `toggle` menu item, or a text status for an entity (`info` item). It is possible to nest menus, so there is a menu item to open a sub-menu. This can be arbitrarily deep and nested in the format of a tree of items, although you need to consider if reaching for your phone becomes quicker to select the device what you want to control.
|
||||
The application is designed around a simple scrollable menu where menu items have been extended to interface with the [HomeAssistant API](https://developers.home-assistant.io/docs/api/rest/), e.g. to get the status of switches or lights for display on the `toggle` menu item, or a text status for an entity (`info` item). It is possible to nest menus, so there is a menu item to open a sub-menu. This can be arbitrarily deep and nested in the format of a tree of items, although you need to consider if reaching for your phone becomes quicker to select the device what you want to control.
|
||||
|
||||
**The intended audience for this application are those comfortable with configuring a Home Assistant** (e.g. editing the YAML configuration files) and debugging why URLs don't work. It does not require programming skills, but the menu is configured via JSON which feels like "coding" (more like "describing"). If you are not comfortable with this relatively low level of configuration, you may like to try other Garmin applications instead.
|
||||
**The intended audience for this application are those comfortable with configuring a HomeAssistant** (e.g. editing the YAML configuration files) and debugging why URLs don't work. It does not require programming skills, but the menu is configured via JSON which feels like "coding" (more like "describing"). If you are not comfortable with this relatively low level of configuration, you may like to try other Garmin applications instead.
|
||||
|
||||
**If you are struggling with getting the application to work, please consult the [troubleshooting guide](TroubleShooting.md#menu-configuration-url) first.**
|
||||
|
||||
## No HTTPS?
|
||||
|
||||
> [!IMPORTANT]
|
||||
> The Garmin SDK allows HTTP requests only to a limited number of domains specified in their app. Therefore, for your Garmin to communicate with your Home Assistant instance, your Home Assistant instance must be accessible via HTTPS (with a public certificate!) or through a local DNS server that overrides one of the whitelisted domains to communicate using HTTP.
|
||||
> To make your Home Assistant instance accessible via HTTPS, you will need a public certificate. You can get one for free from [Let's Encrypt](https://letsencrypt.org/) or you can pay for [Home Assistant cloud](https://www.nabucasa.com/). (You can install a local [Nginx proxy server](https://my.home-assistant.io/redirect/supervisor_addon/?addon=a0d7b954_nginxproxymanager) to manage Let's Encrypt certificates.)
|
||||
> If you use a local DNS server (like [Pi-Hole](https://pi-hole.net/)), you can create a local DNS record for the domain `garmincdn.com` (which is allowed for HTTP in the Garmin SDK) and map it to your Home Assistant instance's IP. You can find additional workarounds for HTTP request restrictions in the Garmin SDK [here](https://www.instructables.com/About-Communication-Between-Garmin-SDK-and-a-Raspb/).
|
||||
|
||||
**If you are struggling with getting the application to work, please consult the [trouble shooting](TroubleShooting.md#menu-configuration-url) guide first.**
|
||||
|
||||
> The Garmin SDK allows HTTP requests only to a limited number of domains specified in their app. Therefore, for your Garmin to communicate with your HomeAssistant instance, your HomeAssistant instance must be accessible via HTTPS (with a public certificate!) or through a local DNS server that overrides one of the whitelisted domains to communicate using HTTP.
|
||||
>
|
||||
>New with version 3.1, you can use [Cloudflared](https://github.com/brenner-tobias/addon-cloudflared) plug-in in combination with a [custom HTTP header](HTTP_Headers.md) and do not need a public certificate for HTTPS.
|
||||
>
|
||||
> To make your HomeAssistant instance accessible via HTTPS, you will need a public certificate. You can get one for free from [Let's Encrypt](https://letsencrypt.org/) or you can pay for [HomeAssistant cloud](https://www.nabucasa.com/). (You can install a local [Nginx proxy server](https://my.home-assistant.io/redirect/supervisor_addon/?addon=a0d7b954_nginxproxymanager) to manage Let's Encrypt certificates.)
|
||||
>
|
||||
> If you use a local DNS server (like [Pi-Hole](https://pi-hole.net/)), you can create a local DNS record for the domain `garmincdn.com` (which is allowed for HTTP in the Garmin SDK) and map it to your HomeAssistant instance's IP. "_[About Communication Between Garmin SDK and a Raspberry Pi](https://www.instructables.com/About-Communication-Between-Garmin-SDK-and-a-Raspb/)_" provides additional workarounds for HTTP request restrictions in the Garmin SDK.
|
||||
>
|
||||
> **No support is offered to those circumventing the HTTPS restriction of the Connect IQ SDK.** You are supporting yourself!
|
||||
|
||||
## Widget or Application?
|
||||
|
||||
@@ -24,7 +31,7 @@ As of version 2.0, there are now two installable versions. For older devices bef
|
||||
|
||||
| Version | Explanation |
|
||||
|------------------------|-------------|
|
||||
| Application (original) | For newer devices that allow glance views in their applications, e.g. Venu 2, the GarminHomeAssistant application can be started either from a glance or from the list of applications and activities. Head over to the [GarminHomeAssistant](https://apps.garmin.com/en-US/apps/61c91d28-ec5e-438d-9f83-39e9f45b199d) application page on the [Connect IQ application store](https://apps.garmin.com/en-US/) to download the application. The application can be started two different ways, either from the glance in the carousel, or as an application from the list of applications & activities. With the latter, it is worth marking the application as a favourite.<br/><img src="images/Venu2_app_start.png" width="200" title="Venu 2" style="margin:5px"/><img src="images/Vivoactive3_app_start.jpg" width="200" title="Venu 2" style="margin:5px"/><br/>If you place the application on your list of favourites, and rearrange it to appear near the top, then the item is just one button press away from the watch face. This second picture here shows the application menu on a Vivoactive 3 watch.<br/><img src="images/Venu2_glance_start.png" width="200" title="Venu 2" style="margin:5px"/><br/>On newer watches, you can also start the application from the glance carousel. The glance view here typically displays some trackable status, so ours provides some early indication of availability. Older watches will still allow you to start this application from the list of applications and activities. |
|
||||
| Application (original) | For newer devices that allow glance views in their applications, e.g. Venu 2, the GarminHomeAssistant application can be started either from a glance or from the list of applications and activities. Head over to the [GarminHomeAssistant](https://apps.garmin.com/en-US/apps/61c91d28-ec5e-438d-9f83-39e9f45b199d) application page on the [Connect IQ application store](https://apps.garmin.com/en-US/) to download the application. The application can be started two different ways, either from the glance in the carousel, or as an application from the list of applications & activities. With the latter, it is worth marking the application as a favourite.<br/><img src="images/Venu2_app_start.png" width="200" title="Venu 2" style="margin:5px"/><img src="images/Vivoactive3_app_start.jpg" width="200" title="Vivoactive 3" style="margin:5px"/><br/>If you place the application on your list of favourites, and rearrange it to appear near the top, then the item is just one button press away from the watch face. This second picture here shows the application menu on a Vivoactive 3 watch.<br/><img src="images/Venu2_glance_default.png" width="200" title="Venu 2" style="margin:5px"/><br/>On newer watches, you can also start the application from the glance carousel. The glance view here typically displays some trackable status, so ours provides some early indication of availability. Older watches will still allow you to start this application from the list of applications and activities. |
|
||||
| Widget | **"Maintenance only mode"** so no new features will be added to this version.<br>For older devices that use widgets, e.g. Venu (1) as opposed to applications with "glances", the GarminHomeAssistant application can instead be started from the widget carousel. This is a separate item in the Connect IQ AppStore and with this installation, the application will no longer appear in the list of applications and activities. Head over to the [GarminHomeAssistant](https://apps.garmin.com/en-US/apps/) widget page on the [Connect IQ application store](https://apps.garmin.com/en-US/) to download the widget.<br/><img src="images/Venu_Widget_sim.png" width="200" title="Venu 2" style="margin:5px"/><br/>Typically the widget view implements something similar to the glance view, e.g. status, and exists in a widget carousel to allow you to select an application to launch.<br>**Please note that memory in widgets is more limited than applications. This means a large menu definition can crash the widget without the code catching the error.**<br> This version was born out of the application version and from Ver 2.0 shared the same source code repository until Ver 2.8 when they were [separated](https://github.com/house-of-abbey/GarminHomeAssistantWidget) to allow the application version to take advantage of its increase memory availability. |
|
||||
|
||||
### Features
|
||||
@@ -49,13 +56,13 @@ The following table lists the differences in functionality between the two. The
|
||||
|
||||
## Dashboard Definition
|
||||
|
||||
Setup for this menu is more complicated than the Connect IQ settings menu really allows you to specify. In order to make the dashboard easily configurable and easy to change, we have provided an external mechanism for specifying the menu layout, a JSON file you write, retrieved from a URL you specify. JSON was chosen over YAML because Garmin can parse JSON HTTP GET responses into its own internal dictionary, it cannot parse YAML, hence a choice of one really. Note that JSON and YAML are essentially a 1:1 format mapping except JSON does not have comments. We recommend you take advantage of [Home Assistant's own web server](https://www.home-assistant.io/integrations/http/#hosting-files) to provide the JSON definition. The advantages of this are:
|
||||
Setup for this menu is more complicated than the Connect IQ settings menu really allows you to specify. In order to make the dashboard easily configurable and easy to change, we have provided an external mechanism for specifying the menu layout, a JSON file you write, retrieved from a URL you specify. JSON was chosen over YAML because Garmin can parse JSON HTTP GET responses into its own internal dictionary, it cannot parse YAML, hence a choice of one really. Note that JSON and YAML are essentially a 1:1 format mapping except JSON does not have comments. We recommend you take advantage of [HomeAssistant's own web server](https://www.home-assistant.io/integrations/http/#hosting-files) to provide the JSON definition. The advantages of this are:
|
||||
|
||||
1. the file is as public as you make your Home Assistant,
|
||||
2. the file is editable within Home Assistant via "[Studio Code Server](https://my.home-assistant.io/redirect/supervisor_addon/?addon=a0d7b954_vscode)", and
|
||||
1. the file is as public as you make your HomeAssistant,
|
||||
2. the file is editable within HomeAssistant via "[Studio Code Server](https://my.home-assistant.io/redirect/supervisor_addon/?addon=a0d7b954_vscode)", and
|
||||
3. the schema is verifiable using [JSON Schema](https://json-schema.org/overview/what-is-jsonschema).
|
||||
|
||||
We have used `/config/www/garmin/<something>.json` on our home brew Home Assistant's file system. That equates to a URL of `https://homeassistant.local/local/garmin/<something>.json`.
|
||||
We have used `/config/www/garmin/<something>.json` on our home brew HomeAssistant's file system. That equates to a URL of `https://homeassistant.local/local/garmin/<something>.json`.
|
||||
|
||||
> [!IMPORTANT]
|
||||
> However [recent reports](https://community.home-assistant.io/t/www-folder-location-for-local-documents/24903/16) suggest this path may no longer work on [Nabu Casa](https://www.nabucasa.com/) and you should use `/homeassistant/www/` instead of `/config/www/`. We are unable to verify this since our free trial of Nabu Casa has expired.
|
||||
@@ -153,7 +160,7 @@ The example above illustrates how to configure:
|
||||
* You can also display the status of devices (`info`) which is essentially a `tap` with no action
|
||||
* All menu items can display the results of evaluating [templates](examples/Templates.md).
|
||||
|
||||
The following table indicates how Home Assistant entity types can map to the Garmin applications menu types. Presently, an automation is the only one that can be either a `tap` or a `toggle`.
|
||||
The following table indicates how HomeAssistant entity types can map to the Garmin applications menu types. Presently, an automation is the only one that can be either a `tap` or a `toggle`.
|
||||
|
||||
| HA Entity Type | Tap | Toggle | Info (status)|
|
||||
|------------------|:---:|:------:|:------------:|
|
||||
@@ -171,7 +178,7 @@ Multiple templates are evaluated in a single HTTP request to update their status
|
||||
|
||||
You can now specify alternative texts to use instead of "On" and "Off", e.g. "Locked" and "Unlocked" or "Open" and "Closed" through the use of a [template menu item](examples/Templates.md). But wouldn't having locks operated from your watch be a security concern ;-) ?
|
||||
|
||||
The [schema](https://raw.githubusercontent.com/house-of-abbey/GarminHomeAssistant/main/config.schema.json) is checked by using a URL directly back to this GitHub source repository, so you do not need to install that file. You can just copy & paste your entity names from the YAML configuration files used to configure Home Assistant. With a submenu, there's a difference between `title` and `name`. The `name` goes on the menu item, and the `title` at the head of the submenu. If your dashboard definition fails to meet the schema, the application will simply drop items with the wrong field names without warning to protect itself.
|
||||
The [schema](https://raw.githubusercontent.com/house-of-abbey/GarminHomeAssistant/main/config.schema.json) is checked by using a URL directly back to this GitHub source repository, so you do not need to install that file. You can just copy & paste your entity names from the YAML configuration files used to configure HomeAssistant. With a submenu, there's a difference between `title` and `name`. The `name` goes on the menu item, and the `title` at the head of the submenu. If your dashboard definition fails to meet the schema, the application will simply drop items with the wrong field names without warning to protect itself.
|
||||
|
||||
### Old deprecated format
|
||||
|
||||
@@ -199,7 +206,7 @@ The above should be replaced by the following:
|
||||
}
|
||||
```
|
||||
|
||||
This allows the `confirm` and `pin` fields to be accommodated in the `tap_action` along side the `service` tag, and follows the Home Assistant YAML format more closely.
|
||||
This allows the `confirm` and `pin` fields to be accommodated in the `tap_action` along side the `service` tag, and follows the HomeAssistant YAML format more closely.
|
||||
|
||||
### More Examples
|
||||
|
||||
@@ -210,8 +217,8 @@ This allows the `confirm` and `pin` fields to be accommodated in the `tap_action
|
||||
## Editing the JSON file
|
||||
|
||||
You have options. The first is what we use.
|
||||
1. **Best!** Use the GarminHomeAssistant [Web-based Editor](https://house-of-abbey.github.io/GarminHomeAssistant/web/) which includes `entity` and `service` name completion and validation by fetching data from your own Home Assistant instance. _Pretty nifty eh?_ The other method listed below do not add this convenience and checking.
|
||||
2. Use the [Studio Code Server](https://community.home-assistant.io/t/home-assistant-community-add-on-visual-studio-code/107863) addon for Home Assistant. You can then edit your JSON file in place.
|
||||
1. **Best!** Use the GarminHomeAssistant [Web-based Editor](https://house-of-abbey.github.io/GarminHomeAssistant/web/) which includes `entity` and `service` name completion and validation by fetching data from your own HomeAssistant instance. _Pretty nifty eh?_ The other method listed below do not add this convenience and checking.
|
||||
2. Use the [Studio Code Server](https://community.home-assistant.io/t/home-assistant-community-add-on-visual-studio-code/107863) addon for HomeAssistant. You can then edit your JSON file in place.
|
||||
3. Locally installed VSCode, or if not installed, try
|
||||
4. The on-line version at https://vscode.dev/, which works really well.
|
||||
|
||||
@@ -225,7 +232,7 @@ Make sure you can browse to the URL of your JSON file in a standard web browser
|
||||
|
||||
## API Key Creation
|
||||
|
||||
Having created your JSON definition for your dashboard, you need to create an API key for your personal account on Home Assistant. You will need a [Long-Lived Access Token](https://developers.home-assistant.io/docs/auth_api/#long-lived-access-token). This is not obvious to find and is bound to your own Home Assistant account. Follow the menu sequence: `HA -> user profile -> Long-lived access tokens`. Make sure you save the generated token before dismissing it.
|
||||
Having created your JSON definition for your dashboard, you need to create an API key for your personal account on HomeAssistant. You will need a [Long-Lived Access Token](https://developers.home-assistant.io/docs/auth_api/#long-lived-access-token). This is not obvious to find and is bound to your own HomeAssistant account. Follow the menu sequence: `HA -> User Profile -> "Security" tab -> Long-lived access tokens`. Make sure you save the generated token before dismissing it.
|
||||
|
||||

|
||||
|
||||
@@ -233,7 +240,7 @@ Having created that token, before you dismiss the dialogue box with the value yo
|
||||
|
||||
## API URL
|
||||
|
||||
If you are using [Nabu Casa](https://www.nabucasa.com/) then your Cloud API URL can be found by looking up your URL via `HA -> Settings -> Home Assistant Cloud -> Remote Control -> Nabu Casa URL` and don't forget to add `/api` to the end of the copied string.
|
||||
If you are using [Nabu Casa](https://www.nabucasa.com/) then your Cloud API URL can be found by looking up your URL via `HA -> Settings -> HomeAssistant Cloud -> Remote Control -> Nabu Casa URL` and don't forget to add `/api` to the end of the copied string.
|
||||
|
||||

|
||||
|
||||
@@ -248,16 +255,34 @@ Unfortunately the Settings dialogue box in the Garmin IQ application "times out"
|
||||
<img src="images/GarminHomeAssistantSettings.png" width="400" title="Application Settings"/>
|
||||
|
||||
1. Copy and paste your API key you've just created into the top field.
|
||||
2. Add the URL for your Home Assistant API, e.g. `https://<homeassistant>/api`. (No trailing slash `/`` character as one gets appended when creating the URL and you do not want two.)
|
||||
2. Add the URL for your HomeAssistant API, e.g. `https://<homeassistant>/api`. (No trailing slash `/`` character as one gets appended when creating the URL and you do not want two.)
|
||||
3. Add the URL of your JSON file, e.g. `https://<homeassistant>/local/garmin/<something>.json`.
|
||||
|
||||
You should now have a working application on your watch and be able to operate your Home Assistant devices for as long as your watch is within Bluetooth range of your phone.
|
||||
You should now have a working application on your watch and be able to operate your HomeAssistant devices for as long as your watch is within Bluetooth range of your phone.
|
||||
|
||||
You may choose to cache your menu definition on your device in order to reduce the delay in showing the menu (as it saves waiting for an HTTP GET request). If you use this option you are responsible for managing the cache when the menu is updated at source. The toggle option below the cache option allows you to choose to refresh the cache the next time the application starts. Once the cache has been cleared, the application will reset this toggle for you, so you do not need to return to the settings to amend it.
|
||||
### Changes to the (JSON) Dashboard Definition & Caching
|
||||
|
||||
The application uses vibration to confirm the action has been requested, as opposed to the 'toast' appears to show the action has been successfully executed. This is enabled by default but may be turned off if you do not desire this behaviour.
|
||||
Without caching enabled, when you change the JSON file defining your dashboard, you must exit the application and the reopen it. It only takes a matter of a few seconds to pick up the new definition.
|
||||
|
||||
The application timeout prevents the HomeAssistant App running on your watch when you have forgotten to close it. It prevents the refreshing of the menu statuses and therefore excessive wear on your battery level. For those users who prefer to keep the application open all the time for continuous use, they can reduce the battery wear by increasing the "poll delay". This inserts a user configurable number of seconds between each round of item update checks, hence reducing the API access activity. This also reduces the responsive of the statuses displayed when HA devices are switched externally, i.e. by another Home Assistant client, then the watch menu display will not update as quickly. Therefore if you only use the HomeAssistant App briefly now and then, keep this setting at the default 0 seconds. NB. To be clear, all items are updated then a configurable delay is inserted before the next round of all item updates. If your poll delay is greater than zero, then your application timeout should be set to zero, otherwise you will exit the application and negate the value of the poll delay function.
|
||||
You may choose to cache your menu definition on your device in order to reduce the delay in showing the menu (as it saves waiting for an HTTP GET request). If you use this option you need to be aware of how updates to the menu are managed. You may either:
|
||||
|
||||
1. **Choose to have the cache cleared.** The toggle option below the cache option allows you to choose to refresh the cache the next time the application starts. Once the cache has been cleared, the application will reset this toggle for you, so you do not need to return to the settings to amend it.
|
||||
2. **Let the application retrieve the menu after starting and setting up the switch states** (including evaluating [templates](examples/Templates.md)), and then verify you have the latest menu. If a newer menu is retrieved you will be notified via a 'toast' or blue screen for devices without a toast in their API. You will be prompted to restart the application in order to build the menu from this latest menu definition. **This method has proven tricky in older devices with less memory.** Hence it can be turned off to avoid "Out of Memory" crashes. The application tries to protect against crashes by detecting insufficient memory and disabling the option (but note that this may require some tuning). Hence this option is off by default in case it causes a crash and new users are unaware of the potential cause.
|
||||
|
||||
**Summary:** The two cache options are therefore distinct, the **first is a manual** forced refresh (the old way). The menu is refreshed on start up and no restart is required. The **second enables automatic checking** after starting and after presenting a usable menu with no extra delay but then any detected changes require a restart.
|
||||
|
||||
Whilst it would be a smoother experience, there are no plans to make the menu definition update dynamically recreate the rendered menu items without a restart because:
|
||||
1. Re-rendering the menu could change the selected item just as you action it.
|
||||
2. V3.3 proved that older devices are now reaching their memory limits. If you have an old device with limited memory to spare you will probably find the App disables the automatic method for you. If your device crashes with this option turned on, best turn it off manually and let me know via a [Github issue](https://github.com/house-of-abbey/GarminHomeAssistant/issues). This will allow us to fine tune the conditions for insufficient memory. We will then ask you to perform a [small task to retrieve the debug information](https://developer.garmin.com/connect-iq/core-topics/debugging/) we need about memory usage.
|
||||
3. Restarting is simple for the user and simpler for the code.
|
||||
|
||||
### Vibration
|
||||
|
||||
The application uses vibration to confirm the action has been requested, which is different to the 'toast' that appears to show the action has been successfully executed. This is enabled by default but may be turned off if you do not desire this behaviour.
|
||||
|
||||
### Power Management
|
||||
|
||||
The application timeout prevents the HomeAssistant App running on your watch when you have forgotten to close it. It prevents the refreshing of the menu statuses and therefore excessive wear on your battery level. For those users who prefer to keep the application open all the time for continuous use, they can reduce the battery wear by increasing the "poll delay". This inserts a user configurable number of seconds between each round of item update checks, hence reducing the API access activity. This also reduces the responsive of the statuses displayed when HA devices are switched externally, i.e. by another HomeAssistant client, then the watch menu display will not update as quickly. Therefore if you only use the HomeAssistant App briefly now and then, keep this setting at the default 0 seconds. NB. To be clear, all items are updated then a configurable delay is inserted before the next round of all item updates. If your poll delay is greater than zero, then your application timeout should be set to zero, otherwise you will exit the application and negate the value of the poll delay function.
|
||||
|
||||
| Application Timeout | Poll Delay | Comment |
|
||||
|:-------------------:|:----------:|:--------|
|
||||
@@ -266,13 +291,17 @@ The application timeout prevents the HomeAssistant App running on your watch whe
|
||||
| 0 | > 0 | Permanently open, but poll more gently to save battery. |
|
||||
| > 0 | > 0 | Temporarily open, poll more gently to save battery, but the application closes before the benefit is realised. Not recommended. |
|
||||
|
||||
There is a second timeout value for confirmation views. This is intended for use with more sensitive toggles so that the confirmation view is not left open and forgotten and then confirmed accidentally without you noticing. **We cannot advise you this is safe, be careful what you toggle with the watch application!**
|
||||
There is a second timeout value for confirmation views. This is intended for use with more sensitive toggles so that the confirmation view is not left open and forgotten and then confirmed accidentally without you noticing. **We cannot advise you this is safe, be careful what you toggle with the watch application!** _The developers will not be held responsible for any insecurities resulting from using this feature, including any inadvertent code changes that cause the PIN feature to not work._
|
||||
|
||||
The confirmation timeout is also used for the maximum time between clicks in the PIN confirmation dialog. The PIN confirmation provides a more secure alternative for toggling security-sensitive actions.
|
||||
|
||||
### Text Alignment
|
||||
|
||||
There is a toggle setting for "text alignment" that provides finer adjustment for right-to-left languages. Perhaps this could be made automatic based on device language?
|
||||
|
||||
The application and widget both include a background service to report your watch's battery level and charging status. You may enable a background service to report the battery level to your Home Assistant. This is not available over your Bluetooth connection like with other Bluetooth devices as Garmin did not implement it. This no longer requires any setup, and we offer this [trouble shooting](TroubleShooting.md#watch-battery-level-reporting) guide. The last field here is readonly and allows the user to copy & paste the Webhook ID setup by the application when required for this trouble shooting guide.
|
||||
### Background Service
|
||||
|
||||
The application and widget both include a background service to report your watch's battery level and charging status. You may enable a background service to report the battery level to your HomeAssistant. This is not available over your Bluetooth connection like with other Bluetooth devices as Garmin did not implement it. This no longer requires any setup, and we offer this [trouble shooting](TroubleShooting.md#watch-battery-level-reporting) guide. The last field here is readonly and allows the user to copy & paste the Webhook ID setup by the application when required for this trouble shooting guide.
|
||||
|
||||
## Tap Item Response
|
||||
|
||||
@@ -280,11 +309,11 @@ Its obvious that a toggle menu item has been triggered as the visible switch cha
|
||||
|
||||
<img src="images/SimTapResponse.png" width="400" title="Tap Triggered"/>
|
||||
|
||||
The application will display a 'toast' showing Home Assistant's friendly name of the triggered item. The toast will disappear after a short while if not dismissed by the user. N.B. There are reports that on the Forerunner 55 device, the toasts do not dissapear without manual intervention. On other devices like the Venu 2 the toast can take 15 seconds to dissappear if not dismissed. Unfortunately, there is no API call to change this behaviour.
|
||||
The application will display a 'toast' showing HomeAssistant's friendly name of the triggered item. The toast will disappear after a short while if not dismissed by the user. N.B. There are reports that on the Forerunner 55 device, the toasts do not dissapear without manual intervention. On other devices like the Venu 2 the toast can take 15 seconds to dissappear if not dismissed. Unfortunately, there is no API call to change this behaviour.
|
||||
|
||||
## External Device Changes
|
||||
|
||||
Home Assistant will inevitably change the state of devices you are also controlling via your Garmin. The Garmin application does not maintain a web socket to listen for changes. Instead it must poll the Home Assistant API with your key. Therefore the application is not that responsive to changes. Instead there will be a delay of multiples of 100 ms per item whose status needs to be checked and amended.
|
||||
HomeAssistant will inevitably change the state of devices you are also controlling via your Garmin. The Garmin application does not maintain a web socket to listen for changes. Instead it must poll the HomeAssistant API with your key. Therefore the application is not that responsive to changes. Instead there will be a delay of multiples of 100 ms per item whose status needs to be checked and amended.
|
||||
|
||||
The per toggle item delay is caused by a queue of responses to web requests. The responses fill up a buffer and in early testing we observed [`Communications.BLE_QUEUE_FULL`](https://developer.garmin.com/connect-iq/api-docs/Toybox/Communications.html) response codes. For a Venu 2 Garmin watch an API call delay of 600 ms was found to be sustainable (500 ms was still too fast). The code now chains a sequence of updates, so as one finishes it invokes the next item's update. **The more items requiring a status update that you pack into your dashboard, the slower each individual item will be updated!**
|
||||
|
||||
@@ -292,10 +321,6 @@ The thinking here is that the watch application will only ever be open briefly n
|
||||
|
||||
To prevent excessive battery usage, set the application timeout in the settings. This will prevent you from leaving the application open and forgotten when not being used, and the polling mechanism will then cease, saving battery life. Again, the thinking here is that the watch application will only ever be open briefly not persistently, and hence not be a constant source of battery usage unless the [background service](BackgroundService.md) for sending any watch status is used aggressively fast.
|
||||
|
||||
## Changes to the (JSON) Dashboard Definition
|
||||
|
||||
When you change the JSON file defining your dashboard, you must exit the application and the reopen it. It only takes a matter of a few seconds to pick up the new definition, but it is not automatic. *Don't forget* you may need to choose to clear your cached menu.
|
||||
|
||||
## Submitting Corrections for Translations
|
||||
|
||||
Initially all text has been created in English, and a [Python script](https://github.com/house-of-abbey/GarminHomeAssistant/blob/main/translate.py) (Google Translate under the hood) has been used to create the first version of all translations. We have been pleased to accept better translations from native language speakers, *thank you*. If you would like to submit improved translations, our preference is you do so via a [Git pull request](https://github.com/house-of-abbey/GarminHomeAssistant/pulls). If you are not comfortable doing this, then just raise an issue and someone will eventually pick the request up.
|
||||
@@ -317,9 +342,11 @@ The `id` attribute values are taken from the same names used in [`strings.xml`](
|
||||
|
||||
## Known Issues
|
||||
|
||||
Check the latest unresolved [issues](https://github.com/house-of-abbey/GarminHomeAssistant/issues) on Github. Otherwise the following are persistent issues with no realistic resolution.
|
||||
|
||||
1. There are some cases where the file format may be valid JSON, but invalid against the schema, and the failure to catch this error could cause the application to crash. Whilst we have taken care to manage many issues, there may still be cases that are uncaught. Please verify your JSON schema, see the [trouble shooting guide](TroubleShooting.md).
|
||||
|
||||
2. On some (old) devices (e.g. Vivoactive 3, Fenix 5s & Edge 520+), the menu does not update correctly to reflect changes in state effected by an external Home Assistant control. E.g. when the phone application changes the toggle status of a switch, the Garmin application does not reflect that change until the menu is touched or scrolled a little. This is a [known issue](https://forums.garmin.com/developer/connect-iq/i/bug-reports/menu2-doesn-t-allow-live-updates) already reported without a suggested software fix.
|
||||
2. On some (old) devices (e.g. Vivoactive 3, Fenix 5s & Edge 520+), the menu does not update correctly to reflect changes in state effected by an external HomeAssistant control. E.g. when the phone application changes the toggle status of a switch, the Garmin application does not reflect that change until the menu is touched or scrolled a little. This is a [known issue](https://forums.garmin.com/developer/connect-iq/i/bug-reports/menu2-doesn-t-allow-live-updates) already reported without a suggested software fix.
|
||||
|
||||
3. The iPhone Connect IQ application has a bug in it we cannot be responsible for. Thanks to user [a_smart_hoome](https://community.home-assistant.io/u/a_smart_hoome) who worked the problem with the dropped Internet connection, see his explanation at https://community.home-assistant.io/t/home-assistant-app-for-garmin/637348/61 for details. Please complain to the Connect IQ application developers rather than us!
|
||||
|
||||
@@ -331,6 +358,12 @@ The `id` attribute values are taken from the same names used in [`strings.xml`](
|
||||
|
||||
7. We are unable to support HTTP natively (without the workaround specified earlier). This is a limitation placed upon us by the Connect IQ API which for security reasons refuses to work with HTTP requests. There is nothing developers can do about this limitation. See the [Trouble Shooting](TroubleShooting.md#do-it-yourself-setup) guide for an example setup. We would appreciate it if users did not leave poor reviews for the lack of this feature which is beyond our control to fix.
|
||||
|
||||
8. There is a [bug in Garmin Express so that when you use that software to amend the application's settings](https://github.com/house-of-abbey/GarminHomeAssistant/issues/194), the page appears in a random language not of your choice. I would like to thank user [heviiguy](https://github.com/heviiguy) for his work researching the issue, leading to these references that indicate the authors of Garmin Home Assistant cannot resolve this issue as its a bug in Garmin Express that Garmin are refusing to believe exists! See these pages for details:
|
||||
8. There is a [bug in Garmin Express so that when you use that software to amend the application's settings](https://github.com/house-of-abbey/GarminHomeAssistant/issues/194), the page appears in a random language not of your choice. I would like to thank user [heviiguy](https://github.com/heviiguy) for his work researching the issue, leading to these references that indicate the authors of Garmin HomeAssistant cannot resolve this issue as its a bug in Garmin Express that Garmin are refusing to believe exists! See these pages for details:
|
||||
- [Garmin Express - Wrong Language](https://forums.garmin.com/developer/connect-iq/i/bug-reports/garmin-express---wrong-language)
|
||||
- [Incorrect language displayed for custom data fields](https://forums.garmin.com/developer/connect-iq/f/discussion/388137/incorrect-language-displayed-for-custom-data-fields)
|
||||
|
||||
9. When using Wi-Fi or LTE to toggle a light, the `toggle` will fail when the default or current state of the application's menu does not match the state of the light. The same applies to a cover or other thing that can be toggled. This is because the application is unable to initialise the menu with the current state without Bluetooth. Hence the Wi-Fi/LTE functionality is best used with `tap` items only.
|
||||
|
||||
# Authors & Contributors
|
||||
|
||||
For an up to date list of all authors and contributors, please check the [contributor's page](https://github.com/house-of-abbey/GarminHomeAssistant/graphs/contributors). Thank you all for improving this application.
|
||||
|
@@ -1,4 +1,4 @@
|
||||
[Home](README.md) | [Switches](examples/Switches.md) | [Actions](examples/Actions.md) | [Templates](examples/Templates.md) | [Background Service](BackgroundService.md) | Trouble Shooting | [Version History](HISTORY.md)
|
||||
[Home](README.md) | [Switches](examples/Switches.md) | [Actions](examples/Actions.md) | [Templates](examples/Templates.md) | [Glance](examples/Glance.md) | [Background Service](BackgroundService.md) | [Wi-Fi](Wi-Fi.md) | [HTTP Headers](HTTP_Headers.md) | [Trouble Shooting](TroubleShooting.md) | [Version History](HISTORY.md)
|
||||
|
||||
# Troubleshooting Guides
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
|
||||
Before [raising an issue](https://github.com/house-of-abbey/GarminHomeAssistant/issues) about a possible bug, _please, please_ check your JSON is compliant with both the JSON format and our schema. To do this you have options. The first is what we use.
|
||||
|
||||
1. **Best!** Use the GarminHomeAssistant [Web-based Editor](https://house-of-abbey.github.io/GarminHomeAssistant/web/) which includes `entity` and `service` name completion and validation by fetching data from your own Home Assistant instance. _Pretty nifty eh?_ The other methods listed below do not add this convenience and checking.
|
||||
2. Use the [Studio Code Server](https://community.home-assistant.io/t/home-assistant-community-add-on-visual-studio-code/107863) addon for Home Assistant. You can then edit your JSON file in place.
|
||||
1. **Best!** Use the GarminHomeAssistant [Web-based Editor](https://house-of-abbey.github.io/GarminHomeAssistant/web/) which includes `entity` and `service` name completion and validation by fetching data from your own HomeAssistant instance. _Pretty nifty eh?_ The other methods listed below do not add this convenience and checking.
|
||||
2. Use the [Studio Code Server](https://community.home-assistant.io/t/home-assistant-community-add-on-visual-studio-code/107863) addon for HomeAssistant. You can then edit your JSON file in place.
|
||||
3. Locally installed VSCode, or if not installed, try
|
||||
4. The on-line version at https://vscode.dev/, which works really well. Paste in your JSON (and change the file type to JSON if not saving), it will then verify your file format and schema for you, highlighting any errors for you to fix.
|
||||
|
||||
@@ -23,7 +23,7 @@ With either of the following setups, there are inevitably some problems along th
|
||||
|
||||
### Nabu Casa Setup
|
||||
|
||||
You can purchase cloud-based access to your Home Assistant from [Nabu Casa](https://www.nabucasa.com/), and then your setup will look something like this.
|
||||
You can purchase cloud-based access to your HomeAssistant from [Nabu Casa](https://www.nabucasa.com/), and then your setup will look something like this.
|
||||
|
||||

|
||||
|
||||
@@ -67,9 +67,9 @@ This URL is very simple, you should be able to read the contents returned in a s
|
||||
|
||||
The browser page should then display the JSON string you saved to the file on the web server. The point is this is a simple HTTP GET request with no bells and whistles.
|
||||
|
||||
The menu configuration can be hosted anywhere, it does not have to be on the Home Assistant web server. Just as long as it is reachable from your phone from which you Bluetooth connect to your watch, or you watch if it has direct Internet access.
|
||||
The menu configuration can be hosted anywhere, it does not have to be on the HomeAssistant web server. Just as long as it is reachable from your phone from which you Bluetooth connect to your watch, or you watch if it has direct Internet access.
|
||||
|
||||
### Home Assistant API URL
|
||||
### HomeAssistant API URL
|
||||
|
||||
This is slightly trickier owning to the need to supply the API key. Here are three ways you can test your API URL is correctly configured. If successful, each of these should produce a JSON string output looking like:
|
||||
|
||||
@@ -124,8 +124,8 @@ There's an online way of testing the API URL too, thanks to [REQBIN](https://req
|
||||
|
||||
With thanks to [@ziceva](https://github.com/ziceva) for solving this problem. The symptoms are:
|
||||
1. Using an API URL with SSL (HTTPS), the [web-based editor](https://house-of-abbey.github.io/GarminHomeAssistant/web/) running in a browser on the same phone running Garmin Connect works well.
|
||||
2. The exact same configuration is set in the Garmin Home Assistant application.
|
||||
3. The Garmin Home Assistant application reports:
|
||||
2. The exact same configuration is set in the Garmin HomeAssistant application.
|
||||
3. The Garmin HomeAssistant application reports:
|
||||
```
|
||||
API: not available
|
||||
Menu: not available
|
||||
@@ -153,7 +153,7 @@ To verify if you have this issue you can use a tool like [SSL Shoppers's SSL Che
|
||||
|
||||
## Watch Battery Level Reporting
|
||||
|
||||
For this you will need to have already got the main application or widget working with a menu in order to prove that the API calls are successful. We have proven this works with both our home brew infrastructure as well as Nabu Casa. Now with a script similar to one of the following two, you should be able to fake the watch API call and verify receipt by Home Assistant.
|
||||
For this you will need to have already got the main application or widget working with a menu in order to prove that the API calls are successful. We have proven this works with both our home brew infrastructure as well as Nabu Casa. Now with a script similar to one of the following two, you should be able to fake the watch API call and verify receipt by HomeAssistant.
|
||||
|
||||
#### Battery: Linux, MacOS, UNIX, Cygwin etc
|
||||
|
||||
@@ -311,9 +311,19 @@ JSON for copy & paste:
|
||||
}
|
||||
```
|
||||
|
||||
# Failed API Calls
|
||||
|
||||

|
||||
|
||||
When the application persists in reporting "No JSON returned from HTTP request." this might be due to a mismatch between the Webhook ID and the device settings on the HomeAssistant server. We have discovered that the Webhook ID is required for HomeAssistant API calls with templates in order to work in a non-privileged account. The application options include the ability to clear the Webhook ID in the application forcing a new one to be set up. This should prevent the above error being shown on startup.
|
||||
|
||||
Look for this option in the application settings:
|
||||
|
||||

|
||||
|
||||
# Debug Logs
|
||||
|
||||
As a desperate measure to assist with debugging the Home Assistant Application, you might be asked to send the authors a debug log.
|
||||
As a desperate measure to assist with debugging the HomeAssistant Application, you might be asked to send the authors a debug log.
|
||||
|
||||

|
||||
|
||||
|
43
Wi-Fi.md
Normal file
@@ -0,0 +1,43 @@
|
||||
[Home](README.md) | [Switches](examples/Switches.md) | [Actions](examples/Actions.md) | [Templates](examples/Templates.md) | [Glance](examples/Glance.md) | [Background Service](BackgroundService.md) | [Wi-Fi](Wi-Fi.md) | [HTTP Headers](HTTP_Headers.md) | [Trouble Shooting](TroubleShooting.md) | [Version History](HISTORY.md)
|
||||
|
||||
# Wi-Fi & LTE
|
||||
|
||||
Many watches now include the ability to synchronise data over Wi-Fi or event LTE in addition to Bluetooth. This gives users of this application the expectation that they should be able to operate HomeAssistant devices from their watch without Bluetooth and hence their phone (that they left out of contact distance). The whole point of Bluetooth after all is that it is [low power](https://en.wikipedia.org/wiki/Bluetooth#Uses). Using Wi-Fi and LTE are power hungry and therefore not something that can be left on continuously in a small device. The watch function that uses Wi-Fi & LTE is the ability to 'synchronise', e.g. activity data (FIT files) and application updates. This function then has a limited period of time for which radio is active. Neither Wi-Fi nor LTE are "always on" like Bluetooth.
|
||||
|
||||
With version 3.0 onwards the application now includes the ability to temporarily turn on Wi-Fi or LTE in order to perform a task on the watch. To do this, the "synchronise" function of the Connect IQ SDK has been cleverly hijacked. This appears to be a highly sought after solution from several users as **it allows the watch to operate when out of range of the associated phone**.
|
||||
|
||||
## Limits of Use
|
||||
|
||||
1. An API request issued over Wi-Fi requires the watch to open up an IP connection to your Wi-Fi access point. This means setting up a secure channel with WPA and being allocated an IP address. Establishing the communication channel takes a short while. _You will see that this adds a noticeable delay to usability._
|
||||
|
||||
2. **The Wi-Fi/LTE functionality can only be used when the menu is already cached.** _The watch will not perform an HTTPS GET request to retrieve the JSON menu file_. Therefore, to enable the Wifi/LTE functionality in the application settings, you must enable caching first.
|
||||
|
||||
3. The menu item statuses will not be set correctly. Instead you will be warned about the lack of connectivity by a 'toast', i.e. message partially occupying the top of the screen temporarily. Fetching the menu item statuses, including rendered templates, requires its own API call, hence this not performed.
|
||||
|
||||
4. Remember that you need to be within range of your watch's configured Wi-Fi access point to utilize this functionality. If supported by your device, LTE offers a longer range, but network charges may apply.
|
||||
|
||||
5. On some Garmin devices, the HTTPS handshake is performed using **TLS 1.2**. If your server or proxy enforces a higher minimum (e.g., TLS 1.3), you will encounter an SSL handshake error with the message:
|
||||
|
||||
```
|
||||
HTTP request returned error code = 0
|
||||
```
|
||||
|
||||
This limitation only affects **Wi-Fi/LTE connections**. When connected over **Bluetooth**, the watch routes requests through the paired phone, which handles the TLS handshake and supports newer TLS versions (such as 1.3) without issue.
|
||||
|
||||
To fix this, lower the minimum TLS setting to allow TLS 1.2. For example, if you are using **Cloudflare Tunneling**, go to:
|
||||
`SSL/TLS → Edge Certificates → Minimum TLS Version`
|
||||
and set it to **at most TLS 1.2**. _Reducing below TLS 1.2 is not recommended due to security risks._
|
||||
|
||||
## Video
|
||||
|
||||
This video using will hopefully make it obvious how slow it is to use the Wi-Fi option and illustrate the cautionary notes above.
|
||||
|
||||
https://github.com/user-attachments/assets/269981e9-12dc-44f2-a28f-b8e844b2b2f8
|
||||
|
||||
### Please Note
|
||||
|
||||
We emphasize that the Wi-Fi/LTE functionality should be viewed as a 'last resort' method for executing tasks when your phone is not available. It is not recommended as a continuous mode of operation.
|
||||
|
||||
## Credits
|
||||
|
||||
With thanks to Vincent, [@vincentezw](https://github.com/vincentezw) for contributing this solution, and to Ali Alaei, [@aalaei](https://github.com/aalaei) for the finer details on TLS.
|
@@ -33,21 +33,24 @@ set DEVICE=venu2
|
||||
set JUNGLE=monkey.jungle
|
||||
|
||||
rem C:\>java -jar %SDK_PATH%\monkeybrains.jar -h
|
||||
rem usage: monkeyc [-a <arg>] [-b <arg>] [--build-stats <arg>] [-c <arg>] [-d <arg>]
|
||||
rem [--debug-log-level <arg>] [--debug-log-output <arg>] [-e]
|
||||
rem usage: monkeyc [-a <arg>] [-b <arg>] [--build-stats <arg>] [-d <arg>]
|
||||
rem [--debug-log-level <arg>] [--debug-log-output <arg>]
|
||||
rem [--disable-api-has-check-removal] [--disable-v2-opcodes] [-e]
|
||||
rem [--Eno-invalid-symbol] [-f <arg>] [-g] [-h] [-i <arg>] [-k] [-l <arg>]
|
||||
rem [-m <arg>] [--no-gen-styles] [-o <arg>] [-O <arg>] [-p <arg>] [-r] [-s
|
||||
rem <arg>] [-t] [-u <arg>] [-v] [-w] [-x <arg>] [-y <arg>] [-z <arg>]
|
||||
rem [-m <arg>] [--no-gen-styles] [-o <arg>] [-O <arg>] [-p <arg>] [-r] [-t]
|
||||
rem [-u <arg>] [-v] [-w] [-x <arg>] [-y <arg>] [-z <arg>]
|
||||
rem -a,--apidb <arg> API import file
|
||||
rem -b,--apimir <arg> API MIR file
|
||||
rem --build-stats <arg> Print build stats [0=basic]
|
||||
rem -c,--api-level <arg> API Level to target
|
||||
rem -d,--device <arg> Target device
|
||||
rem --debug-log-level <arg> Debug logging verbosity [0=errors, 1=basic,
|
||||
rem 2=intermediate, 3=verbose]
|
||||
rem --debug-log-output <arg>Output log zip file
|
||||
rem --debug-log-output <arg> Output log zip file
|
||||
rem --disable-api-has-check-removalDo not optimize out API has checks
|
||||
rem --disable-v2-opcodes Do not use the v2 opcodes
|
||||
rem -e,--package-app Create an application package.
|
||||
rem --Eno-invalid-symbol Do not error when a symbol is found to be invalid
|
||||
rem --Eno-invalid-symbol Do not error when a symbol is found to be
|
||||
rem invalid
|
||||
rem -f,--jungles <arg> Jungle files
|
||||
rem -g,--debug Print debug output
|
||||
rem -h,--help Prints help information
|
||||
@@ -59,16 +62,18 @@ rem -m,--manifest <arg> Manifest file (deprecated)
|
||||
rem --no-gen-styles Do not generate Rez.Styles module
|
||||
rem -o,--output <arg> Output file to create
|
||||
rem -O,--optimization <arg> Optimization level [0=none, 1=basic, 2=fast
|
||||
rem optimizations, 3=slow optimizations] [p=optimize
|
||||
rem performance, z=optimize code space]
|
||||
rem optimizations, 3=slow optimizations]
|
||||
rem [p=optimize performance, z=optimize code
|
||||
rem space]
|
||||
rem -p,--project-info <arg> projectInfo.xml file to use when compiling
|
||||
rem -r,--release Strip debug information
|
||||
rem -s,--sdk-version <arg> SDK version to target (deprecated, use -c
|
||||
rem -t,--unit-test Enables compilation of unit tests
|
||||
rem -u,--devices <arg> devices.xml file to use when compiling (deprecated)
|
||||
rem -u,--devices <arg> devices.xml file to use when compiling
|
||||
rem (deprecated)
|
||||
rem -v,--version Prints the compiler version
|
||||
rem -w,--warn Show compiler warnings
|
||||
rem -x,--excludes <arg> Add annotations to the exclude list (deprecated)
|
||||
rem -x,--excludes <arg> Add annotations to the exclude list
|
||||
rem (deprecated)
|
||||
rem -y,--private-key <arg> Private key to sign builds with
|
||||
rem -z,--rez <arg> Resource files (deprecated)
|
||||
|
||||
@@ -88,7 +93,7 @@ if not exist %DEST% (
|
||||
)
|
||||
|
||||
echo.
|
||||
echo Starting compilation for simulation on %DEVICE%.
|
||||
echo Starting compilation for simulation on '%DEVICE%'.
|
||||
echo.
|
||||
|
||||
rem call %SDK_PATH%\connectiq.bat
|
||||
@@ -104,8 +109,9 @@ rem Compile PRG for a single device for side loading
|
||||
--jungles %SRC%\%JUNGLE% ^
|
||||
--private-key %SRC%\..\developer_key ^
|
||||
--device %DEVICE%_sim ^
|
||||
--warn ^
|
||||
--release
|
||||
--warn
|
||||
|
||||
rem --release
|
||||
|
||||
if %ERRORLEVEL% equ 0 (
|
||||
%SDK_PATH%\monkeydo.bat %SRC%\bin\HomeAssistant.prg %DEVICE%
|
||||
|
@@ -2,14 +2,19 @@
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"$schema": {
|
||||
"type": "string",
|
||||
"description": "The schema will prevent JSON file errors."
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"description": "Top level menu title"
|
||||
},
|
||||
"glance": {
|
||||
"$ref": "#/$defs/glance"
|
||||
},
|
||||
"items": {
|
||||
"$ref": "#/$defs/items"
|
||||
},
|
||||
"$schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": ["title", "items"],
|
||||
@@ -29,8 +34,7 @@
|
||||
"const": "toggle"
|
||||
},
|
||||
"content": {
|
||||
"$ref": "#/$defs/content",
|
||||
"description": "Optional in a toggle."
|
||||
"$ref": "#/$defs/content"
|
||||
},
|
||||
"tap_action": {
|
||||
"type": "object",
|
||||
@@ -43,6 +47,12 @@
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
"enabled": {
|
||||
"$ref": "#/$defs/enabled"
|
||||
},
|
||||
"exit": {
|
||||
"$ref": "#/$defs/exit"
|
||||
}
|
||||
},
|
||||
"required": ["entity", "name", "type"],
|
||||
@@ -71,6 +81,9 @@
|
||||
"deprecated": true,
|
||||
"title": "Schema change:",
|
||||
"description": "Use 'info' or 'tap' instead."
|
||||
},
|
||||
"enabled": {
|
||||
"$ref": "#/$defs/enabled"
|
||||
}
|
||||
},
|
||||
"required": ["name", "content", "type"],
|
||||
@@ -97,6 +110,12 @@
|
||||
},
|
||||
"tap_action": {
|
||||
"$ref": "#/$defs/tap_action"
|
||||
},
|
||||
"enabled": {
|
||||
"$ref": "#/$defs/enabled"
|
||||
},
|
||||
"exit": {
|
||||
"$ref": "#/$defs/exit"
|
||||
}
|
||||
},
|
||||
"required": ["name", "content", "type", "tap_action"],
|
||||
@@ -116,6 +135,9 @@
|
||||
"type": {
|
||||
"$ref": "#/$defs/type",
|
||||
"const": "info"
|
||||
},
|
||||
"enabled": {
|
||||
"$ref": "#/$defs/enabled"
|
||||
}
|
||||
},
|
||||
"required": ["name", "content", "type"],
|
||||
@@ -135,8 +157,7 @@
|
||||
"const": "tap"
|
||||
},
|
||||
"content": {
|
||||
"$ref": "#/$defs/content",
|
||||
"description": "Optional in a tap."
|
||||
"$ref": "#/$defs/content"
|
||||
},
|
||||
"service": {
|
||||
"$ref": "#/$defs/entity",
|
||||
@@ -146,6 +167,12 @@
|
||||
},
|
||||
"tap_action": {
|
||||
"$ref": "#/$defs/tap_action"
|
||||
},
|
||||
"enabled": {
|
||||
"$ref": "#/$defs/enabled"
|
||||
},
|
||||
"exit": {
|
||||
"$ref": "#/$defs/exit"
|
||||
}
|
||||
},
|
||||
"required": ["name", "type"],
|
||||
@@ -174,11 +201,13 @@
|
||||
"const": "group"
|
||||
},
|
||||
"content": {
|
||||
"$ref": "#/$defs/content",
|
||||
"description": "Optional in a group."
|
||||
"$ref": "#/$defs/content"
|
||||
},
|
||||
"items": {
|
||||
"$ref": "#/$defs/items"
|
||||
},
|
||||
"enabled": {
|
||||
"$ref": "#/$defs/enabled"
|
||||
}
|
||||
},
|
||||
"required": ["name", "title", "type", "items"],
|
||||
@@ -190,7 +219,6 @@
|
||||
},
|
||||
"items": {
|
||||
"type": "array",
|
||||
"maxItems": 16,
|
||||
"items": {
|
||||
"oneOf": [
|
||||
{
|
||||
@@ -248,7 +276,8 @@
|
||||
"required": ["service"]
|
||||
},
|
||||
"content": {
|
||||
"title": "Jinja2 template defining the text to display.",
|
||||
"title": "Home Assistant Template",
|
||||
"description": "Jinja2 template defining the text to display. Must be included in an 'info'. Optional in a 'toggle', 'tap' and 'group'. Special characters may not render in the glance context.",
|
||||
"type": "string"
|
||||
},
|
||||
"confirm": {
|
||||
@@ -262,6 +291,47 @@
|
||||
"default": false,
|
||||
"title": "PIN Confirmation",
|
||||
"description": "Optional PIN confirmation of the action before execution as a precaution. Has precedence over 'confirm': true if both are set."
|
||||
},
|
||||
"glance": {
|
||||
"type": "object",
|
||||
"title": "Glance customisation",
|
||||
"oneOf": [
|
||||
{
|
||||
"properties": {
|
||||
"type": {
|
||||
"title": "Glance type",
|
||||
"description": "One of 'info' or 'status'. 'info' renders the template specified in the 'content' field inside the glance view. 'status' reverts to the default glance view and ignores the 'content' field. This allows for disabling the template temporarily.",
|
||||
"const": "info"
|
||||
},
|
||||
"content": {
|
||||
"$ref": "#/$defs/content"
|
||||
}
|
||||
},
|
||||
"required": ["type", "content"]
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"type": {
|
||||
"title": "Glance type",
|
||||
"description": "One of 'info' or 'status'.",
|
||||
"const": "status"
|
||||
}
|
||||
},
|
||||
"required": ["type"]
|
||||
}
|
||||
]
|
||||
},
|
||||
"enabled": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"title": "Enable the menu item",
|
||||
"description": "Typically used to temporarily disable a menu item, e.g. for seasonal variations. Enabled (true) by default."
|
||||
},
|
||||
"exit": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"title": "Exit on selection",
|
||||
"description": "Choose to exit the application after this item has been selected. Disabled (false) by default. N.B. Only actionable menu items can have this field added."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,4 +1,5 @@
|
||||
[Home](../README.md) | [Switches](Switches.md) | Actions | [Templates](Templates.md) | [Background Service](../BackgroundService.md) | [Trouble Shooting](../TroubleShooting.md) | [Version History](../HISTORY.md)
|
||||
[Home](../README.md) | [Switches](Switches.md) | [Actions](Actions.md) | [Templates](Templates.md) | [Glance](Glance.md) | [Background Service](../BackgroundService.md) | [Wi-Fi](../Wi-Fi.md) | [HTTP Headers](../HTTP_Headers.md) | [Trouble Shooting](../TroubleShooting.md) | [Version History](../HISTORY.md)
|
||||
|
||||
|
||||
# Actions
|
||||
|
||||
@@ -74,4 +75,36 @@ Note that for notify events, you _must_ not supply an `entity_id` or the API cal
|
||||
> [!IMPORTANT]
|
||||
> Be careful with the value of the `service` field.
|
||||
|
||||
Note that the `service` field will need to be a locally custom `script.<something>` as soon as any `data` fields are populated and not something more generic like `script.turn_on`. If the `service` field is wrong, the application will fail with a [`Communications.INVALID_HTTP_BODY_IN_NETWORK_RESPONSE`](https://developer.garmin.com/connect-iq/api-docs/Toybox/Communications.html) error in the response from your Home Assistant and show the error message as _"No JSON returned from HTTP request"_ on your device. In the [web-based editor](https://house-of-abbey.github.io/GarminHomeAssistant/web/) you can use the standard developer tools to observe an `HTTP 400` error which the application does not see. Here we are limited by the [Garmin Connect IQ](https://developer.garmin.com/connect-iq/overview/) software development kit (SDK). We do not have enough information at the point of execution in the application to determine the cause of the error. Nor is there an immediately obvious way of identifying this issue using the JSON schema checks.
|
||||
Note that the `service` field will need to be a locally custom `script.<something>` as soon as any `data` fields are populated and not something more generic like `script.turn_on`. If the `service` field is wrong, the application will fail with a [`Communications.INVALID_HTTP_BODY_IN_NETWORK_RESPONSE`](https://developer.garmin.com/connect-iq/api-docs/Toybox/Communications.html) error in the response from your HomeAssistant and show the error message as _"No JSON returned from HTTP request"_ on your device. In the [web-based editor](https://house-of-abbey.github.io/GarminHomeAssistant/web/) you can use the standard developer tools to observe an `HTTP 400` error which the application does not see. Here we are limited by the [Garmin Connect IQ](https://developer.garmin.com/connect-iq/overview/) software development kit (SDK). We do not have enough information at the point of execution in the application to determine the cause of the error. Nor is there an immediately obvious way of identifying this issue using the JSON schema checks.
|
||||
|
||||
## Exit on Tap
|
||||
|
||||
You can choose individual items that will quit after they have completed their action.
|
||||
|
||||
```json
|
||||
{
|
||||
"entity": "automation.turn_off_stuff",
|
||||
"name": "Turn off Stuff",
|
||||
"type": "tap",
|
||||
"tap_action": {
|
||||
"service": "automation.trigger"
|
||||
},
|
||||
"exit": true
|
||||
}
|
||||
```
|
||||
|
||||
## Disable Menu Item
|
||||
|
||||
If you would like to temporarily disable an item in your menu, e.g. for seasonal reasons like not needing to turn on the heating in summer, then rather than swapping menu definition files or deleting a section of the menu you can mark the item as 'disabled'. This field applies to all menu items.
|
||||
|
||||
```json
|
||||
{
|
||||
"entity": "automation.turn_off_stuff",
|
||||
"name": "Turn off Stuff",
|
||||
"type": "tap",
|
||||
"tap_action": {
|
||||
"service": "automation.trigger"
|
||||
},
|
||||
"enabled": false
|
||||
}
|
||||
```
|
||||
|
80
examples/Glance.md
Normal file
@@ -0,0 +1,80 @@
|
||||
[Home](../README.md) | [Switches](Switches.md) | [Actions](Actions.md) | [Templates](Templates.md) | [Glance](Glance.md) | [Background Service](../BackgroundService.md) | [Wi-Fi](../Wi-Fi.md) | [HTTP Headers](../HTTP_Headers.md) | [Trouble Shooting](../TroubleShooting.md) | [Version History](../HISTORY.md)
|
||||
|
||||
# Glance
|
||||
|
||||
Since [version 2.30](../History.md), it is possible to ovverride the text displayed on the Glance view. This page explains how to customise the text.
|
||||
|
||||
|
||||
## Default View
|
||||
|
||||
The default view has always been to display the status of the menu and API availability to indicate if there's a problem. This view has now been updated to be more colourful.
|
||||
|
||||
<img src="../images/Venu2_glance_default.png" width="200" title="Venu 2 Default Glance"/>
|
||||
|
||||
When either the API or the menu file is inaccessible, the fields will turn red.
|
||||
|
||||
|
||||
## Customised View
|
||||
|
||||
In order to customise the Glance view you need to add a `glance` field to the top level of the JSON menu file as illustrated here:
|
||||
|
||||
```json
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/house-of-abbey/GarminHomeAssistant/main/config.schema.json",
|
||||
"title": "Home",
|
||||
"glance": {
|
||||
"type": "info",
|
||||
"content": "Text: {% .. %}"
|
||||
},
|
||||
"items": [...]
|
||||
}
|
||||
```
|
||||
|
||||
For example:
|
||||
|
||||
<img src="../images/Venu2_glance_custom.png" width="200" title="Venu 2 Customised Glance"/>
|
||||
|
||||
```json
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/house-of-abbey/GarminHomeAssistant/main/config.schema.json",
|
||||
"glance": {
|
||||
"type": "info",
|
||||
"content": "Solar Battery: {{ states('sensor.battery_capacity_charge') }}%"
|
||||
},
|
||||
:
|
||||
}
|
||||
```
|
||||
|
||||
You may make this as complicated as you like! But you have limited space and only ASCII text characters. **It is best to turn on menu caching in order to speed up the display of the template**. The display is then nearly instantaneous.
|
||||
|
||||
The default view will persist showing until the errors are resolved. In order to extract the custom glance template both the menu and the API are required. So it is logical that the two tests must pass first. The exception here is if the menu is cached, in which case only the API needs to pass.
|
||||
|
||||
> [!IMPORTANT]
|
||||
> Sadly what you cannot do is use special characters like: 🌞🔋⛅🪫. Whilst these do display in menu items, they do not seem to work on the Glance view. We really like them, so have tried but failed. Only ASCII text appears to be supported by the Garmin Connect IQ SDK's Glance View. This is not something we have any control over, please do not request this to be "fixed".
|
||||
|
||||
It is possible to revert to the default glance content without deleting the template by changing the `type` to `status`.
|
||||
|
||||
```json
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/house-of-abbey/GarminHomeAssistant/main/config.schema.json",
|
||||
"title": "Home",
|
||||
"glance": {
|
||||
"type": "status",
|
||||
"content": "Text: {% .. %}"
|
||||
},
|
||||
"items": [...]
|
||||
}
|
||||
```
|
||||
|
||||
So the glance view object has a `type` field with two possible values: `info` and `status`. When the type is `status` the `content` field is not required.
|
||||
|
||||
|
||||
## Displayed Errors
|
||||
|
||||
The following shows the default glance when the menu file is not available at the specified URL.
|
||||
|
||||
<img src="../images/Venu2_glance_no_menu.png" width="200" title="Venu 2 Glance showing errors"/>
|
||||
|
||||
Once the custom glance template has been retrieved and evaluated the display will change. Should the connectivity to your Home Assistant then be lost, e.g. you move out of range of your phone, the glance reflects this in the colour of the residual two rectangles. The top one remains an indicator for the API, and the bottom rectangle remains an indicator for the menu availability, reflecting the original placement in the default glance view that has now been replaced.
|
||||
|
||||
<img src="../images/Venu2_glance_no_bt.png" width="200" title="Venu 2 Glance showing lost connectivity"/>
|
@@ -1,4 +1,4 @@
|
||||
[Home](../README.md) | Switches | [Actions](Actions.md) | [Templates](Templates.md) | [Background Service](../BackgroundService.md) | [Trouble Shooting](../TroubleShooting.md) | [Version History](../HISTORY.md)
|
||||
[Home](../README.md) | [Switches](Switches.md) | [Actions](Actions.md) | [Templates](Templates.md) | [Glance](Glance.md) | [Background Service](../BackgroundService.md) | [Wi-Fi](../Wi-Fi.md) | [HTTP Headers](../HTTP_Headers.md) | [Trouble Shooting](../TroubleShooting.md) | [Version History](../HISTORY.md)
|
||||
|
||||
# Switches
|
||||
|
||||
@@ -108,3 +108,29 @@ Then you can use the following in your config:
|
||||
"type": "toggle"
|
||||
}
|
||||
```
|
||||
|
||||
## Exit On Toggle
|
||||
|
||||
You can choose individual items that will quit after they have completed their action.
|
||||
|
||||
```json
|
||||
{
|
||||
"entity": "light.hall_light",
|
||||
"name": "Hall Light & Quit",
|
||||
"type": "toggle",
|
||||
"exit": true
|
||||
}
|
||||
```
|
||||
|
||||
## Disable Menu Item
|
||||
|
||||
If you would like to temporarily disable an item in your menu, e.g. for seasonal reasons like not needing to turn on Christmas tree lights outside the festive season, then rather than swapping menu definition files or deleting a section of the menu you can mark the item as 'disabled'. This field applies to all menu items.
|
||||
|
||||
```json
|
||||
{
|
||||
"entity": "light.chrissmas_tree",
|
||||
"name": "Christmas Lights",
|
||||
"type": "toggle",
|
||||
"enabled": false
|
||||
}
|
||||
```
|
||||
|
@@ -1,11 +1,11 @@
|
||||
[Home](../README.md) | [Switches](Switches.md) | [Actions](Actions.md) | Templates | [Background Service](../BackgroundService.md) | [Trouble Shooting](../TroubleShooting.md) | [Version History](../HISTORY.md)
|
||||
[Home](../README.md) | [Switches](Switches.md) | [Actions](Actions.md) | [Templates](Templates.md) | [Glance](Glance.md) | [Background Service](../BackgroundService.md) | [Wi-Fi](../Wi-Fi.md) | [HTTP Headers](../HTTP_Headers.md) | [Trouble Shooting](../TroubleShooting.md) | [Version History](../HISTORY.md)
|
||||
|
||||
# Templates
|
||||
|
||||
In order to provide the most functionality possible the content of the menu item comes from a user-defined template (i.e. you generate your own text). This allows you to do some pretty cool things. It also makes the configuration a bit more complicated. This page will help you understand how to use templates.
|
||||
|
||||
- In this file anything between `<` and `>` is a placeholder. Replace it with the appropriate value.
|
||||
- [Jinja2](https://palletsprojects.com/p/jinja/) syntax is used by Home Assistant [Templates](https://www.home-assistant.io/docs/configuration/templating/). Templates are used to dynamically insert values into the content. The syntax includes:
|
||||
- [Jinja2](https://palletsprojects.com/p/jinja/) syntax is used by HomeAssistant [Templates](https://www.home-assistant.io/docs/configuration/templating/). Templates are used to dynamically insert values into the content. The syntax includes:
|
||||
- `{%` ... `%}` for Statements
|
||||
- `{{` ... `}}` for Expressions to print to the template output
|
||||
- `{#` ... `#}` for Comments not included in the template output
|
||||
@@ -218,6 +218,19 @@ An example of a dimmer light with 4 brightness settings 0..3. Here our light wor
|
||||
}
|
||||
```
|
||||
|
||||
## Disable Menu Item
|
||||
|
||||
If you would like to temporarily disable an item in your menu, then rather than swapping menu definition files or deleting a section of the menu you can mark the item as 'disabled'. This field applies to all menu items.
|
||||
|
||||
```json
|
||||
{
|
||||
"name": "Phone",
|
||||
"type": "info",
|
||||
"content": "{{ ... }}",
|
||||
"enabled": false
|
||||
}
|
||||
```
|
||||
|
||||
## Warnings
|
||||
|
||||
Just remember, on older smaller memory devices **you have the ability to crash the application by creating an excessive menu definition**. Templates can require significant definition for highly customised text. Don't be silly.
|
||||
|
@@ -105,7 +105,6 @@ echo.
|
||||
--private-key %SRC%\..\developer_key ^
|
||||
--package-app ^
|
||||
--release
|
||||
rem --warn
|
||||
|
||||
echo.
|
||||
echo Finished exporting HomeAssistant
|
||||
|
Before Width: | Height: | Size: 697 KiB After Width: | Height: | Size: 720 KiB |
BIN
images/NoJson.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
images/Venu2_Glance_good.png
Normal file
After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 23 KiB |
BIN
images/Venu2_glance_custom.png
Normal file
After Width: | Height: | Size: 8.3 KiB |
BIN
images/Venu2_glance_default.png
Normal file
After Width: | Height: | Size: 8.7 KiB |
BIN
images/Venu2_glance_no_bt.png
Normal file
After Width: | Height: | Size: 8.2 KiB |
BIN
images/Venu2_glance_no_menu.png
Normal file
After Width: | Height: | Size: 8.8 KiB |
Before Width: | Height: | Size: 9.1 KiB |
BIN
images/delete_webhook_id.png
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
images/http_header_settings.png
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
images/wi-fi.mp4
Normal file
@@ -24,10 +24,6 @@
|
||||
Use "Monkey C: Edit Application" from the Visual Studio Code command palette
|
||||
to update the application attributes.
|
||||
-->
|
||||
<!--
|
||||
Testing in VSCode requires monkey.jungle, so for convenience, swap between
|
||||
watch-app and widget by changing which of the next two lines are commented out
|
||||
-->
|
||||
<iq:application id="98c36259-498a-4458-9cef-74a273ad2bc3" type="watch-app" name="@Strings.AppName" entry="HomeAssistantApp" launcherIcon="@Drawables.LauncherIcon" minApiLevel="3.1.0">
|
||||
<!--
|
||||
Use the following from the Visual Studio Code command palette to edit
|
||||
@@ -108,6 +104,8 @@
|
||||
<iq:product id="fr265"/>
|
||||
<iq:product id="fr265s"/>
|
||||
<iq:product id="fr55"/>
|
||||
<iq:product id="fr57042mm"/>
|
||||
<iq:product id="fr57047mm"/>
|
||||
<iq:product id="fr645"/>
|
||||
<iq:product id="fr645m"/>
|
||||
<iq:product id="fr745"/>
|
||||
@@ -116,6 +114,7 @@
|
||||
<iq:product id="fr945lte"/>
|
||||
<iq:product id="fr955"/>
|
||||
<iq:product id="fr965"/>
|
||||
<iq:product id="fr970"/>
|
||||
<iq:product id="gpsmap66"/>
|
||||
<iq:product id="gpsmap67"/>
|
||||
<iq:product id="instinct2"/>
|
||||
|
@@ -87,8 +87,7 @@ edgeexplore.resourcePath = $(edgeexplore.resourcePath);resources-launcher-36-36;
|
||||
edgeexplore2.resourcePath = $(edgeexplore2.resourcePath);resources-launcher-36-36;resources-icons-28
|
||||
# Screen Size 280x280 launcher icon size 40x40
|
||||
enduro.resourcePath = $(enduro.resourcePath);resources-launcher-40-40;resources-icons-32
|
||||
# Screen Size 280x280 launcher icon size 40x40
|
||||
enduro3.resourcePath = $(enduro3.resourcePath);resources-launcher-40-40;resources-icons-32
|
||||
enduro3.resourcePath = $(enduro3.resourcePath);resources-launcher-40-40;resources-icons-32
|
||||
# Screen Size 416x416 launcher icon size 60x60
|
||||
epix2.resourcePath = $(epix2.resourcePath);resources-launcher-60-60;resources-icons-48
|
||||
# Screen Size 390x390 launcher icon size 60x60
|
||||
@@ -115,7 +114,6 @@ fenix6spro.resourcePath = $(fenix6spro.resourcePath);resources-launcher-40-40;re
|
||||
fenix6xpro.resourcePath = $(fenix6xpro.resourcePath);resources-launcher-40-40;resources-icons-32
|
||||
# Screen Size 260x260 launcher icon size 40x40
|
||||
fenix7.resourcePath = $(fenix7.resourcePath);resources-launcher-40-40;resources-icons-30
|
||||
# Screen Size 260x260 launcher icon size 40x40
|
||||
fenix7pro.resourcePath = $(fenix7pro.resourcePath);resources-launcher-40-40;resources-icons-30
|
||||
fenix7pronowifi.resourcePath = $(fenix7pronowifi.resourcePath);resources-launcher-40-40;resources-icons-30
|
||||
# Screen Size 240x240 launcher icon size 40x40
|
||||
@@ -124,7 +122,6 @@ fenix7s.resourcePath = $(fenix7s.resourcePath);resources-launcher-40-40;resource
|
||||
fenix7spro.resourcePath = $(fenix7spro.resourcePath);resources-launcher-40-40;resources-icons-28
|
||||
# Screen Size 280x280 launcher icon size 40x40
|
||||
fenix7x.resourcePath = $(fenix7x.resourcePath);resources-launcher-40-40;resources-icons-32
|
||||
# Screen Size 280x280 launcher icon size 40x40
|
||||
fenix7xpro.resourcePath = $(fenix7xpro.resourcePath);resources-launcher-40-40;resources-icons-32
|
||||
fenix7xpronowifi.resourcePath = $(fenix7xpronowifi.resourcePath);resources-launcher-40-40;resources-icons-32
|
||||
# Screen Size 416x416 launcher icon size 60x60
|
||||
@@ -141,7 +138,6 @@ fenixchronos.resourcePath = $(fenixchronos.resourcePath);resources-launcher-36-3
|
||||
fenixe.resourcePath = $(fenixe.resourcePath);resources-launcher-60-60;resources-icons-48
|
||||
# Screen Size 390 x 390 launcher icon size 54x54
|
||||
fr165.resourcePath = $(descentmk2s.resourcePath);resources-launcher-54-54;resources-icons-46
|
||||
# Screen Size 390 x 390 launcher icon size 54x54
|
||||
fr165m.resourcePath = $(descentmk2s.resourcePath);resources-launcher-54-54;resources-icons-46
|
||||
# Screen Size 240x240 launcher icon size 40x40
|
||||
fr245.resourcePath = $(fr245.resourcePath);resources-launcher-40-40;resources-icons-28
|
||||
@@ -157,6 +153,10 @@ fr265.resourcePath = $(fr265.resourcePath);resources-launcher-60-60;resources-ic
|
||||
fr265s.resourcePath = $(fr265s.resourcePath);resources-launcher-60-60;resources-icons-48
|
||||
# Screen Size 208x208 launcher icon size 35x35
|
||||
fr55.resourcePath = $(fr55.resourcePath);resources-launcher-35-35;resources-icons-24
|
||||
# Screen Size 390x390 launcher icon size 54x54
|
||||
fr57042mm.resourcePath = $(fr57042mm.resourcePath);resources-launcher-54-54;resources-icons-46
|
||||
# Screen Size 454x454 launcher icon size 65x65
|
||||
fr57047mm.resourcePath = $(fr57047mm.resourcePath);resources-launcher-65-65;resources-icons-53
|
||||
# Screen Size 240x240 launcher icon size 40x40
|
||||
fr645.resourcePath = $(fr645.resourcePath);resources-launcher-40-40;resources-icons-28
|
||||
fr645m.resourcePath = $(fr645m.resourcePath);resources-launcher-40-40;resources-icons-28
|
||||
@@ -169,9 +169,9 @@ fr945lte.resourcePath = $(fr945lte.resourcePath);resources-launcher-40-40;resour
|
||||
fr955.resourcePath = $(fr955.resourcePath);resources-launcher-40-40;resources-icons-30
|
||||
# Screen Size 454x454 launcher icon size 65x65
|
||||
fr965.resourcePath = $(fr965.resourcePath);resources-launcher-65-65;resources-icons-53
|
||||
fr970.resourcePath = $(fr970.resourcePath);resources-launcher-65-65;resources-icons-53
|
||||
# Screen Size 240x400 launcher icon size 38x33
|
||||
gpsmap66.resourcePath = $(gpsmap66.resourcePath);resources-launcher-33-33;resources-icons-28
|
||||
# Screen Size 240x400 launcher icon size 38x33
|
||||
gpsmap67.resourcePath = $(gpsmap67.resourcePath);resources-launcher-33-33;resources-icons-28
|
||||
# Screen Size 176x176 launcher icon size 62x62
|
||||
instinct2.resourcePath = $(instinct2.resourcePath);resources-launcher-62-62;resources-icons-21-w
|
||||
@@ -229,7 +229,6 @@ venud.resourcePath = $(venud.resourcePath);resources-launcher-60-60;resources-ic
|
||||
venusq.resourcePath = $(venusq.resourcePath);resources-launcher-36-36;resources-icons-28
|
||||
# Screen Size 320x360 launcher icon size 40x40
|
||||
venusq2.resourcePath = $(venusq2.resourcePath);resources-launcher-40-40;resources-icons-38
|
||||
# Screen Size 320x360 launcher icon size 40x40
|
||||
venusq2m.resourcePath = $(venusq2m.resourcePath);resources-launcher-40-40;resources-icons-38
|
||||
# Screen Size 240x240 launcher icon size 36x36
|
||||
venusqm.resourcePath = $(venusqm.resourcePath);resources-launcher-36-36;resources-icons-28
|
||||
|
94
removeTranslations.py
Normal file
@@ -0,0 +1,94 @@
|
||||
####################################################################################
|
||||
#
|
||||
# Distributed under MIT Licence
|
||||
# See https://github.com/house-of-abbey/GarminHomeAssistant/blob/main/LICENSE.
|
||||
#
|
||||
####################################################################################
|
||||
#
|
||||
# GarminHomeAssistant is a Garmin IQ application written in Monkey C and routinely
|
||||
# tested on a Venu 2 device. The source code is provided at:
|
||||
# https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
#
|
||||
# J D Abbey & P A Abbey, 24 July 2025
|
||||
#
|
||||
#
|
||||
# Description:
|
||||
#
|
||||
# Python script to remove all the translations of a specific id from the XML files.
|
||||
#
|
||||
# Usage:
|
||||
# python removeTranslations.py <id>
|
||||
#
|
||||
# Python installation:
|
||||
# pip install beautifulsoup4
|
||||
# NB. For XML formatting:
|
||||
# pip install lxml
|
||||
#
|
||||
# References:
|
||||
# * https://www.crummy.com/software/BeautifulSoup/bs4/doc/
|
||||
# * https://realpython.com/beautiful-soup-web-scraper-python/
|
||||
# * https://www.crummy.com/software/BeautifulSoup/bs4/doc/#parsing-xml
|
||||
# * https://www.crummy.com/software/BeautifulSoup/bs4/doc/#xml
|
||||
#
|
||||
####################################################################################
|
||||
import sys
|
||||
# from bs4 import BeautifulSoup
|
||||
import os
|
||||
|
||||
def remove_translations(file_path: str, translation_id: str) -> None:
|
||||
"""
|
||||
Remove all translations of a specific id from the XML file.
|
||||
|
||||
:param file_path: Path to the XML file.
|
||||
:param translation_id: The id of the translation to remove.
|
||||
"""
|
||||
# Breaks the formatting
|
||||
# with open(file_path, "r", encoding="utf-8") as file:
|
||||
# soup = BeautifulSoup(file, features="xml")
|
||||
|
||||
# # Find all string elements with the specified id
|
||||
# strings_to_remove = soup.find_all("string", {"id": translation_id})
|
||||
|
||||
# for string in strings_to_remove:
|
||||
# string.decompose() # Remove the string element
|
||||
|
||||
# # Write the modified XML back to the file
|
||||
# with open(file_path, "wb") as file:
|
||||
# file.write(soup.encode("utf-8") + b"\n")
|
||||
|
||||
# Use standard string replace instead
|
||||
with open(file_path, "r", encoding="utf-8") as file:
|
||||
content = file.read()
|
||||
|
||||
new = ""
|
||||
for line in content.splitlines():
|
||||
if not f'id="{translation_id}"' in line:
|
||||
new += line + "\n"
|
||||
|
||||
with open(file_path, "w", encoding="utf-8") as file:
|
||||
file.write(new)
|
||||
|
||||
def main(translation_id: str) -> None:
|
||||
"""
|
||||
Main function to process all XML files.
|
||||
|
||||
:param translation_id: The id of the translation to remove.
|
||||
"""
|
||||
xml_files = []
|
||||
for directory in os.listdir("."):
|
||||
if os.path.isdir(directory) and "resources-" in directory:
|
||||
xml_file_path = os.path.join(directory, "strings", "strings.xml")
|
||||
if os.path.exists(xml_file_path):
|
||||
xml_files.append(xml_file_path)
|
||||
|
||||
for xml_file in xml_files:
|
||||
print(f"Processing file: {xml_file}")
|
||||
remove_translations(xml_file, translation_id)
|
||||
|
||||
if __name__ == "__main__":
|
||||
if len(sys.argv) != 2:
|
||||
print("Usage: python removeTranslations.py <id>")
|
||||
sys.exit(1)
|
||||
|
||||
translation_id = sys.argv[1]
|
||||
main(translation_id)
|
@@ -9,64 +9,93 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Arabic
|
||||
تم إنشاؤه بواسطة Google Translate من اللغة الإنجليزية
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Arabic
|
||||
تم الإنشاء بواسطة ترجمة جوجل و gemini-2.5-flash من الإنجليزية إلى العربية
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">مكالمات واجهة برمجة التطبيقات سريعة جدًا. يُرجى إبطاء طلباتك.</string>
|
||||
<string id="ApiUrlNotFound">لم يتم العثور على عنوان URL. قد يكون هناك خطأ في عنوان URL الخاص بواجهة برمجة التطبيقات في الإعدادات.</string>
|
||||
<string id="ApiFlood">مكالمات API سريعة للغاية. يرجى إبطاء طلباتك.</string>
|
||||
<string id="ApiUrlNotFound">لم يتم العثور على عنوان URL. قد يكون هناك خطأ في عنوان URL الخاص بـ
|
||||
API في الإعدادات.</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">متاح</string>
|
||||
<string id="Cached" scope="glance">مخزن مؤقتا</string>
|
||||
<string id="Checking" scope="glance">جاري التحقق...</string>
|
||||
<string id="ConfigUrlNotFound">لم يتم العثور على عنوان URL. قد يكون هناك خطأ في تكوين عنوان URL في الإعدادات.</string>
|
||||
<string id="Cached" scope="glance">مخزّن مؤقتًا</string>
|
||||
<string id="Checking" scope="glance">التحقق ...</string>
|
||||
<string id="ConfigUrlNotFound">لم يتم العثور على عنوان URL. قد يكون هناك خطأ في عنوان URL الخاص
|
||||
بالتكوين في الإعدادات.</string>
|
||||
<string id="Confirm">بالتأكيد؟</string>
|
||||
<string id="Empty">فارغ</string>
|
||||
<string id="Executed" scope="glance">مؤكد</string>
|
||||
<string id="GlanceMenu" scope="glance">قائمة طعام</string>
|
||||
<string id="GlanceMenu" scope="glance">قائمة</string>
|
||||
<string id="Memory" scope="glance">ذاكرة</string>
|
||||
<string id="MenuUpdated">تم تحديث القائمة، أعد التشغيل.</string>
|
||||
<string id="MenuCheckDisabled">تم تعطيل تحديثات القائمة.</string>
|
||||
<string id="NoAPIKey" scope="glance">لا يوجد مفتاح API في إعدادات التطبيق.</string>
|
||||
<string id="NoApiUrl" scope="glance">لا يوجد عنوان URL لـ API في إعدادات التطبيق.</string>
|
||||
<string id="NoConfigUrl" scope="glance">لا يوجد عنوان URL للتكوين في إعدادات التطبيق.</string>
|
||||
<string id="NoInternet">لا يوجد اتصال بالإنترنت.</string>
|
||||
<string id="NoJson">لم يتم إرجاع JSON من طلب HTTP.</string>
|
||||
<string id="NoPhone" scope="glance">لا يوجد اتصال بالهاتف.</string>
|
||||
<string id="NoResponse">لا يوجد رد، تحقق من اتصال الإنترنت</string>
|
||||
<string id="PinInputLocked">تم قفل مدخل رقم التعريف الشخصي (PIN)</string>
|
||||
<string id="NoJson">لم يتم إرجاع أي JSON من طلب HTTP.</string>
|
||||
<string id="NoPhone" scope="glance">لا يوجد اتصال هاتفي.</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">لا يوجد اتصال بالهاتف، لا توجد قائمة مخزنة مؤقتًا.</string>
|
||||
<string id="NoResponse">لا توجد استجابة، تحقق من اتصال الإنترنت.</string>
|
||||
<string id="TimedOut">انتهت مهلة الطلب</string>
|
||||
<string id="PinInputLocked">إدخال رمز PIN مغلق لمدة</string>
|
||||
<string id="PotentialError">خطأ محتمل</string>
|
||||
<string id="Seconds">ثواني</string>
|
||||
<string id="TemplateError">خطأ القالب</string>
|
||||
<string id="TrailingSlashErr">يجب ألا يحتوي عنوان URL الخاص بواجهة برمجة التطبيقات على شرطة مائلة '/' في نهايته.</string>
|
||||
<string id="Seconds">ثوان</string>
|
||||
<string id="TemplateError">خطأ قالب</string>
|
||||
<string id="TrailingSlashErr">يجب ألا يحتوي عنوان URL الخاص بـ API على شرطة مائلة في النهاية '/'.</string>
|
||||
<string id="Unavailable" scope="glance">غير متاح</string>
|
||||
<string id="Unconfigured" scope="glance">غير مهيأ</string>
|
||||
<string id="UnhandledHttpErr">طلب HTTP أعاد رمز الخطأ =</string>
|
||||
<string id="UnhandledHttpErr">أرجع طلب HTTP رمز الخطأ =</string>
|
||||
<string id="WebhookFailed">فشل في تسجيل Webhook</string>
|
||||
<string id="WrongPin">رقم التعريف الشخصي خاطئ</string>
|
||||
<!-- بالنسبة لإعدادات واجهة المستخدم الرسومية، يجب أن تكون السلاسل بالترتيب الذي يتم استخدامها به. -->
|
||||
<string id="SettingsSelect">يختار...</string>
|
||||
<string id="WrongPin">رمز PIN خاطئ</string>
|
||||
<string id="WifiLteNotAvailable">لا يتوفر Wi-Fi أو LTE</string>
|
||||
<string id="WifiLtePrompt">التنفيذ عبر Wi-Fi/LTE؟</string>
|
||||
<string id="WifiLteExecutionTitle">إرسال إلى Home Assistant.</string>
|
||||
<string id="WifiLteExecutionDataError">لم يتم استلام البيانات.</string>
|
||||
<!-- بالنسبة للإعدادات واجهة المستخدم الرسومية ، يجب أن تكون السلاسل بالترتيب المستخدمة. -->
|
||||
<string id="SettingsSelect">تحديد...</string>
|
||||
<string id="SettingsApiKey">مفتاح API لـ HomeAssistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">رمز الوصول طويل الأمد.</string>
|
||||
<string id="SettingsApiUrl">عنوان URL لـ API HomeAssistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">رمز وصول طويل الأمد.</string>
|
||||
<string id="SettingsApiUrl">عنوان URL لـ HomeAssistant API.</string>
|
||||
<string id="SettingsConfigUrl">عنوان URL لتكوين القائمة (JSON).</string>
|
||||
<string id="SettingsCacheConfig">هل يجب على التطبيق تخزين تكوين القائمة مؤقتًا؟</string>
|
||||
<string id="SettingsClearCache">هل يجب على التطبيق مسح ذاكرة التخزين المؤقت الموجودة في المرة التالية التي يتم تشغيله فيها؟</string>
|
||||
<string id="SettingsVibration">هل يجب أن يوفر التطبيق ردود الفعل عبر الاهتزازات؟</string>
|
||||
<string id="SettingsAppTimeout">مهلة زمنية بالثواني. قم بالخروج من التطبيق بعد هذه الفترة من عدم النشاط للحفاظ على بطارية الجهاز.</string>
|
||||
<string id="SettingsPollDelay">تأخير إضافي في الاستطلاع (بالثواني). يضيف تأخيرًا بين تحديث حالة جميع عناصر القائمة.</string>
|
||||
<string id="SettingsConfirmTimeout">بعد هذا الوقت (بالثواني)، يتم إغلاق مربع حوار التأكيد الخاص بالإجراء تلقائيًا ويتم إلغاء الإجراء. اضبطه على 0 لتعطيل مهلة الانتظار.</string>
|
||||
<string id="SettingsPin">رقم التعريف الشخصي (PIN) المكون من 4 أرقام الذي سيتم استخدامه لجميع الإجراءات التي تتطلب التأكيد (0000-9999).</string>
|
||||
<string id="SettingsPinError">يرجى تكوين رقم تعريف شخصي صالح مكون من 4 أرقام بين 0000 و9999 في إعدادات التطبيق.</string>
|
||||
<string id="SettingsTextAlign">محاذاة القائمة اليسرى (إيقاف) أو اليمنى (تشغيل).</string>
|
||||
<string id="LeftToRight">من اليسار إلى اليمين</string>
|
||||
<string id="RightToLeft">من اليمين إلى اليسار</string>
|
||||
<string id="SettingsWidgetStart">(الأداة فقط) قم بتشغيل التطبيق تلقائيًا من الأداة دون انتظار نقرة.</string>
|
||||
<string id="SettingsEnableBatteryLevel">قم بتمكين خدمة الخلفية لإرسال بيانات مستوى بطارية الجهاز وموقعه ونشاطه (إذا كان مدعومًا) إلى Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">معدل التحديث (بالدقائق) الذي يجب أن تكرر به الخدمة الخلفية إرسال البيانات.</string>
|
||||
<string id="WebhookId">(للقراءة فقط) معرف Webhook الذي أنشأه الجهاز لتحديثات الخدمة في الخلفية. قد تحتاج إلى هذا من أجل تصحيح الأخطاء.</string>
|
||||
<string id="SettingsClearCache">هل يجب على التطبيق مسح ذاكرة التخزين المؤقت الموجودة في المرة
|
||||
القادمة التي يتم فيها بدء تشغيلها؟</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">التحقق من تحديثات القائمة عند بدء تشغيل التطبيق؟ ملاحظة: يجب تمكين تخزين القائمة مؤقتًا. قد يتسبب هذا الإعداد في تعطل الأجهزة القديمة ذات الذاكرة الأقل.</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">تمكين تنفيذ الأوامر عبر Wi-Fi/LTE.</string>
|
||||
<string id="SettingsVibration">هل يجب أن يوفر التطبيق تغذية راجعة عبر الاهتزازات؟</string>
|
||||
<string id="SettingsAppTimeout">مهلة بالثواني. يتم الخروج من التطبيق بعد هذه الفترة من عدم النشاط
|
||||
لحفظ بطارية الجهاز.</string>
|
||||
<string id="SettingsPollDelay">تأخير استطلاع إضافي (بالثواني). يضيف تأخيرًا بين تحديث الحالة لجميع
|
||||
عناصر القائمة.</string>
|
||||
<string id="SettingsConfirmTimeout">بعد هذا الوقت (بالثواني)، يتم إغلاق مربع حوار تأكيد لإجراء ما
|
||||
تلقائيًا ويتم إلغاء الإجراء. اضبط على 0 لتعطيل المهلة.</string>
|
||||
<string id="SettingsPin">رمز PIN مكون من 4 أرقام لاستخدامه في جميع الإجراءات التي تتطلب ذلك
|
||||
(0000-9999).</string>
|
||||
<string id="SettingsPinError">يرجى تكوين رمز PIN رقمي مكون من 4 أرقام بين 0000 و 9999 في إعدادات
|
||||
التطبيق.</string>
|
||||
<string id="SettingsTextAlign">محاذاة القائمة: لليسار (إيقاف) أو لليمين (تشغيل).</string>
|
||||
<string id="SettingsLeftToRight">من اليسار إلى اليمين</string>
|
||||
<string id="SettingsRightToLeft">من اليمين إلى اليسار</string>
|
||||
<string id="SettingsWidgetStart">(عنصر واجهة المستخدم فقط) ابدأ التطبيق تلقائيًا من عنصر واجهة
|
||||
المستخدم دون انتظار النقر.</string>
|
||||
<string id="SettingsEnableBatteryLevel">تمكين خدمة الخلفية لإرسال مستوى بطارية الجهاز والموقع
|
||||
وبيانات النشاط (إذا كانت مدعومة) إلى Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">معدل التحديث (بالدقائق) الذي يجب أن تكرر فيه خدمة
|
||||
الخلفية إرسال البيانات.</string>
|
||||
<string id="SettingsUserHttpHeader">رأس HTTP مقدم من المستخدم</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">تتطلب بعض عمليات تثبيت Home Assistant تحديد رأس
|
||||
HTTP مخصص لكي تعمل.</string>
|
||||
<string id="SettingsUserHttpHeaderName">رأس HTTP مقدم من المستخدم: الاسم</string>
|
||||
<string id="SettingsUserHttpHeaderValue">رأس HTTP مقدم من المستخدم: القيمة</string>
|
||||
<string id="SettingsClearWebhookId">أعد الاتصال بـ Home Assistant (مسح معرف Webhook، انظر دليل
|
||||
استكشاف الأخطاء وإصلاحها).</string>
|
||||
<string id="SettingsWebhookId">(للقراءة فقط) معرف Webhook الذي تم إنشاؤه بواسطة الجهاز لتحديثات
|
||||
خدمة الخلفية. قد تحتاج هذا لتصحيح الأخطاء.</string>
|
||||
</strings>
|
||||
|
@@ -9,64 +9,79 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Bulgarian
|
||||
Генерирано от Google Translate от английски
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Bulgarian
|
||||
Генерирано от Google Translate и gemini-2.5-flash от английски на български
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">Извикванията на API са твърде бързи. Моля, забавете вашите заявки.</string>
|
||||
<string id="ApiUrlNotFound">URL не е намерен. Потенциална грешка в URL адреса на API в настройките.</string>
|
||||
<string id="ApiFlood">API повикванията са твърде чести. Моля, забавете заявките си.</string>
|
||||
<string id="ApiUrlNotFound">URL адрес не е намерен. Потенциална грешка в URL адреса на API в настройките.</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">Наличен</string>
|
||||
<string id="Cached" scope="glance">Кеширано</string>
|
||||
<string id="Checking" scope="glance">Проверка...</string>
|
||||
<string id="ConfigUrlNotFound">URL не е намерен. Потенциална грешка в URL адреса на конфигурацията в настройките.</string>
|
||||
<string id="Confirm">разбира се</string>
|
||||
<string id="Empty">празна</string>
|
||||
<string id="Available" scope="glance">На разположение</string>
|
||||
<string id="Cached" scope="glance">Кеширан</string>
|
||||
<string id="Checking" scope="glance">Проверка ...</string>
|
||||
<string id="ConfigUrlNotFound">URL адрес не е намерен. Възможна грешка в URL адреса за конфигурация в настройките.</string>
|
||||
<string id="Confirm">Сигурно?</string>
|
||||
<string id="Empty">Празен</string>
|
||||
<string id="Executed" scope="glance">Потвърдено</string>
|
||||
<string id="GlanceMenu" scope="glance">Меню</string>
|
||||
<string id="Memory" scope="glance">памет</string>
|
||||
<string id="NoAPIKey" scope="glance">Няма API ключ в настройките на приложението.</string>
|
||||
<string id="Memory" scope="glance">Памет</string>
|
||||
<string id="MenuUpdated">Менюто е обновено, рестартирайте.</string>
|
||||
<string id="MenuCheckDisabled">Актуализациите на менюто са деактивирани.</string>
|
||||
<string id="NoAPIKey" scope="glance">Няма ключ за API в настройките на приложението.</string>
|
||||
<string id="NoApiUrl" scope="glance">Няма URL адрес на API в настройките на приложението.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Няма конфигурационен URL адрес в настройките на приложението.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Няма URL адрес за конфигурация в настройките на приложението.</string>
|
||||
<string id="NoInternet">Няма интернет връзка.</string>
|
||||
<string id="NoJson">Няма върнат JSON от HTTP заявка.</string>
|
||||
<string id="NoJson">Не е върнат JSON от HTTP заявка.</string>
|
||||
<string id="NoPhone" scope="glance">Няма телефонна връзка.</string>
|
||||
<string id="NoResponse">Няма отговор, проверете интернет връзката</string>
|
||||
<string id="PinInputLocked">Въвеждането на PIN е заключено за</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">Няма телефонна връзка, няма кеширано меню.</string>
|
||||
<string id="NoResponse">Няма отговор, проверете интернет връзката.</string>
|
||||
<string id="TimedOut">Заявка изтече</string>
|
||||
<string id="PinInputLocked">Въвеждането на ПИН е заключено за</string>
|
||||
<string id="PotentialError">Потенциална грешка</string>
|
||||
<string id="Seconds">секунди</string>
|
||||
<string id="TemplateError">Грешка в шаблона</string>
|
||||
<string id="TrailingSlashErr">URL адресът на API не трябва да има наклонена черта '/' в края.</string>
|
||||
<string id="Unavailable" scope="glance">Недостъпен</string>
|
||||
<string id="TrailingSlashErr">URL адресът на API не трябва да завършва с наклонена черта '/'.</string>
|
||||
<string id="Unavailable" scope="glance">Недостъпни</string>
|
||||
<string id="Unconfigured" scope="glance">Неконфигуриран</string>
|
||||
<string id="UnhandledHttpErr">HTTP заявката върна код на грешка =</string>
|
||||
<string id="WebhookFailed">Неуспешно регистриране на Webhook</string>
|
||||
<string id="UnhandledHttpErr">HTTP заявката върна код за грешка = </string>
|
||||
<string id="WebhookFailed">Неуспешна регистрация на Webhook</string>
|
||||
<string id="WrongPin">Грешен ПИН</string>
|
||||
<!-- За GUI на настройките низовете трябва да са в реда, в който се използват. -->
|
||||
<string id="SettingsSelect">Изберете...</string>
|
||||
<string id="SettingsApiKey">API ключ за HomeAssistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">Токен за дълготраен достъп.</string>
|
||||
<string id="SettingsApiUrl">URL адрес за API на HomeAssistant.</string>
|
||||
<string id="SettingsConfigUrl">URL за конфигурация на менюто (JSON).</string>
|
||||
<string id="WifiLteNotAvailable">Няма налични Wi-Fi или LTE</string>
|
||||
<string id="WifiLtePrompt">Изпълнете над Wi-Fi/LTE?</string>
|
||||
<string id="WifiLteExecutionTitle">Изпращане до Home Assistant.</string>
|
||||
<string id="WifiLteExecutionDataError">Няма получени данни.</string>
|
||||
<!-- За GUI на настройките, низовете трябва да са в реда, в който се използват. -->
|
||||
<string id="SettingsSelect">Изберете ...</string>
|
||||
<string id="SettingsApiKey">API ключ за Home Assistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">Дълготраен маркер за достъп.</string>
|
||||
<string id="SettingsApiUrl">URL за Home Assistant API.</string>
|
||||
<string id="SettingsConfigUrl">URL за конфигуриране на менюто (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Трябва ли приложението да кешира конфигурацията на менюто?</string>
|
||||
<string id="SettingsClearCache">Трябва ли приложението да изчисти съществуващия кеш при следващото стартиране?</string>
|
||||
<string id="SettingsClearCache">Трябва ли приложението да изчисти съществуващия кеш следващия път, когато бъде стартирано?</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">Проверка за актуализации на менюто при стартиране на приложението? Забележка: Кеширането на менюто трябва да е активирано. Тази настройка може да доведе до срив на по-стари устройства с по-малко памет.</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">Активиране на изпълнение на команди над Wi-Fi/LTE.</string>
|
||||
<string id="SettingsVibration">Трябва ли приложението да предоставя обратна връзка чрез вибрации?</string>
|
||||
<string id="SettingsAppTimeout">Изчакване в секунди. Излезте от приложението след този период на неактивност, за да запазите батерията на устройството.</string>
|
||||
<string id="SettingsPollDelay">Допълнително забавяне на анкетата (в секунди). Добавя забавяне между актуализацията на състоянието на всички елементи от менюто.</string>
|
||||
<string id="SettingsConfirmTimeout">След това време (в секунди) диалоговият прозорец за потвърждение за действие се затваря автоматично и действието се отменя. Задайте 0, за да деактивирате изчакването.</string>
|
||||
<string id="SettingsPin">4-цифрен ПИН, който да се използва за всички действия, които изискват потвърждение (0000-9999).</string>
|
||||
<string id="SettingsPinError">Моля, конфигурирайте валиден 4-цифрен цифров PIN между 0000 и 9999 в настройките на приложението.</string>
|
||||
<string id="SettingsTextAlign">Ляво (изключено) или дясно (включено) подравняване на менюто.</string>
|
||||
<string id="LeftToRight">Отляво надясно</string>
|
||||
<string id="RightToLeft">От дясно на ляво</string>
|
||||
<string id="SettingsWidgetStart">(Само за джаджа) Автоматично стартирайте приложението от джаджата, без да чакате докосване.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Активирайте услугата на заден план, за да изпраща данни за нивото на батерията на устройството, местоположението и (ако се поддържа) за дейността до Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Честотата на опресняване (в минути), с която фоновата услуга трябва да повтори изпращането на данни.</string>
|
||||
<string id="WebhookId">(Само за четене) Идентификаторът на Webhook, създаден от устройството за актуализации на фонови услуги. Може да ви е необходимо това за отстраняване на грешки.</string>
|
||||
<string id="SettingsAppTimeout">Време за изчакване в секунди. Излезте от приложението след този период на бездействие, за да запазите батерията на устройството.</string>
|
||||
<string id="SettingsPollDelay">Допълнително забавяне на опресняването (в секунди). Добавя забавяне между актуализацията на състоянието на всички елементи от менюто.</string>
|
||||
<string id="SettingsConfirmTimeout">След това време (в секунди) диалоговият прозорец за потвърждение за действие автоматично се затваря и действието се отменя. Задайте на 0, за да деактивирате изчакването.</string>
|
||||
<string id="SettingsPin">4-цифрен ПИН, който ще се използва за всички действия, които го изискват (0000-9999).</string>
|
||||
<string id="SettingsPinError">Моля, конфигурирайте валиден 4-цифрен цифров ПИН между 0000 и 9999 в настройките на приложението.</string>
|
||||
<string id="SettingsTextAlign">Наляво (изключено) или вдясно (включено) изравняване на менюто.</string>
|
||||
<string id="SettingsLeftToRight">Отляво надясно</string>
|
||||
<string id="SettingsRightToLeft">Отдясно наляво</string>
|
||||
<string id="SettingsWidgetStart">(Само при джаджа) Приложението се стартира автоматично от джаджата, без да се чака докосване.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Активиране на фоновата услуга за изпращане на нивото на батерията на устройството, местоположението и (ако се поддържа) данни за активност към Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Скоростта на опресняване (в минути), при която фоновата услуга трябва да повтаря изпращането на данни.</string>
|
||||
<string id="SettingsUserHttpHeader">Потребителска HTTP заглавка</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">Някои инсталации на Home Assistant изискват специфицирането на персонализирана HTTP заглавка, за да функционират.</string>
|
||||
<string id="SettingsUserHttpHeaderName">Потребителска HTTP заглавка: Име</string>
|
||||
<string id="SettingsUserHttpHeaderValue">Потребителска HTTP заглавка: Стойност</string>
|
||||
<string id="SettingsClearWebhookId">Свържете се отново с Home Assistant (изчистване на Webhook ID, вижте ръководството за отстраняване на неизправности).</string>
|
||||
<string id="SettingsWebhookId">(Само за четене) Webhook ID, създаден от устройството за актуализации на фоновите услуги. Може да ви е необходим за отстраняване на грешки.</string>
|
||||
</strings>
|
||||
|
@@ -9,64 +9,79 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Czech
|
||||
Generováno překladačem Google z angličtiny
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Czech
|
||||
Vygenerováno pomocí Google Translate a gemini-2.5-flash z angličtiny do češtiny
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">Příliš rychlá volání API. Zpomalte prosím své požadavky.</string>
|
||||
<string id="ApiUrlNotFound">Adresa URL nenalezena. Potenciální chyba adresy URL rozhraní API v nastavení.</string>
|
||||
<string id="ApiFlood">Volání API jsou příliš rychlá. Prosím, zpomalte své požadavky.</string>
|
||||
<string id="ApiUrlNotFound">URL nebyla nalezena. Potenciální chyba URL API v nastavení.</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">Dostupné</string>
|
||||
<string id="Cached" scope="glance">Uloženo do mezipaměti</string>
|
||||
<string id="Checking" scope="glance">Kontrola...</string>
|
||||
<string id="ConfigUrlNotFound">Adresa URL nenalezena. Potenciální chyba konfigurační adresy URL v nastavení.</string>
|
||||
<string id="Cached" scope="glance">V mezipaměti</string>
|
||||
<string id="Checking" scope="glance">Kontrola ...</string>
|
||||
<string id="ConfigUrlNotFound">URL nebyla nalezena. Potenciální chyba URL konfigurace v nastavení.</string>
|
||||
<string id="Confirm">Určitě?</string>
|
||||
<string id="Empty">Prázdný</string>
|
||||
<string id="Executed" scope="glance">Potvrzeno</string>
|
||||
<string id="GlanceMenu" scope="glance">Menu</string>
|
||||
<string id="Memory" scope="glance">Paměť</string>
|
||||
<string id="NoAPIKey" scope="glance">V nastavení aplikace není žádný klíč API.</string>
|
||||
<string id="NoApiUrl" scope="glance">V nastavení aplikace není žádná adresa URL API.</string>
|
||||
<string id="NoConfigUrl" scope="glance">V nastavení aplikace není žádná konfigurační URL.</string>
|
||||
<string id="MenuUpdated">Menu aktualizováno, restartujte.</string>
|
||||
<string id="MenuCheckDisabled">Aktualizace menu zakázány.</string>
|
||||
<string id="NoAPIKey" scope="glance">Žádný klíč API v nastavení aplikace.</string>
|
||||
<string id="NoApiUrl" scope="glance">Žádná URL API v nastavení aplikace.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Žádná konfigurační URL v nastavení aplikace.</string>
|
||||
<string id="NoInternet">Žádné připojení k internetu.</string>
|
||||
<string id="NoJson">Z požadavku HTTP se nevrátil žádný JSON.</string>
|
||||
<string id="NoPhone" scope="glance">Žádné telefonní spojení.</string>
|
||||
<string id="NoResponse">Žádná odpověď, zkontrolujte připojení k internetu</string>
|
||||
<string id="PinInputLocked">Vstup PIN uzamčen pro</string>
|
||||
<string id="NoJson">Žádný JSON se nevrátil z požadavku HTTP.</string>
|
||||
<string id="NoPhone" scope="glance">Žádné telefonní připojení.</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">Žádné připojení telefonu, žádné menu v mezipaměti.</string>
|
||||
<string id="NoResponse">Žádná odpověď, zkontrolujte připojení k internetu.</string>
|
||||
<string id="TimedOut">Vypršel časový limit požadavku.</string>
|
||||
<string id="PinInputLocked">Vstup PIN uzamčen na</string>
|
||||
<string id="PotentialError">Potenciální chyba</string>
|
||||
<string id="Seconds">sekundy</string>
|
||||
<string id="TemplateError">Chyba šablony</string>
|
||||
<string id="TrailingSlashErr">Adresa URL rozhraní API nesmí mít na konci lomítko „/“.</string>
|
||||
<string id="Unavailable" scope="glance">Není k dispozici</string>
|
||||
<string id="Unconfigured" scope="glance">Nenakonfigurováno</string>
|
||||
<string id="UnhandledHttpErr">Požadavek HTTP vrátil kód chyby =</string>
|
||||
<string id="WebhookFailed">Registrace Webhooku se nezdařila</string>
|
||||
<string id="WrongPin">Chybný PIN</string>
|
||||
<!-- Pro nastavení GUI by řetězce měly být v pořadí, v jakém se používají. -->
|
||||
<string id="TrailingSlashErr">URL API nesmí mít koncové lomítko '/'.</string>
|
||||
<string id="Unavailable" scope="glance">Nedostupné</string>
|
||||
<string id="Unconfigured" scope="glance">Nekonfigurované</string>
|
||||
<string id="UnhandledHttpErr">HTTP požadavek vrátil chybový kód =</string>
|
||||
<string id="WebhookFailed">Nepodařilo se zaregistrovat Webhook</string>
|
||||
<string id="WrongPin">Špatný PIN</string>
|
||||
<string id="WifiLteNotAvailable">Není k dispozici žádné Wi-Fi nebo LTE</string>
|
||||
<string id="WifiLtePrompt">Provést přes Wi-Fi/LTE?</string>
|
||||
<string id="WifiLteExecutionTitle">Odesílám do Home Assistant.</string>
|
||||
<string id="WifiLteExecutionDataError">Nebyla přijata žádná data.</string>
|
||||
<!-- Pro GUI nastavení by měly být řetězce v pořadí, které jsou použity. -->
|
||||
<string id="SettingsSelect">Vybrat...</string>
|
||||
<string id="SettingsApiKey">Klíč API pro HomeAssistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">Přístupový token s dlouhou životností.</string>
|
||||
<string id="SettingsApiKeyPrompt">Dlouhodobý přístupový token.</string>
|
||||
<string id="SettingsApiUrl">URL pro HomeAssistant API.</string>
|
||||
<string id="SettingsConfigUrl">Adresa URL pro konfiguraci nabídky (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Má aplikace uložit konfiguraci nabídky do mezipaměti?</string>
|
||||
<string id="SettingsClearCache">Měla by aplikace při příštím spuštění vymazat stávající mezipaměť?</string>
|
||||
<string id="SettingsConfigUrl">URL pro konfiguraci nabídky (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Měla by aplikace ukládat konfiguraci nabídky?</string>
|
||||
<string id="SettingsClearCache">Měla by aplikace vymazat stávající mezipaměť při příštím spuštění?</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">Kontrolovat aktualizace menu při spuštění aplikace? Poznámka: Ukládání menu do mezipaměti musí být povoleno. Toto nastavení může způsobit pád starších zařízení s menší pamětí.</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">Povolit provádění příkazů přes Wi-Fi/LTE.</string>
|
||||
<string id="SettingsVibration">Měla by aplikace poskytovat zpětnou vazbu prostřednictvím vibrací?</string>
|
||||
<string id="SettingsAppTimeout">Časový limit v sekundách. Po této době nečinnosti aplikaci ukončete, abyste šetřili baterii zařízení.</string>
|
||||
<string id="SettingsPollDelay">Dodatečné zpoždění dotazování (v sekundách). Přidá prodlevu mezi aktualizací stavu všech položek nabídky.</string>
|
||||
<string id="SettingsConfirmTimeout">Po uplynutí této doby (v sekundách) se dialog pro potvrzení akce automaticky zavře a akce se zruší. Nastavením na 0 deaktivujete časový limit.</string>
|
||||
<string id="SettingsPin">4místný PIN pro všechny akce, které vyžadují potvrzení (0000-9999).</string>
|
||||
<string id="SettingsPinError">Nakonfigurujte v nastavení aplikace platný čtyřmístný číselný kód PIN mezi 0000 a 9999.</string>
|
||||
<string id="SettingsTextAlign">Zarovnání nabídky vlevo (vypnuto) nebo vpravo (zapnuto).</string>
|
||||
<string id="LeftToRight">Zleva doprava</string>
|
||||
<string id="RightToLeft">Zprava doleva</string>
|
||||
<string id="SettingsWidgetStart">(Pouze widget) Automaticky spusťte aplikaci z widgetu bez čekání na klepnutí.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Povolte službu na pozadí pro odesílání údajů o stavu baterie, poloze a (pokud je podporováno) o aktivitě zařízení Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Obnovovací frekvence (v minutách), při které by služba na pozadí měla opakovat odesílání dat.</string>
|
||||
<string id="WebhookId">(Pouze pro čtení) ID Webhooku vytvořené zařízením pro aktualizace služby na pozadí. Možná to budete potřebovat pro ladění.</string>
|
||||
<string id="SettingsAppTimeout">Časový limit v sekundách. Ukončete aplikaci po této době nečinnosti, abyste šetřili baterii zařízení.</string>
|
||||
<string id="SettingsPollDelay">Další zpoždění dotazování (v sekundách). Přidá zpoždění mezi aktualizací stavu všech položek nabídky.</string>
|
||||
<string id="SettingsConfirmTimeout">Po této době (v sekundách) je potvrzovací dialog pro akci automaticky uzavřen a akce je zrušena. Nastavte na 0 pro deaktivaci časového limitu.</string>
|
||||
<string id="SettingsPin">4místný PIN, který se má použít pro všechny akce, které jej vyžadují (0000-9999).</string>
|
||||
<string id="SettingsPinError">Nakonfigurujte prosím platný čtyřmístný číselný PIN mezi 0000 a 9999 v nastavení aplikace.</string>
|
||||
<string id="SettingsTextAlign">Vlevo (vypnuto) nebo vpravo (zapnuto) zarovnání nabídky.</string>
|
||||
<string id="SettingsLeftToRight">Zleva doprava</string>
|
||||
<string id="SettingsRightToLeft">Vpravo doleva</string>
|
||||
<string id="SettingsWidgetStart">(Pouze widget) Automatické spuštění aplikace z widgetu bez čekání na klepnutí.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Povolit službě na pozadí odesílat úroveň baterie zařízení, jeho polohu a (pokud je podporováno) údaje o aktivitě do Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Frekvence aktualizace (v minutách), s jakou má služba na pozadí opakovaně odesílat data.</string>
|
||||
<string id="SettingsUserHttpHeader">Uživatelská hlavička HTTP</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">Některé instalace Home Assistant vyžadují specifikaci vlastní hlavičky HTTP pro správnou funkci.</string>
|
||||
<string id="SettingsUserHttpHeaderName">Uživatelská hlavička HTTP: Název</string>
|
||||
<string id="SettingsUserHttpHeaderValue">Uživatelská hlavička HTTP: Hodnota</string>
|
||||
<string id="SettingsClearWebhookId">Znovu se připojte k Home Assistant (vymazat ID Webhooku, viz příručka pro odstraňování problémů).</string>
|
||||
<string id="SettingsWebhookId">(Pouze pro čtení) ID Webhooku vytvořené zařízením pro aktualizace služby na pozadí. Možná to budete potřebovat pro ladění.</string>
|
||||
</strings>
|
||||
|
@@ -9,64 +9,79 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Danish
|
||||
Genereret af Google Translate fra engelsk
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Danish
|
||||
Genereret af Google Translate og gemini-2.5-flash fra engelsk til dansk
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">API-kald for hurtigt. Sænk venligst dine anmodninger.</string>
|
||||
<string id="ApiUrlNotFound">URL ikke fundet. Potentiel API URL-fejl i indstillinger.</string>
|
||||
<string id="ApiFlood">API-kald er for hyppige. Sænk venligst dine anmodninger.</string>
|
||||
<string id="ApiUrlNotFound">URL ikke fundet. Potentiel API-URL-fejl i indstillinger.</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">Tilgængelig</string>
|
||||
<string id="Cached" scope="glance">Cachelagret</string>
|
||||
<string id="Checking" scope="glance">Tjekker...</string>
|
||||
<string id="Checking" scope="glance">Kontrollerer...</string>
|
||||
<string id="ConfigUrlNotFound">URL ikke fundet. Potentiel konfigurations-URL-fejl i indstillinger.</string>
|
||||
<string id="Confirm">Sikker?</string>
|
||||
<string id="Empty">Tom</string>
|
||||
<string id="Executed" scope="glance">Bekræftet</string>
|
||||
<string id="GlanceMenu" scope="glance">Menu</string>
|
||||
<string id="Memory" scope="glance">Hukommelse</string>
|
||||
<string id="MenuUpdated">Menu opdateret, genstart.</string>
|
||||
<string id="MenuCheckDisabled">Menuopdateringer deaktiveret.</string>
|
||||
<string id="NoAPIKey" scope="glance">Ingen API-nøgle i applikationsindstillingerne.</string>
|
||||
<string id="NoApiUrl" scope="glance">Ingen API-URL i applikationsindstillingerne.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Ingen konfigurations-URL i applikationsindstillingerne.</string>
|
||||
<string id="NoInternet">Ingen internetforbindelse.</string>
|
||||
<string id="NoJson">Ingen JSON returneret fra HTTP-anmodning.</string>
|
||||
<string id="NoJson">Ingen JSON modtaget fra HTTP-anmodning.</string>
|
||||
<string id="NoPhone" scope="glance">Ingen telefonforbindelse.</string>
|
||||
<string id="NoResponse">Intet svar, tjek internetforbindelse</string>
|
||||
<string id="PinInputLocked">PIN-indtastning låst for</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">Ingen telefonforbindelse, ingen cachelagret menu.</string>
|
||||
<string id="NoResponse">Intet svar, tjek internetforbindelsen.</string>
|
||||
<string id="TimedOut">Anmodning udløb</string>
|
||||
<string id="PinInputLocked">PIN-indtastning låst i</string>
|
||||
<string id="PotentialError">Potentiel fejl</string>
|
||||
<string id="Seconds">sekunder</string>
|
||||
<string id="TemplateError">Skabelonfejl</string>
|
||||
<string id="TrailingSlashErr">API-URL må ikke have en efterfølgende skråstreg '/'.</string>
|
||||
<string id="Unavailable" scope="glance">Ikke tilgængelig</string>
|
||||
<string id="TrailingSlashErr">API-URL må ikke have en afsluttende skråstreg '/'.</string>
|
||||
<string id="Unavailable" scope="glance">Utilgængelig</string>
|
||||
<string id="Unconfigured" scope="glance">Ukonfigureret</string>
|
||||
<string id="UnhandledHttpErr">HTTP-anmodning returnerede fejlkode =</string>
|
||||
<string id="WebhookFailed">Kunne ikke registrere Webhook</string>
|
||||
<string id="WrongPin">Forkert pinkode</string>
|
||||
<string id="UnhandledHttpErr">HTTP-anmodning returnerede fejlkode = </string>
|
||||
<string id="WebhookFailed">Kunne ikke registrere webhook</string>
|
||||
<string id="WrongPin">Forkert PIN</string>
|
||||
<string id="WifiLteNotAvailable">Ingen Wi-Fi eller LTE tilgængelig</string>
|
||||
<string id="WifiLtePrompt">Udfør via Wi-Fi/LTE?</string>
|
||||
<string id="WifiLteExecutionTitle">Sender til Home Assistant.</string>
|
||||
<string id="WifiLteExecutionDataError">Ingen data modtaget.</string>
|
||||
<!-- For indstillingerne GUI skal strenge være i den rækkefølge, de bruges. -->
|
||||
<string id="SettingsSelect">Vælge...</string>
|
||||
<string id="SettingsApiKey">API-nøgle til HomeAssistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">Adgangstoken med lang levetid.</string>
|
||||
<string id="SettingsApiUrl">URL til HomeAssistant API.</string>
|
||||
<string id="SettingsSelect">Vælg...</string>
|
||||
<string id="SettingsApiKey">API-nøgle til Home Assistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">Langvarig adgangstoken.</string>
|
||||
<string id="SettingsApiUrl">URL til Home Assistant API.</string>
|
||||
<string id="SettingsConfigUrl">URL til menukonfiguration (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Skal applikationen cache menukonfigurationen?</string>
|
||||
<string id="SettingsClearCache">Skal applikationen rydde den eksisterende cache næste gang den startes?</string>
|
||||
<string id="SettingsVibration">Skal applikationen give feedback via vibrationer?</string>
|
||||
<string id="SettingsCacheConfig">Skal applikationen cachelagre menukonfigurationen?</string>
|
||||
<string id="SettingsClearCache">Bør applikationen rydde den eksisterende cache næste gang den startes?</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">Kontroller for menuopdateringer på applikationsstart? Bemærk: Menu Cache skal være aktiveret. Denne indstilling kan forårsage, at ældre enheder med mindre hukommelse går ned.</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">Aktivér udførelse af kommandoer over Wi-Fi/LTE.</string>
|
||||
<string id="SettingsVibration">Bør applikationen give feedback via vibrationer?</string>
|
||||
<string id="SettingsAppTimeout">Timeout i sekunder. Afslut applikationen efter denne periode med inaktivitet for at spare på enhedens batteri.</string>
|
||||
<string id="SettingsPollDelay">Yderligere afstemningsforsinkelse (i sekunder). Tilføjer en forsinkelse mellem statusopdatering af alle menupunkter.</string>
|
||||
<string id="SettingsConfirmTimeout">Efter dette tidspunkt (i sekunder) lukkes en bekræftelsesdialog for en handling automatisk, og handlingen annulleres. Indstil til 0 for at deaktivere timeout.</string>
|
||||
<string id="SettingsPin">4-cifret PIN-kode, der skal bruges til alle handlinger, der kræver bekræftelse (0000-9999).</string>
|
||||
<string id="SettingsPinError">Konfigurer venligst en gyldig 4-cifret numerisk PIN-kode mellem 0000 og 9999 i applikationsindstillingerne.</string>
|
||||
<string id="SettingsTextAlign">Venstre (fra) eller Højre (til) menujustering.</string>
|
||||
<string id="LeftToRight">Venstre mod højre</string>
|
||||
<string id="RightToLeft">Højre til venstre</string>
|
||||
<string id="SettingsPollDelay">Yderligere afstemningsforsinkelse (i sekunder). Tilføjer en forsinkelse mellem statusopdateringen af alle menupunkter.</string>
|
||||
<string id="SettingsConfirmTimeout">Efter denne tid (i sekunder) lukkes en bekræftelsesdialog for en handling automatisk, og handlingen annulleres. Indstil til 0 for at deaktivere timeout.</string>
|
||||
<string id="SettingsPin">4-cifret PIN, der skal bruges til alle handlinger, der kræver det (0000-9999).</string>
|
||||
<string id="SettingsPinError">Konfigurer venligst en gyldig 4-cifret numerisk PIN mellem 0000 og 9999 i applikationsindstillingerne.</string>
|
||||
<string id="SettingsTextAlign">Venstre (fra) eller højre (til) menujustering.</string>
|
||||
<string id="SettingsLeftToRight">Venstre til højre</string>
|
||||
<string id="SettingsRightToLeft">Højre til venstre</string>
|
||||
<string id="SettingsWidgetStart">(Kun widget) Start automatisk applikationen fra widgetten uden at vente på et tryk.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Aktiver baggrundstjenesten for at sende enhedens batteriniveau, placering og (hvis understøttet) aktivitetsdata til Home Assistant.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Aktivér baggrundstjenesten til at sende enhedens batteriniveau, lokation og (hvis understøttet) aktivitetsdata til Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Opdateringshastigheden (i minutter), hvormed baggrundstjenesten skal gentage afsendelse af data.</string>
|
||||
<string id="WebhookId">(Skrivebeskyttet) Webhook-id'et oprettet af enheden til baggrundstjenesteopdateringer. Du kan kræve dette til fejlretning.</string>
|
||||
<string id="SettingsUserHttpHeader">Brugerdefineret HTTP-header</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">Nogle Home Assistant-installationer kræver angivelse af en brugerdefineret HTTP-header for at fungere.</string>
|
||||
<string id="SettingsUserHttpHeaderName">Brugerdefineret HTTP-header: Navn</string>
|
||||
<string id="SettingsUserHttpHeaderValue">Brugerdefineret HTTP-header: Værdi</string>
|
||||
<string id="SettingsClearWebhookId">Opret forbindelse igen til Home Assistant (ryd Webhook-ID, se fejlfindingsguide).</string>
|
||||
<string id="SettingsWebhookId">(Kun læsning) Webhook-ID'et oprettet af enheden til opdateringer fra baggrundstjenesten. Du kan få brug for dette til fejlfinding.</string>
|
||||
</strings>
|
||||
|
@@ -16,35 +16,65 @@
|
||||
<!--
|
||||
Corrections for the German language
|
||||
Korrekturen für die deutsche Sprache
|
||||
Contributors:
|
||||
Someone0nEarth
|
||||
tarekbecker
|
||||
moesterheld
|
||||
tispokes
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="UnhandledHttpErr">Die HTTP-Anfrage gab folgenden Fehlercode zurück = </string>
|
||||
|
||||
<string id="ConfigUrlNotFound">URL nicht gefunden. Möglicherweise falsche Konfigurations-URL in den Einstellungen.</string>
|
||||
<string id="TemplateError">Template konnte nicht gerendert werden</string>
|
||||
<string id="ApiFlood">Zu viele API-Aufrufe in kurzer Zeit. Bitte verlangsame deine Anfragen.</string>
|
||||
<string id="ApiUrlNotFound">URL nicht gefunden. Möglicher Fehler in der API-URL in den Einstellungen.</string>
|
||||
<string id="Available" scope="glance">OK</string>
|
||||
<string id="Checking" scope="glance">Prüfe...</string>
|
||||
<string id="Unconfigured" scope="glance">Nicht konfiguriert</string>
|
||||
<string id="Cached" scope="glance">gecacht</string>
|
||||
<string id="Checking" scope="glance">Prüfe...</string>
|
||||
<string id="ConfigUrlNotFound">URL nicht gefunden. Möglicherweise falsche Konfigurations-URL in den Einstellungen.</string>
|
||||
<string id="GlanceMenu" scope="glance">Menü</string>
|
||||
<string id="Memory" scope="glance">Speicher</string>
|
||||
<string id="NoAPIKey" scope="glance">Kein API-Schlüssel in den App-Einstellungen hinterlegt.</string>
|
||||
<string id="NoApiUrl" scope="glance">Keine API-URL in den App-Einstellungen hinterlegt.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Keine Menükonfigurations-URL (JSON) in den App-Einstellungen hinterlegt.</string>
|
||||
<string id="NoJson">Keine JSON-Datei aus der HTTP-Anfrage zurückbekommen.</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">Keine Telefonverbindung und kein gecachtes Menü.</string>
|
||||
<string id="NoResponse">Keine Antwort, bitte Internetverbindung prüfen.</string>
|
||||
<string id="TimedOut">Anfragezeit überschritten.</string>
|
||||
<string id="PinInputLocked">PIN-Eingabe gesperrt für</string>
|
||||
<string id="PotentialError">Möglicher Fehler</string>
|
||||
<string id="TemplateError">Template konnte nicht gerendert werden</string>
|
||||
<string id="TrailingSlashErr">API-URL darf nicht mit einem Schrägstrich '/' enden.</string>
|
||||
<string id="UnhandledHttpErr">Die HTTP-Anfrage gab folgenden Fehlercode zurück = </string>
|
||||
<string id="WebhookFailed">Webhook-Registrierung fehlgeschlagen.</string>
|
||||
<string id="WrongPin">Falsche PIN.</string>
|
||||
<string id="WifiLteNotAvailable">Kein WLAN oder LTE verfügbar.</string>
|
||||
<string id="WifiLtePrompt">Über WLAN/LTE ausführen?</string>
|
||||
<string id="WifiLteExecutionTitle">Sende an Home Assistant.</string>
|
||||
<string id="WifiLteExecutionDataError">Keine Daten empfangen.</string>
|
||||
|
||||
<!-- Für die Einstellungs-GUI -->
|
||||
<!-- Für die Einstellungs-GUI: Reihenfolge entspricht der Nutzung -->
|
||||
<string id="SettingsSelect">Auswählen...</string>
|
||||
<string id="SettingsApiKey">API-Schlüssel für HomeAssistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">Langzeit-Zugangstoken.</string>
|
||||
<string id="SettingsApiUrl">URL der HomeAssistant-API.</string>
|
||||
<string id="SettingsConfigUrl">URL der Menükonfiguration (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Soll die Anwendung die Menükonfiguration cachen?</string>
|
||||
<string id="SettingsConfigUrl">URL für die Menükonfiguration (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Soll die App die Menükonfiguration cachen?</string>
|
||||
<string id="SettingsClearCache">Soll die Anwendung beim nächsten Start den vorhandenen Cache löschen?</string>
|
||||
<string id="SettingsAppTimeout">Die App wird nach Ablauf der Zeit (in Sekunden) bei Inaktivität beendet, um den Akku
|
||||
des Geräts zu schonen.</string>
|
||||
<string id="SettingsConfirmTimeout">Nach dieser Zeit (in Sekunden) wird der Bestätigungsdialog einer Aktion geschlossen und die
|
||||
Aktion abgebrochen. Auf 0 setzen, um den Timeout zu deaktivieren.</string>
|
||||
<string id="SettingsPin">4-stellige PIN für alle Actions mit 'confirm': true (0000-9999).</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">Befehlsausführung über WLAN/LTE aktivieren.</string>
|
||||
<string id="SettingsVibration">Soll die App Rückmeldung per Vibration geben?</string>
|
||||
<string id="SettingsAppTimeout">Timeout in Sekunden. Beendet die App nach dieser Inaktivitätszeit, um Akku zu sparen.</string>
|
||||
<string id="SettingsPollDelay">Zusätzliche Abfrageverzögerung (in Sekunden). Fügt zwischen den Status-Updates der Menüeinträge eine Pause ein.</string>
|
||||
<string id="SettingsConfirmTimeout">Nach dieser Zeit (in Sekunden) wird ein Bestätigungsdialog automatisch geschlossen und die Aktion abgebrochen. Mit 0 deaktivieren.</string>
|
||||
<string id="SettingsPin">4-stellige PIN für alle Aktionen, die diese erfordern (0000-9999).</string>
|
||||
<string id="SettingsPinError">Bitte eine gültige 4-stellige numerische PIN in den App Einstellungen eingeben (0000-9999).</string>
|
||||
<string id="SettingsWidgetStart">(Nur Widget) Anwendung automatisch über das Widget starten ohne drauftippen zu müssen.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Hintergrunddienst aktivieren, um den Ladezustand der Batterie an HomeAssistant zu senden.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Die Aktualisierungsrate (in Minuten) mit der der Ladezustand der Batterie
|
||||
an HomeAssistant gesendet wird.</string>
|
||||
<string id="WebhookId">(Schreibgeschützt) Die von der Uhr erstellte Webhook-ID für Aktualisierungen des Ladezustands der Batterie.
|
||||
Möglicherweise wird dies zum Debuggen benötigt.</string>
|
||||
<string id="SettingsTextAlign">Menüausrichtung: Links (aus) oder Rechts (ein).</string>
|
||||
|
||||
<string id="SettingsRightToLeft">Von rechts nach links</string>
|
||||
<string id="SettingsWidgetStart">(Nur Widget) App automatisch aus dem Widget starten, ohne auf Tippen zu warten.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Hintergrunddienst aktivieren, um Akkustand, Standort und (falls unterstützt) Aktivitätsdaten an Home Assistant zu senden.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Intervall (in Minuten), in dem der Hintergrunddienst die Daten erneut senden soll.</string>
|
||||
<string id="SettingsUserHttpHeader">Zusätzlicher HTTP-Header</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">Einige Home Assistant-Installationen erfordern die Angabe eines benutzerdefinierten HTTP-Headers, um zu funktionieren.</string>
|
||||
<string id="SettingsUserHttpHeaderName">Zusätzlicher HTTP-Header: Name</string>
|
||||
<string id="SettingsUserHttpHeaderValue">Zusätzlicher HTTP-Header: Value</string>
|
||||
<string id="SettingsWebhookId">(Nur lesen) Die vom Gerät erstellte Webhook-ID für Hintergrund-Updates. Kann zum Debuggen benötigt werden.</string>
|
||||
</strings>
|
||||
|
@@ -9,18 +9,18 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to German
|
||||
Generiert von Google Translate aus dem Englischen
|
||||
Generated by Google Translate and gemini-2.5-flash from English to German
|
||||
Generiert von Google Translate und gemini-2.5-flash aus dem Englischen ins Deutsche
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">API-Aufrufe zu schnell. Bitte verlangsamen Sie Ihre Anfragen.</string>
|
||||
<string id="ApiUrlNotFound">URL nicht gefunden. Möglicher API-URL-Fehler in den Einstellungen.</string>
|
||||
<string id="ApiFlood">Zu viele API-Aufrufe in kurzer Zeit. Bitte verlangsame deine Anfragen.</string>
|
||||
<string id="ApiUrlNotFound">URL nicht gefunden. Möglicher Fehler in der API-URL in den Einstellungen.</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">OK</string>
|
||||
<string id="Cached" scope="glance">gecacht</string>
|
||||
@@ -31,46 +31,57 @@
|
||||
<string id="Executed" scope="glance">Bestätigt</string>
|
||||
<string id="GlanceMenu" scope="glance">Menü</string>
|
||||
<string id="Memory" scope="glance">Speicher</string>
|
||||
<string id="NoAPIKey" scope="glance">Kein API-Schlüssel in den Anwendungseinstellungen.</string>
|
||||
<string id="NoApiUrl" scope="glance">Keine API-URL in den Anwendungseinstellungen.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Keine Konfigurations-URL in den Anwendungseinstellungen.</string>
|
||||
<string id="MenuUpdated">Menü aktualisiert, neu starten.</string>
|
||||
<string id="MenuCheckDisabled">Menü -Updates deaktiviert.</string>
|
||||
<string id="NoAPIKey" scope="glance">Kein API-Schlüssel in den App-Einstellungen hinterlegt.</string>
|
||||
<string id="NoApiUrl" scope="glance">Keine API-URL in den App-Einstellungen hinterlegt.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Keine Menükonfigurations-URL (JSON) in den App-Einstellungen hinterlegt.</string>
|
||||
<string id="NoInternet">Keine Internetverbindung.</string>
|
||||
<string id="NoJson">Von der HTTP-Anforderung wurde kein JSON zurückgegeben.</string>
|
||||
<string id="NoJson">Keine JSON-Datei aus der HTTP-Anfrage zurückbekommen.</string>
|
||||
<string id="NoPhone" scope="glance">Keine Telefonverbindung.</string>
|
||||
<string id="NoResponse">Keine Antwort, überprüfen Sie die Internetverbindung</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">Keine Telefonverbindung und kein gecachtes Menü.</string>
|
||||
<string id="NoResponse">Keine Antwort, bitte Internetverbindung prüfen.</string>
|
||||
<string id="TimedOut">Anfragezeit überschritten.</string>
|
||||
<string id="PinInputLocked">PIN-Eingabe gesperrt für</string>
|
||||
<string id="PotentialError">Möglicher Fehler</string>
|
||||
<string id="Seconds">Sekunden</string>
|
||||
<string id="TemplateError">Template konnte nicht gerendert werden</string>
|
||||
<string id="TrailingSlashErr">Die API-URL darf keinen Schrägstrich „/“ am Ende haben.</string>
|
||||
<string id="TrailingSlashErr">API-URL darf nicht mit einem Schrägstrich '/' enden.</string>
|
||||
<string id="Unavailable" scope="glance">Nicht verfügbar</string>
|
||||
<string id="Unconfigured" scope="glance">Nicht konfiguriert</string>
|
||||
<string id="UnhandledHttpErr">Die HTTP-Anfrage gab folgenden Fehlercode zurück = </string>
|
||||
<string id="WebhookFailed">Webhook konnte nicht registriert werden</string>
|
||||
<string id="WrongPin">Falsche PIN</string>
|
||||
<!-- Für die GUI mit den Einstellungen sollten die Zeichenfolgen in der Reihenfolge angegeben werden, in der sie verwendet werden. -->
|
||||
<string id="SettingsSelect">Wählen...</string>
|
||||
<string id="WebhookFailed">Webhook-Registrierung fehlgeschlagen.</string>
|
||||
<string id="WrongPin">Falsche PIN.</string>
|
||||
<string id="WifiLteNotAvailable">Kein WLAN oder LTE verfügbar.</string>
|
||||
<string id="WifiLtePrompt">Über WLAN/LTE ausführen?</string>
|
||||
<string id="WifiLteExecutionTitle">Sende an Home Assistant.</string>
|
||||
<string id="WifiLteExecutionDataError">Keine Daten empfangen.</string>
|
||||
<!-- Für die Einstellungs-Benutzeroberfläche sollten die Texte in der Reihenfolge ihrer Verwendung angeordnet sein. -->
|
||||
<string id="SettingsSelect">Auswählen...</string>
|
||||
<string id="SettingsApiKey">API-Schlüssel für HomeAssistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">Langlebiger Zugriffstoken.</string>
|
||||
<string id="SettingsApiKeyPrompt">Langzeit-Zugangstoken.</string>
|
||||
<string id="SettingsApiUrl">URL der HomeAssistant-API.</string>
|
||||
<string id="SettingsConfigUrl">URL der Menükonfiguration (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Soll die Anwendung die Menükonfiguration cachen?</string>
|
||||
<string id="SettingsConfigUrl">URL für die Menükonfiguration (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Soll die App die Menükonfiguration cachen?</string>
|
||||
<string id="SettingsClearCache">Soll die Anwendung beim nächsten Start den vorhandenen Cache löschen?</string>
|
||||
<string id="SettingsVibration">Soll die Anwendung eine Rückmeldung über Vibrationen geben?</string>
|
||||
<string id="SettingsAppTimeout">Die App wird nach Ablauf der Zeit (in Sekunden) bei Inaktivität beendet, um den Akku
|
||||
des Geräts zu schonen.</string>
|
||||
<string id="SettingsPollDelay">Zusätzliche Abfrageverzögerung (in Sekunden). Fügt eine Verzögerung zwischen der Statusaktualisierung aller Menüelemente hinzu.</string>
|
||||
<string id="SettingsConfirmTimeout">Nach dieser Zeit (in Sekunden) wird der Bestätigungsdialog einer Aktion geschlossen und die
|
||||
Aktion abgebrochen. Auf 0 setzen, um den Timeout zu deaktivieren.</string>
|
||||
<string id="SettingsPin">4-stellige PIN für alle Actions mit 'confirm': true (0000-9999).</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">Überprüfen Sie die Menü -Updates für Anwendungsstart? HINWEIS: Das Menü Caching muss aktiviert sein. Diese Einstellung kann dazu führen, dass ältere Geräte mit weniger Speicher abstürzen.</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">Befehlsausführung über WLAN/LTE aktivieren.</string>
|
||||
<string id="SettingsVibration">Soll die App Rückmeldung per Vibration geben?</string>
|
||||
<string id="SettingsAppTimeout">Timeout in Sekunden. Beendet die App nach dieser Inaktivitätszeit, um Akku zu sparen.</string>
|
||||
<string id="SettingsPollDelay">Zusätzliche Abfrageverzögerung (in Sekunden). Fügt zwischen den Status-Updates der Menüeinträge eine Pause ein.</string>
|
||||
<string id="SettingsConfirmTimeout">Nach dieser Zeit (in Sekunden) wird ein Bestätigungsdialog automatisch geschlossen und die Aktion abgebrochen. Mit 0 deaktivieren.</string>
|
||||
<string id="SettingsPin">4-stellige PIN für alle Aktionen, die diese erfordern (0000-9999).</string>
|
||||
<string id="SettingsPinError">Bitte eine gültige 4-stellige numerische PIN in den App Einstellungen eingeben (0000-9999).</string>
|
||||
<string id="SettingsTextAlign">Menüausrichtung links (aus) oder rechts (ein).</string>
|
||||
<string id="LeftToRight">Von links nach rechts</string>
|
||||
<string id="RightToLeft">Von rechts nach links</string>
|
||||
<string id="SettingsWidgetStart">(Nur Widget) Anwendung automatisch über das Widget starten ohne drauftippen zu müssen.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Hintergrunddienst aktivieren, um den Ladezustand der Batterie an HomeAssistant zu senden.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Die Aktualisierungsrate (in Minuten) mit der der Ladezustand der Batterie
|
||||
an HomeAssistant gesendet wird.</string>
|
||||
<string id="WebhookId">(Schreibgeschützt) Die von der Uhr erstellte Webhook-ID für Aktualisierungen des Ladezustands der Batterie.
|
||||
Möglicherweise wird dies zum Debuggen benötigt.</string>
|
||||
<string id="SettingsTextAlign">Menüausrichtung: Links (aus) oder Rechts (ein).</string>
|
||||
<string id="SettingsLeftToRight">Von links nach rechts</string>
|
||||
<string id="SettingsRightToLeft">Von rechts nach links</string>
|
||||
<string id="SettingsWidgetStart">(Nur Widget) App automatisch aus dem Widget starten, ohne auf Tippen zu warten.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Hintergrunddienst aktivieren, um Akkustand, Standort und (falls unterstützt) Aktivitätsdaten an Home Assistant zu senden.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Intervall (in Minuten), in dem der Hintergrunddienst die Daten erneut senden soll.</string>
|
||||
<string id="SettingsUserHttpHeader">Zusätzlicher HTTP-Header</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">Einige Home Assistant-Installationen erfordern die Angabe eines benutzerdefinierten HTTP-Headers, um zu funktionieren.</string>
|
||||
<string id="SettingsUserHttpHeaderName">Zusätzlicher HTTP-Header: Name</string>
|
||||
<string id="SettingsUserHttpHeaderValue">Zusätzlicher HTTP-Header: Value</string>
|
||||
<string id="SettingsClearWebhookId">Neu mit Home Assistant verbinden (Webhook-ID löschen, siehe Fehlerbehebungshandbuch).</string>
|
||||
<string id="SettingsWebhookId">(Nur lesen) Die vom Gerät erstellte Webhook-ID für Hintergrund-Updates. Kann zum Debuggen benötigt werden.</string>
|
||||
</strings>
|
||||
|
@@ -9,64 +9,94 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Dutch
|
||||
Gemaakt door Google Translate uit het Engels
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Dutch
|
||||
Gegenereerd door Google Translate en gemini-2.5-flash van Engels naar Nederlands
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">API-aanroepen te snel. Vertraag uw verzoeken.</string>
|
||||
<string id="ApiUrlNotFound">URL niet gevonden. Mogelijke API URL-fout in instellingen.</string>
|
||||
<string id="ApiUrlNotFound">URL niet gevonden. Potentiële API-URL-fout in instellingen.</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">Beschikbaar</string>
|
||||
<string id="Cached" scope="glance">Gecached</string>
|
||||
<string id="Checking" scope="glance">Controleren...</string>
|
||||
<string id="ConfigUrlNotFound">URL niet gevonden. Mogelijke configuratie-URL-fout in instellingen.</string>
|
||||
<string id="Cached" scope="glance">In cache</string>
|
||||
<string id="Checking" scope="glance">Controleren ...</string>
|
||||
<string id="ConfigUrlNotFound">URL niet gevonden. Potentiële configuratie-URL-fout in
|
||||
instellingen.</string>
|
||||
<string id="Confirm">Zeker?</string>
|
||||
<string id="Empty">Leeg</string>
|
||||
<string id="Executed" scope="glance">Bevestigd</string>
|
||||
<string id="GlanceMenu" scope="glance">Menu</string>
|
||||
<string id="Memory" scope="glance">Geheugen</string>
|
||||
<string id="NoAPIKey" scope="glance">Geen API-sleutel in de applicatie-instellingen.</string>
|
||||
<string id="NoApiUrl" scope="glance">Geen API-URL in de applicatie-instellingen.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Geen configuratie-URL in de applicatie-instellingen.</string>
|
||||
<string id="MenuUpdated">Menu bijgewerkt, opnieuw opstarten.</string>
|
||||
<string id="MenuCheckDisabled">Menu-updates uitgeschakeld.</string>
|
||||
<string id="NoAPIKey" scope="glance">Geen API-sleutel in de toepassingsinstellingen.</string>
|
||||
<string id="NoApiUrl" scope="glance">Geen API-URL in de toepassingsinstellingen.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Geen configuratie-URL in de toepassingsinstellingen.</string>
|
||||
<string id="NoInternet">Geen internetverbinding.</string>
|
||||
<string id="NoJson">Er is geen JSON geretourneerd vanuit de HTTP-aanvraag.</string>
|
||||
<string id="NoJson">Geen JSON ontvangen van het HTTP-verzoek.</string>
|
||||
<string id="NoPhone" scope="glance">Geen telefoonverbinding.</string>
|
||||
<string id="NoResponse">Geen reactie, controleer internetverbinding</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">Geen telefoonverbinding, geen menu in de cache.</string>
|
||||
<string id="NoResponse">Geen antwoord, controleer internetverbinding</string>
|
||||
<string id="TimedOut">Verzoek is verlopen</string>
|
||||
<string id="PinInputLocked">PIN-invoer vergrendeld voor</string>
|
||||
<string id="PotentialError">Mogelijke fout</string>
|
||||
<string id="PotentialError">Potentiële fout</string>
|
||||
<string id="Seconds">seconden</string>
|
||||
<string id="TemplateError">Sjabloonfout</string>
|
||||
<string id="TrailingSlashErr">De API-URL mag geen afsluitende slash ('/') bevatten.</string>
|
||||
<string id="TrailingSlashErr">API-URL mag geen afsluitende schuine streep '/' hebben.</string>
|
||||
<string id="Unavailable" scope="glance">Niet beschikbaar</string>
|
||||
<string id="Unconfigured" scope="glance">Niet geconfigureerd</string>
|
||||
<string id="UnhandledHttpErr">HTTP-aanvraag retourneerde foutcode =</string>
|
||||
<string id="WebhookFailed">Webhook registreren mislukt</string>
|
||||
<string id="WrongPin">Verkeerde pincode</string>
|
||||
<!-- Voor de instellingen van de GUI moeten de strings in de volgorde staan waarin ze worden gebruikt. -->
|
||||
<string id="SettingsSelect">Selecteer...</string>
|
||||
<string id="SettingsApiKey">API-sleutel voor HomeAssistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">Langlevende toegangstoken.</string>
|
||||
<string id="SettingsApiUrl">URL voor HomeAssistant API.</string>
|
||||
<string id="UnhandledHttpErr">HTTP-verzoek retourneerde foutcode =</string>
|
||||
<string id="WebhookFailed">Kon Webhook niet registreren</string>
|
||||
<string id="WrongPin">Verkeerde PIN</string>
|
||||
<string id="WifiLteNotAvailable">Geen Wi-Fi of LTE beschikbaar</string>
|
||||
<string id="WifiLtePrompt">Uitvoeren via Wi-Fi/LTE?</string>
|
||||
<string id="WifiLteExecutionTitle">Verzenden naar homeassistent.</string>
|
||||
<string id="WifiLteExecutionDataError">Geen gegevens ontvangen.</string>
|
||||
<!-- Voor de instellingen-GUI moeten strings in de volgorde staan waarin ze worden gebruikt. -->
|
||||
<string id="SettingsSelect">Selecteer ...</string>
|
||||
<string id="SettingsApiKey">API-sleutel voor Home Assistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">Langdurige Access Token.</string>
|
||||
<string id="SettingsApiUrl">URL voor Home Assistant API.</string>
|
||||
<string id="SettingsConfigUrl">URL voor menuconfiguratie (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Moet de applicatie de menuconfiguratie cachen?</string>
|
||||
<string id="SettingsClearCache">Moet de applicatie de bestaande cache wissen wanneer deze de volgende keer wordt gestart?</string>
|
||||
<string id="SettingsClearCache">Moet de applicatie de bestaande cache wissen bij de volgende
|
||||
start?</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">Controleren op menu-updates bij het starten van de applicatie? Let op: Menu-caching moet zijn ingeschakeld. Deze instelling kan ervoor zorgen dat oudere apparaten met minder geheugen crashen.</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">Schakel het uitvoeren van opdrachten via Wi-Fi/LTE in.</string>
|
||||
<string id="SettingsVibration">Moet de applicatie feedback geven via trillingen?</string>
|
||||
<string id="SettingsAppTimeout">Time-out in seconden. Sluit de applicatie na deze periode van inactiviteit om de batterij van het apparaat te sparen.</string>
|
||||
<string id="SettingsPollDelay">Extra pollvertraging (in seconden). Voegt een vertraging toe tussen de statusupdate van alle menu-items.</string>
|
||||
<string id="SettingsConfirmTimeout">Na deze tijd (in seconden) wordt een bevestigingsdialoog voor een actie automatisch gesloten en wordt de actie geannuleerd. Stel in op 0 om de time-out uit te schakelen.</string>
|
||||
<string id="SettingsPin">4-cijferige pincode die gebruikt moet worden voor alle handelingen die bevestiging vereisen (0000-9999).</string>
|
||||
<string id="SettingsPinError">Configureer een geldige 4-cijferige pincode tussen 0000 en 9999 in de applicatie-instellingen.</string>
|
||||
<string id="SettingsTextAlign">Menu-uitlijning links (uit) of rechts (aan).</string>
|
||||
<string id="LeftToRight">Van links naar rechts</string>
|
||||
<string id="RightToLeft">Van rechts naar links</string>
|
||||
<string id="SettingsWidgetStart">(Alleen widget) Start de applicatie automatisch vanuit de widget zonder te wachten op een tik.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Schakel de achtergrondservice in om het batterijniveau, de locatie en (indien ondersteund) activiteitsgegevens van het apparaat naar Home Assistant te sturen.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">De vernieuwingsfrequentie (in minuten) waarmee de achtergrondservice het verzenden van gegevens moet herhalen.</string>
|
||||
<string id="WebhookId">(Alleen-lezen) De webhook-ID die door het apparaat is gemaakt voor achtergrondservice-updates. U hebt deze mogelijk nodig voor foutopsporing.</string>
|
||||
<string id="SettingsAppTimeout">Time-out in seconden. Sluit de applicatie af na deze periode van
|
||||
inactiviteit om de batterij van het apparaat te sparen.</string>
|
||||
<string id="SettingsPollDelay">Extra pollingvertraging (in seconden). Voegt een vertraging toe
|
||||
tussen de statusupdate van alle menu-items.</string>
|
||||
<string id="SettingsConfirmTimeout">Na deze tijd (in seconden) wordt een
|
||||
bevestigingsdialoogvenster voor een actie automatisch gesloten en wordt de actie geannuleerd.
|
||||
Stel in op 0 om de time-out uit te schakelen.</string>
|
||||
<string id="SettingsPin">4-cijferige PIN die moet worden gebruikt voor alle acties die dit
|
||||
vereisen (0000-9999).</string>
|
||||
<string id="SettingsPinError">Configureer een geldige 4-cijferige numerieke PIN tussen 0000 en
|
||||
9999 in de toepassingsinstellingen.</string>
|
||||
<string id="SettingsTextAlign">Links (uit) of rechts (aan) menu-uitlijning.</string>
|
||||
<string id="SettingsLeftToRight">Van links naar rechts</string>
|
||||
<string id="SettingsRightToLeft">Van rechts naar links</string>
|
||||
<string id="SettingsWidgetStart">(Alleen widget) Start de toepassing automatisch vanuit de widget
|
||||
zonder te wachten op een tik.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Schakel de achtergrondservice in om het batterijniveau van
|
||||
het apparaat, de locatie en (indien ondersteund) activiteitsgegevens naar Home Assistant te
|
||||
verzenden.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">De verversingssnelheid (in minuten) waarbij de
|
||||
achtergrondservice het verzenden van gegevens moet herhalen.</string>
|
||||
<string id="SettingsUserHttpHeader">Door gebruiker opgegeven HTTP-header</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">Sommige Home Assistant-installaties vereisen de
|
||||
specificatie van een aangepaste HTTP-header om te functioneren.</string>
|
||||
<string id="SettingsUserHttpHeaderName">Door gebruiker opgegeven HTTP-header: Naam</string>
|
||||
<string id="SettingsUserHttpHeaderValue">Door gebruiker opgegeven HTTP-header: Waarde</string>
|
||||
<string id="SettingsClearWebhookId">Opnieuw verbinden met Home Assistant (Webhook-ID wissen, zie
|
||||
Gids voor probleemoplossing).</string>
|
||||
<string id="SettingsWebhookId">(Alleen lezen) De Webhook-ID die door het apparaat is gemaakt voor
|
||||
updates van de achtergrondservice. Mogelijk heeft u dit nodig voor foutopsporing.</string>
|
||||
</strings>
|
||||
|
@@ -9,64 +9,91 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Estonian
|
||||
Loodud Google'i tõlke abil inglise keelest
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Estonian
|
||||
Genereeritud Google Translate'i ja gemini-2.5-flashi poolt inglise keelest eesti keelde
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">API-kutsed liiga kiired. Palun aeglustage taotluste esitamist.</string>
|
||||
<string id="ApiFlood">API kõned on liiga kiired. Palun aeglustage oma päringuid.</string>
|
||||
<string id="ApiUrlNotFound">URL-i ei leitud. Võimalik API URL-i viga seadetes.</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">Saadaval</string>
|
||||
<string id="Available" scope="glance">Saadav</string>
|
||||
<string id="Cached" scope="glance">Vahemällu salvestatud</string>
|
||||
<string id="Checking" scope="glance">Kontrollimine...</string>
|
||||
<string id="Checking" scope="glance">Kontrollin...</string>
|
||||
<string id="ConfigUrlNotFound">URL-i ei leitud. Võimalik konfiguratsiooni URL-i viga seadetes.</string>
|
||||
<string id="Confirm">Muidugi?</string>
|
||||
<string id="Confirm">Kindel?</string>
|
||||
<string id="Empty">Tühi</string>
|
||||
<string id="Executed" scope="glance">Kinnitatud</string>
|
||||
<string id="GlanceMenu" scope="glance">Menüü</string>
|
||||
<string id="Memory" scope="glance">Mälu</string>
|
||||
<string id="NoAPIKey" scope="glance">Rakenduse seadetes pole API-võtit.</string>
|
||||
<string id="MenuUpdated">Menüü värskendatud, taaskäivita.</string>
|
||||
<string id="MenuCheckDisabled">Menüü värskendused keelatud.</string>
|
||||
<string id="NoAPIKey" scope="glance">Rakenduse seadetes pole API võtit.</string>
|
||||
<string id="NoApiUrl" scope="glance">Rakenduse seadetes pole API URL-i.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Rakenduse seadetes pole konfiguratsiooni URL-i.</string>
|
||||
<string id="NoInternet">Interneti-ühendus puudub.</string>
|
||||
<string id="NoJson">HTTP-päringust ei tagastatud ühtegi JSON-i.</string>
|
||||
<string id="NoPhone" scope="glance">Telefoniühendus puudub.</string>
|
||||
<string id="NoResponse">Ei reageeri, kontrollige Interneti-ühendust</string>
|
||||
<string id="PinInputLocked">PIN-i sisestus on lukustatud</string>
|
||||
<string id="PotentialError">Võimalik viga</string>
|
||||
<string id="Seconds">sekundit</string>
|
||||
<string id="NoInternet">Interneti-ühendust pole.</string>
|
||||
<string id="NoJson">HTTP päring ei tagastanud JSON-i.</string>
|
||||
<string id="NoPhone" scope="glance">Telefoniühendust pole.</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">Pole telefoniühendust ega vahemällu salvestatud menüüd.</string>
|
||||
<string id="NoResponse">Vastust pole, kontrollige Interneti-ühendust</string>
|
||||
<string id="TimedOut">Päring aegus</string>
|
||||
<string id="PinInputLocked">PIN-koodi sisestus lukustatud</string>
|
||||
<string id="PotentialError">Potentsiaalne viga</string>
|
||||
<string id="Seconds">sekundid</string>
|
||||
<string id="TemplateError">Malli viga</string>
|
||||
<string id="TrailingSlashErr">API URL-i lõpus ei tohi olla kaldkriipsu „/”.</string>
|
||||
<string id="Unavailable" scope="glance">Pole saadaval</string>
|
||||
<string id="TrailingSlashErr">API URL-il ei tohi olla lõpus kaldkriipsu '/'.</string>
|
||||
<string id="Unavailable" scope="glance">Kättesaamatu</string>
|
||||
<string id="Unconfigured" scope="glance">Konfigureerimata</string>
|
||||
<string id="UnhandledHttpErr">HTTP päring tagastas veakoodi =</string>
|
||||
<string id="WebhookFailed">Webhaoki registreerimine ebaõnnestus</string>
|
||||
<string id="UnhandledHttpErr">HTTP päring tagastas veakoodi = </string>
|
||||
<string id="WebhookFailed">Webhooki registreerimine ebaõnnestus</string>
|
||||
<string id="WrongPin">Vale PIN-kood</string>
|
||||
<!-- Seadete GUI jaoks peavad stringid olema nende kasutamise järjekorras. -->
|
||||
<string id="SettingsSelect">Vali...</string>
|
||||
<string id="SettingsApiKey">API-võti HomeAssistantile.</string>
|
||||
<string id="SettingsApiKeyPrompt">Pikaealine juurdepääsuluba.</string>
|
||||
<string id="SettingsApiUrl">HomeAssistant API URL.</string>
|
||||
<string id="SettingsConfigUrl">URL menüü konfigureerimiseks (JSON).</string>
|
||||
<string id="WifiLteNotAvailable">Wi-Fi ega LTE pole saadaval</string>
|
||||
<string id="WifiLtePrompt">Täita üle Wi-Fi/LTE?</string>
|
||||
<string id="WifiLteExecutionTitle">Saadan Home Assistantile.</string>
|
||||
<string id="WifiLteExecutionDataError">Andmeid pole laekunud.</string>
|
||||
<!-- Seadete GUI jaoks peaksid stringid olema kasutamise järjekorras. -->
|
||||
<string id="SettingsSelect">Valige...</string>
|
||||
<string id="SettingsApiKey">API võti Home Assistantile.</string>
|
||||
<string id="SettingsApiKeyPrompt">Pikaajaline juurdepääsuluba.</string>
|
||||
<string id="SettingsApiUrl">URL Home Assistanti API jaoks.</string>
|
||||
<string id="SettingsConfigUrl">URL menüü konfiguratsiooni jaoks (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Kas rakendus peaks menüü konfiguratsiooni vahemällu salvestama?</string>
|
||||
<string id="SettingsClearCache">Kas rakendus peaks järgmisel käivitamisel olemasoleva vahemälu tühjendama?</string>
|
||||
<string id="SettingsVibration">Kas rakendus peaks andma tagasisidet vibratsiooni kaudu?</string>
|
||||
<string id="SettingsAppTimeout">Aegumine sekundites. Seadme aku säästmiseks sulgege rakendus pärast seda tegevusetusperioodi.</string>
|
||||
<string id="SettingsPollDelay">Küsitluse täiendav viivitus (sekundites). Lisab viivituse kõigi menüüelementide olekuvärskenduse vahele.</string>
|
||||
<string id="SettingsConfirmTimeout">Pärast seda aega (sekundites) suletakse automaatselt toimingu kinnitusdialoog ja toiming tühistatakse. Ajalõpu keelamiseks määrake väärtusele 0.</string>
|
||||
<string id="SettingsPin">4-kohaline PIN-kood, mida kasutatakse kõigi kinnitust vajavate toimingute jaoks (0000-9999).</string>
|
||||
<string id="SettingsPinError">Seadistage rakenduse seadetes kehtiv 4-kohaline PIN-kood vahemikus 0000 kuni 9999.</string>
|
||||
<string id="SettingsTextAlign">Vasak (väljas) või parem (sees) menüü joondamine.</string>
|
||||
<string id="LeftToRight">Vasakult paremale</string>
|
||||
<string id="RightToLeft">Paremalt vasakule</string>
|
||||
<string id="SettingsWidgetStart">(Ainult vidin) Käivitage rakendus automaatselt vidinast ilma puudutust ootamata.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Lubage taustateenus, et saata Home Assistantile seadme aku tase, asukoht ja (kui see on toetatud) tegevusandmed.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Värskendussagedus (minutites), millega taustateenus peaks andmete saatmist kordama.</string>
|
||||
<string id="WebhookId">(Ainult lugemiseks) Seadme loodud veebihaagi ID taustateenuste värskenduste jaoks. Võib-olla vajate seda silumiseks.</string>
|
||||
<string id="SettingsClearCache">Kas rakendus peaks järgmisel käivitamisel olemasoleva vahemälu
|
||||
tühjendama?</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">Kontrolli menüü värskendusi rakenduse käivitamisel? Märkus: Menüü vahemällu salvestamine peab olema lubatud. See säte võib põhjustada vanemate, vähem mälu omavate seadmete kokkujooksmise.</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">Luba käskude täitmine Wi-Fi/LTE kaudu.</string>
|
||||
<string id="SettingsVibration">Kas rakendus peaks vibratsiooni kaudu tagasisidet andma?</string>
|
||||
<string id="SettingsAppTimeout">Aegumine sekundites. Väljuge rakendusest pärast seda tegevusetuse
|
||||
perioodi, et säästa seadme akut.</string>
|
||||
<string id="SettingsPollDelay">Täiendav päringuviivitus (sekundites). Lisab viivituse kõigi
|
||||
menüüelementide olekuvärskenduste vahele.</string>
|
||||
<string id="SettingsConfirmTimeout">Pärast seda aega (sekundites) suletakse toimingu
|
||||
kinnitusdialoog automaatselt ja toiming tühistatakse. Määra 0, et aegumine keelata.</string>
|
||||
<string id="SettingsPin">4-kohaline PIN-kood, mida kasutatakse kõigi seda nõudvate toimingute
|
||||
jaoks (0000-9999).</string>
|
||||
<string id="SettingsPinError">Palun konfigureerige rakenduse seadetes kehtiv 4-kohaline numbriline
|
||||
PIN-kood vahemikus 0000 kuni 9999.</string>
|
||||
<string id="SettingsTextAlign">Vasak (väljas) või parem (sees) menüü joondus.</string>
|
||||
<string id="SettingsLeftToRight">Vasakult paremale</string>
|
||||
<string id="SettingsRightToLeft">Paremale vasakule</string>
|
||||
<string id="SettingsWidgetStart">(Ainult vidin) Käivitage rakendus vidinast automaatselt, ilma
|
||||
puudutust ootamata.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Luba taustateenusel saata seadme aku tase, asukoht ja (kui
|
||||
toetatud) tegevusandmed Home Assistantile.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Värskendussagedus (minutites), millega taustateenus
|
||||
peaks andmete saatmist kordama.</string>
|
||||
<string id="SettingsUserHttpHeader">Kasutaja määratud HTTP päis</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">Mõned Home Assistanti installatsioonid vajavad
|
||||
toimimiseks kohandatud HTTP päise määramist.</string>
|
||||
<string id="SettingsUserHttpHeaderName">Kasutaja määratud HTTP päis: Nimi</string>
|
||||
<string id="SettingsUserHttpHeaderValue">Kasutaja määratud HTTP päis: Väärtus</string>
|
||||
<string id="SettingsClearWebhookId">Ühenda uuesti Home Assistantiga (tühjenda Webhooki ID, vt
|
||||
tõrkeotsingu juhendit).</string>
|
||||
<string id="SettingsWebhookId">(Ainult lugemiseks) Seadme loodud Webhooki ID taustateenuse
|
||||
värskenduste jaoks. Võite seda silumiseks vajada.</string>
|
||||
</strings>
|
||||
|
@@ -9,64 +9,94 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Finnish
|
||||
Luonut Google Translate englannista
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Finnish
|
||||
Generoinut Google Translate ja gemini-2.5-flash englannista suomeksi
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">API-kutsut liian nopeita. Hidasta pyyntöjäsi.</string>
|
||||
<string id="ApiUrlNotFound">URL-osoitetta ei löydy. Mahdollinen API URL -virhe asetuksissa.</string>
|
||||
<string id="ApiFlood">API-kutsut liian tiheitä. Hidasta pyyntöjäsi.</string>
|
||||
<string id="ApiUrlNotFound">URL-osoitetta ei löydy. Mahdollinen API-URL-virhe asetuksissa.</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">Saatavilla</string>
|
||||
<string id="Available" scope="glance">Käytettävissä</string>
|
||||
<string id="Cached" scope="glance">Välimuistissa</string>
|
||||
<string id="Checking" scope="glance">Tarkistetaan...</string>
|
||||
<string id="ConfigUrlNotFound">URL-osoitetta ei löydy. Mahdollinen konfigurointi-URL-virhe asetuksissa.</string>
|
||||
<string id="ConfigUrlNotFound">URL-osoitetta ei löydy. Mahdollinen määritys-URL-virhe asetuksissa.</string>
|
||||
<string id="Confirm">Varma?</string>
|
||||
<string id="Empty">Tyhjä</string>
|
||||
<string id="Executed" scope="glance">Vahvistettu</string>
|
||||
<string id="GlanceMenu" scope="glance">Valikko</string>
|
||||
<string id="Memory" scope="glance">Muisti</string>
|
||||
<string id="NoAPIKey" scope="glance">Sovelluksen asetuksissa ei ole API-avainta.</string>
|
||||
<string id="NoApiUrl" scope="glance">Sovellusasetuksissa ei ole API URL-osoitetta.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Sovelluksen asetuksissa ei ole konfigurointi-URL-osoitetta.</string>
|
||||
<string id="MenuUpdated">Valikko päivitetty, käynnistä uudelleen.</string>
|
||||
<string id="MenuCheckDisabled">Valikkopäivitykset poistettu käytöstä.</string>
|
||||
<string id="NoAPIKey" scope="glance">Ei API-avainta sovellusasetuksissa.</string>
|
||||
<string id="NoApiUrl" scope="glance">Ei API-URL-osoitetta sovellusasetuksissa.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Ei määritys-URL-osoitetta sovellusasetuksissa.</string>
|
||||
<string id="NoInternet">Ei Internet-yhteyttä.</string>
|
||||
<string id="NoJson">HTTP-pyynnöstä ei palautettu JSON-tiedostoja.</string>
|
||||
<string id="NoJson">HTTP-pyynnöstä ei palautettu JSONia.</string>
|
||||
<string id="NoPhone" scope="glance">Ei puhelinyhteyttä.</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">Ei puhelinyhteyttä, ei välimuistissa olevaa valikkoa.</string>
|
||||
<string id="NoResponse">Ei vastausta, tarkista Internet-yhteys</string>
|
||||
<string id="PinInputLocked">PIN-koodin syöttö lukittu</string>
|
||||
<string id="TimedOut">Pyyntö aikakatkaistu</string>
|
||||
<string id="PinInputLocked">PIN-syöttö lukittu ajaksi</string>
|
||||
<string id="PotentialError">Mahdollinen virhe</string>
|
||||
<string id="Seconds">sekuntia</string>
|
||||
<string id="TemplateError">Mallivirhe</string>
|
||||
<string id="TrailingSlashErr">API-URL-osoitteessa ei saa olla perässä olevaa kauttaviivaa '/'.</string>
|
||||
<string id="Unavailable" scope="glance">Ei saatavilla</string>
|
||||
<string id="Unconfigured" scope="glance">Määrittämätön</string>
|
||||
<string id="TrailingSlashErr">API-URL-osoitteessa ei saa olla loppukauttaviivaa '/'.</string>
|
||||
<string id="Unavailable" scope="glance">Ei käytettävissä</string>
|
||||
<string id="Unconfigured" scope="glance">Määrittelemätön</string>
|
||||
<string id="UnhandledHttpErr">HTTP-pyyntö palautti virhekoodin =</string>
|
||||
<string id="WebhookFailed">Webhookin rekisteröinti epäonnistui</string>
|
||||
<string id="WrongPin">Väärä PIN</string>
|
||||
<!-- Asetuskäyttöliittymässä merkkijonojen tulee olla käyttöjärjestyksessä. -->
|
||||
<string id="WrongPin">Väärä PIN-koodi</string>
|
||||
<string id="WifiLteNotAvailable">Ei Wi-Fiä tai LTE:tä käytettävissä.</string>
|
||||
<string id="WifiLtePrompt">Suoritetaanko Wi-Fi/LTE-yhteyden kautta?</string>
|
||||
<string id="WifiLteExecutionTitle">Lähetetään Home Assistantille.</string>
|
||||
<string id="WifiLteExecutionDataError">Tietoja ei vastaanotettu.</string>
|
||||
<!-- Asetusten käyttöliittymän osalta merkkijonojen tulisi olla siinä järjestyksessä, jossa niitä
|
||||
käytetään. -->
|
||||
<string id="SettingsSelect">Valitse...</string>
|
||||
<string id="SettingsApiKey">API-avain HomeAssistantille.</string>
|
||||
<string id="SettingsApiKeyPrompt">Pitkäikäinen pääsytunnus.</string>
|
||||
<string id="SettingsApiUrl">HomeAssistant API:n URL-osoite.</string>
|
||||
<string id="SettingsConfigUrl">URL-osoite valikon määrityksiä varten (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Pitäisikö sovelluksen tallentaa valikon asetukset välimuistiin?</string>
|
||||
<string id="SettingsClearCache">Pitäisikö sovelluksen tyhjentää olemassa oleva välimuisti, kun se käynnistetään seuraavan kerran?</string>
|
||||
<string id="SettingsVibration">Pitäisikö sovelluksen antaa palautetta tärinän kautta?</string>
|
||||
<string id="SettingsAppTimeout">Aikakatkaisu sekunneissa. Poistu sovelluksesta tämän käyttämättömyyden jälkeen säästääksesi laitteen akkua.</string>
|
||||
<string id="SettingsPollDelay">Ylimääräinen kyselyn viive (sekunneissa). Lisää viiveen kaikkien valikkokohtien tilapäivitysten välille.</string>
|
||||
<string id="SettingsConfirmTimeout">Tämän ajan kuluttua (sekunneissa) toiminnon vahvistusikkuna suljetaan automaattisesti ja toiminto peruutetaan. Aseta arvoksi 0, jos haluat poistaa aikakatkaisun käytöstä.</string>
|
||||
<string id="SettingsPin">4-numeroinen PIN-koodi, jota käytetään kaikkiin vahvistusta vaativiin toimiin (0000-9999).</string>
|
||||
<string id="SettingsPinError">Määritä kelvollinen 4-numeroinen numeerinen PIN-koodi väliltä 0000–9999 sovelluksen asetuksissa.</string>
|
||||
<string id="SettingsTextAlign">Vasen (pois) tai oikea (päällä) valikon kohdistus.</string>
|
||||
<string id="LeftToRight">Vasemmalta oikealle</string>
|
||||
<string id="RightToLeft">Oikealta vasemmalle</string>
|
||||
<string id="SettingsWidgetStart">(Vain widget) Käynnistä sovellus automaattisesti widgetistä odottamatta napautusta.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Ota taustapalvelu käyttöön, jotta voit lähettää laitteen akun varaustason, sijainnin ja (jos tuettu) toimintatiedot Home Assistantille.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Virkistystaajuus (minuutteina), jolla taustapalvelun pitäisi toistaa tietojen lähettäminen.</string>
|
||||
<string id="WebhookId">(Vain luku) Laitteen luoma Webhook-tunnus taustapalvelupäivityksiä varten. Saatat tarvita tätä virheenkorjaukseen.</string>
|
||||
<string id="SettingsApiKeyPrompt">Pitkäikäinen käyttöoikeustunnus.</string>
|
||||
<string id="SettingsApiUrl">URL-osoite HomeAssistantin API:lle.</string>
|
||||
<string id="SettingsConfigUrl">Valikon määrityksen URL-osoite (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Pitäisikö sovelluksen tallentaa valikon kokoonpano välimuistiin?</string>
|
||||
<string id="SettingsClearCache">Pitäisikö sovelluksen tyhjentää olemassa oleva välimuisti
|
||||
seuraavalla käynnistyksellä?</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">Tarkistetaanko valikkopäivitykset sovelluksen käynnistyksen yhteydessä? Huomaa: Valikon välimuistiin tallennus on oltava käytössä. Tämä asetus voi aiheuttaa vanhempien, vähemmän muistia omaavien laitteiden kaatumisen.</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">Ota komentojen suorittaminen käyttöön
|
||||
Wi-Fi/LTE-yhteyden kautta.</string>
|
||||
<string id="SettingsVibration">Pitäisikö sovelluksen antaa palautetta värähtelyjen kautta?</string>
|
||||
<string id="SettingsAppTimeout">Aikakatkaisu sekunneissa. Poistu sovelluksesta tämän
|
||||
toimettomuuden jälkeen säästääksesi laitteen akkua.</string>
|
||||
<string id="SettingsPollDelay">Lisäkyselyviive (sekunneissa). Lisää viive kaikkien
|
||||
valikkokohteiden tilapäivityksen välillä.</string>
|
||||
<string id="SettingsConfirmTimeout">Tämän ajan jälkeen (sekunneissa) toiminnan
|
||||
vahvistusvalintaikkuna suljetaan automaattisesti ja toiminto peruutetaan. Aseta arvoon 0
|
||||
poistamaan aikakatkaisu käytöstä.</string>
|
||||
<string id="SettingsPin">4-numeroinen PIN-koodi, jota käytetään kaikkiin sitä vaativiin toimiin
|
||||
(0000-9999).</string>
|
||||
<string id="SettingsPinError">Määritä kelvollinen 4-numeroinen numeerinen PIN-koodi välillä
|
||||
0000-9999 sovellusasetuksissa.</string>
|
||||
<string id="SettingsTextAlign">Vasen (pois päältä) tai oikea (on) valikon kohdistus.</string>
|
||||
<string id="SettingsLeftToRight">Vasemmalta oikealle</string>
|
||||
<string id="SettingsRightToLeft">Oikealta vasemmalle</string>
|
||||
<string id="SettingsWidgetStart">(Vain widget) Käynnistä sovellus automaattisesti widgetistä
|
||||
odottamatta napautusta.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Ota taustapalvelu käyttöön laitteen akkutason, sijainnin
|
||||
ja (jos tuettu) aktiivisuustietojen lähettämiseksi Home Assistantille.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Päivitysnopeus (minuuteissa), jolla taustapalvelun
|
||||
tulisi toistaa tietojen lähettäminen.</string>
|
||||
<string id="SettingsUserHttpHeader">Käyttäjän määrittämä HTTP-otsake</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">Jotkut Home Assistant -asennukset vaativat
|
||||
mukautetun HTTP-otsakkeen määrittelyn toimiakseen.</string>
|
||||
<string id="SettingsUserHttpHeaderName">Käyttäjän määrittämä HTTP-otsake: Nimi</string>
|
||||
<string id="SettingsUserHttpHeaderValue">Käyttäjän määrittämä HTTP-otsake: Arvo</string>
|
||||
<string id="SettingsClearWebhookId">Yhdistä uudelleen Home Assistantiin (tyhjennä Webhook ID,
|
||||
katso vianetsintäopas).</string>
|
||||
<string id="SettingsWebhookId">(Vain luku) Laitteen luoma Webhook ID taustapalvelun päivityksiä
|
||||
varten. Saatat tarvita tätä virheenkorjaukseen.</string>
|
||||
</strings>
|
||||
|
@@ -9,64 +9,98 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to French
|
||||
Généré par Google Translate depuis l'anglais
|
||||
Generated by Google Translate and gemini-2.5-flash from English to French
|
||||
Généré par Google Translate et gemini-2.5-flash de l'anglais au français
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">Appels API trop rapide. Veuillez signaler cette erreur avec les détails de l'appareil.</string>
|
||||
<string id="ApiUrlNotFound">URL introuvable. Erreur potentielle d'URL d'API dans les paramètres.</string>
|
||||
<string id="ApiUrlNotFound">URL introuvable. L'URL de l'API est potentiellement erronée dans les
|
||||
paramètres.</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">Disponible</string>
|
||||
<string id="Cached" scope="glance">Mis en cache</string>
|
||||
<string id="Checking" scope="glance">Vérification...</string>
|
||||
<string id="ConfigUrlNotFound">URL introuvable. Erreur potentielle d'URL de configuration dans les paramètres.</string>
|
||||
<string id="Confirm">Bien sûr?</string>
|
||||
<string id="ConfigUrlNotFound">URL introuvable. L'URL de configuration est potentiellement erronée
|
||||
dans les paramètres.</string>
|
||||
<string id="Confirm">Confirmer ?</string>
|
||||
<string id="Empty">Vide</string>
|
||||
<string id="Executed" scope="glance">Confirmé</string>
|
||||
<string id="Executed" scope="glance">Exécuté</string>
|
||||
<string id="GlanceMenu" scope="glance">Menu</string>
|
||||
<string id="Memory" scope="glance">Mémoire</string>
|
||||
<string id="MenuUpdated">Menu mis à jour, redémarrez.</string>
|
||||
<string id="MenuCheckDisabled">Mises à jour du menu désactivées.</string>
|
||||
<string id="NoAPIKey" scope="glance">Aucune clé API dans les paramètres de l'application.</string>
|
||||
<string id="NoApiUrl" scope="glance">Aucune URL API dans les paramètres de l'application.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Aucune URL de configuration dans les paramètres de l'application.</string>
|
||||
<string id="NoApiUrl" scope="glance">Aucune URL de l'API dans les paramètres de l'application.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Aucune URL de configuration dans les paramètres de
|
||||
l'application.</string>
|
||||
<string id="NoInternet">Pas de connexion Internet.</string>
|
||||
<string id="NoJson">Aucun JSON renvoyé par la requête HTTP.</string>
|
||||
<string id="NoPhone" scope="glance">Pas de connexion téléphonique.</string>
|
||||
<string id="NoJson">Aucun JSON n'est retourné par la requête HTTP.</string>
|
||||
<string id="NoPhone" scope="glance">Aucune connexion téléphonique.</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">Pas de connexion téléphonique, pas de menu en cache.</string>
|
||||
<string id="NoResponse">Aucune réponse, vérifiez la connexion Internet</string>
|
||||
<string id="PinInputLocked">Entrée du code PIN verrouillée pour</string>
|
||||
<string id="TimedOut">Délai d'attente dépassé</string>
|
||||
<string id="PinInputLocked">Saisie du code PIN verrouillée pour</string>
|
||||
<string id="PotentialError">Erreur potentielle</string>
|
||||
<string id="Seconds">secondes</string>
|
||||
<string id="TemplateError">Erreur de modèle</string>
|
||||
<string id="TrailingSlashErr">L'URL de l'API ne doit pas avoir de barre oblique finale « / ».</string>
|
||||
<string id="TrailingSlashErr">L'URL de l'API ne doit pas se terminer par une barre oblique '/'.</string>
|
||||
<string id="Unavailable" scope="glance">Indisponible</string>
|
||||
<string id="Unconfigured" scope="glance">Non configuré</string>
|
||||
<string id="UnhandledHttpErr">La requête HTTP a renvoyé le code d'erreur =</string>
|
||||
<string id="WebhookFailed">Échec de l'enregistrement du Webhook</string>
|
||||
<string id="WrongPin">Code PIN incorrect</string>
|
||||
<!-- Pour l'interface graphique des paramètres, les chaînes doivent être dans l'ordre dans lequel elles sont utilisées. -->
|
||||
<string id="WifiLteNotAvailable">Pas de Wi-Fi ou de LTE disponible</string>
|
||||
<string id="WifiLtePrompt">Exécuter sur Wi-Fi / LTE ?</string>
|
||||
<string id="WifiLteExecutionTitle">Envoi à Home Assistant.</string>
|
||||
<string id="WifiLteExecutionDataError">Aucune donnée reçue.</string>
|
||||
<!-- Pour l'interface graphique des paramètres, les chaînes doivent être dans l'ordre où elles
|
||||
sont utilisées. -->
|
||||
<string id="SettingsSelect">Sélectionner...</string>
|
||||
<string id="SettingsApiKey">Clé API pour HomeAssistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">Jeton d'accès longue durée.</string>
|
||||
<string id="SettingsApiKeyPrompt">Jeton d'accès de longue durée.</string>
|
||||
<string id="SettingsApiUrl">URL pour l'API HomeAssistant.</string>
|
||||
<string id="SettingsConfigUrl">URL pour la configuration du menu (JSON).</string>
|
||||
<string id="SettingsCacheConfig">L'application doit-elle mettre en cache la configuration du menu ?</string>
|
||||
<string id="SettingsClearCache">L'application doit-elle vider le cache existant lors de son prochain démarrage ?</string>
|
||||
<string id="SettingsVibration">L'application doit-elle fournir un retour via des vibrations ?</string>
|
||||
<string id="SettingsAppTimeout">Délai d'expiration en secondes. Quittez l'application après cette période d'inactivité pour économiser la batterie de l'appareil.</string>
|
||||
<string id="SettingsPollDelay">Délai d'interrogation supplémentaire (en secondes). Ajoute un délai entre la mise à jour du statut de tous les éléments du menu.</string>
|
||||
<string id="SettingsConfirmTimeout">Après ce délai (en secondes), une boîte de dialogue de confirmation d'une action est automatiquement fermée et l'action est annulée. Réglez sur 0 pour désactiver le délai d'attente.</string>
|
||||
<string id="SettingsPin">Code PIN à 4 chiffres à utiliser pour toutes les actions nécessitant une confirmation (0000-9999).</string>
|
||||
<string id="SettingsPinError">Veuillez configurer un code PIN numérique valide à 4 chiffres entre 0000 et 9999 dans les paramètres de l'application.</string>
|
||||
<string id="SettingsTextAlign">Alignement du menu à gauche (désactivé) ou à droite (activé).</string>
|
||||
<string id="LeftToRight">De gauche à droite</string>
|
||||
<string id="RightToLeft">De droite à gauche</string>
|
||||
<string id="SettingsWidgetStart">(Widget uniquement) Démarrez automatiquement l'application depuis le widget sans attendre un appui.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Activez le service d'arrière-plan pour envoyer le niveau de batterie de l'appareil, l'emplacement et (si pris en charge) les données d'activité à Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">La fréquence de rafraîchissement (en minutes) à laquelle le service d'arrière-plan doit répéter l'envoi de données.</string>
|
||||
<string id="WebhookId">(Lecture seule) L'ID Webhook créé par l'appareil pour les mises à jour du service en arrière-plan. Vous pourriez en avoir besoin pour le débogage.</string>
|
||||
<string id="SettingsCacheConfig">L'application devrait-elle mettre en cache la configuration du
|
||||
menu ?</string>
|
||||
<string id="SettingsClearCache">L'application devrait-elle effacer le cache existant la prochaine
|
||||
fois qu'elle sera démarrée ?</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">Vérifier les mises à jour du menu au démarrage de l'application ? Remarque : la mise en cache du menu doit être activée. Ce paramètre peut entraîner le plantage des appareils plus anciens avec moins de mémoire.</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">Activer l'exécution des commandes sur Wi-Fi / LTE.</string>
|
||||
<string id="SettingsVibration">L'application devrait-elle fournir un retour par vibrations ?</string>
|
||||
<string id="SettingsAppTimeout">Délai d'expiration en secondes. L'application se fermera après
|
||||
cette période d'inactivité pour économiser la batterie de l'appareil.</string>
|
||||
<string id="SettingsPollDelay">Délai d'interrogation supplémentaire (en secondes). Ajoute un délai
|
||||
entre la mise à jour de l'état de tous les éléments de menu.</string>
|
||||
<string id="SettingsConfirmTimeout">Après ce délai (en secondes), une boîte de dialogue de
|
||||
confirmation pour une action est automatiquement fermée et l'action est annulée. Définir à 0
|
||||
pour désactiver le délai d'attente.</string>
|
||||
<string id="SettingsPin">Code PIN à 4 chiffres à utiliser pour toutes les actions qui l'exigent
|
||||
(0000-9999).</string>
|
||||
<string id="SettingsPinError">Veuillez configurer un code PIN numérique à 4 chiffres valide entre
|
||||
0000 et 9999 dans les paramètres de l'application.</string>
|
||||
<string id="SettingsTextAlign">Alignement du menu : Gauche (désactivé) ou Droit (activé).</string>
|
||||
<string id="SettingsLeftToRight">De gauche à droite</string>
|
||||
<string id="SettingsRightToLeft">De droite à gauche</string>
|
||||
<string id="SettingsWidgetStart">(Widget uniquement) Démarre automatiquement l'application depuis
|
||||
le widget sans attendre une pression.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Activer le service d'arrière-plan pour envoyer le niveau
|
||||
de la batterie de l'appareil, l'emplacement et (le cas échéant) les données d'activité à Home
|
||||
Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Le taux de rafraîchissement (en minutes) auquel le
|
||||
service d'arrière-plan doit répéter l'envoi de données.</string>
|
||||
<string id="SettingsUserHttpHeader">En-tête HTTP fourni par l'utilisateur</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">Certaines installations Home Assistant nécessitent
|
||||
la spécification d'un en-tête HTTP personnalisé pour fonctionner.</string>
|
||||
<string id="SettingsUserHttpHeaderName">En-tête HTTP fourni par l'utilisateur : Nom</string>
|
||||
<string id="SettingsUserHttpHeaderValue">En-tête HTTP fourni par l'utilisateur : Valeur</string>
|
||||
<string id="SettingsClearWebhookId">Se reconnecter à Home Assistant (effacer l'ID du Webhook, voir
|
||||
le guide de dépannage).</string>
|
||||
<string id="SettingsWebhookId">(Lecture seule) L'ID Webhook créé par l'appareil pour les mises à
|
||||
jour du service d'arrière-plan. Vous pourriez en avoir besoin pour le débogage.</string>
|
||||
</strings>
|
||||
|
@@ -9,64 +9,96 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Greek
|
||||
Δημιουργήθηκε από τη Μετάφραση Google από τα Αγγλικά
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Greek
|
||||
Δημιουργήθηκε από το Google Translate και το gemini-2.5-flash από Αγγλικά σε Ελληνικά
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">Κλήσεις API πολύ γρήγορες. Παρακαλώ επιβραδύνετε τα αιτήματά σας.</string>
|
||||
<string id="ApiUrlNotFound">Η διεύθυνση URL δεν βρέθηκε. Πιθανό σφάλμα διεύθυνσης URL API στις ρυθμίσεις.</string>
|
||||
<string id="ApiFlood">Οι κλήσεις API είναι πολύ συχνές. Παρακαλούμε επιβραδύνετε τα αιτήματά σας.</string>
|
||||
<string id="ApiUrlNotFound">Η διεύθυνση URL δεν βρέθηκε. Πιθανό σφάλμα URL API στις ρυθμίσεις.</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">Διαθέσιμος</string>
|
||||
<string id="Cached" scope="glance">Αποθηκευμένο στην κρυφή μνήμη</string>
|
||||
<string id="Checking" scope="glance">Ελεγχος...</string>
|
||||
<string id="ConfigUrlNotFound">Η διεύθυνση URL δεν βρέθηκε. Πιθανό σφάλμα διεύθυνσης URL διαμόρφωσης στις ρυθμίσεις.</string>
|
||||
<string id="Confirm">Σίγουρος;</string>
|
||||
<string id="Empty">Αδειάζω</string>
|
||||
<string id="Executed" scope="glance">Επιβεβαιωμένος</string>
|
||||
<string id="Available" scope="glance">Διαθέσιμο</string>
|
||||
<string id="Cached" scope="glance">Αποθηκευμένο</string>
|
||||
<string id="Checking" scope="glance">Έλεγχος...</string>
|
||||
<string id="ConfigUrlNotFound">Η διεύθυνση URL δεν βρέθηκε. Πιθανό σφάλμα URL διαμόρφωσης στις
|
||||
ρυθμίσεις.</string>
|
||||
<string id="Confirm">Σίγουρα;</string>
|
||||
<string id="Empty">Κενό</string>
|
||||
<string id="Executed" scope="glance">Επιβεβαιωμένο</string>
|
||||
<string id="GlanceMenu" scope="glance">Μενού</string>
|
||||
<string id="Memory" scope="glance">Μνήμη</string>
|
||||
<string id="NoAPIKey" scope="glance">Δεν υπάρχει κλειδί API στις ρυθμίσεις της εφαρμογής.</string>
|
||||
<string id="NoApiUrl" scope="glance">Δεν υπάρχει URL API στις ρυθμίσεις της εφαρμογής.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Δεν υπάρχει διεύθυνση URL διαμόρφωσης στις ρυθμίσεις της εφαρμογής.</string>
|
||||
<string id="NoInternet">Δεν υπάρχει σύνδεση στο Διαδίκτυο.</string>
|
||||
<string id="NoJson">Δεν επιστράφηκε JSON από αίτημα HTTP.</string>
|
||||
<string id="NoPhone" scope="glance">Δεν υπάρχει σύνδεση τηλεφώνου.</string>
|
||||
<string id="NoResponse">Καμία απάντηση, ελέγξτε τη σύνδεση στο Διαδίκτυο</string>
|
||||
<string id="PinInputLocked">Η είσοδος PIN κλειδώθηκε για</string>
|
||||
<string id="MenuUpdated">Ενημερώθηκε το μενού, επανεκκίνηση.</string>
|
||||
<string id="MenuCheckDisabled">Οι ενημερώσεις μενού απενεργοποιήθηκαν.</string>
|
||||
<string id="NoAPIKey" scope="glance">Δεν υπάρχει κλειδί API στις ρυθμίσεις εφαρμογής.</string>
|
||||
<string id="NoApiUrl" scope="glance">Δεν υπάρχει διεύθυνση URL API στις ρυθμίσεις εφαρμογής.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Δεν υπάρχει διεύθυνση URL διαμόρφωσης στις ρυθμίσεις
|
||||
εφαρμογής.</string>
|
||||
<string id="NoInternet">Χωρίς σύνδεση στο Διαδίκτυο.</string>
|
||||
<string id="NoJson">Κανένα JSON δεν επεστράφη από το αίτημα HTTP.</string>
|
||||
<string id="NoPhone" scope="glance">Χωρίς σύνδεση τηλεφώνου.</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">Δεν υπάρχει σύνδεση τηλεφώνου, δεν υπάρχει αποθηκευμένο
|
||||
μενού.</string>
|
||||
<string id="NoResponse">Χωρίς απάντηση, ελέγξτε τη σύνδεση στο Διαδίκτυο</string>
|
||||
<string id="TimedOut">Το αίτημα έληξε</string>
|
||||
<string id="PinInputLocked">Είσοδος PIN κλειδωμένη για</string>
|
||||
<string id="PotentialError">Πιθανό σφάλμα</string>
|
||||
<string id="Seconds">δευτερόλεπτα</string>
|
||||
<string id="TemplateError">Σφάλμα προτύπου</string>
|
||||
<string id="TrailingSlashErr">Η διεύθυνση URL του API δεν πρέπει να έχει τελική κάθετο '/'.</string>
|
||||
<string id="Unavailable" scope="glance">Δυσεύρετος</string>
|
||||
<string id="Unavailable" scope="glance">Μη διαθέσιμο</string>
|
||||
<string id="Unconfigured" scope="glance">Μη διαμορφωμένο</string>
|
||||
<string id="UnhandledHttpErr">Το αίτημα HTTP επέστρεψε κωδικό σφάλματος =</string>
|
||||
<string id="WebhookFailed">Η εγγραφή του Webhook απέτυχε</string>
|
||||
<string id="UnhandledHttpErr">Η αίτηση HTTP επέστρεψε κωδικό σφάλματος =</string>
|
||||
<string id="WebhookFailed">Αποτυχία εγγραφής webhook</string>
|
||||
<string id="WrongPin">Λάθος PIN</string>
|
||||
<!-- Για τις ρυθμίσεις GUI, οι συμβολοσειρές πρέπει να είναι με τη σειρά που χρησιμοποιούνται. -->
|
||||
<string id="SettingsSelect">Επιλέγω...</string>
|
||||
<string id="SettingsApiKey">Κλειδί API για το HomeAssistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">Διακριτικό πρόσβασης μακράς διαρκείας.</string>
|
||||
<string id="SettingsApiUrl">URL για το HomeAssistant API.</string>
|
||||
<string id="SettingsConfigUrl">URL για τη διαμόρφωση μενού (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Πρέπει η εφαρμογή να αποθηκεύσει προσωρινά τη διαμόρφωση του μενού;</string>
|
||||
<string id="SettingsClearCache">Πρέπει η εφαρμογή να διαγράψει την υπάρχουσα προσωρινή μνήμη την επόμενη φορά που θα ξεκινήσει;</string>
|
||||
<string id="WifiLteNotAvailable">Χωρίς Wi-Fi ή LTE διαθέσιμο</string>
|
||||
<string id="WifiLtePrompt">Εκτέλεση μέσω Wi-Fi/LTE;</string>
|
||||
<string id="WifiLteExecutionTitle">Αποστολή στο Home Assistant.</string>
|
||||
<string id="WifiLteExecutionDataError">Δεν λαμβάνονται δεδομένα.</string>
|
||||
<!-- Για το GUI ρυθμίσεων, οι συμβολοσειρές πρέπει να είναι με τη σειρά που χρησιμοποιούνται. -->
|
||||
<string id="SettingsSelect">Επιλογή...</string>
|
||||
<string id="SettingsApiKey">Κλειδί API για το Home Assistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">Διακριτικό πρόσβασης μακράς διάρκειας.</string>
|
||||
<string id="SettingsApiUrl">URL για το API του Home Assistant.</string>
|
||||
<string id="SettingsConfigUrl">URL για διαμόρφωση μενού (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Να αποθηκεύει προσωρινά η εφαρμογή τη διαμόρφωση του μενού;</string>
|
||||
<string id="SettingsClearCache">Πρέπει η εφαρμογή να διαγράψει την υπάρχουσα μνήμη cache την
|
||||
επόμενη φορά που θα ξεκινήσει;</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">Έλεγχος για ενημερώσεις μενού κατά την εκκίνηση της εφαρμογής; Σημείωση: Η προσωρινή αποθήκευση μενού πρέπει να είναι ενεργοποιημένη. Αυτή η ρύθμιση μπορεί να προκαλέσει σφάλματα σε παλαιότερες συσκευές με λιγότερη μνήμη.</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">Ενεργοποιήστε την εκτέλεση εντολών μέσω Wi-Fi/LTE.</string>
|
||||
<string id="SettingsVibration">Πρέπει η εφαρμογή να παρέχει ανατροφοδότηση μέσω δονήσεων;</string>
|
||||
<string id="SettingsAppTimeout">Timeout σε δευτερόλεπτα. Κλείστε την εφαρμογή μετά από αυτήν την περίοδο αδράνειας για να εξοικονομήσετε την μπαταρία της συσκευής.</string>
|
||||
<string id="SettingsPollDelay">Πρόσθετη καθυστέρηση δημοσκόπησης (σε δευτερόλεπτα). Προσθέτει μια καθυστέρηση μεταξύ της ενημέρωσης κατάστασης όλων των στοιχείων μενού.</string>
|
||||
<string id="SettingsConfirmTimeout">Μετά από αυτό το χρονικό διάστημα (σε δευτερόλεπτα), ένα παράθυρο διαλόγου επιβεβαίωσης για μια ενέργεια κλείνει αυτόματα και η ενέργεια ακυρώνεται. Ορίστε στο 0 για να απενεργοποιήσετε το χρονικό όριο.</string>
|
||||
<string id="SettingsPin">4-ψήφιο PIN που θα χρησιμοποιηθεί για όλες τις ενέργειες που απαιτούν επιβεβαίωση (0000-9999).</string>
|
||||
<string id="SettingsPinError">Διαμορφώστε ένα έγκυρο τετραψήφιο αριθμητικό PIN μεταξύ 0000 και 9999 στις ρυθμίσεις της εφαρμογής.</string>
|
||||
<string id="SettingsTextAlign">Αριστερά (απενεργοποίηση) ή Δεξιά (ενεργό) Ευθυγράμμιση μενού.</string>
|
||||
<string id="LeftToRight">Από αριστερά προς τα δεξιά</string>
|
||||
<string id="RightToLeft">Δεξιά προς Αριστερά</string>
|
||||
<string id="SettingsWidgetStart">(Μόνο widget) Αυτόματη εκκίνηση της εφαρμογής από το widget χωρίς να περιμένετε ένα πάτημα.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Ενεργοποιήστε την υπηρεσία παρασκηνίου για αποστολή του επιπέδου μπαταρίας της συσκευής, της τοποθεσίας και (εάν υποστηρίζονται) δεδομένα δραστηριότητας στον Βοηθό σπιτιού.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Ο ρυθμός ανανέωσης (σε λεπτά) με τον οποίο η υπηρεσία παρασκηνίου θα πρέπει να επαναλαμβάνει την αποστολή δεδομένων.</string>
|
||||
<string id="WebhookId">(Μόνο για ανάγνωση) Το αναγνωριστικό Webhook που δημιουργήθηκε από τη συσκευή για ενημερώσεις υπηρεσίας παρασκηνίου. Μπορεί να το χρειάζεστε για τον εντοπισμό σφαλμάτων.</string>
|
||||
<string id="SettingsAppTimeout">Χρονικό όριο σε δευτερόλεπτα. Η εφαρμογή θα κλείσει μετά από αυτήν
|
||||
την περίοδο αδράνειας για εξοικονόμηση μπαταρίας της συσκευής.</string>
|
||||
<string id="SettingsPollDelay">Πρόσθετη καθυστέρηση ανανέωσης (σε δευτερόλεπτα). Προσθέτει μια
|
||||
καθυστέρηση μεταξύ της ενημέρωσης κατάστασης όλων των στοιχείων μενού.</string>
|
||||
<string id="SettingsConfirmTimeout">Μετά από αυτό το χρονικό διάστημα (σε δευτερόλεπτα), ένα
|
||||
παράθυρο διαλόγου επιβεβαίωσης για μια ενέργεια κλείνει αυτόματα και η ενέργεια ακυρώνεται.
|
||||
Ρυθμίστε στο 0 για να απενεργοποιήσετε το χρονικό όριο.</string>
|
||||
<string id="SettingsPin">4-ψήφιο PIN που χρησιμοποιείται για όλες τις ενέργειες που το απαιτούν
|
||||
(0000-9999).</string>
|
||||
<string id="SettingsPinError">Παρακαλούμε διαμορφώστε ένα έγκυρο 4-ψήφιο αριθμητικό PIN μεταξύ
|
||||
0000 και 9999 στις ρυθμίσεις της εφαρμογής.</string>
|
||||
<string id="SettingsTextAlign">Ευθυγράμμιση μενού: Αριστερά (απενεργοποιημένο) ή Δεξιά (ενεργό).</string>
|
||||
<string id="SettingsLeftToRight">Από αριστερά προς τα δεξιά</string>
|
||||
<string id="SettingsRightToLeft">Δεξιά προς τα αριστερά</string>
|
||||
<string id="SettingsWidgetStart">(Μόνο widget) Αυτόματη εκκίνηση της εφαρμογής από το widget χωρίς
|
||||
να περιμένετε άγγιγμα.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Ενεργοποιήστε την υπηρεσία παρασκηνίου για την αποστολή
|
||||
της στάθμης μπαταρίας της συσκευής, της τοποθεσίας και (αν υποστηρίζονται) δεδομένων
|
||||
δραστηριότητας στο Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Ο ρυθμός ανανέωσης (σε λεπτά) με τον οποίο η υπηρεσία
|
||||
παρασκηνίου θα πρέπει να επαναλαμβάνει την αποστολή δεδομένων.</string>
|
||||
<string id="SettingsUserHttpHeader">Κεφαλίδα HTTP που παρέχεται από τον χρήστη</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">Ορισμένες εγκαταστάσεις Home Assistant απαιτούν την
|
||||
προδιαγραφή μιας προσαρμοσμένης κεφαλίδας HTTP για να λειτουργήσουν.</string>
|
||||
<string id="SettingsUserHttpHeaderName">Κεφαλίδα HTTP που παρέχεται από τον χρήστη: Όνομα</string>
|
||||
<string id="SettingsUserHttpHeaderValue">Κεφαλίδα HTTP που παρέχεται από τον χρήστη: Τιμή</string>
|
||||
<string id="SettingsClearWebhookId">Επανασύνδεση στο Home Assistant (εκκαθάριση Webhook ID, δείτε
|
||||
τον οδηγό αντιμετώπισης προβλημάτων).</string>
|
||||
<string id="SettingsWebhookId">(Μόνο για ανάγνωση) Το Webhook ID που δημιουργήθηκε από τη συσκευή
|
||||
για ενημερώσεις υπηρεσιών παρασκηνίου. Μπορεί να το χρειαστείτε για εντοπισμό σφαλμάτων.</string>
|
||||
</strings>
|
||||
|
@@ -9,64 +9,88 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Hebrew
|
||||
נוצר על ידי Google Translate מאנגלית
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Hebrew
|
||||
נוצר על ידי Google Translate ו-gemini-2.5-flash מאנגלית לעברית
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">קריאות API מהירות מדי. נא להאט את הבקשות שלך.</string>
|
||||
<string id="ApiUrlNotFound">כתובת האתר לא נמצאה. שגיאה פוטנציאלית של כתובת ה-API בהגדרות.</string>
|
||||
<string id="ApiFlood">קריאות API מהירות מדי. אנא האט את בקשותיך.</string>
|
||||
<string id="ApiUrlNotFound">כתובת URL לא נמצאה. שגיאת כתובת URL פוטנציאלית בהגדרות.</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">זָמִין</string>
|
||||
<string id="Cached" scope="glance">שמור במטמון</string>
|
||||
<string id="Available" scope="glance">זמין</string>
|
||||
<string id="Cached" scope="glance">במטמון</string>
|
||||
<string id="Checking" scope="glance">בודק...</string>
|
||||
<string id="ConfigUrlNotFound">כתובת האתר לא נמצאה. שגיאת כתובת אתר פוטנציאלית של תצורה בהגדרות.</string>
|
||||
<string id="Confirm">בַּטוּחַ?</string>
|
||||
<string id="Empty">רֵיק</string>
|
||||
<string id="Executed" scope="glance">מְאוּשָׁר</string>
|
||||
<string id="GlanceMenu" scope="glance">תַפרִיט</string>
|
||||
<string id="Memory" scope="glance">זֵכֶר</string>
|
||||
<string id="NoAPIKey" scope="glance">אין מפתח API בהגדרות האפליקציה.</string>
|
||||
<string id="NoApiUrl" scope="glance">אין כתובת API בהגדרות האפליקציה.</string>
|
||||
<string id="NoConfigUrl" scope="glance">אין כתובת אתר תצורה בהגדרות האפליקציה.</string>
|
||||
<string id="ConfigUrlNotFound">כתובת URL לא נמצאה. שגיאת כתובת URL פוטנציאלית של התצורה בהגדרות.</string>
|
||||
<string id="Confirm">בטוח?</string>
|
||||
<string id="Empty">ריק</string>
|
||||
<string id="Executed" scope="glance">בוצע</string>
|
||||
<string id="GlanceMenu" scope="glance">תפריט</string>
|
||||
<string id="Memory" scope="glance">זיכרון</string>
|
||||
<string id="MenuUpdated">התפריט עודכן, הפעל מחדש.</string>
|
||||
<string id="MenuCheckDisabled">עדכוני תפריט מושבתים.</string>
|
||||
<string id="NoAPIKey" scope="glance">אין מפתח API בהגדרות היישום.</string>
|
||||
<string id="NoApiUrl" scope="glance">אין כתובת URL של ה-API בהגדרות היישום.</string>
|
||||
<string id="NoConfigUrl" scope="glance">אין כתובת URL לתצורה בהגדרות היישום.</string>
|
||||
<string id="NoInternet">אין חיבור לאינטרנט.</string>
|
||||
<string id="NoJson">לא הוחזר JSON מבקשת HTTP.</string>
|
||||
<string id="NoJson">לא התקבל JSON מבקשת HTTP.</string>
|
||||
<string id="NoPhone" scope="glance">אין חיבור לטלפון.</string>
|
||||
<string id="NoResponse">אין תגובה, בדוק חיבור לאינטרנט</string>
|
||||
<string id="PinInputLocked">קלט PIN ננעל עבור</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">אין חיבור לטלפון, אין תפריט במטמון.</string>
|
||||
<string id="NoResponse">אין תגובה, בדוק את חיבור האינטרנט.</string>
|
||||
<string id="TimedOut">פסק זמן לבקשה</string>
|
||||
<string id="PinInputLocked">קלט PIN נעול עבור</string>
|
||||
<string id="PotentialError">שגיאה פוטנציאלית</string>
|
||||
<string id="Seconds">שניות</string>
|
||||
<string id="TemplateError">שגיאת תבנית</string>
|
||||
<string id="TrailingSlashErr">כתובת ה-API לא חייבת לכלול לוכסן עוקב '/'.</string>
|
||||
<string id="TrailingSlashErr">כתובת ה-URL של ה-API אסור שתכלול קו נטוי בסוף '/'.</string>
|
||||
<string id="Unavailable" scope="glance">לא זמין</string>
|
||||
<string id="Unconfigured" scope="glance">לא מוגדר</string>
|
||||
<string id="UnhandledHttpErr">בקשת HTTP החזירה קוד שגיאה =</string>
|
||||
<string id="WebhookFailed">רישום Webhook נכשל</string>
|
||||
<string id="UnhandledHttpErr">בקשת HTTP החזירה קוד שגיאה = </string>
|
||||
<string id="WebhookFailed">נכשל רישום Webhook</string>
|
||||
<string id="WrongPin">PIN שגוי</string>
|
||||
<!-- עבור ה-GUI של ההגדרות, המחרוזות צריכות להיות בסדר שבו נעשה שימוש. -->
|
||||
<string id="SettingsSelect">לִבחוֹר...</string>
|
||||
<string id="WifiLteNotAvailable">אין Wi-Fi או LTE זמינים</string>
|
||||
<string id="WifiLtePrompt">לבצע דרך Wi-Fi/LTE?</string>
|
||||
<string id="WifiLteExecutionTitle">שולח אל Home Assistant.</string>
|
||||
<string id="WifiLteExecutionDataError">לא התקבלו נתונים.</string>
|
||||
<!-- עבור ה- GUI של הגדרות, המיתרים צריכים להיות בסדר שהם משתמשים בהם. -->
|
||||
<string id="SettingsSelect">בחר...</string>
|
||||
<string id="SettingsApiKey">מפתח API עבור HomeAssistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">אסימון גישה ארוך-חיים.</string>
|
||||
<string id="SettingsApiUrl">כתובת URL עבור HomeAssistant API.</string>
|
||||
<string id="SettingsApiKeyPrompt">אסימון גישה ארוך טווח.</string>
|
||||
<string id="SettingsApiUrl">כתובת URL עבור ה-API של HomeAssistant.</string>
|
||||
<string id="SettingsConfigUrl">כתובת URL לתצורת תפריט (JSON).</string>
|
||||
<string id="SettingsCacheConfig">האם האפליקציה צריכה לשמור את תצורת התפריט במטמון?</string>
|
||||
<string id="SettingsClearCache">האם היישום צריך לנקות את המטמון הקיים בפעם הבאה שהוא יופעל?</string>
|
||||
<string id="SettingsVibration">האם האפליקציה צריכה לספק משוב באמצעות רעידות?</string>
|
||||
<string id="SettingsAppTimeout">פסק זמן בשניות. צא מהאפליקציה לאחר תקופה זו של חוסר פעילות כדי לחסוך בסוללת המכשיר.</string>
|
||||
<string id="SettingsPollDelay">עיכוב נוסף בסקר (בשניות). מוסיף עיכוב בין עדכון המצב של כל פריטי התפריט.</string>
|
||||
<string id="SettingsConfirmTimeout">לאחר זמן זה (בשניות), תיבת דו-שיח לאישור פעולה נסגרת אוטומטית והפעולה מבוטלת. הגדר ל-0 כדי לבטל את הזמן הקצוב.</string>
|
||||
<string id="SettingsPin">PIN בן 4 ספרות שישמש עבור כל הפעולות הדורשות אישור (0000-9999).</string>
|
||||
<string id="SettingsPinError">נא להגדיר PIN מספרי תקף בן 4 ספרות בין 0000 ל-9999 בהגדרות האפליקציה.</string>
|
||||
<string id="SettingsTextAlign">יישור תפריט שמאלה (כבוי) או ימינה (מופעל).</string>
|
||||
<string id="LeftToRight">משמאל לימין</string>
|
||||
<string id="RightToLeft">מימין לשמאל</string>
|
||||
<string id="SettingsWidgetStart">(יישומון בלבד) הפעל אוטומטית את האפליקציה מהווידג'ט מבלי לחכות להקשה.</string>
|
||||
<string id="SettingsEnableBatteryLevel">אפשר את שירות הרקע כדי לשלוח את נתוני רמת הסוללה של המכשיר, המיקום (אם נתמכים) ל-Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">קצב הרענון (בדקות) שבו שירות הרקע צריך לחזור על שליחת נתונים.</string>
|
||||
<string id="WebhookId">(לקריאה בלבד) מזהה ה-Webhook שנוצר על ידי המכשיר עבור עדכוני שירות ברקע. ייתכן שתדרוש זאת לצורך איתור באגים.</string>
|
||||
<string id="SettingsCacheConfig">האם היישום צריך לשמור את תצורת התפריט במטמון?</string>
|
||||
<string id="SettingsClearCache">האם היישום צריך לנקות את המטמון הקיים בהפעלה הבאה?</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">בדוק עדכוני תפריט בהפעלת היישום? הערה: שמירת תפריט במטמון חייבת להיות מופעלת. הגדרה זו עלולה לגרום למכשירים ישנים יותר עם פחות זיכרון לקרוס.</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">אפשר לבצע פקודות דרך Wi-Fi/LTE.</string>
|
||||
<string id="SettingsVibration">האם היישום צריך לספק משוב באמצעות רעידות?</string>
|
||||
<string id="SettingsAppTimeout">פסק זמן בשניות. היישום ייצא לאחר תקופת חוסר פעילות זו כדי לחסוך
|
||||
בסוללת המכשיר.</string>
|
||||
<string id="SettingsPollDelay">עיכוב סקר נוסף (בשניות). מוסיף עיכוב בין עדכוני הסטטוס של כל פריטי
|
||||
התפריט.</string>
|
||||
<string id="SettingsConfirmTimeout">לאחר זמן זה (בשניות), תיבת דו-שיח לאישור פעולה נסגרת אוטומטית
|
||||
והפעולה מבוטלת. הגדר ל-0 כדי להשבית את פסק הזמן.</string>
|
||||
<string id="SettingsPin">PIN בן 4 ספרות שישמש לכל הפעולות הדורשות אותו (0000-9999).</string>
|
||||
<string id="SettingsPinError">אנא הגדר PIN מספרי תקין בן 4 ספרות בין 0000 ל-9999 בהגדרות היישום.</string>
|
||||
<string id="SettingsTextAlign">יישור תפריט: שמאל (כבוי) או ימין (מופעל).</string>
|
||||
<string id="SettingsLeftToRight">משמאל לימין</string>
|
||||
<string id="SettingsRightToLeft">מימין לשמאל</string>
|
||||
<string id="SettingsWidgetStart">(ווידג'ט בלבד) הפעל אוטומטית את היישום מהווידג'ט מבלי לחכות
|
||||
להקשה.</string>
|
||||
<string id="SettingsEnableBatteryLevel">אפשר לשירות הרקע לשלוח את רמת סוללת המכשיר, מיקום ו(אם
|
||||
נתמך) נתוני פעילות אל Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">קצב הרענון (בדקות) שבו שירות הרקע ישלח נתונים באופן
|
||||
חוזר.</string>
|
||||
<string id="SettingsUserHttpHeader">כותרת HTTP שסופקה על ידי המשתמש</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">חלק מהתקנות Home Assistant דורשות הגדרה של כותרת
|
||||
HTTP מותאמת אישית כדי לתפקד.</string>
|
||||
<string id="SettingsUserHttpHeaderName">כותרת HTTP שסופקה על ידי המשתמש: שם</string>
|
||||
<string id="SettingsUserHttpHeaderValue">כותרת HTTP שסופקה על ידי המשתמש: ערך</string>
|
||||
<string id="SettingsClearWebhookId">התחבר מחדש אל Home Assistant (נקה מזהה Webhook, ראה מדריך
|
||||
לפתרון בעיות).</string>
|
||||
<string id="SettingsWebhookId">(קריאה בלבד) מזהה Webhook שנוצר על ידי המכשיר לעדכוני שירות רקע.
|
||||
ייתכן שתזדקק לכך לצורך ניפוי באגים.</string>
|
||||
</strings>
|
||||
|
@@ -9,64 +9,93 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Croatian
|
||||
Generirano Google prevoditeljem s engleskog
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Croatian
|
||||
Generirano putem Google Prevoditelja i gemini-2.5-flash s engleskog na hrvatski
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">API pozivi su prebrzi. Molimo usporite svoje zahtjeve.</string>
|
||||
<string id="ApiFlood">API pozivi prebrzi. Usporite svoje zahtjeve.</string>
|
||||
<string id="ApiUrlNotFound">URL nije pronađen. Potencijalna pogreška API URL-a u postavkama.</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">na raspolaganju</string>
|
||||
<string id="Cached" scope="glance">Spremljeno u predmemoriju</string>
|
||||
<string id="Available" scope="glance">Dostupan</string>
|
||||
<string id="Cached" scope="glance">Predmemorirano</string>
|
||||
<string id="Checking" scope="glance">Provjera...</string>
|
||||
<string id="ConfigUrlNotFound">URL nije pronađen. Potencijalna pogreška URL-a konfiguracije u postavkama.</string>
|
||||
<string id="Confirm">Naravno?</string>
|
||||
<string id="ConfigUrlNotFound">URL nije pronađen. Potencijalna pogreška URL-a konfiguracije u
|
||||
postavkama.</string>
|
||||
<string id="Confirm">Potvrdi?</string>
|
||||
<string id="Empty">Prazan</string>
|
||||
<string id="Executed" scope="glance">Potvrđeno</string>
|
||||
<string id="GlanceMenu" scope="glance">Jelovnik</string>
|
||||
<string id="Executed" scope="glance">Potvrđen</string>
|
||||
<string id="GlanceMenu" scope="glance">Izbornik</string>
|
||||
<string id="Memory" scope="glance">Memorija</string>
|
||||
<string id="MenuUpdated">Izbornik ažuriran, ponovno pokrenite.</string>
|
||||
<string id="MenuCheckDisabled">Ažuriranja izbornika onemogućena.</string>
|
||||
<string id="NoAPIKey" scope="glance">Nema API ključa u postavkama aplikacije.</string>
|
||||
<string id="NoApiUrl" scope="glance">Nema API URL-a u postavkama aplikacije.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Nema konfiguracijskog URL-a u postavkama aplikacije.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Nema URL-a konfiguracije u postavkama aplikacije.</string>
|
||||
<string id="NoInternet">Nema internetske veze.</string>
|
||||
<string id="NoJson">HTTP zahtjev nije vratio JSON.</string>
|
||||
<string id="NoJson">Nije primljen JSON odgovor na HTTP zahtjev.</string>
|
||||
<string id="NoPhone" scope="glance">Nema telefonske veze.</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">Nema telefonske veze, nema predmemoriranog izbornika.</string>
|
||||
<string id="NoResponse">Nema odgovora, provjerite internetsku vezu</string>
|
||||
<string id="PinInputLocked">Unos PIN-a zaključan za</string>
|
||||
<string id="TimedOut">Zahtjev je istekao</string>
|
||||
<string id="PinInputLocked">Unos PIN-a zaključan na</string>
|
||||
<string id="PotentialError">Potencijalna pogreška</string>
|
||||
<string id="Seconds">sekundi</string>
|
||||
<string id="TemplateError">Pogreška predloška</string>
|
||||
<string id="TrailingSlashErr">API URL ne smije imati kosu crtu '/' na kraju.</string>
|
||||
<string id="TrailingSlashErr">API URL ne smije sadržavati kosu crtu '/' na kraju.</string>
|
||||
<string id="Unavailable" scope="glance">Nedostupan</string>
|
||||
<string id="Unconfigured" scope="glance">Nekonfigurirano</string>
|
||||
<string id="UnhandledHttpErr">HTTP zahtjev vratio je kod greške =</string>
|
||||
<string id="Unconfigured" scope="glance">Nekonfiguriran</string>
|
||||
<string id="UnhandledHttpErr">HTTP zahtjev vratio je kod pogreške = </string>
|
||||
<string id="WebhookFailed">Registracija Webhooka nije uspjela</string>
|
||||
<string id="WrongPin">Pogrešan PIN</string>
|
||||
<!-- Za GUI postavki, nizovi trebaju biti redoslijedom kojim se koriste. -->
|
||||
<string id="WifiLteNotAvailable">Wi-Fi ili LTE nije dostupno</string>
|
||||
<string id="WifiLtePrompt">Izvršiti putem Wi-Fi/LTE?</string>
|
||||
<string id="WifiLteExecutionTitle">Slanje u Home Assistant.</string>
|
||||
<string id="WifiLteExecutionDataError">Nema primljenih podataka.</string>
|
||||
<!-- Za GUI postavki, nizovi znakova trebaju biti poredani redoslijedom kojim se koriste. -->
|
||||
<string id="SettingsSelect">Odaberite...</string>
|
||||
<string id="SettingsApiKey">API ključ za HomeAssistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">Dugotrajni pristupni token.</string>
|
||||
<string id="SettingsApiUrl">URL za HomeAssistant API.</string>
|
||||
<string id="SettingsConfigUrl">URL za konfiguraciju izbornika (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Treba li aplikacija spremiti konfiguraciju izbornika u predmemoriju?</string>
|
||||
<string id="SettingsClearCache">Treba li aplikacija prilikom sljedećeg pokretanja očistiti postojeću predmemoriju?</string>
|
||||
<string id="SettingsVibration">Treba li aplikacija dati povratnu informaciju putem vibracija?</string>
|
||||
<string id="SettingsAppTimeout">Istek u sekundama. Izađite iz aplikacije nakon ovog razdoblja neaktivnosti kako biste uštedjeli bateriju uređaja.</string>
|
||||
<string id="SettingsPollDelay">Dodatna odgoda ankete (u sekundama). Dodaje odgodu između ažuriranja statusa svih stavki izbornika.</string>
|
||||
<string id="SettingsConfirmTimeout">Nakon tog vremena (u sekundama), dijaloški okvir za potvrdu radnje automatski se zatvara i radnja se poništava. Postavite na 0 da onemogućite vremensko ograničenje.</string>
|
||||
<string id="SettingsPin">4-znamenkasti PIN koji se koristi za sve radnje koje zahtijevaju potvrdu (0000-9999).</string>
|
||||
<string id="SettingsPinError">Molimo konfigurirajte važeći 4-znamenkasti numerički PIN između 0000 i 9999 u postavkama aplikacije.</string>
|
||||
<string id="SettingsTextAlign">Lijevo (isključeno) ili desno (uključeno) poravnanje izbornika.</string>
|
||||
<string id="LeftToRight">Slijeva na desno</string>
|
||||
<string id="RightToLeft">Zdesna na lijevo</string>
|
||||
<string id="SettingsWidgetStart">(Samo widget) Automatski pokrenite aplikaciju iz widgeta bez čekanja na dodir.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Omogućite pozadinsku uslugu za slanje podataka o razini baterije uređaja, lokaciji i (ako je podržano) aktivnostima kućnom pomoćniku.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Brzina osvježavanja (u minutama) kojom bi pozadinska usluga trebala ponoviti slanje podataka.</string>
|
||||
<string id="WebhookId">(Samo za čitanje) Webhook ID koji je izradio uređaj za pozadinska ažuriranja usluge. Ovo vam može trebati za otklanjanje pogrešaka.</string>
|
||||
<string id="SettingsCacheConfig">Treba li aplikacija predmemorirati konfiguraciju izbornika?</string>
|
||||
<string id="SettingsClearCache">Treba li aplikacija očistiti postojeću predmemoriju sljedeći put
|
||||
kad se pokrene?</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">Provjeriti ažuriranja izbornika pri pokretanju aplikacije? Napomena: Predmemoriranje izbornika mora biti omogućeno. Ova postavka može uzrokovati rušenje starijih uređaja s manje memorije.</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">Omogući izvršavanje naredbi putem Wi-Fi/LTE.</string>
|
||||
<string id="SettingsVibration">Treba li aplikacija davati povratne informacije putem vibracija?</string>
|
||||
<string id="SettingsAppTimeout">Istek vremena u sekundama. Izađite iz aplikacije nakon ovog
|
||||
razdoblja neaktivnosti radi uštede baterije uređaja.</string>
|
||||
<string id="SettingsPollDelay">Dodatno kašnjenje provjere (u sekundama). Dodaje kašnjenje između
|
||||
ažuriranja statusa svih stavki izbornika.</string>
|
||||
<string id="SettingsConfirmTimeout">Nakon tog vremena (u sekundama), dijaloški okvir za potvrdu
|
||||
radnje automatski se zatvara i radnja se otkazuje. Postavite na 0 za onemogućavanje isteka
|
||||
vremena.</string>
|
||||
<string id="SettingsPin">Četveroznamenkasti PIN koji se koristi za sve radnje koje ga zahtijevaju
|
||||
(0000-9999).</string>
|
||||
<string id="SettingsPinError">Molimo konfigurirajte valjani četveroznamenkasti numerički PIN
|
||||
između 0000 i 9999 u postavkama aplikacije.</string>
|
||||
<string id="SettingsTextAlign">Poravnanje izbornika: lijevo (isključeno) ili desno (uključeno).</string>
|
||||
<string id="SettingsLeftToRight">Slijeva na desno</string>
|
||||
<string id="SettingsRightToLeft">Zdesna nalijevo</string>
|
||||
<string id="SettingsWidgetStart">(Samo widget) Automatski pokrenite aplikaciju iz widgeta bez
|
||||
čekanja na dodir.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Omogućite pozadinsku uslugu za slanje razine baterije
|
||||
uređaja, lokacije i (ako je podržano) podataka o aktivnosti u Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Brzina osvježavanja (u minutama) u kojoj bi
|
||||
pozadinska usluga trebala ponoviti slanje podataka.</string>
|
||||
<string id="SettingsUserHttpHeader">Korisnički HTTP zaglavlje</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">Neke instalacije Home Assistanta zahtijevaju
|
||||
specifikaciju prilagođenog HTTP zaglavlja za funkcioniranje.</string>
|
||||
<string id="SettingsUserHttpHeaderName">Korisnički HTTP zaglavlje: Naziv</string>
|
||||
<string id="SettingsUserHttpHeaderValue">Korisnički HTTP zaglavlje: Vrijednost</string>
|
||||
<string id="SettingsClearWebhookId">Ponovno se povežite s Home Assistantom (očisti ID Webhooka,
|
||||
pogledajte vodič za rješavanje problema).</string>
|
||||
<string id="SettingsWebhookId">(Samo za čitanje) ID Webhooka koji je uređaj stvorio za ažuriranja
|
||||
pozadinske usluge. Možda će vam ovo trebati za otklanjanje pogrešaka.</string>
|
||||
</strings>
|
||||
|
@@ -9,64 +9,95 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Hungarian
|
||||
A Google Fordító generálta angolból
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Hungarian
|
||||
Fordította: Google Translate és gemini-2.5-flash angolról magyarra
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">Az API-hívások túl gyorsak. Kérjük, lassítsa a kérések teljesítését.</string>
|
||||
<string id="ApiUrlNotFound">Az URL nem található. Lehetséges API URL hiba a beállításokban.</string>
|
||||
<string id="ApiFlood">Az API hívások túl gyorsak. Kérjük, lassítsa a kéréseit.</string>
|
||||
<string id="ApiUrlNotFound">URL nem található. Lehetséges API URL hiba a beállításokban.</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">Elérhető</string>
|
||||
<string id="Cached" scope="glance">Gyorsítótárban</string>
|
||||
<string id="Checking" scope="glance">Ellenőrzés...</string>
|
||||
<string id="ConfigUrlNotFound">Az URL nem található. Lehetséges konfigurációs URL hiba a beállításokban.</string>
|
||||
<string id="Confirm">Persze?</string>
|
||||
<string id="Cached" scope="glance">Gyorsítótárazott</string>
|
||||
<string id="Checking" scope="glance">Ellenőrzés ...</string>
|
||||
<string id="ConfigUrlNotFound">URL nem található. Lehetséges konfigurációs URL hiba a
|
||||
beállításokban.</string>
|
||||
<string id="Confirm">Biztos?</string>
|
||||
<string id="Empty">Üres</string>
|
||||
<string id="Executed" scope="glance">Megerősített</string>
|
||||
<string id="GlanceMenu" scope="glance">Menü</string>
|
||||
<string id="Memory" scope="glance">Memória</string>
|
||||
<string id="MenuUpdated">Menü frissítve, indítsa újra.</string>
|
||||
<string id="MenuCheckDisabled">Menüfrissítések letiltva.</string>
|
||||
<string id="NoAPIKey" scope="glance">Nincs API kulcs az alkalmazás beállításaiban.</string>
|
||||
<string id="NoApiUrl" scope="glance">Nincs API URL az alkalmazás beállításai között.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Nincs konfigurációs URL az alkalmazás beállításai között.</string>
|
||||
<string id="NoInternet">Nincs internet kapcsolat.</string>
|
||||
<string id="NoJson">A HTTP-kérésből nem érkezett vissza JSON.</string>
|
||||
<string id="NoApiUrl" scope="glance">Nincs API URL az alkalmazás beállításaiban.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Nincs konfigurációs URL az alkalmazás beállításaiban.</string>
|
||||
<string id="NoInternet">Nincs internetkapcsolat.</string>
|
||||
<string id="NoJson">A HTTP kérés nem adott vissza JSON-t.</string>
|
||||
<string id="NoPhone" scope="glance">Nincs telefonkapcsolat.</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">Nincs telefonkapcsolat, nincs gyorsítótárazott menü.</string>
|
||||
<string id="NoResponse">Nincs válasz, ellenőrizze az internetkapcsolatot</string>
|
||||
<string id="PinInputLocked">A PIN-kód bevitele zárolva van</string>
|
||||
<string id="TimedOut">A kérés időtúllépés</string>
|
||||
<string id="PinInputLocked">PIN bevitel zárolva</string>
|
||||
<string id="PotentialError">Lehetséges hiba</string>
|
||||
<string id="Seconds">másodpercig</string>
|
||||
<string id="TemplateError">Sablon hiba</string>
|
||||
<string id="TrailingSlashErr">Az API URL-címében nem szerepelhet perjel '/'.</string>
|
||||
<string id="Unavailable" scope="glance">Nem elérhető</string>
|
||||
<string id="Unconfigured" scope="glance">Nincs konfigurálva</string>
|
||||
<string id="UnhandledHttpErr">A HTTP-kérés = hibakódot adott vissza</string>
|
||||
<string id="WebhookFailed">Nem sikerült regisztrálni a Webhook-ot</string>
|
||||
<string id="Seconds">másodperc</string>
|
||||
<string id="TemplateError">Sablonhiba</string>
|
||||
<string id="TrailingSlashErr">Az API URL nem tartalmazhat záró perjelet '/'.</string>
|
||||
<string id="Unavailable" scope="glance">Nem érhető el</string>
|
||||
<string id="Unconfigured" scope="glance">Konfigurálatlan</string>
|
||||
<string id="UnhandledHttpErr">HTTP kérés hibakóddal tért vissza: </string>
|
||||
<string id="WebhookFailed">Nem sikerült regisztrálni a webhookot</string>
|
||||
<string id="WrongPin">Hibás PIN</string>
|
||||
<!-- A beállítások GUI-ban a karakterláncoknak a használatuk sorrendjében kell lenniük. -->
|
||||
<string id="SettingsSelect">Válassz...</string>
|
||||
<string id="SettingsApiKey">API-kulcs a HomeAssistant számára.</string>
|
||||
<string id="SettingsApiKeyPrompt">Hosszú életű hozzáférési token.</string>
|
||||
<string id="SettingsApiUrl">A HomeAssistant API URL-je.</string>
|
||||
<string id="WifiLteNotAvailable">Nincs elérhető Wi-Fi vagy LTE</string>
|
||||
<string id="WifiLtePrompt">Végrehajtás a Wi-Fi/LTE-n keresztül?</string>
|
||||
<string id="WifiLteExecutionTitle">Küldés a Home Assistantnek.</string>
|
||||
<string id="WifiLteExecutionDataError">Nem érkezett adat.</string>
|
||||
<!-- A beállítások GUI -jához a karakterláncoknak a használt sorrendben kell lenniük. -->
|
||||
<string id="SettingsSelect">Válasszon...</string>
|
||||
<string id="SettingsApiKey">API kulcs a Home Assistanthez.</string>
|
||||
<string id="SettingsApiKeyPrompt">Hosszú élettartamú hozzáférési token.</string>
|
||||
<string id="SettingsApiUrl">URL a Home Assistant API-hoz.</string>
|
||||
<string id="SettingsConfigUrl">URL a menükonfigurációhoz (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Az alkalmazásnak gyorsítótárba kell helyeznie a menü konfigurációját?</string>
|
||||
<string id="SettingsClearCache">Törölje az alkalmazásnak a meglévő gyorsítótárat a következő indításakor?</string>
|
||||
<string id="SettingsVibration">Az alkalmazásnak rezgésekkel kell visszajelzést adnia?</string>
|
||||
<string id="SettingsAppTimeout">Időtúllépés másodpercben. Az eszköz akkumulátorának kímélése érdekében lépjen ki az alkalmazásból ezen inaktivitási időszak után.</string>
|
||||
<string id="SettingsPollDelay">További lekérdezési késleltetés (másodpercben). Késleltetést ad az összes menüelem állapotfrissítése között.</string>
|
||||
<string id="SettingsConfirmTimeout">Ezen idő elteltével (másodpercben) egy művelet megerősítő párbeszédpanele automatikusan bezárul, és a művelet megszakad. Állítsa 0-ra az időtúllépés letiltásához.</string>
|
||||
<string id="SettingsPin">4 számjegyű PIN-kód, amelyet minden megerősítést igénylő művelethez kell használni (0000-9999).</string>
|
||||
<string id="SettingsPinError">Adjon meg egy érvényes, 4 számjegyű PIN-kódot 0000 és 9999 között az alkalmazás beállításaiban.</string>
|
||||
<string id="SettingsTextAlign">Balra (ki) vagy Jobbra (be) Menüigazítás.</string>
|
||||
<string id="LeftToRight">Balról jobbra</string>
|
||||
<string id="RightToLeft">Jobbról balra</string>
|
||||
<string id="SettingsWidgetStart">(Csak Widget) Az alkalmazás automatikus indítása a widgetről anélkül, hogy egy érintésre várna.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Engedélyezze a háttérszolgáltatást, hogy elküldje az eszköz akkumulátorának töltöttségi szintjét, helyét és (ha támogatott) tevékenységi adatait a Home Assistantnek.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Az a frissítési gyakoriság (percben), amellyel a háttérszolgáltatásnak meg kell ismételnie az adatok küldését.</string>
|
||||
<string id="WebhookId">(Csak olvasható) Az eszköz által a háttérszolgáltatás frissítéséhez létrehozott Webhook-azonosító. Erre szükség lehet a hibakereséshez.</string>
|
||||
<string id="SettingsCacheConfig">Gyorsítótárazza az alkalmazás a menükonfigurációt?</string>
|
||||
<string id="SettingsClearCache">Törölje az alkalmazás a meglévő gyorsítótárat a következő
|
||||
indításkor?</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">Menüfrissítések ellenőrzése az alkalmazás indításakor? Megjegyzés: A menü gyorsítótárazásának engedélyezve kell lennie. Ez a beállítás régebbi, kevesebb memóriával rendelkező eszközök összeomlását okozhatja.</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">Parancsok végrehajtásának engedélyezése Wi-Fi/LTE-n
|
||||
keresztül.</string>
|
||||
<string id="SettingsVibration">Adjon visszajelzést az alkalmazás rezgésekkel?</string>
|
||||
<string id="SettingsAppTimeout">Időtúllépés másodpercben. Az eszköz akkumulátorának kímélése
|
||||
érdekében az alkalmazás kilép ennyi inaktivitás után.</string>
|
||||
<string id="SettingsPollDelay">További lekérdezési késleltetés (másodpercben). Késleltetést ad az
|
||||
összes menüelem állapotfrissítése közé.</string>
|
||||
<string id="SettingsConfirmTimeout">Ezen idő (másodpercben) elteltével egy művelet megerősítő
|
||||
párbeszédablaka automatikusan bezáródik, és a művelet megszakad. Állítsa 0-ra az időtúllépés
|
||||
kikapcsolásához.</string>
|
||||
<string id="SettingsPin">4 számjegyű PIN-kód, amelyet minden szükséges művelethez használni kell
|
||||
(0000-9999).</string>
|
||||
<string id="SettingsPinError">Kérjük, konfiguráljon egy érvényes 4 számjegyű numerikus PIN-kódot
|
||||
0000 és 9999 között az alkalmazás beállításaiban.</string>
|
||||
<string id="SettingsTextAlign">Menü igazítása: Balra (ki) vagy Jobbra (be).</string>
|
||||
<string id="SettingsLeftToRight">Balról jobbra</string>
|
||||
<string id="SettingsRightToLeft">Jobbról balra</string>
|
||||
<string id="SettingsWidgetStart">(Csak widget) Az alkalmazás automatikus indítása a widgetről,
|
||||
érintés nélkül.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Engedélyezze a háttérszolgáltatásnak, hogy elküldje az
|
||||
eszköz akkumulátorának töltöttségi szintjét, helyét és (ha támogatott) tevékenységi adatait a
|
||||
Home Assistantnek.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Az adatküldés ismétlési gyakorisága (percekben),
|
||||
amellyel a háttérszolgáltatásnak adatokat kell küldenie.</string>
|
||||
<string id="SettingsUserHttpHeader">Felhasználó által megadott HTTP fejléc</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">Néhány Home Assistant telepítéshez egyéni HTTP
|
||||
fejléc megadása szükséges a működéshez.</string>
|
||||
<string id="SettingsUserHttpHeaderName">Felhasználó által megadott HTTP-fejléc: Név</string>
|
||||
<string id="SettingsUserHttpHeaderValue">Felhasználó által megadott HTTP-fejléc: Érték</string>
|
||||
<string id="SettingsClearWebhookId">Csatlakozás újra a Home Assistanthez (webhook azonosító
|
||||
törlése, lásd a hibaelhárítási útmutatót).</string>
|
||||
<string id="SettingsWebhookId">(Csak olvasható) Az eszköz által létrehozott webhook azonosító a
|
||||
háttérszolgáltatás frissítéseihez. Szüksége lehet rá a hibakereséshez.</string>
|
||||
</strings>
|
||||
|
@@ -9,64 +9,94 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Indonesian
|
||||
Dihasilkan oleh Google Translate dari bahasa Inggris
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Indonesian
|
||||
Dihasilkan oleh Google Translate dan gemini-2.5-flash dari bahasa Inggris ke bahasa Indonesia
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">Panggilan API terlalu cepat. Harap perlambat permintaan Anda.</string>
|
||||
<string id="ApiUrlNotFound">URL tidak ditemukan. Kemungkinan kesalahan URL API dalam pengaturan.</string>
|
||||
<string id="ApiUrlNotFound">URL tidak ditemukan. Kemungkinan kesalahan URL API di pengaturan.</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">Tersedia</string>
|
||||
<string id="Cached" scope="glance">Disimpan dalam cache</string>
|
||||
<string id="Cached" scope="glance">Di-cache</string>
|
||||
<string id="Checking" scope="glance">Memeriksa...</string>
|
||||
<string id="ConfigUrlNotFound">URL tidak ditemukan. Kemungkinan kesalahan Konfigurasi URL dalam pengaturan.</string>
|
||||
<string id="Confirm">Tentu?</string>
|
||||
<string id="ConfigUrlNotFound">URL tidak ditemukan. Kemungkinan kesalahan URL Konfigurasi di
|
||||
pengaturan.</string>
|
||||
<string id="Confirm">Yakin?</string>
|
||||
<string id="Empty">Kosong</string>
|
||||
<string id="Executed" scope="glance">Dikonfirmasi</string>
|
||||
<string id="GlanceMenu" scope="glance">Menu</string>
|
||||
<string id="Memory" scope="glance">Ingatan</string>
|
||||
<string id="NoAPIKey" scope="glance">Tidak ada kunci API dalam pengaturan aplikasi.</string>
|
||||
<string id="Memory" scope="glance">Memori</string>
|
||||
<string id="MenuUpdated">Menu diperbarui, mulai ulang.</string>
|
||||
<string id="MenuCheckDisabled">Pembaruan menu dinonaktifkan.</string>
|
||||
<string id="NoAPIKey" scope="glance">Tidak ada kunci API di pengaturan aplikasi.</string>
|
||||
<string id="NoApiUrl" scope="glance">Tidak ada URL API di pengaturan aplikasi.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Tidak ada URL konfigurasi dalam pengaturan aplikasi.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Tidak ada URL konfigurasi di pengaturan aplikasi.</string>
|
||||
<string id="NoInternet">Tidak ada koneksi internet.</string>
|
||||
<string id="NoJson">Tidak ada JSON yang dikembalikan dari permintaan HTTP.</string>
|
||||
<string id="NoJson">Tidak ada JSON yang diterima dari permintaan HTTP.</string>
|
||||
<string id="NoPhone" scope="glance">Tidak ada koneksi telepon.</string>
|
||||
<string id="NoResponse">Tidak ada Respon, periksa koneksi internet</string>
|
||||
<string id="PinInputLocked">Input PIN terkunci untuk</string>
|
||||
<string id="PotentialError">Potensi Kesalahan</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">Tidak ada koneksi telepon, tidak ada menu yang
|
||||
di-cache.</string>
|
||||
<string id="NoResponse">Tidak ada tanggapan, periksa koneksi internet</string>
|
||||
<string id="TimedOut">Permintaan habis waktu</string>
|
||||
<string id="PinInputLocked">Input PIN terkunci selama</string>
|
||||
<string id="PotentialError">Kesalahan potensial</string>
|
||||
<string id="Seconds">detik</string>
|
||||
<string id="TemplateError">Kesalahan Template</string>
|
||||
<string id="TrailingSlashErr">URL API tidak boleh memiliki garis miring '/' di akhir.</string>
|
||||
<string id="TemplateError">Kesalahan template</string>
|
||||
<string id="TrailingSlashErr">URL API tidak boleh memiliki garis miring di akhir '/'.</string>
|
||||
<string id="Unavailable" scope="glance">Tidak tersedia</string>
|
||||
<string id="Unconfigured" scope="glance">Tidak dikonfigurasi</string>
|
||||
<string id="Unconfigured" scope="glance">Tidak dikonfigurasikan</string>
|
||||
<string id="UnhandledHttpErr">Permintaan HTTP mengembalikan kode kesalahan =</string>
|
||||
<string id="WebhookFailed">Gagal mendaftarkan Webhook</string>
|
||||
<string id="WrongPin">PIN salah</string>
|
||||
<!-- Untuk pengaturan GUI, string harus sesuai urutan penggunaannya. -->
|
||||
<string id="SettingsSelect">Memilih...</string>
|
||||
<string id="WebhookFailed">Gagal mendaftar Webhook</string>
|
||||
<string id="WrongPin">PIN yang salah</string>
|
||||
<string id="WifiLteNotAvailable">Tidak ada Wi-Fi atau LTE yang tersedia</string>
|
||||
<string id="WifiLtePrompt">Jalankan melalui Wi-Fi/LTE?</string>
|
||||
<string id="WifiLteExecutionTitle">Mengirim ke Home Assistant.</string>
|
||||
<string id="WifiLteExecutionDataError">Tidak ada data yang diterima.</string>
|
||||
<!-- Untuk pengaturan GUI, string harus sesuai urutan yang digunakan. -->
|
||||
<string id="SettingsSelect">Pilih...</string>
|
||||
<string id="SettingsApiKey">Kunci API untuk HomeAssistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">Token Akses Jangka Panjang.</string>
|
||||
<string id="SettingsApiUrl">URL untuk HomeAssistant API.</string>
|
||||
<string id="SettingsApiKeyPrompt">Token akses berumur panjang.</string>
|
||||
<string id="SettingsApiUrl">URL untuk API HomeAssistant.</string>
|
||||
<string id="SettingsConfigUrl">URL untuk konfigurasi menu (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Haruskah aplikasi menyimpan konfigurasi menu dalam cache?</string>
|
||||
<string id="SettingsClearCache">Haruskah aplikasi menghapus cache yang ada saat dijalankan berikutnya?</string>
|
||||
<string id="SettingsCacheConfig">Haruskah aplikasi meng-cache konfigurasi menu?</string>
|
||||
<string id="SettingsClearCache">Haruskah aplikasi menghapus cache yang ada saat dimulai
|
||||
berikutnya?</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">Periksa pembaruan menu saat aplikasi dimulai? Catatan: Cache menu harus diaktifkan. Pengaturan ini dapat menyebabkan perangkat lama dengan memori lebih sedikit mengalami crash.</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">Aktifkan eksekusi perintah melalui Wi-Fi/LTE.</string>
|
||||
<string id="SettingsVibration">Haruskah aplikasi memberikan umpan balik melalui getaran?</string>
|
||||
<string id="SettingsAppTimeout">Batas waktu dalam hitungan detik. Keluar dari aplikasi setelah periode tidak aktif ini untuk menghemat baterai perangkat.</string>
|
||||
<string id="SettingsPollDelay">Penundaan polling tambahan (dalam detik). Menambahkan penundaan antara pembaruan status semua item menu.</string>
|
||||
<string id="SettingsConfirmTimeout">Setelah waktu ini (dalam detik), dialog konfirmasi untuk suatu tindakan akan ditutup secara otomatis dan tindakan tersebut dibatalkan. Atur ke 0 untuk menonaktifkan batas waktu.</string>
|
||||
<string id="SettingsPin">PIN 4 digit yang akan digunakan untuk semua tindakan yang memerlukan konfirmasi (0000-9999).</string>
|
||||
<string id="SettingsPinError">Harap konfigurasikan PIN numerik 4 digit yang valid antara 0000 dan 9999 dalam pengaturan aplikasi.</string>
|
||||
<string id="SettingsTextAlign">Penyelarasan Menu Kiri (nonaktif) atau Kanan (aktif).</string>
|
||||
<string id="LeftToRight">Kiri ke kanan</string>
|
||||
<string id="RightToLeft">Kanan ke Kiri</string>
|
||||
<string id="SettingsWidgetStart">(Hanya widget) Secara otomatis memulai aplikasi dari widget tanpa menunggu ketukan.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Aktifkan layanan latar belakang untuk mengirim tingkat baterai perangkat, lokasi, dan (jika didukung) data aktivitas ke Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Kecepatan penyegaran (dalam menit) di mana layanan latar belakang harus mengulang pengiriman data.</string>
|
||||
<string id="WebhookId">(Hanya baca) ID Webhook yang dibuat oleh perangkat untuk pembaruan layanan latar belakang. Anda mungkin memerlukannya untuk debugging.</string>
|
||||
<string id="SettingsAppTimeout">Batas waktu dalam detik. Keluar dari aplikasi setelah periode
|
||||
tidak aktif ini untuk menghemat baterai perangkat.</string>
|
||||
<string id="SettingsPollDelay">Penundaan polling tambahan (dalam detik). Menambahkan penundaan
|
||||
antara pembaruan status semua item menu.</string>
|
||||
<string id="SettingsConfirmTimeout">Setelah waktu ini (dalam detik), dialog konfirmasi untuk suatu
|
||||
tindakan ditutup secara otomatis dan tindakan dibatalkan. Atur ke 0 untuk menonaktifkan batas
|
||||
waktu.</string>
|
||||
<string id="SettingsPin">PIN 4 digit untuk digunakan untuk semua tindakan yang memerlukannya
|
||||
(0000-9999).</string>
|
||||
<string id="SettingsPinError">Harap konfigurasikan PIN numerik 4 digit yang valid antara 0000 dan
|
||||
9999 di pengaturan aplikasi.</string>
|
||||
<string id="SettingsTextAlign">Penjajaran Menu Kiri (mati) atau Kanan (hidup).</string>
|
||||
<string id="SettingsLeftToRight">Kiri ke kanan</string>
|
||||
<string id="SettingsRightToLeft">Kanan ke kiri</string>
|
||||
<string id="SettingsWidgetStart">(Hanya widget) Secara otomatis memulai aplikasi dari widget tanpa
|
||||
menunggu ketukan.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Aktifkan layanan latar belakang untuk mengirim tingkat
|
||||
baterai perangkat, lokasi, dan (jika didukung) data aktivitas ke Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Tingkat refresh (dalam menit) di mana layanan latar
|
||||
belakang harus mengulang pengiriman data.</string>
|
||||
<string id="SettingsUserHttpHeader">Header HTTP yang disediakan pengguna</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">Beberapa instalasi Home Assistant memerlukan
|
||||
spesifikasi header HTTP kustom agar berfungsi.</string>
|
||||
<string id="SettingsUserHttpHeaderName">Header HTTP yang disediakan pengguna: Nama</string>
|
||||
<string id="SettingsUserHttpHeaderValue">Header HTTP yang disediakan pengguna: Nilai</string>
|
||||
<string id="SettingsClearWebhookId">Sambungkan kembali ke Home Assistant (hapus ID Webhook, lihat
|
||||
Panduan Pemecahan Masalah).</string>
|
||||
<string id="SettingsWebhookId">(Baca saja) ID Webhook yang dibuat oleh perangkat untuk pembaruan
|
||||
layanan latar belakang. Anda mungkin memerlukan ini untuk debugging.</string>
|
||||
</strings>
|
||||
|
@@ -9,64 +9,100 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Italian
|
||||
Generato da Google Translate dall'inglese
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Italian
|
||||
Generato da Google Translate e gemini-2.5-flash dall'inglese all'italiano
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">Chiamate API troppo rapide. Rallenta le tue richieste.</string>
|
||||
<string id="ApiUrlNotFound">URL non trovato. Possibile errore URL API nelle impostazioni.</string>
|
||||
<string id="ApiFlood">Chiamate API troppo rapide. Rallentare le richieste.</string>
|
||||
<string id="ApiUrlNotFound">URL non trovato. Potenziale errore URL API nelle impostazioni.</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">Disponibile</string>
|
||||
<string id="Cached" scope="glance">Memorizzato nella cache</string>
|
||||
<string id="Checking" scope="glance">Controllo in corso...</string>
|
||||
<string id="ConfigUrlNotFound">URL non trovato. Possibile errore URL di configurazione nelle impostazioni.</string>
|
||||
<string id="Cached" scope="glance">In cache</string>
|
||||
<string id="Checking" scope="glance">Controllo ...</string>
|
||||
<string id="ConfigUrlNotFound">URL non trovato. Potenziale errore URL di configurazione nelle
|
||||
impostazioni.</string>
|
||||
<string id="Confirm">Sicuro?</string>
|
||||
<string id="Empty">Vuoto</string>
|
||||
<string id="Executed" scope="glance">Confermato</string>
|
||||
<string id="GlanceMenu" scope="glance">Menu</string>
|
||||
<string id="Memory" scope="glance">Memoria</string>
|
||||
<string id="MenuUpdated">Menu aggiornato, riavvio.</string>
|
||||
<string id="MenuCheckDisabled">Aggiornamenti di menu disabilitati.</string>
|
||||
<string id="NoAPIKey" scope="glance">Nessuna chiave API nelle impostazioni dell'applicazione.</string>
|
||||
<string id="NoApiUrl" scope="glance">Nessun URL API nelle impostazioni dell'applicazione.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Nessun URL di configurazione nelle impostazioni dell'applicazione.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Nessun URL di configurazione nelle impostazioni
|
||||
dell'applicazione.</string>
|
||||
<string id="NoInternet">Nessuna connessione Internet.</string>
|
||||
<string id="NoJson">Nessun JSON restituito dalla richiesta HTTP.</string>
|
||||
<string id="NoJson">Nessun JSON ricevuto dalla richiesta HTTP.</string>
|
||||
<string id="NoPhone" scope="glance">Nessuna connessione telefonica.</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">Nessuna connessione telefonica, nessun menu memorizzato
|
||||
nella cache.</string>
|
||||
<string id="NoResponse">Nessuna risposta, controlla la connessione Internet</string>
|
||||
<string id="TimedOut">Richiesta scaduta</string>
|
||||
<string id="PinInputLocked">Inserimento PIN bloccato per</string>
|
||||
<string id="PotentialError">Errore potenziale</string>
|
||||
<string id="Seconds">secondi</string>
|
||||
<string id="PotentialError">Potenziale errore</string>
|
||||
<string id="Seconds">Secondi</string>
|
||||
<string id="TemplateError">Errore modello</string>
|
||||
<string id="TrailingSlashErr">L'URL dell'API non deve contenere la barra finale '/'.</string>
|
||||
<string id="TrailingSlashErr">L'URL API non deve contenere una barra finale '/'.</string>
|
||||
<string id="Unavailable" scope="glance">Non disponibile</string>
|
||||
<string id="Unconfigured" scope="glance">Non configurato</string>
|
||||
<string id="UnhandledHttpErr">La richiesta HTTP ha restituito il codice di errore =</string>
|
||||
<string id="WebhookFailed">Impossibile registrare il webhook</string>
|
||||
<string id="WrongPin">PIN errato</string>
|
||||
<!-- Per l'interfaccia utente grafica delle impostazioni, le stringhe devono essere nell'ordine in cui vengono utilizzate. -->
|
||||
<string id="UnhandledHttpErr">La richiesta HTTP ha restituito il codice di errore = </string>
|
||||
<string id="WebhookFailed">Impossibile registrare Webhook</string>
|
||||
<string id="WrongPin">PIN sbagliato</string>
|
||||
<string id="WifiLteNotAvailable">Nessun Wi-Fi o LTE disponibile</string>
|
||||
<string id="WifiLtePrompt">Eseguire su Wi-Fi/LTE?</string>
|
||||
<string id="WifiLteExecutionTitle">Invio a Home Assistant.</string>
|
||||
<string id="WifiLteExecutionDataError">Nessun dato ricevuto.</string>
|
||||
<!-- Per le impostazioni della GUI, le stringhe dovrebbero essere nell'ordine in cui vengono
|
||||
utilizzate. -->
|
||||
<string id="SettingsSelect">Selezionare...</string>
|
||||
<string id="SettingsApiKey">Chiave API per HomeAssistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">Token di accesso di lunga durata.</string>
|
||||
<string id="SettingsApiUrl">URL per l'API HomeAssistant.</string>
|
||||
<string id="SettingsApiUrl">URL per API HomeAssistant.</string>
|
||||
<string id="SettingsConfigUrl">URL per la configurazione del menu (JSON).</string>
|
||||
<string id="SettingsCacheConfig">L'applicazione dovrebbe memorizzare nella cache la configurazione del menu?</string>
|
||||
<string id="SettingsClearCache">La prossima volta che l'applicazione viene avviata, deve cancellare la cache esistente?</string>
|
||||
<string id="SettingsCacheConfig">L'applicazione dovrebbe memorizzare nella cache la configurazione
|
||||
del menu?</string>
|
||||
<string id="SettingsClearCache">L'applicazione dovrebbe cancellare la cache esistente la prossima
|
||||
volta che viene avviata?</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">Controllare gli aggiornamenti del menu all'inizio
|
||||
dell'applicazione? NOTA: la memorizzazione della memorizzazione nella cache dei menu deve essere
|
||||
abilitata. Questa impostazione può causare crash di dispositivi più vecchi con meno memoria.</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">Abilita l'esecuzione dei comandi su Wi-Fi/LTE.</string>
|
||||
<string id="SettingsVibration">L'applicazione dovrebbe fornire feedback tramite vibrazioni?</string>
|
||||
<string id="SettingsAppTimeout">Timeout in secondi. Esci dall'applicazione dopo questo periodo di inattività per risparmiare la batteria del dispositivo.</string>
|
||||
<string id="SettingsPollDelay">Ritardo di polling aggiuntivo (in secondi). Aggiunge un ritardo tra l'aggiornamento dello stato di tutte le voci di menu.</string>
|
||||
<string id="SettingsConfirmTimeout">Dopo questo tempo (in secondi), una finestra di dialogo di conferma per un'azione viene automaticamente chiusa e l'azione viene annullata. Impostare su 0 per disabilitare il timeout.</string>
|
||||
<string id="SettingsPin">PIN a 4 cifre da utilizzare per tutte le azioni che richiedono conferma (0000-9999).</string>
|
||||
<string id="SettingsPinError">Configurare un PIN numerico valido a 4 cifre compreso tra 0000 e 9999 nelle impostazioni dell'applicazione.</string>
|
||||
<string id="SettingsTextAlign">Allineamento del menu a sinistra (disattivato) o a destra (attivato).</string>
|
||||
<string id="LeftToRight">Da sinistra a destra</string>
|
||||
<string id="RightToLeft">Da destra a sinistra</string>
|
||||
<string id="SettingsWidgetStart">(Solo widget) Avvia automaticamente l'applicazione dal widget senza attendere un tocco.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Abilita il servizio in background per inviare i dati relativi al livello della batteria, alla posizione e (se supportati) all'attività del dispositivo a Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Frequenza di aggiornamento (in minuti) alla quale il servizio in background dovrebbe ripetere l'invio dei dati.</string>
|
||||
<string id="WebhookId">(Sola lettura) L'ID Webhook creato dal dispositivo per gli aggiornamenti del servizio in background. Potrebbe essere necessario per il debug.</string>
|
||||
<string id="SettingsAppTimeout">Timeout in secondi. Esci dall'applicazione dopo questo periodo di
|
||||
inattività per salvare la batteria del dispositivo.</string>
|
||||
<string id="SettingsPollDelay">Ritardo di polling aggiuntivo (in secondi). Aggiunge un ritardo tra
|
||||
l'aggiornamento dello stato di tutte le voci di menu.</string>
|
||||
<string id="SettingsConfirmTimeout">Dopo questo tempo (in secondi), una finestra di dialogo di
|
||||
conferma per un'azione viene automaticamente chiusa e l'azione viene annullata. Impostare su 0
|
||||
per disabilitare il timeout.</string>
|
||||
<string id="SettingsPin">PIN a 4 cifre da utilizzare per tutte le azioni che lo richiedono
|
||||
(0000-9999).</string>
|
||||
<string id="SettingsPinError">Configura un PIN numerico a 4 cifre valido tra 0000 e 9999 nelle
|
||||
impostazioni dell'applicazione.</string>
|
||||
<string id="SettingsTextAlign">Allineamento del menu a sinistra (OFF) o a destra (ON).</string>
|
||||
<string id="SettingsLeftToRight">Da sinistra a destra</string>
|
||||
<string id="SettingsRightToLeft">Da destra a sinistra</string>
|
||||
<string id="SettingsWidgetStart">(Solo widget) Avvia automaticamente l'applicazione dal widget
|
||||
senza attendere un tocco.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Abilita il servizio in background per inviare il livello
|
||||
della batteria del dispositivo, la posizione e (se supportati) i dati di attività a Home
|
||||
Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">La frequenza di aggiornamento (in minuti) con cui il
|
||||
servizio in background dovrebbe ripetere l'invio dei dati.</string>
|
||||
<string id="SettingsUserHttpHeader">Intestazione HTTP fornita dall'utente</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">Alcune installazioni di Home Assistant richiedono
|
||||
la specifica di un'intestazione HTTP personalizzata per funzionare.</string>
|
||||
<string id="SettingsUserHttpHeaderName">Intestazione HTTP fornita dall'utente: Nome</string>
|
||||
<string id="SettingsUserHttpHeaderValue">Intestazione HTTP fornita dall'utente: Valore</string>
|
||||
<string id="SettingsClearWebhookId">Riconnettiti a Home Assistant (cancella ID Webhook, vedi Guida
|
||||
alla risoluzione dei problemi).</string>
|
||||
<string id="SettingsWebhookId">(Solo lettura) L'ID WebHook creato dal dispositivo per gli
|
||||
aggiornamenti del servizio in background. Potresti richiederlo per il debug.</string>
|
||||
</strings>
|
@@ -9,64 +9,83 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Japanese
|
||||
Google翻訳により英語から生成
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Japanese
|
||||
Google翻訳とgemini-2.5-flashによって英語から日本語に生成されました
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">API 呼び出しが速すぎます。リクエストの速度を落としてください。</string>
|
||||
<string id="ApiUrlNotFound">URL が見つかりません。設定で API URL エラーが発生する可能性があります。</string>
|
||||
<string id="ApiFlood">API呼び出しが頻繁すぎます。リクエストの頻度を下げてください。</string>
|
||||
<string id="ApiUrlNotFound">URLが見つかりません。設定のAPI URLに誤りがある可能性があります。</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">利用可能</string>
|
||||
<string id="Cached" scope="glance">キャッシュ済み</string>
|
||||
<string id="Cached" scope="glance">キャッシュ済</string>
|
||||
<string id="Checking" scope="glance">チェック中...</string>
|
||||
<string id="ConfigUrlNotFound">URL が見つかりません。設定で構成 URL エラーが発生する可能性があります。</string>
|
||||
<string id="Confirm">もちろん?</string>
|
||||
<string id="Empty">空の</string>
|
||||
<string id="Executed" scope="glance">確認済み</string>
|
||||
<string id="ConfigUrlNotFound">URLが見つかりません。設定の構成URLに誤りがある可能性があります。</string>
|
||||
<string id="Confirm">確認</string>
|
||||
<string id="Empty">空</string>
|
||||
<string id="Executed" scope="glance">実行済み</string>
|
||||
<string id="GlanceMenu" scope="glance">メニュー</string>
|
||||
<string id="Memory" scope="glance">メモリ</string>
|
||||
<string id="NoAPIKey" scope="glance">アプリケーション設定に API キーがありません。</string>
|
||||
<string id="NoApiUrl" scope="glance">アプリケーション設定に API URL がありません。</string>
|
||||
<string id="NoConfigUrl" scope="glance">アプリケーション設定に構成 URL がありません。</string>
|
||||
<string id="NoInternet">インターネットに接続できません。</string>
|
||||
<string id="NoJson">HTTP リクエストから JSON が返されません。</string>
|
||||
<string id="NoPhone" scope="glance">電話接続がありません。</string>
|
||||
<string id="NoResponse">応答なし。インターネット接続を確認してください</string>
|
||||
<string id="PinInputLocked">PIN入力がロックされました</string>
|
||||
<string id="MenuUpdated">メニュー更新済み、再起動。</string>
|
||||
<string id="MenuCheckDisabled">メニューの更新は無効です。</string>
|
||||
<string id="NoAPIKey" scope="glance">アプリケーション設定にAPIキーはありません。</string>
|
||||
<string id="NoApiUrl" scope="glance">アプリケーション設定にAPI URLはありません。</string>
|
||||
<string id="NoConfigUrl" scope="glance">アプリケーション設定に構成URLはありません。</string>
|
||||
<string id="NoInternet">インターネット接続はありません。</string>
|
||||
<string id="NoJson">JSONはHTTPリクエストから返されませんでした。</string>
|
||||
<string id="NoPhone" scope="glance">電話接続はありません。</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">電話接続なし、キャッシュ済みメニューなし。</string>
|
||||
<string id="NoResponse">応答なし、インターネット接続を確認してください</string>
|
||||
<string id="TimedOut">リクエストがタイムアウトしました</string>
|
||||
<string id="PinInputLocked">PIN入力はロックされています</string>
|
||||
<string id="PotentialError">潜在的なエラー</string>
|
||||
<string id="Seconds">秒</string>
|
||||
<string id="TemplateError">テンプレートエラー</string>
|
||||
<string id="TrailingSlashErr">API URL の末尾にスラッシュ「/」を含めることはできません。</string>
|
||||
<string id="Unavailable" scope="glance">利用不可</string>
|
||||
<string id="TrailingSlashErr">API URLの末尾にスラッシュ '/' を含めないでください。</string>
|
||||
<string id="Unavailable" scope="glance">利用できません</string>
|
||||
<string id="Unconfigured" scope="glance">未設定</string>
|
||||
<string id="UnhandledHttpErr">HTTP リクエストがエラーコードを返しました =</string>
|
||||
<string id="WebhookFailed">Webhook の登録に失敗しました</string>
|
||||
<string id="WrongPin">PINが間違っています</string>
|
||||
<!-- 設定 GUI の場合、文字列は使用される順序に従う必要があります。 -->
|
||||
<string id="UnhandledHttpErr">HTTPリクエストがエラーコードを返しました = </string>
|
||||
<string id="WebhookFailed">Webhookの登録に失敗しました</string>
|
||||
<string id="WrongPin">間違ったピン</string>
|
||||
<string id="WifiLteNotAvailable">Wi-FiまたはLTEは利用できません</string>
|
||||
<string id="WifiLtePrompt">Wi-Fi/LTE経由で実行しますか?</string>
|
||||
<string id="WifiLteExecutionTitle">Home Assistantに送信中。</string>
|
||||
<string id="WifiLteExecutionDataError">受信したデータはありません。</string>
|
||||
<!-- 設定GUIの場合、文字列は使用される順序である必要があります。 -->
|
||||
<string id="SettingsSelect">選択...</string>
|
||||
<string id="SettingsApiKey">HomeAssistant の API キー。</string>
|
||||
<string id="SettingsApiKeyPrompt">長期有効アクセス トークン。</string>
|
||||
<string id="SettingsApiUrl">HomeAssistant API の URL。</string>
|
||||
<string id="SettingsConfigUrl">メニュー設定の URL (JSON)。</string>
|
||||
<string id="SettingsCacheConfig">アプリケーションはメニュー構成をキャッシュする必要がありますか?</string>
|
||||
<string id="SettingsClearCache">アプリケーションは次回起動時に既存のキャッシュをクリアする必要がありますか?</string>
|
||||
<string id="SettingsVibration">アプリケーションは振動によるフィードバックを提供する必要がありますか?</string>
|
||||
<string id="SettingsAppTimeout">タイムアウトは秒単位で行われます。デバイスのバッテリーを節約するために、この時間操作が行われなかったらアプリケーションを終了してください。</string>
|
||||
<string id="SettingsPollDelay">追加のポーリング遅延 (秒単位)。すべてのメニュー項目のステータス更新の間に遅延を追加します。</string>
|
||||
<string id="SettingsConfirmTimeout">この時間 (秒単位) が経過すると、アクションの確認ダイアログが自動的に閉じられ、アクションがキャンセルされます。タイムアウトを無効にするには 0 に設定します。</string>
|
||||
<string id="SettingsPin">確認が必要なすべてのアクションに使用する 4 桁の PIN (0000 ~ 9999)。</string>
|
||||
<string id="SettingsPinError">アプリケーション設定で、0000 ~ 9999 の間の有効な 4 桁の数字 PIN を設定してください。</string>
|
||||
<string id="SettingsTextAlign">メニューの配置を左 (オフ) または右 (オン) にします。</string>
|
||||
<string id="LeftToRight">左から右へ</string>
|
||||
<string id="RightToLeft">右から左へ</string>
|
||||
<string id="SettingsWidgetStart">(ウィジェットのみ) タップを待たずにウィジェットからアプリケーションを自動的に起動します。</string>
|
||||
<string id="SettingsEnableBatteryLevel">バックグラウンド サービスを有効にして、デバイスのバッテリー レベル、位置情報、および (サポートされている場合) アクティビティ データを Home Assistant に送信します。</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">バックグラウンド サービスがデータの送信を繰り返す更新レート (分単位)。</string>
|
||||
<string id="WebhookId">(読み取り専用) バックグラウンド サービス更新用にデバイスによって作成された Webhook ID。デバッグに必要になる場合があります。</string>
|
||||
<string id="SettingsApiKey">Home AssistantのAPIキー。</string>
|
||||
<string id="SettingsApiKeyPrompt">長寿命のアクセストークン。</string>
|
||||
<string id="SettingsApiUrl">Home Assistant APIのURL。</string>
|
||||
<string id="SettingsConfigUrl">メニュー構成用のURL(JSON)。</string>
|
||||
<string id="SettingsCacheConfig">メニュー構成をキャッシュしますか?</string>
|
||||
<string id="SettingsClearCache">次回起動時に既存のキャッシュをクリアしますか?</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">アプリケーション起動時にメニューの更新を確認しますか?注: メニューのキャッシュが有効になっている必要があります。この設定は、メモリの少ない古いデバイスでクラッシュを引き起こす可能性があります。</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">Wi-Fi/LTE経由でのコマンド実行を有効にする。</string>
|
||||
<string id="SettingsVibration">振動フィードバックを有効にする</string>
|
||||
<string id="SettingsAppTimeout">タイムアウト(秒)。デバイスのバッテリーを節約するため、この非アクティブ期間の後にアプリを終了します。</string>
|
||||
<string id="SettingsPollDelay">追加ポーリング遅延(秒)。すべてのメニュー項目のステータス更新間隔に遅延を追加します。</string>
|
||||
<string id="SettingsConfirmTimeout">
|
||||
この時間(秒)が経過すると、アクションの確認ダイアログは自動的に閉じられ、アクションはキャンセルされます。タイムアウトを無効にするには0に設定してください。</string>
|
||||
<string id="SettingsPin">必要なすべてのアクションに使用する4桁のPIN(0000-9999)。</string>
|
||||
<string id="SettingsPinError">アプリケーション設定で、0000から9999までの有効な4桁の数値PINを設定してください。</string>
|
||||
<string id="SettingsTextAlign">メニューの配置:左(オフ)または右(オン)。</string>
|
||||
<string id="SettingsLeftToRight">左から右</string>
|
||||
<string id="SettingsRightToLeft">右から左</string>
|
||||
<string id="SettingsWidgetStart">(ウィジェットのみ)タップを待たずにウィジェットからアプリケーションを自動起動します。</string>
|
||||
<string id="SettingsEnableBatteryLevel">バックグラウンドサービスによるデバイスのバッテリーレベル、位置情報、および(サポートされている場合)アクティビティデータのHome
|
||||
Assistantへの送信を有効にする。</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">バックグラウンドサービスがデータを送信するリフレッシュレート(分)。</string>
|
||||
<string id="SettingsUserHttpHeader">ユーザーが提供したHTTPヘッダー</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">一部のHome
|
||||
Assistantのインストールでは、機能するためにカスタムHTTPヘッダーの指定が必要です。</string>
|
||||
<string id="SettingsUserHttpHeaderName">ユーザーが提供したHTTPヘッダー:名前</string>
|
||||
<string id="SettingsUserHttpHeaderValue">ユーザーが提供したHTTPヘッダー:値</string>
|
||||
<string id="SettingsClearWebhookId">Home Assistantに再接続(Webhook IDをクリア、トラブルシューティングガイドを参照)。</string>
|
||||
<string id="SettingsWebhookId">(読み取り専用)バックグラウンドサービスの更新のためにデバイスによって作成されたWebhook
|
||||
ID。デバッグにこれが必要になる場合があります。</string>
|
||||
</strings>
|
||||
|
@@ -9,64 +9,82 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Korean
|
||||
영어에서 Google Translate로 생성됨
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Korean
|
||||
Google 번역 및 gemini-2.5-flash에 의해 영어에서 한국어로 생성됨
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">API 호출이 너무 빠릅니다. 요청 속도를 늦춰주세요.</string>
|
||||
<string id="ApiUrlNotFound">URL을 찾을 수 없습니다. 설정에 잠재적인 API URL 오류가 있습니다.</string>
|
||||
<string id="ApiUrlNotFound">URL을 찾을 수 없습니다. 설정에 API URL 오류가 있을 수 있습니다.</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">사용 가능</string>
|
||||
<string id="Cached" scope="glance">캐시됨</string>
|
||||
<string id="Checking" scope="glance">확인 중...</string>
|
||||
<string id="ConfigUrlNotFound">URL을 찾을 수 없습니다. 설정에서 잠재적인 구성 URL 오류.</string>
|
||||
<string id="Confirm">확신하는?</string>
|
||||
<string id="Empty">비어 있는</string>
|
||||
<string id="Executed" scope="glance">확인됨</string>
|
||||
<string id="ConfigUrlNotFound">URL을 찾을 수 없습니다. 설정에 구성 URL 오류가 있을 수 있습니다.</string>
|
||||
<string id="Confirm">확인?</string>
|
||||
<string id="Empty">비어 있음</string>
|
||||
<string id="Executed" scope="glance">실행됨</string>
|
||||
<string id="GlanceMenu" scope="glance">메뉴</string>
|
||||
<string id="Memory" scope="glance">메모리</string>
|
||||
<string id="NoAPIKey" scope="glance">애플리케이션 설정에 API 키가 없습니다.</string>
|
||||
<string id="NoApiUrl" scope="glance">애플리케이션 설정에 API URL이 없습니다.</string>
|
||||
<string id="NoConfigUrl" scope="glance">애플리케이션 설정에 구성 URL이 없습니다.</string>
|
||||
<string id="NoInternet">인터넷에 연결되지 않았습니다.</string>
|
||||
<string id="MenuUpdated">메뉴 업데이트됨, 재시작.</string>
|
||||
<string id="MenuCheckDisabled">메뉴 업데이트 비활성화됨.</string>
|
||||
<string id="NoAPIKey" scope="glance">앱 설정에 API 키가 없습니다.</string>
|
||||
<string id="NoApiUrl" scope="glance">앱 설정에 API URL이 없습니다.</string>
|
||||
<string id="NoConfigUrl" scope="glance">앱 설정에 구성 URL이 없습니다.</string>
|
||||
<string id="NoInternet">인터넷 연결 없음.</string>
|
||||
<string id="NoJson">HTTP 요청에서 JSON이 반환되지 않았습니다.</string>
|
||||
<string id="NoPhone" scope="glance">전화가 연결되지 않았습니다.</string>
|
||||
<string id="NoResponse">응답 없음, 인터넷 연결을 확인하세요</string>
|
||||
<string id="PinInputLocked">PIN 입력이 잠겼습니다</string>
|
||||
<string id="NoPhone" scope="glance">휴대폰 연결 없음.</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">휴대폰 연결 없음, 캐시된 메뉴 없음.</string>
|
||||
<string id="NoResponse">응답 없음, 인터넷 연결 확인.</string>
|
||||
<string id="TimedOut">요청 시간 초과</string>
|
||||
<string id="PinInputLocked">PIN 입력 잠김 기간:</string>
|
||||
<string id="PotentialError">잠재적 오류</string>
|
||||
<string id="Seconds">초</string>
|
||||
<string id="TemplateError">템플릿 오류</string>
|
||||
<string id="TrailingSlashErr">API URL 끝에 슬래시(/)가 있어서는 안 됩니다.</string>
|
||||
<string id="Unavailable" scope="glance">없는</string>
|
||||
<string id="TrailingSlashErr">API URL에 후행 슬래시 '/'가 없어야 합니다.</string>
|
||||
<string id="Unavailable" scope="glance">사용 불가</string>
|
||||
<string id="Unconfigured" scope="glance">구성되지 않음</string>
|
||||
<string id="UnhandledHttpErr">HTTP 요청이 오류 코드를 반환했습니다 =</string>
|
||||
<string id="WebhookFailed">Webhook 등록에 실패했습니다.</string>
|
||||
<string id="UnhandledHttpErr">HTTP 요청 오류 코드 반환 = </string>
|
||||
<string id="WebhookFailed">Webhook 등록 실패</string>
|
||||
<string id="WrongPin">잘못된 PIN</string>
|
||||
<!-- 설정 GUI의 경우 문자열은 사용된 순서대로 있어야 합니다. -->
|
||||
<string id="SettingsSelect">선택하다...</string>
|
||||
<string id="SettingsApiKey">HomeAssistant의 API 키.</string>
|
||||
<string id="WifiLteNotAvailable">Wi-Fi 또는 LTE 사용 불가</string>
|
||||
<string id="WifiLtePrompt">Wi-Fi/LTE를 통해 실행하시겠습니까?</string>
|
||||
<string id="WifiLteExecutionTitle">Home Assistant로 전송 중.</string>
|
||||
<string id="WifiLteExecutionDataError">수신된 데이터 없음.</string>
|
||||
<!-- 설정 GUI의 경우 문자열이 사용되는 순서대로해야합니다. -->
|
||||
<string id="SettingsSelect">선택...</string>
|
||||
<string id="SettingsApiKey">HomeAssistant용 API 키.</string>
|
||||
<string id="SettingsApiKeyPrompt">장기 액세스 토큰.</string>
|
||||
<string id="SettingsApiUrl">HomeAssistant API의 URL입니다.</string>
|
||||
<string id="SettingsConfigUrl">메뉴 구성을 위한 URL(JSON).</string>
|
||||
<string id="SettingsCacheConfig">애플리케이션이 메뉴 구성을 캐시해야 할까요?</string>
|
||||
<string id="SettingsClearCache">다음에 애플리케이션을 시작할 때 기존 캐시를 지워야 합니까?</string>
|
||||
<string id="SettingsVibration">앱에서 진동을 통해 피드백을 제공해야 할까요?</string>
|
||||
<string id="SettingsAppTimeout">시간 초과(초). 이 기간 동안 활동이 없으면 애플리케이션을 종료하여 장치 배터리를 절약하세요.</string>
|
||||
<string id="SettingsPollDelay">추가 폴 지연(초). 모든 메뉴 항목의 상태 업데이트 사이에 지연을 추가합니다.</string>
|
||||
<string id="SettingsConfirmTimeout">이 시간(초) 이후에는 작업에 대한 확인 대화 상자가 자동으로 닫히고 작업이 취소됩니다. 시간 초과를 비활성화하려면 0으로 설정합니다.</string>
|
||||
<string id="SettingsPin">확인이 필요한 모든 작업에 사용되는 4자리 PIN(0000-9999)</string>
|
||||
<string id="SettingsPinError">애플리케이션 설정에서 0000~9999 사이의 유효한 4자리 숫자 PIN을 구성하세요.</string>
|
||||
<string id="SettingsTextAlign">왼쪽(끄기) 또는 오른쪽(켜기) 메뉴 정렬.</string>
|
||||
<string id="LeftToRight">왼쪽에서 오른쪽으로</string>
|
||||
<string id="RightToLeft">오른쪽에서 왼쪽으로</string>
|
||||
<string id="SettingsWidgetStart">(위젯만 해당) 탭을 기다리지 않고 위젯에서 자동으로 애플리케이션을 시작합니다.</string>
|
||||
<string id="SettingsEnableBatteryLevel">백그라운드 서비스를 활성화하여 기기의 배터리 수준, 위치 및 (지원되는 경우) 활동 데이터를 Home Assistant로 전송합니다.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">백그라운드 서비스가 데이터 전송을 반복해야 하는 새로 고침 빈도(분)입니다.</string>
|
||||
<string id="WebhookId">(읽기 전용) 백그라운드 서비스 업데이트를 위해 디바이스에서 생성한 Webhook ID입니다. 디버깅에 필요할 수 있습니다.</string>
|
||||
<string id="SettingsApiUrl">Home Assistant API URL.</string>
|
||||
<string id="SettingsConfigUrl">메뉴 구성 (JSON) URL.</string>
|
||||
<string id="SettingsCacheConfig">앱에서 메뉴 구성을 캐시하시겠습니까?</string>
|
||||
<string id="SettingsClearCache">앱 시작 시 기존 캐시를 지우시겠습니까?</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">앱 시작 시 메뉴 업데이트를 확인하시겠습니까? 참고: 메뉴 캐싱이 활성화되어 있어야 합니다. 이 설정은 메모리가 부족한 구형 기기에서 충돌을 일으킬 수 있습니다.</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">Wi-Fi/LTE를 통한 명령 실행 활성화.</string>
|
||||
<string id="SettingsVibration">앱에서 진동으로 피드백을 제공하시겠습니까?</string>
|
||||
<string id="SettingsAppTimeout">시간 초과(초). 기기 배터리 절약을 위해 비활성 상태가 되면 앱이 종료됩니다.</string>
|
||||
<string id="SettingsPollDelay">추가 폴링 지연(초). 모든 메뉴 항목의 상태 업데이트 사이에 지연을 추가합니다.</string>
|
||||
<string id="SettingsConfirmTimeout">이 시간(초)이 지나면 작업 확인 대화상자가 자동으로 닫히고 작업이 취소됩니다. 시간 초과를 비활성화하려면
|
||||
0으로 설정하세요.</string>
|
||||
<string id="SettingsPin">필요한 모든 작업에 사용될 4자리 PIN (0000-9999).</string>
|
||||
<string id="SettingsPinError">앱 설정에서 0000에서 9999 사이의 유효한 4자리 숫자 PIN을 설정해주세요.</string>
|
||||
<string id="SettingsTextAlign">왼쪽(꺼짐) 또는 오른쪽(켜짐) 메뉴 정렬.</string>
|
||||
<string id="SettingsLeftToRight">왼쪽에서 오른쪽</string>
|
||||
<string id="SettingsRightToLeft">오른쪽에서 왼쪽</string>
|
||||
<string id="SettingsWidgetStart">(위젯 전용) 탭을 기다리지 않고 위젯에서 앱을 자동으로 시작합니다.</string>
|
||||
<string id="SettingsEnableBatteryLevel">백그라운드 서비스가 기기 배터리 잔량, 위치 및 (지원되는 경우) 활동 데이터를 Home
|
||||
Assistant로 전송하도록 활성화합니다.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">백그라운드 서비스가 데이터를 반복 전송할 새로 고침 빈도(분).</string>
|
||||
<string id="SettingsUserHttpHeader">사용자 제공 HTTP 헤더</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">일부 Home Assistant 설치에서는 작동을 위해 사용자 지정 HTTP 헤더를 지정해야
|
||||
합니다.</string>
|
||||
<string id="SettingsUserHttpHeaderName">사용자 제공 HTTP 헤더: 이름</string>
|
||||
<string id="SettingsUserHttpHeaderValue">사용자 제공 HTTP 헤더: 값</string>
|
||||
<string id="SettingsClearWebhookId">Home Assistant에 다시 연결 (Webhook ID 지우기, 문제 해결 가이드 참조).</string>
|
||||
<string id="SettingsWebhookId">(읽기 전용) 백그라운드 서비스 업데이트를 위해 기기에서 생성한 Webhook ID. 디버깅에 필요할 수 있습니다.</string>
|
||||
</strings>
|
||||
|
@@ -9,64 +9,93 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Latvian
|
||||
Ģenerēja Google tulkotājs no angļu valodas
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Latvian
|
||||
Tulkojis Google Translate un gemini-2.5-flash no angļu valodas uz latviešu valodu
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">API izsaukumi ir pārāk ātri. Lūdzu, palēniniet pieprasījumu izpildi.</string>
|
||||
<string id="ApiUrlNotFound">URL nav atrasts. Iespējama API URL kļūda iestatījumos.</string>
|
||||
<string id="ApiFlood">API izsaukumi ir pārāk bieži. Lūdzu, palēniniet pieprasījumus.</string>
|
||||
<string id="ApiUrlNotFound">URL nav atrasts. Iespējama API URL kļūda iestatījumos.</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">Pieejams</string>
|
||||
<string id="Cached" scope="glance">Kešatmiņā saglabāts</string>
|
||||
<string id="Checking" scope="glance">Notiek pārbaude...</string>
|
||||
<string id="Cached" scope="glance">Kešots</string>
|
||||
<string id="Checking" scope="glance">Pārbaude...</string>
|
||||
<string id="ConfigUrlNotFound">URL nav atrasts. Iespējama konfigurācijas URL kļūda iestatījumos.</string>
|
||||
<string id="Confirm">Protams?</string>
|
||||
<string id="Confirm">Apstiprināt?</string>
|
||||
<string id="Empty">Tukšs</string>
|
||||
<string id="Executed" scope="glance">Apstiprināts</string>
|
||||
<string id="GlanceMenu" scope="glance">Izvēlne</string>
|
||||
<string id="Memory" scope="glance">Atmiņa</string>
|
||||
<string id="MenuUpdated">Izvēlne atjaunināta, restartējiet.</string>
|
||||
<string id="MenuCheckDisabled">Izvēlnes atjauninājumi atspējoti.</string>
|
||||
<string id="NoAPIKey" scope="glance">Lietojumprogrammas iestatījumos nav API atslēgas.</string>
|
||||
<string id="NoApiUrl" scope="glance">Lietojumprogrammas iestatījumos nav API URL.</string>
|
||||
<string id="NoApiUrl" scope="glance">Lietojumprogrammas iestatījumos nav API URL.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Lietojumprogrammas iestatījumos nav konfigurācijas URL.</string>
|
||||
<string id="NoInternet">Nav interneta savienojuma.</string>
|
||||
<string id="NoJson">No HTTP pieprasījuma netika atgriezts neviens JSON fails.</string>
|
||||
<string id="NoJson">HTTP pieprasījums neatgrieza JSON.</string>
|
||||
<string id="NoPhone" scope="glance">Nav tālruņa savienojuma.</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">Nav tālruņa savienojuma, nav kešotas izvēlnes.</string>
|
||||
<string id="NoResponse">Nav atbildes, pārbaudiet interneta savienojumu</string>
|
||||
<string id="PinInputLocked">PIN ievade bloķēta</string>
|
||||
<string id="PotentialError">Iespējama kļūda</string>
|
||||
<string id="TimedOut">Pieprasījums beidzās</string>
|
||||
<string id="PinInputLocked">PIN ievade bloķēta uz</string>
|
||||
<string id="PotentialError">Iespējamā kļūda</string>
|
||||
<string id="Seconds">sekundes</string>
|
||||
<string id="TemplateError">Veidnes kļūda</string>
|
||||
<string id="TrailingSlashErr">API URL beigās nedrīkst būt slīpsvītra “/”.</string>
|
||||
<string id="Unavailable" scope="glance">Nav pieejams</string>
|
||||
<string id="Unconfigured" scope="glance">Nav konfigurēts</string>
|
||||
<string id="UnhandledHttpErr">HTTP pieprasījums atgrieza kļūdas kodu =</string>
|
||||
<string id="WebhookFailed">Neizdevās reģistrēt Web aizķeri</string>
|
||||
<string id="TrailingSlashErr">API URL nedrīkst beigties ar slīpsvītru '/'.</string>
|
||||
<string id="Unavailable" scope="glance">Nepieejams</string>
|
||||
<string id="Unconfigured" scope="glance">Nekonfigurēts</string>
|
||||
<string id="UnhandledHttpErr">HTTP pieprasījums atgrieza kļūdas kodu = </string>
|
||||
<string id="WebhookFailed">Neizdevās reģistrēt Webhook</string>
|
||||
<string id="WrongPin">Nepareizs PIN</string>
|
||||
<string id="WifiLteNotAvailable">Nav pieejams Wi-Fi vai LTE</string>
|
||||
<string id="WifiLtePrompt">Izpildīt, izmantojot Wi-Fi/LTE?</string>
|
||||
<string id="WifiLteExecutionTitle">Sūta uz Home Assistant.</string>
|
||||
<string id="WifiLteExecutionDataError">Dati nav saņemti.</string>
|
||||
<!-- Iestatījumu GUI virknēm jābūt tādā secībā, kādā tās tiek izmantotas. -->
|
||||
<string id="SettingsSelect">Izvēlieties...</string>
|
||||
<string id="SettingsSelect">Atlasiet...</string>
|
||||
<string id="SettingsApiKey">API atslēga Home Assistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">Ilgmūžīgs piekļuves marķieris.</string>
|
||||
<string id="SettingsApiUrl">HomeAssistant API URL.</string>
|
||||
<string id="SettingsApiKeyPrompt">Ilgstošs piekļuves marķieris.</string>
|
||||
<string id="SettingsApiUrl">URL Home Assistant API.</string>
|
||||
<string id="SettingsConfigUrl">URL izvēlnes konfigurācijai (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Vai lietojumprogrammai vajadzētu saglabāt izvēlnes konfigurāciju kešatmiņā?</string>
|
||||
<string id="SettingsClearCache">Vai lietojumprogrammai nākamajā startēšanas reizē vajadzētu notīrīt esošo kešatmiņu?</string>
|
||||
<string id="SettingsVibration">Vai lietojumprogrammai ir jāsniedz atgriezeniskā saite, izmantojot vibrācijas?</string>
|
||||
<string id="SettingsAppTimeout">Taimauts sekundēs. Pēc šī neaktivitātes perioda izejiet no lietojumprogrammas, lai taupītu ierīces akumulatoru.</string>
|
||||
<string id="SettingsPollDelay">Papildu aptaujas aizkave (sekundēs). Pievieno aizkavi starp visu izvēlnes vienumu statusa atjaunināšanu.</string>
|
||||
<string id="SettingsConfirmTimeout">Pēc šī laika (sekundēs) tiek automātiski aizvērts darbības apstiprinājuma dialoglodziņš un darbība tiek atcelta. Iestatiet uz 0, lai atspējotu taimautu.</string>
|
||||
<string id="SettingsPin">4 ciparu PIN, kas jāizmanto visām darbībām, kurām nepieciešams apstiprinājums (0000-9999).</string>
|
||||
<string id="SettingsPinError">Lūdzu, konfigurējiet derīgu 4 ciparu ciparu PIN kodu no 0000 līdz 9999 lietojumprogrammas iestatījumos.</string>
|
||||
<string id="SettingsCacheConfig">Vai lietojumprogrammai vajadzētu kešot izvēlnes konfigurāciju?</string>
|
||||
<string id="SettingsClearCache">Vai lietojumprogrammai vajadzētu notīrīt esošo kešatmiņu nākamajā
|
||||
startēšanas reizē?</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">Pārbaudīt izvēlnes atjauninājumus, startējot lietojumprogrammu? Piezīme: Izvēlnes kešatmiņai jābūt iespējotai. Šis iestatījums var izraisīt vecāku ierīču ar mazāku atmiņu avāriju.</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">Iespējot komandu izpildi, izmantojot Wi-Fi/LTE.</string>
|
||||
<string id="SettingsVibration">Vai lietojumprogrammai vajadzētu sniegt atgriezenisko saiti,
|
||||
izmantojot vibrācijas?</string>
|
||||
<string id="SettingsAppTimeout">Noildze sekundēs. Lietojumprogramma tiks aizvērta pēc šī
|
||||
bezdarbības perioda, lai taupītu ierīces akumulatoru.</string>
|
||||
<string id="SettingsPollDelay">Papildu aptaujas aizkave (sekundēs). Pievieno aizkavi starp visu
|
||||
izvēlnes vienumu statusa atjauninājumiem.</string>
|
||||
<string id="SettingsConfirmTimeout">Pēc šī laika (sekundēs) apstiprinājuma dialogs darbības
|
||||
veikšanai tiek automātiski aizvērts un darbība tiek atcelta. Iestatiet uz 0, lai atspējotu
|
||||
noildzi.</string>
|
||||
<string id="SettingsPin">4 ciparu PIN, kas jāizmanto visām darbībām, kurām tas ir nepieciešams
|
||||
(0000-9999).</string>
|
||||
<string id="SettingsPinError">Lūdzu, lietojumprogrammas iestatījumos konfigurējiet derīgu
|
||||
četrciparu skaitlisku PIN kodu no 0000 līdz 9999.</string>
|
||||
<string id="SettingsTextAlign">Kreisā (izslēgta) vai labā (ieslēgta) izvēlnes izlīdzināšana.</string>
|
||||
<string id="LeftToRight">No kreisās uz labo</string>
|
||||
<string id="RightToLeft">No labās uz kreiso</string>
|
||||
<string id="SettingsWidgetStart">(tikai logrīkam) Automātiski startējiet lietojumprogrammu no logrīka, negaidot pieskārienu.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Iespējojiet fona pakalpojumu, lai Home Assistant nosūtītu ierīces akumulatora uzlādes līmeni, atrašanās vietu un (ja tiek atbalstīts) darbības datus.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Atsvaidzes biežums (minūtēs), ar kādu fona pakalpojumam ir jāatkārto datu sūtīšana.</string>
|
||||
<string id="WebhookId">(Tikai lasāms) Web aizķeres ID, ko ierīce izveidojusi fona pakalpojumu atjauninājumiem. Tas var būt nepieciešams atkļūdošanai.</string>
|
||||
<string id="SettingsLeftToRight">No kreisās uz labo pusi</string>
|
||||
<string id="SettingsRightToLeft">No labās uz kreiso pusi</string>
|
||||
<string id="SettingsWidgetStart">(Tikai logrīks) Automātiski startēt lietojumprogrammu no logrīka,
|
||||
negaidot pieskārienu.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Iespējojiet fona pakalpojumu, lai nosūtītu ierīces
|
||||
akumulatora līmeni, atrašanās vietu un (ja tiek atbalstīti) aktivitātes datus uz Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Atsvaidzināšanas ātrums (minūtēs), kurā fona
|
||||
pakalpojumam jāatkārto datu nosūtīšana.</string>
|
||||
<string id="SettingsUserHttpHeader">Lietotāja norādītā HTTP galvene</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">Dažām Home Assistant instalācijām ir nepieciešama
|
||||
pielāgotas HTTP galvenes norādīšana, lai tās darbotos.</string>
|
||||
<string id="SettingsUserHttpHeaderName">Lietotāja norādītā HTTP galvene: Nosaukums</string>
|
||||
<string id="SettingsUserHttpHeaderValue">Lietotāja norādītā HTTP galvene: Vērtība</string>
|
||||
<string id="SettingsClearWebhookId">Atkārtoti savienoties ar Home Assistant (notīrīt Webhook ID,
|
||||
skatīt problēmu novēršanas ceļvedi).</string>
|
||||
<string id="SettingsWebhookId">(Tikai lasīšanai) Webhook ID, ko ierīce izveidoja fona pakalpojumu
|
||||
atjauninājumiem. Tas var būt nepieciešams atkļūdošanai.</string>
|
||||
</strings>
|
||||
|
@@ -9,64 +9,91 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Lithuanian
|
||||
Sukurta Google Translate iš anglų kalbos
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Lithuanian
|
||||
Sugeneruota naudojant „Google Translate“ ir „gemini-2.5-flash“ iš anglų į lietuvių kalbą
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">API skambučiai per greiti. Sulėtinkite prašymų vykdymą.</string>
|
||||
<string id="ApiUrlNotFound">URL nerastas. Galima API URL klaida nustatymuose.</string>
|
||||
<string id="ApiFlood">API užklausos per dažnos. Prašome sulėtinti užklausas.</string>
|
||||
<string id="ApiUrlNotFound">URL nerastas. Potenciali API URL klaida nustatymuose.</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">Galima</string>
|
||||
<string id="Available" scope="glance">Galimas</string>
|
||||
<string id="Cached" scope="glance">Talpykloje</string>
|
||||
<string id="Checking" scope="glance">Tikrinama...</string>
|
||||
<string id="ConfigUrlNotFound">URL nerastas. Galima konfigūracijos URL klaida nustatymuose.</string>
|
||||
<string id="Confirm">Žinoma?</string>
|
||||
<string id="Empty">Tuščia</string>
|
||||
<string id="Checking" scope="glance">Tikrinimas ...</string>
|
||||
<string id="ConfigUrlNotFound">URL nerastas. Potenciali konfigūracijos URL klaida nustatymuose.</string>
|
||||
<string id="Confirm">Patvirtinti?</string>
|
||||
<string id="Empty">Tuščias</string>
|
||||
<string id="Executed" scope="glance">Patvirtinta</string>
|
||||
<string id="GlanceMenu" scope="glance">Meniu</string>
|
||||
<string id="Memory" scope="glance">Atmintis</string>
|
||||
<string id="NoAPIKey" scope="glance">Programos nustatymuose nėra API rakto.</string>
|
||||
<string id="NoApiUrl" scope="glance">Programos nustatymuose nėra API URL.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Programos nustatymuose nėra konfigūracijos URL.</string>
|
||||
<string id="MenuUpdated">Meniu atnaujintas, paleiskite iš naujo.</string>
|
||||
<string id="MenuCheckDisabled">Meniu atnaujinimai išjungti.</string>
|
||||
<string id="NoAPIKey" scope="glance">Nėra API rakto programos nustatymuose.</string>
|
||||
<string id="NoApiUrl" scope="glance">Nėra API URL programos nustatymuose.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Nėra konfigūracijos URL programos nustatymuose.</string>
|
||||
<string id="NoInternet">Nėra interneto ryšio.</string>
|
||||
<string id="NoJson">Joks JSON negrąžintas iš HTTP užklausos.</string>
|
||||
<string id="NoJson">HTTP užklausa negrąžino JSON.</string>
|
||||
<string id="NoPhone" scope="glance">Nėra telefono ryšio.</string>
|
||||
<string id="NoResponse">Neatsako, patikrinkite interneto ryšį</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">Nėra telefono ryšio, nėra meniu talpykloje.</string>
|
||||
<string id="NoResponse">Jokio atsakymo, patikrinkite interneto ryšį</string>
|
||||
<string id="TimedOut">Užklausos laikas baigėsi</string>
|
||||
<string id="PinInputLocked">PIN įvestis užrakinta</string>
|
||||
<string id="PotentialError">Galima klaida</string>
|
||||
<string id="Seconds">sekundžių</string>
|
||||
<string id="Seconds">sekundės</string>
|
||||
<string id="TemplateError">Šablono klaida</string>
|
||||
<string id="TrailingSlashErr">API URL pabaigoje negali būti pasvirojo brūkšnio „/“.</string>
|
||||
<string id="TrailingSlashErr">API URL negali turėti pasvirojo brūkšnio '/' gale.</string>
|
||||
<string id="Unavailable" scope="glance">Nepasiekiamas</string>
|
||||
<string id="Unconfigured" scope="glance">Nesukonfigūruotas</string>
|
||||
<string id="UnhandledHttpErr">HTTP užklausa grąžino klaidos kodą =</string>
|
||||
<string id="WebhookFailed">Nepavyko užregistruoti Webhook</string>
|
||||
<string id="WrongPin">Neteisingas PIN kodas</string>
|
||||
<!-- Nustatymų GUI eilutės turi būti tokia tvarka, kokia jos naudojamos. -->
|
||||
<string id="SettingsSelect">Pasirinkite...</string>
|
||||
<string id="SettingsApiKey">API raktas, skirtas „HomeAssistant“.</string>
|
||||
<string id="Unconfigured" scope="glance">Nekonfigūruotas</string>
|
||||
<string id="UnhandledHttpErr">HTTP užklausa grąžino klaidos kodą = </string>
|
||||
<string id="WebhookFailed">Nepavyko užregistruoti „Webhook“</string>
|
||||
<string id="WrongPin">Neteisingas PIN</string>
|
||||
<string id="WifiLteNotAvailable">„Wi-Fi“ arba LTE nepasiekiamas.</string>
|
||||
<string id="WifiLtePrompt">Vykdyti per „Wi-Fi/LTE“?</string>
|
||||
<string id="WifiLteExecutionTitle">Siunčiama į Home Assistant.</string>
|
||||
<string id="WifiLteExecutionDataError">Duomenys negauti.</string>
|
||||
<!--Nustatymų
|
||||
GUI eilutės turėtų būti pateikiamos tokia tvarka, kokia jos naudojamos.-->
|
||||
<string id="SettingsSelect">Pasirinkite ...</string>
|
||||
<string id="SettingsApiKey">API raktas, skirtas Home Assistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">Ilgalaikis prieigos raktas.</string>
|
||||
<string id="SettingsApiUrl">„HomeAssistant“ API URL.</string>
|
||||
<string id="SettingsConfigUrl">Meniu konfigūravimo URL (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Ar programa turėtų talpykloje išsaugoti meniu konfigūraciją?</string>
|
||||
<string id="SettingsApiUrl">Home Assistant API URL.</string>
|
||||
<string id="SettingsConfigUrl">URL meniu konfigūracijai (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Ar programa turėtų talpinti meniu konfigūraciją?</string>
|
||||
<string id="SettingsClearCache">Ar programa turėtų išvalyti esamą talpyklą kitą kartą paleidus?</string>
|
||||
<string id="SettingsVibration">Ar programa turėtų teikti grįžtamąjį ryšį per vibraciją?</string>
|
||||
<string id="SettingsAppTimeout">Skirtasis laikas sekundėmis. Po šio neveiklumo laikotarpio išeikite iš programos, kad taupytumėte įrenginio akumuliatorių.</string>
|
||||
<string id="SettingsPollDelay">Papildoma apklausos delsa (sekundėmis). Prideda delsą tarp visų meniu elementų būsenos atnaujinimo.</string>
|
||||
<string id="SettingsConfirmTimeout">Praėjus šiam laikui (sekundėmis), veiksmo patvirtinimo dialogo langas automatiškai uždaromas ir veiksmas atšaukiamas. Nustatykite 0, kad išjungtumėte skirtąjį laiką.</string>
|
||||
<string id="SettingsPin">4 skaitmenų PIN kodas, naudojamas visiems veiksmams, kuriuos reikia patvirtinti (0000-9999).</string>
|
||||
<string id="SettingsPinError">Programos nustatymuose sukonfigūruokite galiojantį 4 skaitmenų skaitmeninį PIN kodą nuo 0000 iki 9999.</string>
|
||||
<string id="SettingsTextAlign">Kairysis (išjungtas) arba dešinysis (įjungtas) meniu lygiavimas.</string>
|
||||
<string id="LeftToRight">Iš kairės į dešinę</string>
|
||||
<string id="RightToLeft">Iš dešinės į kairę</string>
|
||||
<string id="SettingsWidgetStart">(Tik valdikliui) Automatiškai paleiskite programą iš valdiklio, nelaukdami, kol bus palietus.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Įgalinkite foninę paslaugą, kad į „Home Assistant“ būtų išsiųsti įrenginio akumuliatoriaus lygio, vietos ir (jei palaikoma) veiklos duomenys.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Atnaujinimo dažnis (minutėmis), kuriuo foninė paslauga turėtų pakartoti duomenų siuntimą.</string>
|
||||
<string id="WebhookId">(Tik skaitoma) Įrenginio sukurtas „Webhook“ ID, skirtas foninėms paslaugoms atnaujinti. Jums gali prireikti derinimo.</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">Tikrinti, ar yra meniu atnaujinimų paleidus programą? Pastaba: Meniu talpinimas turi būti įjungtas. Šis nustatymas gali sukelti programos strigimą senesniuose įrenginiuose, turinčiuose mažiau atminties.</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">Įgalinti komandų vykdymą per „Wi-Fi“/LTE.</string>
|
||||
<string id="SettingsVibration">Ar programa turėtų pateikti grįžtamąjį ryšį per vibracijas?</string>
|
||||
<string id="SettingsAppTimeout">Išjungimo laikas (sekundėmis). Programa išjungiama po šio
|
||||
neveiklumo laikotarpio, siekiant taupyti įrenginio bateriją.</string>
|
||||
<string id="SettingsPollDelay">Papildomas atnaujinimo vėlavimas (sekundėmis). Prideda vėlavimą
|
||||
tarp visų meniu elementų būsenos atnaujinimų.</string>
|
||||
<string id="SettingsConfirmTimeout">Po šio laiko (sekundėmis) veiksmo patvirtinimo dialogas
|
||||
automatiškai uždaromas ir veiksmas atšaukiamas. Nustatykite 0, kad išjungtumėte šį laiko limitą.</string>
|
||||
<string id="SettingsPin">4 skaitmenų PIN kodas, naudojamas visiems veiksmams, kuriems jo reikia
|
||||
(0000–9999).</string>
|
||||
<string id="SettingsPinError">Programos nustatymuose prašome sukonfigūruoti galiojantį 4 skaitmenų
|
||||
PIN kodą (nuo 0000 iki 9999).</string>
|
||||
<string id="SettingsTextAlign">Meniu lygiavimas: kairė (išjungta) arba dešinė (įjungta).</string>
|
||||
<string id="SettingsLeftToRight">Iš kairės į dešinę</string>
|
||||
<string id="SettingsRightToLeft">Iš dešinės į kairę</string>
|
||||
<string id="SettingsWidgetStart">(Tik valdiklis) Automatiškai paleiskite programą iš valdiklio,
|
||||
nelaukiant palietimo.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Įgalinti fono paslaugą siųsti įrenginio baterijos lygį,
|
||||
vietą ir (jei palaikoma) veiklos duomenis į Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Atnaujinimo dažnis (minutėmis), kuriuo fono paslauga
|
||||
turėtų pakartotinai siųsti duomenis.</string>
|
||||
<string id="SettingsUserHttpHeader">Vartotojo pateikta HTTP antraštė</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">Kai kuriems Home Assistant diegimams reikia
|
||||
nurodyti pasirinktinę HTTP antraštę, kad jie veiktų.</string>
|
||||
<string id="SettingsUserHttpHeaderName">Vartotojo pateikta HTTP antraštė: Pavadinimas</string>
|
||||
<string id="SettingsUserHttpHeaderValue">Vartotojo pateikta HTTP antraštė: Reikšmė</string>
|
||||
<string id="SettingsClearWebhookId">Prisijungti iš naujo prie Home Assistant (išvalyti Webhook ID,
|
||||
žr. Trikčių šalinimo vadovą).</string>
|
||||
<string id="SettingsWebhookId">(Tik skaitymui) Webhook ID, kurį įrenginys sukūrė fono paslaugų
|
||||
atnaujinimams. Jo gali prireikti derinant.</string>
|
||||
</strings>
|
||||
|
@@ -9,64 +9,93 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Norwegian
|
||||
Generert av Google Translate fra engelsk
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Norwegian
|
||||
Generert av Google Translate og gemini-2.5-flash fra engelsk til norsk
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">API-kall for raske. Vennligst senke forespørslene dine.</string>
|
||||
<string id="ApiUrlNotFound">Finner ikke URL. Potensiell API URL-feil i innstillingene.</string>
|
||||
<string id="ApiFlood">API-kall er for hyppige. Vennligst reduser antall forespørsler.</string>
|
||||
<string id="ApiUrlNotFound">URL ikke funnet. Potensiell feil med API-URL i innstillingene.</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">Tilgjengelig</string>
|
||||
<string id="Cached" scope="glance">Bufret</string>
|
||||
<string id="Cached" scope="glance">Hurtigbufret</string>
|
||||
<string id="Checking" scope="glance">Sjekker...</string>
|
||||
<string id="ConfigUrlNotFound">Finner ikke URL. Potensiell konfigurasjons-URL-feil i innstillingene.</string>
|
||||
<string id="ConfigUrlNotFound">URL ikke funnet. Potensiell feil med konfigurasjons-URL i
|
||||
innstillingene.</string>
|
||||
<string id="Confirm">Sikker?</string>
|
||||
<string id="Empty">Tømme</string>
|
||||
<string id="Empty">Tom</string>
|
||||
<string id="Executed" scope="glance">Bekreftet</string>
|
||||
<string id="GlanceMenu" scope="glance">Meny</string>
|
||||
<string id="Memory" scope="glance">Hukommelse</string>
|
||||
<string id="MenuUpdated">Meny oppdatert, start på nytt.</string>
|
||||
<string id="MenuCheckDisabled">Menyoppdateringer deaktivert.</string>
|
||||
<string id="NoAPIKey" scope="glance">Ingen API-nøkkel i applikasjonsinnstillingene.</string>
|
||||
<string id="NoApiUrl" scope="glance">Ingen API-URL i applikasjonsinnstillingene.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Ingen konfigurasjons-URL i applikasjonsinnstillingene.</string>
|
||||
<string id="NoInternet">Ingen Internett-tilkobling.</string>
|
||||
<string id="NoInternet">Ingen internettforbindelse.</string>
|
||||
<string id="NoJson">Ingen JSON returnert fra HTTP-forespørsel.</string>
|
||||
<string id="NoPhone" scope="glance">Ingen telefonforbindelse.</string>
|
||||
<string id="NoResponse">Ingen svar, sjekk Internett-tilkoblingen</string>
|
||||
<string id="PinInputLocked">PIN-inntasting låst for</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">Ingen telefonforbindelse, ingen hurtigbufret meny.</string>
|
||||
<string id="NoResponse">Ingen svar, sjekk internettforbindelsen.</string>
|
||||
<string id="TimedOut">Forespørselen utløp</string>
|
||||
<string id="PinInputLocked">PIN-inndata låst for</string>
|
||||
<string id="PotentialError">Potensiell feil</string>
|
||||
<string id="Seconds">sekunder</string>
|
||||
<string id="TemplateError">Malfeil</string>
|
||||
<string id="TrailingSlashErr">API URL må ikke ha en etterfølgende skråstrek '/'.</string>
|
||||
<string id="TrailingSlashErr">API-URL må ikke ha en etterfølgende skråstrek '/'.</string>
|
||||
<string id="Unavailable" scope="glance">Utilgjengelig</string>
|
||||
<string id="Unconfigured" scope="glance">Ukonfigurert</string>
|
||||
<string id="UnhandledHttpErr">HTTP-forespørsel returnerte feilkode =</string>
|
||||
<string id="WebhookFailed">Kunne ikke registrere Webhook</string>
|
||||
<string id="WrongPin">Feil PIN-kode</string>
|
||||
<!-- For innstillingene GUI, bør strenger være i den rekkefølgen de brukes. -->
|
||||
<string id="SettingsSelect">Velge...</string>
|
||||
<string id="WebhookFailed">Kunne ikke registrere webhook</string>
|
||||
<string id="WrongPin">Feil pinne</string>
|
||||
<string id="WifiLteNotAvailable">Ingen Wi-Fi eller LTE tilgjengelig</string>
|
||||
<string id="WifiLtePrompt">Utføre via Wi-Fi/LTE?</string>
|
||||
<string id="WifiLteExecutionTitle">Sender til Home Assistant.</string>
|
||||
<string id="WifiLteExecutionDataError">Ingen data mottatt.</string>
|
||||
<!-- For innstillinger GUI skal strengene være i den rekkefølgen de brukes. -->
|
||||
<string id="SettingsSelect">Velg...</string>
|
||||
<string id="SettingsApiKey">API-nøkkel for HomeAssistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">Langlevd tilgangstoken.</string>
|
||||
<string id="SettingsApiKeyPrompt">Langvarig tilgangstoken.</string>
|
||||
<string id="SettingsApiUrl">URL for HomeAssistant API.</string>
|
||||
<string id="SettingsConfigUrl">URL for menykonfigurasjon (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Skal applikasjonen bufre menykonfigurasjonen?</string>
|
||||
<string id="SettingsClearCache">Bør applikasjonen tømme den eksisterende cachen neste gang den startes?</string>
|
||||
<string id="SettingsVibration">Skal applikasjonen gi tilbakemelding via vibrasjoner?</string>
|
||||
<string id="SettingsAppTimeout">Tidsavbrudd i sekunder. Avslutt applikasjonen etter denne perioden med inaktivitet for å spare enhetens batteri.</string>
|
||||
<string id="SettingsPollDelay">Ytterligere avstemningsforsinkelse (i sekunder). Legger til en forsinkelse mellom statusoppdatering av alle menyelementer.</string>
|
||||
<string id="SettingsConfirmTimeout">Etter denne tiden (i sekunder), lukkes en bekreftelsesdialog for en handling automatisk og handlingen avbrytes. Sett til 0 for å deaktivere tidsavbruddet.</string>
|
||||
<string id="SettingsPin">4-sifret PIN-kode som skal brukes for alle handlinger som krever bekreftelse (0000-9999).</string>
|
||||
<string id="SettingsPinError">Konfigurer en gyldig 4-sifret numerisk PIN-kode mellom 0000 og 9999 i applikasjonsinnstillingene.</string>
|
||||
<string id="SettingsTextAlign">Venstre (av) eller Høyre (på) Menyjustering.</string>
|
||||
<string id="LeftToRight">Venstre til høyre</string>
|
||||
<string id="RightToLeft">Høyre til venstre</string>
|
||||
<string id="SettingsWidgetStart">(Kun widget) Start applikasjonen automatisk fra widgeten uten å vente på et trykk.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Aktiver bakgrunnstjenesten for å sende enhetens batterinivå, plassering og (hvis støttet) aktivitetsdata til Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Oppdateringshastigheten (i minutter) som bakgrunnstjenesten skal gjenta sending av data med.</string>
|
||||
<string id="WebhookId">(Skrivebeskyttet) Webhook-IDen opprettet av enheten for bakgrunnstjenesteoppdateringer. Du kan kreve dette for feilsøking.</string>
|
||||
<string id="SettingsCacheConfig">Bør applikasjonen bufre menykonfigurasjonen?</string>
|
||||
<string id="SettingsClearCache">Bør applikasjonen fjerne den eksisterende cachen neste gang den
|
||||
startes?</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">Sjekk etter menyoppdateringer ved applikasjonsstart? Merk: Menybufring må være aktivert. Denne innstillingen kan føre til at eldre enheter med mindre minne krasjer.</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">Aktiver utføring av kommandoer via Wi-Fi/LTE.</string>
|
||||
<string id="SettingsVibration">Bør applikasjonen gi tilbakemelding via vibrasjoner?</string>
|
||||
<string id="SettingsAppTimeout">Tidsavbrudd i sekunder. Avslutt applikasjonen etter denne perioden
|
||||
med inaktivitet for å spare enhetens batteri.</string>
|
||||
<string id="SettingsPollDelay">Ytterligere forsinkelse for avstemming (i sekunder). Legger til en
|
||||
forsinkelse mellom statusoppdateringene for alle menyelementer.</string>
|
||||
<string id="SettingsConfirmTimeout">Etter denne tiden (i sekunder) blir en bekreftelsesdialog for
|
||||
en handling automatisk lukket og handlingen blir kansellert. Sett til 0 for å deaktivere
|
||||
tidsavbruddet.</string>
|
||||
<string id="SettingsPin">4-sifret PIN-kode som skal brukes for alle handlinger som krever det
|
||||
(0000-9999).</string>
|
||||
<string id="SettingsPinError">Konfigurer en gyldig 4-sifret numerisk PIN-kode mellom 0000 og 9999
|
||||
i applikasjonsinnstillingene.</string>
|
||||
<string id="SettingsTextAlign">Venstre (av) eller høyre (på) menyjustering.</string>
|
||||
<string id="SettingsLeftToRight">Fra venstre til høyre</string>
|
||||
<string id="SettingsRightToLeft">Høyre til venstre</string>
|
||||
<string id="SettingsWidgetStart">(Bare widget) Start automatisk applikasjonen fra widgeten uten å
|
||||
vente på et trykk.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Aktiver bakgrunnstjenesten til å sende enhetens
|
||||
batterinivå, posisjon og (hvis støttet) aktivitetsdata til Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Oppdateringsfrekvensen (i minutter) som
|
||||
bakgrunnstjenesten skal gjenta sending av data.</string>
|
||||
<string id="SettingsUserHttpHeader">Brukerdefinert HTTP-header</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">Noen Home Assistant-installasjoner krever
|
||||
spesifikasjon av en tilpasset HTTP-header for å fungere.</string>
|
||||
<string id="SettingsUserHttpHeaderName">Brukerdefinert HTTP-header: Navn</string>
|
||||
<string id="SettingsUserHttpHeaderValue">Brukerdefinert HTTP-header: Verdi</string>
|
||||
<string id="SettingsClearWebhookId">Koble til Home Assistant på nytt (tøm Webhook-ID, se
|
||||
feilsøkingsveiledningen).</string>
|
||||
<string id="SettingsWebhookId">(Bare les) Webhook-ID-en som er opprettet av enheten for
|
||||
oppdateringer av bakgrunnstjenester. Du kan trenge dette for feilsøking.</string>
|
||||
</strings>
|
||||
|
@@ -9,64 +9,96 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Polish
|
||||
Wygenerowano przez Google Tłumacz z języka angielskiego
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Polish
|
||||
Wygenerowano przez Tłumacza Google i gemini-2.5-flash z języka angielskiego na polski
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">Wywołania API są zbyt szybkie. Proszę zwolnić żądania.</string>
|
||||
<string id="ApiUrlNotFound">Nie znaleziono adresu URL. Potencjalny błąd adresu URL API w ustawieniach.</string>
|
||||
<string id="ApiFlood">Zbyt szybkie wywołania API. Proszę spowolnić żądania.</string>
|
||||
<string id="ApiUrlNotFound">Nie znaleziono adresu URL. Potencjalny błąd adresu URL API w
|
||||
ustawieniach.</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">Dostępny</string>
|
||||
<string id="Cached" scope="glance">Zapisane w pamięci podręcznej</string>
|
||||
<string id="Checking" scope="glance">Kontrola...</string>
|
||||
<string id="ConfigUrlNotFound">Nie znaleziono adresu URL. Potencjalny błąd adresu URL konfiguracji w ustawieniach.</string>
|
||||
<string id="Confirm">Jasne?</string>
|
||||
<string id="Cached" scope="glance">Buforowany</string>
|
||||
<string id="Checking" scope="glance">Sprawdzanie...</string>
|
||||
<string id="ConfigUrlNotFound">Nie znaleziono adresu URL. Potencjalny błąd adresu URL konfiguracji
|
||||
w ustawieniach.</string>
|
||||
<string id="Confirm">Na pewno?</string>
|
||||
<string id="Empty">Pusty</string>
|
||||
<string id="Executed" scope="glance">Potwierdzony</string>
|
||||
<string id="GlanceMenu" scope="glance">Menu</string>
|
||||
<string id="Memory" scope="glance">Pamięć</string>
|
||||
<string id="MenuUpdated">Zaktualizowano menu, uruchom ponownie.</string>
|
||||
<string id="MenuCheckDisabled">Zakładania menu wyłączone.</string>
|
||||
<string id="NoAPIKey" scope="glance">Brak klucza API w ustawieniach aplikacji.</string>
|
||||
<string id="NoApiUrl" scope="glance">Brak adresu URL API w ustawieniach aplikacji.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Brak adresu URL konfiguracji w ustawieniach aplikacji.</string>
|
||||
<string id="NoInternet">Brak połączenia z Internetem.</string>
|
||||
<string id="NoJson">Żądanie HTTP nie zwróciło żadnego JSON-a.</string>
|
||||
<string id="NoInternet">Brak połączenia internetowego.</string>
|
||||
<string id="NoJson">Żądanie HTTP nie zwróciło danych JSON.</string>
|
||||
<string id="NoPhone" scope="glance">Brak połączenia telefonicznego.</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">Brak połączenia telefonicznego, brak buforowanego menu.</string>
|
||||
<string id="NoResponse">Brak odpowiedzi, sprawdź połączenie internetowe</string>
|
||||
<string id="PinInputLocked">Wprowadzanie kodu PIN zablokowane</string>
|
||||
<string id="TimedOut">Żądanie przekroczyło limit czasu</string>
|
||||
<string id="PinInputLocked">Wprowadzanie PIN-u zablokowane na</string>
|
||||
<string id="PotentialError">Potencjalny błąd</string>
|
||||
<string id="Seconds">towary drugiej jakości</string>
|
||||
<string id="Seconds">sekund</string>
|
||||
<string id="TemplateError">Błąd szablonu</string>
|
||||
<string id="TrailingSlashErr">Adres URL interfejsu API nie może mieć ukośnika „/”.</string>
|
||||
<string id="Unavailable" scope="glance">Nie płynny</string>
|
||||
<string id="Unconfigured" scope="glance">Nieskonfigurowany</string>
|
||||
<string id="UnhandledHttpErr">Żądanie HTTP zwróciło kod błędu =</string>
|
||||
<string id="WebhookFailed">Nie udało się zarejestrować Webhook</string>
|
||||
<string id="WrongPin">Zły PIN</string>
|
||||
<!-- W przypadku interfejsu graficznego ustawień ciągi znaków powinny być w kolejności, w jakiej są używane. -->
|
||||
<string id="SettingsSelect">Wybierać...</string>
|
||||
<string id="SettingsApiKey">Klucz API dla HomeAssistant.</string>
|
||||
<string id="TrailingSlashErr">Adres URL API nie może zawierać końcowego ukośnika '/'.</string>
|
||||
<string id="Unavailable" scope="glance">Niedostępny</string>
|
||||
<string id="Unconfigured" scope="glance">Niekonfigurowany</string>
|
||||
<string id="UnhandledHttpErr">Żądanie HTTP zwróciło kod błędu = </string>
|
||||
<string id="WebhookFailed">Nie udało się zarejestrować webhooka</string>
|
||||
<string id="WrongPin">Nieprawidłowy PIN</string>
|
||||
<string id="WifiLteNotAvailable">Brak dostępnego Wi-Fi lub LTE</string>
|
||||
<string id="WifiLtePrompt">Wykonać przez Wi-Fi/LTE?</string>
|
||||
<string id="WifiLteExecutionTitle">Wysyłanie do Home Assistant.</string>
|
||||
<string id="WifiLteExecutionDataError">Brak danych.</string>
|
||||
<!-- W przypadku ustawień GUI, teksty powinny być w kolejności ich użycia. -->
|
||||
<string id="SettingsSelect">Wybierz...</string>
|
||||
<string id="SettingsApiKey">Klucz API dla Home Assistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">Długoterminowy token dostępu.</string>
|
||||
<string id="SettingsApiUrl">Adres URL dla API HomeAssistant.</string>
|
||||
<string id="SettingsConfigUrl">Adres URL do konfiguracji menu (JSON).</string>
|
||||
<string id="SettingsApiUrl">Adres URL API dla Home Assistant.</string>
|
||||
<string id="SettingsConfigUrl">Adres URL konfiguracji menu (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Czy aplikacja powinna buforować konfigurację menu?</string>
|
||||
<string id="SettingsClearCache">Czy aplikacja powinna wyczyścić pamięć podręczną przy następnym uruchomieniu?</string>
|
||||
<string id="SettingsVibration">Czy aplikacja powinna przekazywać informacje zwrotne za pomocą wibracji?</string>
|
||||
<string id="SettingsAppTimeout">Limit czasu w sekundach. Wyjdź z aplikacji po tym okresie bezczynności, aby oszczędzać baterię urządzenia.</string>
|
||||
<string id="SettingsPollDelay">Dodatkowe opóźnienie sondowania (w sekundach). Dodaje opóźnienie między aktualizacją statusu wszystkich elementów menu.</string>
|
||||
<string id="SettingsConfirmTimeout">Po tym czasie (w sekundach) okno dialogowe potwierdzenia akcji jest automatycznie zamykane, a akcja jest anulowana. Ustaw na 0, aby wyłączyć limit czasu.</string>
|
||||
<string id="SettingsPin">4-cyfrowy kod PIN, który należy stosować do wszystkich czynności wymagających potwierdzenia (0000-9999).</string>
|
||||
<string id="SettingsPinError">Proszę skonfigurować prawidłowy 4-cyfrowy kod PIN z zakresu od 0000 do 9999 w ustawieniach aplikacji.</string>
|
||||
<string id="SettingsTextAlign">Wyrównanie menu do lewej (wyłączone) lub prawej (włączone).</string>
|
||||
<string id="LeftToRight">Od lewej do prawej</string>
|
||||
<string id="RightToLeft">Od prawej do lewej</string>
|
||||
<string id="SettingsWidgetStart">(Tylko widżet) Automatyczne uruchamianie aplikacji z widżetu bez czekania na dotknięcie.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Włącz usługę działającą w tle, aby wysyłać do Home Assistant dane dotyczące poziomu naładowania baterii urządzenia, jego lokalizacji i aktywności (jeśli jest obsługiwana).</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Częstotliwość odświeżania (w minutach), z jaką usługa działająca w tle powinna powtarzać wysyłanie danych.</string>
|
||||
<string id="WebhookId">(Tylko do odczytu) Identyfikator webhooka utworzony przez urządzenie do aktualizacji usług w tle. Może być potrzebny do debugowania.</string>
|
||||
<string id="SettingsClearCache">Czy aplikacja powinna wyczyścić istniejącą pamięć podręczną
|
||||
następnym razem, gdy zostanie uruchomiona?</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">Sprawdź aktualizacje menu na temat uruchomienia
|
||||
aplikacji? Uwaga: Buforowanie menu musi być włączone. To ustawienie może spowodować awarię
|
||||
starszych urządzeń o mniejszej pamięci.</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">Włącz wykonywanie poleceń przez Wi-Fi/LTE.</string>
|
||||
<string id="SettingsVibration">Czy aplikacja powinna przekazywać informacje zwrotne za
|
||||
pośrednictwem wibracji?</string>
|
||||
<string id="SettingsAppTimeout">Limit czasu w sekundach. Wyjdź z aplikacji po tym okresie
|
||||
bezczynności, aby oszczędzić baterię urządzenia.</string>
|
||||
<string id="SettingsPollDelay">Dodatkowe opóźnienie odpytywania (w sekundach). Dodaje opóźnienie
|
||||
między aktualizacją statusu wszystkich elementów menu.</string>
|
||||
<string id="SettingsConfirmTimeout">Po tym czasie (w sekundach) okno dialogowe potwierdzenia akcji
|
||||
jest automatycznie zamknięte, a akcja jest anulowana. Ustaw na 0, aby wyłączyć limit czasu.</string>
|
||||
<string id="SettingsPin">4-cyfrowy kod PIN używany do wszystkich działań, które go wymagają
|
||||
(0000-9999).</string>
|
||||
<string id="SettingsPinError">W ustawieniach aplikacji skonfiguruj prawidłowy 4-cyfrowy kod PIN w
|
||||
zakresie od 0000 do 9999.</string>
|
||||
<string id="SettingsTextAlign">Wyrównanie menu: lewe (wył.) lub prawe (wł.).</string>
|
||||
<string id="SettingsLeftToRight">Od lewej do prawej</string>
|
||||
<string id="SettingsRightToLeft">Od prawej do lewej</string>
|
||||
<string id="SettingsWidgetStart">(Tylko widżet) Automatyczne uruchamianie aplikacji z widżetu bez
|
||||
oczekiwania na dotknięcie.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Włącz usługę w tle, aby wysyłać poziom baterii urządzenia,
|
||||
lokalizację i (jeśli obsługiwane) dane o aktywności do Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Częstotliwość odświeżania (w minutach), z jaką usługa
|
||||
w tle powinna wysyłać dane.</string>
|
||||
<string id="SettingsUserHttpHeader">Dostarczony przez użytkownika nagłówek HTTP</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">Niektóre instalacje Home Assistant wymagają
|
||||
określenia niestandardowego nagłówka HTTP w celu prawidłowego działania.</string>
|
||||
<string id="SettingsUserHttpHeaderName">Dostarczony przez użytkownika nagłówek HTTP: Nazwa</string>
|
||||
<string id="SettingsUserHttpHeaderValue">Dostarczony przez użytkownika nagłówek HTTP: Wartość</string>
|
||||
<string id="SettingsClearWebhookId">Połącz ponownie z Home Assistant (wyczyść ID webhooka, patrz
|
||||
przewodnik rozwiązywania problemów).</string>
|
||||
<string id="SettingsWebhookId">(Tylko do odczytu) Identyfikator webhooka utworzony przez
|
||||
urządzenie dla aktualizacji usługi w tle. Może być potrzebny do debugowania.</string>
|
||||
</strings>
|
@@ -9,64 +9,95 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Portuguese
|
||||
Gerado pelo Google Tradutor do Inglês
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Portuguese
|
||||
Gerado por Google Translate e gemini-2.5-flash do inglês para o português
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">Chamadas de API muito rápidas. Por favor, diminua a velocidade de suas solicitações.</string>
|
||||
<string id="ApiUrlNotFound">URL não encontrada. Possível erro de URL de API nas configurações.</string>
|
||||
<string id="ApiFlood">Chamadas de API muito rápidas. Por favor, diminua a frequência das suas
|
||||
solicitações.</string>
|
||||
<string id="ApiUrlNotFound">URL não encontrado. Possível erro de URL da API nas configurações.</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">Disponível</string>
|
||||
<string id="Cached" scope="glance">Em cache</string>
|
||||
<string id="Checking" scope="glance">Verificando...</string>
|
||||
<string id="ConfigUrlNotFound">URL não encontrada. Possível erro de URL de configuração nas configurações.</string>
|
||||
<string id="Confirm">Claro?</string>
|
||||
<string id="ConfigUrlNotFound">URL não encontrado. Possível erro de URL de configuração nas
|
||||
configurações.</string>
|
||||
<string id="Confirm">Confirmar?</string>
|
||||
<string id="Empty">Vazio</string>
|
||||
<string id="Executed" scope="glance">Confirmado</string>
|
||||
<string id="Executed" scope="glance">Executado</string>
|
||||
<string id="GlanceMenu" scope="glance">Menu</string>
|
||||
<string id="Memory" scope="glance">Memória</string>
|
||||
<string id="NoAPIKey" scope="glance">Nenhuma chave de API nas configurações do aplicativo.</string>
|
||||
<string id="NoApiUrl" scope="glance">Nenhuma URL de API nas configurações do aplicativo.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Nenhuma URL de configuração nas configurações do aplicativo.</string>
|
||||
<string id="MenuUpdated">Menu atualizado, reinicie.</string>
|
||||
<string id="MenuCheckDisabled">Atualizações de menu desativadas.</string>
|
||||
<string id="NoAPIKey" scope="glance">Nenhuma chave da API nas configurações do aplicativo.</string>
|
||||
<string id="NoApiUrl" scope="glance">Nenhum URL da API nas configurações do aplicativo.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Nenhum URL de configuração nas configurações do
|
||||
aplicativo.</string>
|
||||
<string id="NoInternet">Sem conexão com a Internet.</string>
|
||||
<string id="NoJson">Nenhum JSON foi retornado da solicitação HTTP.</string>
|
||||
<string id="NoJson">Nenhum JSON retornado da solicitação HTTP.</string>
|
||||
<string id="NoPhone" scope="glance">Sem conexão telefônica.</string>
|
||||
<string id="NoResponse">Nenhuma resposta, verifique a conexão com a Internet</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">Sem conexão com o telefone, sem menu em cache.</string>
|
||||
<string id="NoResponse">Sem resposta, verifique a conexão com a Internet</string>
|
||||
<string id="TimedOut">Solicitação excedeu o tempo limite</string>
|
||||
<string id="PinInputLocked">Entrada de PIN bloqueada para</string>
|
||||
<string id="PotentialError">Erro potencial</string>
|
||||
<string id="Seconds">segundos</string>
|
||||
<string id="TemplateError">Erro de modelo</string>
|
||||
<string id="TrailingSlashErr">A URL da API não deve ter uma barra final '/'.</string>
|
||||
<string id="TrailingSlashErr">O URL da API não deve ter uma barra à direita '/'.</string>
|
||||
<string id="Unavailable" scope="glance">Indisponível</string>
|
||||
<string id="Unconfigured" scope="glance">Não configurado</string>
|
||||
<string id="UnhandledHttpErr">A solicitação HTTP retornou o código de erro =</string>
|
||||
<string id="WebhookFailed">Falha ao registrar o Webhook</string>
|
||||
<string id="UnhandledHttpErr">Solicitação HTTP retornou código de erro = </string>
|
||||
<string id="WebhookFailed">Falha ao registrar Webhook</string>
|
||||
<string id="WrongPin">PIN errado</string>
|
||||
<!-- Para a GUI de configurações, as strings devem estar na ordem em que são usadas. -->
|
||||
<string id="WifiLteNotAvailable">Sem Wi-Fi ou LTE disponível</string>
|
||||
<string id="WifiLtePrompt">Executar sobre Wi-Fi/LTE?</string>
|
||||
<string id="WifiLteExecutionTitle">Enviando para Home Assistant.</string>
|
||||
<string id="WifiLteExecutionDataError">Nenhum dado recebido.</string>
|
||||
<!-- Para a GUI das configurações, as strings devem estar na ordem em que são usadas. -->
|
||||
<string id="SettingsSelect">Selecione...</string>
|
||||
<string id="SettingsApiKey">Chave API para HomeAssistant.</string>
|
||||
<string id="SettingsApiKey">Chave da API para HomeAssistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">Token de acesso de longa duração.</string>
|
||||
<string id="SettingsApiUrl">URL para a API do HomeAssistant.</string>
|
||||
<string id="SettingsApiUrl">URL para API HomeAssistant.</string>
|
||||
<string id="SettingsConfigUrl">URL para configuração de menu (JSON).</string>
|
||||
<string id="SettingsCacheConfig">O aplicativo deve armazenar em cache a configuração do menu?</string>
|
||||
<string id="SettingsClearCache">O aplicativo deve limpar o cache existente na próxima vez que for iniciado?</string>
|
||||
<string id="SettingsClearCache">O aplicativo deve limpar o cache existente na próxima vez que for
|
||||
iniciado?</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">Verificar atualizações do menu ao iniciar o aplicativo? Nota: O cache do menu deve estar ativado. Esta configuração pode fazer com que dispositivos mais antigos com menos memória travem.</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">Ativar execução de comandos via Wi-Fi/LTE.</string>
|
||||
<string id="SettingsVibration">O aplicativo deve fornecer feedback por meio de vibrações?</string>
|
||||
<string id="SettingsAppTimeout">Tempo limite em segundos. Saia do aplicativo após esse período de inatividade para economizar a bateria do dispositivo.</string>
|
||||
<string id="SettingsPollDelay">Atraso adicional de pesquisa (em segundos). Adiciona um atraso entre a atualização de status de todos os itens do menu.</string>
|
||||
<string id="SettingsConfirmTimeout">Após esse tempo (em segundos), um diálogo de confirmação para uma ação é fechado automaticamente e a ação é cancelada. Defina como 0 para desabilitar o tempo limite.</string>
|
||||
<string id="SettingsPin">PIN de 4 dígitos a ser usado para todas as ações que exigem confirmação (0000-9999).</string>
|
||||
<string id="SettingsPinError">Configure um PIN numérico válido de 4 dígitos entre 0000 e 9999 nas configurações do aplicativo.</string>
|
||||
<string id="SettingsTextAlign">Alinhamento do menu à esquerda (desligado) ou à direita (ligado).</string>
|
||||
<string id="LeftToRight">Da esquerda para a direita</string>
|
||||
<string id="RightToLeft">Da direita para a esquerda</string>
|
||||
<string id="SettingsWidgetStart">(Somente widget) Inicie o aplicativo automaticamente a partir do widget sem esperar por um toque.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Habilite o serviço em segundo plano para enviar o nível da bateria do dispositivo, a localização e (se compatível) dados de atividade para o Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">A taxa de atualização (em minutos) na qual o serviço em segundo plano deve repetir o envio de dados.</string>
|
||||
<string id="WebhookId">(Somente leitura) O ID do Webhook criado pelo dispositivo para atualizações de serviço em segundo plano. Você pode precisar disso para depuração.</string>
|
||||
<string id="SettingsAppTimeout">Tempo limite em segundos. Saia do aplicativo após esse período de
|
||||
inatividade para economizar a bateria do dispositivo.</string>
|
||||
<string id="SettingsPollDelay">Atraso adicional da pesquisa (em segundos). Adiciona um atraso
|
||||
entre a atualização de status de todos os itens do menu.</string>
|
||||
<string id="SettingsConfirmTimeout">Após esse período (em segundos), uma caixa de diálogo de
|
||||
confirmação para uma ação é fechada automaticamente e a ação é cancelada. Defina como 0 para
|
||||
desativar o tempo limite.</string>
|
||||
<string id="SettingsPin">PIN de 4 dígitos a ser usado para todas as ações que o exigem
|
||||
(0000-9999).</string>
|
||||
<string id="SettingsPinError">Configure um PIN numérico de 4 dígitos válido entre 0000 e 9999 nas
|
||||
configurações do aplicativo.</string>
|
||||
<string id="SettingsTextAlign">Alinhamento do menu: Esquerda (desativado) ou Direita (ativado).</string>
|
||||
<string id="SettingsLeftToRight">Da esquerda para a direita</string>
|
||||
<string id="SettingsRightToLeft">Direita para a esquerda</string>
|
||||
<string id="SettingsWidgetStart">(Somente widget) Inicie automaticamente o aplicativo do widget
|
||||
sem esperar por um toque.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Ativar o serviço em segundo plano para enviar o nível da
|
||||
bateria do dispositivo, localização e (se suportado) dados de atividade para Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">A taxa de atualização (em minutos) na qual o serviço
|
||||
em segundo plano deve repetir o envio de dados.</string>
|
||||
<string id="SettingsUserHttpHeader">Cabeçalho HTTP fornecido pelo usuário</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">Algumas instalações do Home Assistant exigem a
|
||||
especificação de um cabeçalho HTTP personalizado para funcionar.</string>
|
||||
<string id="SettingsUserHttpHeaderName">Cabeçalho HTTP fornecido pelo usuário: Nome</string>
|
||||
<string id="SettingsUserHttpHeaderValue">Cabeçalho HTTP fornecido pelo usuário: Valor</string>
|
||||
<string id="SettingsClearWebhookId">Reconectar ao Home Assistant (limpar ID do Webhook, consulte o
|
||||
Guia de Solução de Problemas).</string>
|
||||
<string id="SettingsWebhookId">(Somente leitura) O ID do Webhook criado pelo dispositivo para
|
||||
atualizações do serviço em segundo plano. Pode ser necessário para depuração.</string>
|
||||
</strings>
|
||||
|
@@ -9,64 +9,94 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Romanian
|
||||
Generat de Google Translate din engleză
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Romanian
|
||||
Generat de Google Translate și gemini-2.5-flash din engleză în română
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">Apeluri API prea rapide. Vă rugăm să încetiniți cererile dvs.</string>
|
||||
<string id="ApiUrlNotFound">Adresa URL nu a fost găsită. Potențială eroare URL API în setări.</string>
|
||||
<string id="ApiFlood">Apeluri API prea rapide. Vă rugăm să încetiniți cererile.</string>
|
||||
<string id="ApiUrlNotFound">URL-ul nu a fost găsit. Eroare potențială a URL-ului API în setări.</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">Disponibil</string>
|
||||
<string id="Cached" scope="glance">În cache</string>
|
||||
<string id="Checking" scope="glance">Control...</string>
|
||||
<string id="ConfigUrlNotFound">Adresa URL nu a fost găsită. Potențială eroare URL de configurare în setări.</string>
|
||||
<string id="Checking" scope="glance">Se verifică...</string>
|
||||
<string id="ConfigUrlNotFound">URL-ul nu a fost găsit. Eroare potențială a URL-ului de configurare
|
||||
în setări.</string>
|
||||
<string id="Confirm">Sigur?</string>
|
||||
<string id="Empty">Gol</string>
|
||||
<string id="Executed" scope="glance">Confirmat</string>
|
||||
<string id="GlanceMenu" scope="glance">Meniu</string>
|
||||
<string id="Memory" scope="glance">Memorie</string>
|
||||
<string id="MenuUpdated">Meniu actualizat, reporniți.</string>
|
||||
<string id="MenuCheckDisabled">Actualizări meniu dezactivate.</string>
|
||||
<string id="NoAPIKey" scope="glance">Nicio cheie API în setările aplicației.</string>
|
||||
<string id="NoApiUrl" scope="glance">Nicio adresă URL API în setările aplicației.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Nicio adresă URL de configurare în setările aplicației.</string>
|
||||
<string id="NoInternet">Fără conexiune la internet.</string>
|
||||
<string id="NoJson">Niciun JSON nu a fost returnat de la solicitarea HTTP.</string>
|
||||
<string id="NoPhone" scope="glance">Fără conexiune telefonică.</string>
|
||||
<string id="NoResponse">Niciun răspuns, verificați conexiunea la internet</string>
|
||||
<string id="PinInputLocked">Introducerea PIN blocată pentru</string>
|
||||
<string id="NoApiUrl" scope="glance">Niciun URL API în setările aplicației.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Niciun URL de configurare în setările aplicației.</string>
|
||||
<string id="NoInternet">Nicio conexiune la internet.</string>
|
||||
<string id="NoJson">Niciun JSON nu a fost returnat de la cererea HTTP.</string>
|
||||
<string id="NoPhone" scope="glance">Nicio conexiune telefonică.</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">Nicio conexiune la telefon, niciun meniu în cache.</string>
|
||||
<string id="NoResponse">Niciun răspuns, verificați conexiunea la internet.</string>
|
||||
<string id="TimedOut">Cererea a expirat.</string>
|
||||
<string id="PinInputLocked">Introducerea PIN-ului blocată pentru</string>
|
||||
<string id="PotentialError">Eroare potențială</string>
|
||||
<string id="Seconds">secunde</string>
|
||||
<string id="TemplateError">Eroare de șablon</string>
|
||||
<string id="TrailingSlashErr">Adresa URL API nu trebuie să aibă o bară oblică finală „/”.</string>
|
||||
<string id="TrailingSlashErr">URL-ul API nu trebuie să conțină un slash final '/'.</string>
|
||||
<string id="Unavailable" scope="glance">Indisponibil</string>
|
||||
<string id="Unconfigured" scope="glance">Neconfigurat</string>
|
||||
<string id="UnhandledHttpErr">Solicitarea HTTP a returnat codul de eroare =</string>
|
||||
<string id="WebhookFailed">Nu s-a putut înregistra Webhook</string>
|
||||
<string id="UnhandledHttpErr">Cererea HTTP a returnat codul de eroare = </string>
|
||||
<string id="WebhookFailed">Înregistrarea Webhook a eșuat.</string>
|
||||
<string id="WrongPin">PIN greșit</string>
|
||||
<string id="WifiLteNotAvailable">Nu sunt disponibile Wi-Fi sau LTE.</string>
|
||||
<string id="WifiLtePrompt">Executați prin Wi-Fi/LTE?</string>
|
||||
<string id="WifiLteExecutionTitle">Se trimite către Home Assistant.</string>
|
||||
<string id="WifiLteExecutionDataError">Nu au fost primite date.</string>
|
||||
<!-- Pentru GUI de setări, șirurile ar trebui să fie în ordinea în care sunt utilizate. -->
|
||||
<string id="SettingsSelect">Selecta...</string>
|
||||
<string id="SettingsApiKey">Cheie API pentru HomeAssistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">Token de acces cu viață lungă.</string>
|
||||
<string id="SettingsApiUrl">Adresa URL pentru API-ul HomeAssistant.</string>
|
||||
<string id="SettingsConfigUrl">URL pentru configurarea meniului (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Ar trebui aplicația să memoreze în cache configurația meniului?</string>
|
||||
<string id="SettingsClearCache">Ar trebui aplicația să golească memoria cache existentă data viitoare când este pornită?</string>
|
||||
<string id="SettingsVibration">Ar trebui aplicația să ofere feedback prin vibrații?</string>
|
||||
<string id="SettingsAppTimeout">Timeout în secunde. Ieșiți din aplicație după această perioadă de inactivitate pentru a economisi bateria dispozitivului.</string>
|
||||
<string id="SettingsPollDelay">Întârziere suplimentară a sondajului (în secunde). Adaugă o întârziere între actualizarea stării tuturor elementelor de meniu.</string>
|
||||
<string id="SettingsConfirmTimeout">După acest timp (în secunde), un dialog de confirmare pentru o acțiune este închis automat și acțiunea este anulată. Setați la 0 pentru a dezactiva timeout-ul.</string>
|
||||
<string id="SettingsPin">PIN din 4 cifre care va fi utilizat pentru toate acțiunile care necesită confirmare (0000-9999).</string>
|
||||
<string id="SettingsPinError">Vă rugăm să configurați un PIN numeric valid din 4 cifre între 0000 și 9999 în setările aplicației.</string>
|
||||
<string id="SettingsTextAlign">Alinierea meniului la stânga (dezactivată) sau la dreapta (activată).</string>
|
||||
<string id="LeftToRight">De la stânga la dreapta</string>
|
||||
<string id="RightToLeft">De la dreapta la stânga</string>
|
||||
<string id="SettingsWidgetStart">(Numai widget) Porniți automat aplicația din widget fără a aștepta o atingere.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Activați serviciul de fundal pentru a trimite datele despre nivelul bateriei dispozitivului, locația și (dacă este acceptat) datele de activitate către Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Rata de reîmprospătare (în minute) la care serviciul de fundal ar trebui să repete trimiterea datelor.</string>
|
||||
<string id="WebhookId">(Numai pentru citire) ID-ul Webhook creat de dispozitiv pentru actualizările serviciului de fundal. Este posibil să aveți nevoie de acest lucru pentru depanare.</string>
|
||||
<string id="SettingsSelect">Selectați...</string>
|
||||
<string id="SettingsApiKey">Cheie API pentru Home Assistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">Token de acces de lungă durată.</string>
|
||||
<string id="SettingsApiUrl">URL pentru API-ul Home Assistant.</string>
|
||||
<string id="SettingsConfigUrl">URL pentru configurația meniului (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Aplicația ar trebui să memoreze în cache configurația meniului?</string>
|
||||
<string id="SettingsClearCache">Aplicația ar trebui să șteargă memoria cache existentă la
|
||||
următoarea pornire?</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">Verificați actualizările meniului la pornirea aplicației? Notă: Memorarea în cache a meniului trebuie să fie activată. Această setare poate cauza blocarea dispozitivelor mai vechi cu mai puțină memorie.</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">Activați executarea comenzilor prin Wi-Fi/LTE.</string>
|
||||
<string id="SettingsVibration">Aplicația ar trebui să ofere feedback prin vibrații?</string>
|
||||
<string id="SettingsAppTimeout">Timp de expirare în secunde. Ieșiți din aplicație după această
|
||||
perioadă de inactivitate pentru a economisi bateria dispozitivului.</string>
|
||||
<string id="SettingsPollDelay">Întârziere suplimentară de interogare (în secunde). Adaugă o
|
||||
întârziere între actualizarea stării tuturor elementelor din meniu.</string>
|
||||
<string id="SettingsConfirmTimeout">După acest timp (în secunde), un dialog de confirmare pentru o
|
||||
acțiune este închis automat și acțiunea este anulată. Setați la 0 pentru a dezactiva timpul de
|
||||
expirare.</string>
|
||||
<string id="SettingsPin">PIN-ul din 4 cifre care va fi utilizat pentru toate acțiunile care îl
|
||||
necesită (0000-9999).</string>
|
||||
<string id="SettingsPinError">Vă rugăm să configurați un PIN numeric valid din 4 cifre, între 0000
|
||||
și 9999, în setările aplicației.</string>
|
||||
<string id="SettingsTextAlign">Alinierea meniului: Stânga (dezactivat) sau Dreapta (activat).</string>
|
||||
<string id="SettingsLeftToRight">De la stânga la dreapta</string>
|
||||
<string id="SettingsRightToLeft">De la dreapta la stânga</string>
|
||||
<string id="SettingsWidgetStart">(Doar widget) Porniți automat aplicația din widget fără a aștepta
|
||||
o atingere.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Activați serviciul de fundal pentru a trimite nivelul
|
||||
bateriei dispozitivului, locația și (dacă este acceptat) datele de activitate către Home
|
||||
Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Rata de reîmprospătare (în minute) la care serviciul
|
||||
de fundal ar trebui să repete trimiterea datelor.</string>
|
||||
<string id="SettingsUserHttpHeader">Antetul HTTP furnizat de utilizator</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">Unele instalații Home Assistant necesită
|
||||
specificarea unui antet HTTP personalizat pentru a funcționa.</string>
|
||||
<string id="SettingsUserHttpHeaderName">Antet HTTP furnizat de utilizator: Nume</string>
|
||||
<string id="SettingsUserHttpHeaderValue">Antet HTTP furnizat de utilizator: Valoare</string>
|
||||
<string id="SettingsClearWebhookId">Reconectați-vă la Home Assistant (ștergeți ID-ul Webhook,
|
||||
consultați ghidul de depanare).</string>
|
||||
<string id="SettingsWebhookId">(Doar citire) ID-ul Webhook creat de dispozitiv pentru actualizări
|
||||
ale serviciului de fundal. S-ar putea să aveți nevoie de acesta pentru depanare.</string>
|
||||
</strings>
|
||||
|
@@ -25,6 +25,6 @@
|
||||
<string id="NoApiUrl">V nastaveniach aplikácie chýba adresa URL rozhrania API</string>
|
||||
<string id="NoConfigUrl">V nastaveniach aplikácie chýba konfiguračná adresa URL</string>
|
||||
<string id="Unavailable">Nedostupné</string>
|
||||
<string id="RightToLeft">Sprava doľava</string>
|
||||
<string id="SettingsRightToLeft">Sprava doľava</string>
|
||||
<string id="SettingsEnableBatteryLevel">Povoľte službu na pozadí, ktorá bude do Home Assistenta odosielať údaje o stave batérie zariadenia, polohe a (ak je podporované) o aktivite.</string>
|
||||
</strings>
|
||||
|
@@ -9,64 +9,90 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Slovak
|
||||
Vygenerované službou Google Translate z angličtiny
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Slovak
|
||||
Vygenerované službou Google Translate a gemini-2.5-flash z angličtiny do slovenčiny
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">Volania API sú príliš rýchle. Spomaľte svoje požiadavky.</string>
|
||||
<string id="ApiUrlNotFound">Adresa URL sa nenašla. Potenciálna chyba webovej adresy rozhrania API v nastaveniach.</string>
|
||||
<string id="ApiFlood">Volania API sú príliš rýchle. Spomaľte prosím svoje požiadavky.</string>
|
||||
<string id="ApiUrlNotFound">URL sa nenašla. Potenciálna chyba API URL v nastaveniach.</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">Dostupné</string>
|
||||
<string id="Cached" scope="glance">Vo vyrovnávacej pamäti</string>
|
||||
<string id="Checking" scope="glance">Prebieha kontrola...</string>
|
||||
<string id="ConfigUrlNotFound">Adresa URL sa nenašla. Potenciálna chyba konfiguračnej adresy URL v nastaveniach.</string>
|
||||
<string id="Cached" scope="glance">Uložené</string>
|
||||
<string id="Checking" scope="glance">Kontrola ...</string>
|
||||
<string id="ConfigUrlNotFound">URL sa nenašla. Potenciálna chyba URL konfigurácie v nastaveniach.</string>
|
||||
<string id="Confirm">Potvrďte</string>
|
||||
<string id="Empty">Prázdny</string>
|
||||
<string id="Empty">Prázdne</string>
|
||||
<string id="Executed" scope="glance">Spustený</string>
|
||||
<string id="GlanceMenu" scope="glance">Menu</string>
|
||||
<string id="Memory" scope="glance">pamäť</string>
|
||||
<string id="GlanceMenu" scope="glance">Ponuka</string>
|
||||
<string id="Memory" scope="glance">Pamäť</string>
|
||||
<string id="MenuUpdated">Menu aktualizované, reštartujte.</string>
|
||||
<string id="MenuCheckDisabled">Aktualizácie ponuky sú zakázané.</string>
|
||||
<string id="NoAPIKey" scope="glance">V nastaveniach aplikácie chýba kľúč API</string>
|
||||
<string id="NoApiUrl" scope="glance">V nastaveniach aplikácie chýba adresa URL rozhrania API</string>
|
||||
<string id="NoConfigUrl" scope="glance">V nastaveniach aplikácie chýba konfiguračná adresa URL</string>
|
||||
<string id="NoInternet">Žiadne internetové pripojenie.</string>
|
||||
<string id="NoInternet">Žiadne pripojenie na internet.</string>
|
||||
<string id="NoJson">Z požiadavky HTTP sa nevrátil žiadny JSON.</string>
|
||||
<string id="NoPhone" scope="glance">Žiadne telefónne spojenie.</string>
|
||||
<string id="NoResponse">Žiadna odpoveď, skontrolujte internetové pripojenie</string>
|
||||
<string id="PinInputLocked">Vstup PIN zablokovaný pre</string>
|
||||
<string id="NoPhone" scope="glance">Žiadne telefónne pripojenie.</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">Žiadne telefónne pripojenie, žiadne uložené menu.</string>
|
||||
<string id="NoResponse">Žiadna odpoveď, skontrolujte pripojenie na internet</string>
|
||||
<string id="TimedOut">Časový limit vypršal</string>
|
||||
<string id="PinInputLocked">Zadanie PIN uzamknuté na</string>
|
||||
<string id="PotentialError">Potenciálna chyba</string>
|
||||
<string id="Seconds">sekúnd</string>
|
||||
<string id="Seconds">sekundy</string>
|
||||
<string id="TemplateError">Chyba šablóny</string>
|
||||
<string id="TrailingSlashErr">Adresa URL rozhrania API nesmie obsahovať koncovú lomku „/“.</string>
|
||||
<string id="TrailingSlashErr">URL API nesmie mať koncové lomítko '/'.</string>
|
||||
<string id="Unavailable" scope="glance">Nedostupné</string>
|
||||
<string id="Unconfigured" scope="glance">Nekonfigurované</string>
|
||||
<string id="UnhandledHttpErr">Požiadavka HTTP vrátila kód chyby =</string>
|
||||
<string id="WebhookFailed">Registrácia Webhooku zlyhala</string>
|
||||
<string id="Unconfigured" scope="glance">Nenakonfigurované</string>
|
||||
<string id="UnhandledHttpErr">Požiadavka HTTP vrátila chybový kód =</string>
|
||||
<string id="WebhookFailed">Nepodarilo sa zaregistrovať webhook</string>
|
||||
<string id="WrongPin">Nesprávny PIN</string>
|
||||
<!-- Pre nastavenia GUI by reťazce mali byť v poradí, v akom sa používajú. -->
|
||||
<string id="SettingsSelect">Vybrať...</string>
|
||||
<string id="SettingsApiKey">Kľúč API pre HomeAssistant.</string>
|
||||
<string id="WifiLteNotAvailable">Wi-Fi alebo LTE nie je k dispozícii</string>
|
||||
<string id="WifiLtePrompt">Spustiť cez Wi-Fi/LTE?</string>
|
||||
<string id="WifiLteExecutionTitle">Odosielanie do Home Assistant.</string>
|
||||
<string id="WifiLteExecutionDataError">Žiadne prijaté údaje.</string>
|
||||
<!-- V prípade nastavení GUI by mali byť reťazce v poradí, v akom sa používajú. -->
|
||||
<string id="SettingsSelect">Vyberte ...</string>
|
||||
<string id="SettingsApiKey">Kľúč API pre Home Assistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">Prístupový token s dlhou životnosťou.</string>
|
||||
<string id="SettingsApiUrl">URL pre HomeAssistant API.</string>
|
||||
<string id="SettingsConfigUrl">Webová adresa pre konfiguráciu ponuky (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Má aplikácia uložiť do vyrovnávacej pamäte konfiguráciu ponuky?</string>
|
||||
<string id="SettingsClearCache">Mala by aplikácia pri ďalšom spustení vymazať existujúcu vyrovnávaciu pamäť?</string>
|
||||
<string id="SettingsApiUrl">URL pre API Home Assistant.</string>
|
||||
<string id="SettingsConfigUrl">URL pre konfiguráciu ponuky (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Má aplikácia ukladať konfiguráciu menu do vyrovnávacej pamäte?</string>
|
||||
<string id="SettingsClearCache">Má aplikácia vymazať existujúcu vyrovnávaciu pamäť pri ďalšom
|
||||
spustení?</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">Kontrolovať aktualizácie ponuky pri spustení aplikácie? Poznámka: Ukladanie ponuky do vyrovnávacej pamäte musí byť povolené. Toto nastavenie môže spôsobiť pád starších zariadení s menšou pamäťou.</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">Povoliť vykonávanie príkazov cez Wi-Fi/LTE.</string>
|
||||
<string id="SettingsVibration">Mala by aplikácia poskytovať spätnú väzbu prostredníctvom vibrácií?</string>
|
||||
<string id="SettingsAppTimeout">Časový limit v sekundách. Po tejto dobe nečinnosti ukončite aplikáciu, aby ste šetrili batériu zariadenia.</string>
|
||||
<string id="SettingsPollDelay">Dodatočné oneskorenie hlasovania (v sekundách). Pridáva oneskorenie medzi aktualizáciou stavu všetkých položiek ponuky.</string>
|
||||
<string id="SettingsConfirmTimeout">Po tomto čase (v sekundách) sa dialógové okno s potvrdením akcie automaticky zatvorí a akcia sa zruší. Ak chcete časový limit deaktivovať, nastavte na 0.</string>
|
||||
<string id="SettingsPin">4-ciferný PIN, ktorý sa má použiť pre všetky akcie, ktoré vyžadujú potvrdenie (0000-9999).</string>
|
||||
<string id="SettingsPinError">V nastaveniach aplikácie nakonfigurujte platný 4-miestny číselný kód PIN medzi 0000 a 9999.</string>
|
||||
<string id="SettingsTextAlign">Zarovnanie ponuky vľavo (vypnuté) alebo vpravo (zapnuté).</string>
|
||||
<string id="LeftToRight">Zľava doprava</string>
|
||||
<string id="RightToLeft">Sprava doľava</string>
|
||||
<string id="SettingsWidgetStart">(Len miniaplikácia) Automaticky spustite aplikáciu z miniaplikácie bez čakania na klepnutie.</string>
|
||||
<string id="SettingsAppTimeout">Časový limit v sekundách. Ukončenie aplikácie po tomto období
|
||||
nečinnosti šetrí batériu zariadenia.</string>
|
||||
<string id="SettingsPollDelay">Dodatočné oneskorenie dotazovania (v sekundách). Pridáva
|
||||
oneskorenie medzi aktualizáciou stavu všetkých položiek menu.</string>
|
||||
<string id="SettingsConfirmTimeout">Po tomto čase (v sekundách) sa potvrdzovací dialóg pre akciu
|
||||
automaticky zatvorí a akcia sa zruší. Nastavte na 0 pre vypnutie časového limitu.</string>
|
||||
<string id="SettingsPin">4-ciferný PIN, ktorý sa má použiť pre všetky akcie, ktoré ho vyžadujú
|
||||
(0000-9999).</string>
|
||||
<string id="SettingsPinError">V nastaveniach aplikácie nakonfigurujte platný štvorciferný číselný
|
||||
PIN medzi 0000 a 9999.</string>
|
||||
<string id="SettingsTextAlign">Zarovnanie menu vľavo (vypnuté) alebo vpravo (zapnuté).</string>
|
||||
<string id="SettingsLeftToRight">Zľava doprava</string>
|
||||
<string id="SettingsRightToLeft">Sprava doľava</string>
|
||||
<string id="SettingsWidgetStart">(Iba widget) Automaticky spustí aplikáciu z miniaplikácie bez
|
||||
čakania na ťuknutie.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Povoľte službu na pozadí, ktorá bude do Home Assistenta odosielať údaje o stave batérie zariadenia, polohe a (ak je podporované) o aktivite.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Obnovovacia frekvencia (v minútach), pri ktorej by služba na pozadí mala opakovať odosielanie údajov.</string>
|
||||
<string id="WebhookId">(Len na čítanie) Webhook ID vytvorené zariadením pre aktualizácie služby na pozadí. Možno to budete potrebovať na ladenie.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Frekvencia obnovenia (v minútach), pri ktorej by
|
||||
služba na pozadí mala opakovať odosielanie údajov.</string>
|
||||
<string id="SettingsUserHttpHeader">Hlavička HTTP dodaná používateľom</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">Niektoré inštalácie Home Assistant vyžadujú
|
||||
špecifikáciu vlastnej hlavičky HTTP pre správne fungovanie.</string>
|
||||
<string id="SettingsUserHttpHeaderName">Používateľom dodaná HTTP hlavička: Názov</string>
|
||||
<string id="SettingsUserHttpHeaderValue">Používateľom dodaná HTTP hlavička: Hodnota</string>
|
||||
<string id="SettingsClearWebhookId">Znova sa pripojiť k Home Assistant (vymazať ID Webhooku, pozri
|
||||
Sprievodcu riešením problémov).</string>
|
||||
<string id="SettingsWebhookId">(Iba na čítanie) ID Webhooku vytvorené zariadením pre aktualizácie
|
||||
služby na pozadí. Môžete ho potrebovať na ladenie.</string>
|
||||
</strings>
|
||||
|
@@ -9,64 +9,90 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Slovenian
|
||||
Ustvaril Google Translate iz angleščine
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Slovenian
|
||||
Prevedeno z Google Prevajalnikom in gemini-2.5-flash iz angleščine v slovenščino
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">API klici so prehitri. Prosim, upočasnite svoje zahteve.</string>
|
||||
<string id="ApiUrlNotFound">URL-ja ni bilo mogoče najti. Morebitna napaka URL-ja API-ja v nastavitvah.</string>
|
||||
<string id="ApiFlood">API klici so prehitri. Upočasnite svoje zahteve.</string>
|
||||
<string id="ApiUrlNotFound">URL ni najden. Možna napaka URL-ja API-ja v nastavitvah.</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">Na voljo</string>
|
||||
<string id="Cached" scope="glance">Predpomnjeno</string>
|
||||
<string id="Cached" scope="glance">Predpomnjen</string>
|
||||
<string id="Checking" scope="glance">Preverjanje ...</string>
|
||||
<string id="ConfigUrlNotFound">URL-ja ni bilo mogoče najti. Morebitna napaka URL-ja konfiguracije v nastavitvah.</string>
|
||||
<string id="Confirm">Seveda?</string>
|
||||
<string id="Empty">prazno</string>
|
||||
<string id="ConfigUrlNotFound">URL ni najden. Možna napaka URL-ja konfiguracije v nastavitvah.</string>
|
||||
<string id="Confirm">Zagotovo?</string>
|
||||
<string id="Empty">Prazen</string>
|
||||
<string id="Executed" scope="glance">Potrjeno</string>
|
||||
<string id="GlanceMenu" scope="glance">meni</string>
|
||||
<string id="GlanceMenu" scope="glance">Meni</string>
|
||||
<string id="Memory" scope="glance">Spomin</string>
|
||||
<string id="NoAPIKey" scope="glance">V nastavitvah aplikacije ni ključa API.</string>
|
||||
<string id="NoApiUrl" scope="glance">V nastavitvah aplikacije ni URL-ja API-ja.</string>
|
||||
<string id="NoConfigUrl" scope="glance">V nastavitvah aplikacije ni konfiguracijskega URL-ja.</string>
|
||||
<string id="NoInternet">Ni internetne povezave.</string>
|
||||
<string id="NoJson">Zahteva HTTP ni vrnila JSON.</string>
|
||||
<string id="NoPhone" scope="glance">Ni telefonske povezave.</string>
|
||||
<string id="NoResponse">Ni odgovora, preverite internetno povezavo</string>
|
||||
<string id="PinInputLocked">Vnos PIN zaklenjen za</string>
|
||||
<string id="PotentialError">Potencialna napaka</string>
|
||||
<string id="MenuUpdated">Meni posodobljen, znova zaženite.</string>
|
||||
<string id="MenuCheckDisabled">Posodobitve menija onemogočene.</string>
|
||||
<string id="NoAPIKey" scope="glance">V nastavitvah aplikacije ni ključa API -ja.</string>
|
||||
<string id="NoApiUrl" scope="glance">V nastavitvah aplikacije ni URL API -ja.</string>
|
||||
<string id="NoConfigUrl" scope="glance">V nastavitvah aplikacije ni URL konfiguracije.</string>
|
||||
<string id="NoInternet">Brez internetne povezave.</string>
|
||||
<string id="NoJson">Zahteva HTTP ni vrnila JSON-a.</string>
|
||||
<string id="NoPhone" scope="glance">Brez telefonske povezave.</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">Brez telefonske povezave, brez predpomnjenega menija.</string>
|
||||
<string id="NoResponse">Brez odgovora, preverite internetno povezavo</string>
|
||||
<string id="TimedOut">Zahteva je potekla.</string>
|
||||
<string id="PinInputLocked">Vnos PIN-a zaklenjen za</string>
|
||||
<string id="PotentialError">Možna napaka</string>
|
||||
<string id="Seconds">sekund</string>
|
||||
<string id="TemplateError">Napaka predloge</string>
|
||||
<string id="TrailingSlashErr">URL API-ja ne sme imeti končne poševnice '/'.</string>
|
||||
<string id="TrailingSlashErr">URL API ne sme imeti končne poševnice '/'.</string>
|
||||
<string id="Unavailable" scope="glance">Ni na voljo</string>
|
||||
<string id="Unconfigured" scope="glance">Nekonfigurirano</string>
|
||||
<string id="UnhandledHttpErr">Zahteva HTTP je vrnila kodo napake =</string>
|
||||
<string id="WebhookFailed">Webhooka ni bilo mogoče registrirati</string>
|
||||
<string id="Unconfigured" scope="glance">Nekonfiguriran</string>
|
||||
<string id="UnhandledHttpErr">Zahteva HTTP je vrnila kodo napake = </string>
|
||||
<string id="WebhookFailed">Registracija Webhooka ni uspela.</string>
|
||||
<string id="WrongPin">Napačen PIN</string>
|
||||
<!-- Za GUI nastavitev morajo biti nizi v vrstnem redu, kot so uporabljeni. -->
|
||||
<string id="WifiLteNotAvailable">Wi-Fi ali LTE nista na voljo</string>
|
||||
<string id="WifiLtePrompt">Izvedite preko Wi-Fi/LTE?</string>
|
||||
<string id="WifiLteExecutionTitle">Pošiljanje v Home Assistant.</string>
|
||||
<string id="WifiLteExecutionDataError">Brez prejetih podatkov.</string>
|
||||
<!-- Za GUI nastavitve naj bodo strune v vrstnem redu, ki ga uporabljajo. -->
|
||||
<string id="SettingsSelect">Izberite ...</string>
|
||||
<string id="SettingsApiKey">API ključ za HomeAssistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">Dolgoživ dostopni žeton.</string>
|
||||
<string id="SettingsApiUrl">URL za API HomeAssistant.</string>
|
||||
<string id="SettingsApiKey">Ključ API za Home Assistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">Dolgotrajni žeton dostopa.</string>
|
||||
<string id="SettingsApiUrl">URL za API Home Assistant.</string>
|
||||
<string id="SettingsConfigUrl">URL za konfiguracijo menija (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Ali naj aplikacija predpomni konfiguracijo menija?</string>
|
||||
<string id="SettingsClearCache">Ali naj aplikacija ob naslednjem zagonu počisti obstoječi predpomnilnik?</string>
|
||||
<string id="SettingsVibration">Ali naj aplikacija posreduje povratne informacije prek vibriranja?</string>
|
||||
<string id="SettingsAppTimeout">Časovna omejitev v sekundah. Po tem obdobju nedejavnosti zaprite aplikacijo, da prihranite baterijo naprave.</string>
|
||||
<string id="SettingsPollDelay">Dodatna zakasnitev ankete (v sekundah). Doda zakasnitev med posodobitvijo stanja vseh elementov menija.</string>
|
||||
<string id="SettingsConfirmTimeout">Po tem času (v sekundah) se potrditveno pogovorno okno za dejanje samodejno zapre in dejanje je preklicano. Nastavite na 0, da onemogočite časovno omejitev.</string>
|
||||
<string id="SettingsPin">4-mestni PIN, ki se uporablja za vsa dejanja, ki zahtevajo potrditev (0000-9999).</string>
|
||||
<string id="SettingsPinError">V nastavitvah aplikacije konfigurirajte veljavno 4-mestno številčno kodo PIN med 0000 in 9999.</string>
|
||||
<string id="SettingsTextAlign">Leva (izklopljena) ali desna (vklopljena) poravnava menija.</string>
|
||||
<string id="LeftToRight">Od leve proti desni</string>
|
||||
<string id="RightToLeft">Od desne proti levi</string>
|
||||
<string id="SettingsWidgetStart">(Samo pripomoček) Samodejno zaženite aplikacijo iz pripomočka, ne da bi čakali na dotik.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Omogočite storitev v ozadju za pošiljanje podatkov o ravni baterije naprave, lokaciji in (če je podprto) dejavnosti domačemu pomočniku.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Hitrost osveževanja (v minutah), pri kateri naj storitev v ozadju ponavlja pošiljanje podatkov.</string>
|
||||
<string id="WebhookId">(Samo za branje) ID Webhook, ki ga ustvari naprava za posodobitve storitev v ozadju. To boste morda potrebovali za odpravljanje napak.</string>
|
||||
<string id="SettingsClearCache">Ali naj aplikacija počisti obstoječi predpomnilnik ob naslednjem
|
||||
zagonu?</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">Ali naj aplikacija preveri posodobitve menija ob zagonu? Opomba: Predpomnjenje menija mora biti omogočeno. Ta nastavitev lahko povzroči, da se starejše naprave z manj pomnilnika zrušijo.</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">Omogoči izvajanje ukazov prek Wi-Fi/LTE.</string>
|
||||
<string id="SettingsVibration">Ali naj aplikacija zagotavlja povratne informacije z vibracijami?</string>
|
||||
<string id="SettingsAppTimeout">Časovna omejitev v sekundah. Aplikacija se po tem obdobju
|
||||
neaktivnosti zapre, da se prihrani baterija naprave.</string>
|
||||
<string id="SettingsPollDelay">Dodatna zamuda pri poizvedovanju (v sekundah). Doda zamudo med
|
||||
posodobitvami stanja vseh elementov menija.</string>
|
||||
<string id="SettingsConfirmTimeout">Po tem času (v sekundah) se potrditveno pogovorno okno za
|
||||
dejanje samodejno zapre in dejanje prekliče. Nastavite na 0, da onemogočite časovno omejitev.</string>
|
||||
<string id="SettingsPin">4-mestni PIN za uporabo pri vseh dejanjih, ki ga zahtevajo (0000-9999).</string>
|
||||
<string id="SettingsPinError">V nastavitvah aplikacije konfigurirajte veljaven 4-mestni številčni
|
||||
PIN med 0000 in 9999.</string>
|
||||
<string id="SettingsTextAlign">Leva (izklopljeno) ali desna (vklopljeno) poravnava menija.</string>
|
||||
<string id="SettingsLeftToRight">Levo proti desni</string>
|
||||
<string id="SettingsRightToLeft">Desno na levo</string>
|
||||
<string id="SettingsWidgetStart">(Samo pripomoček) Samodejno zaženite aplikacijo iz pripomočka, ne
|
||||
da bi čakali na dotik.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Omogočite storitev v ozadju za pošiljanje ravni baterije
|
||||
naprave, lokacije in (če so podprti) podatkov o dejavnosti v Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Frekvenca osveževanja (v minutah), pri kateri naj
|
||||
storitev v ozadju ponovno pošilja podatke.</string>
|
||||
<string id="SettingsUserHttpHeader">Uporabniško določena glava HTTP</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">Nekatere namestitve Home Assistant zahtevajo
|
||||
določitev glave HTTP po meri za delovanje.</string>
|
||||
<string id="SettingsUserHttpHeaderName">Uporabniško določena glava HTTP: Ime</string>
|
||||
<string id="SettingsUserHttpHeaderValue">Uporabniško določena glava HTTP: Vrednost</string>
|
||||
<string id="SettingsClearWebhookId">Ponovna povezava z Home Assistant (počisti ID Webhooka, glejte
|
||||
Vodnik za odpravljanje težav).</string>
|
||||
<string id="SettingsWebhookId">(Samo za branje) ID Webhooka, ki ga je ustvarila naprava za
|
||||
posodobitve storitev v ozadju. To boste morda potrebovali za odpravljanje napak.</string>
|
||||
</strings>
|
||||
|
@@ -9,64 +9,99 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Spanish
|
||||
Generado por Google Translate del inglés
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Spanish
|
||||
Generado por Google Translate y gemini-2.5-flash del inglés al español
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">Las llamadas a la API son demasiado rápidas. Reduzca la velocidad de sus solicitudes.</string>
|
||||
<string id="ApiUrlNotFound">URL no encontrada. Posible error de URL de API en la configuración.</string>
|
||||
<string id="ApiFlood">Demasiadas llamadas a la API. Por favor, reduzca sus solicitudes.</string>
|
||||
<string id="ApiUrlNotFound">URL no encontrada. Posible error en la URL de la API en la
|
||||
configuración.</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">Disponible</string>
|
||||
<string id="Cached" scope="glance">En caché</string>
|
||||
<string id="Checking" scope="glance">De cheques...</string>
|
||||
<string id="ConfigUrlNotFound">URL no encontrada. Posible error de configuración de URL en los ajustes.</string>
|
||||
<string id="Checking" scope="glance">Comprobando...</string>
|
||||
<string id="ConfigUrlNotFound">URL no encontrada. Posible error en la URL de configuración en la
|
||||
configuración.</string>
|
||||
<string id="Confirm">¿Seguro?</string>
|
||||
<string id="Empty">Vacío</string>
|
||||
<string id="Executed" scope="glance">Confirmado</string>
|
||||
<string id="GlanceMenu" scope="glance">Menú</string>
|
||||
<string id="Memory" scope="glance">Memoria</string>
|
||||
<string id="MenuUpdated">Menú actualizado, reiniciar.</string>
|
||||
<string id="MenuCheckDisabled">Actualizaciones de menú deshabilitadas.</string>
|
||||
<string id="NoAPIKey" scope="glance">No hay clave API en la configuración de la aplicación.</string>
|
||||
<string id="NoApiUrl" scope="glance">No hay URL de API en la configuración de la aplicación.</string>
|
||||
<string id="NoConfigUrl" scope="glance">No hay URL de configuración en la configuración de la aplicación.</string>
|
||||
<string id="NoConfigUrl" scope="glance">No hay URL de configuración en la configuración de la
|
||||
aplicación.</string>
|
||||
<string id="NoInternet">Sin conexión a Internet.</string>
|
||||
<string id="NoJson">No se devolvió JSON de la solicitud HTTP.</string>
|
||||
<string id="NoJson">No se recibió JSON de la solicitud HTTP.</string>
|
||||
<string id="NoPhone" scope="glance">Sin conexión telefónica.</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">Sin conexión telefónica, sin menú en caché.</string>
|
||||
<string id="NoResponse">Sin respuesta, verifique la conexión a Internet</string>
|
||||
<string id="PinInputLocked">Entrada de PIN bloqueada para</string>
|
||||
<string id="TimedOut">Solicitud agotada</string>
|
||||
<string id="PinInputLocked">Entrada de PIN bloqueada durante</string>
|
||||
<string id="PotentialError">Error potencial</string>
|
||||
<string id="Seconds">artículos de segunda clase</string>
|
||||
<string id="Seconds">segundos</string>
|
||||
<string id="TemplateError">Error de plantilla</string>
|
||||
<string id="TrailingSlashErr">La URL de la API no debe tener una barra diagonal final '/'.</string>
|
||||
<string id="Unavailable" scope="glance">Indisponible</string>
|
||||
<string id="Unconfigured" scope="glance">Sin configurar</string>
|
||||
<string id="UnhandledHttpErr">La solicitud HTTP devolvió el código de error =</string>
|
||||
<string id="WebhookFailed">Error al registrar el Webhook</string>
|
||||
<string id="TrailingSlashErr">La URL de la API no debe tener una barra final '/'.</string>
|
||||
<string id="Unavailable" scope="glance">No disponible</string>
|
||||
<string id="Unconfigured" scope="glance">No configurado</string>
|
||||
<string id="UnhandledHttpErr">La solicitud HTTP devolvió el código de error = </string>
|
||||
<string id="WebhookFailed">No se pudo registrar el Webhook</string>
|
||||
<string id="WrongPin">PIN incorrecto</string>
|
||||
<!-- Para la configuración GUI, las cadenas deben estar en el orden en que se utilizan. -->
|
||||
<string id="WifiLteNotAvailable">No hay Wi-Fi o LTE disponible</string>
|
||||
<string id="WifiLtePrompt">¿Ejecutar a través de Wi-Fi/LTE?</string>
|
||||
<string id="WifiLteExecutionTitle">Enviando a Home Assistant.</string>
|
||||
<string id="WifiLteExecutionDataError">No se reciben datos.</string>
|
||||
<!-- Para la GUI de configuración, las cadenas deben estar en el orden en que se usan. -->
|
||||
<string id="SettingsSelect">Seleccionar...</string>
|
||||
<string id="SettingsApiKey">Clave API para HomeAssistant.</string>
|
||||
<string id="SettingsApiKey">Clave API para Home Assistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">Token de acceso de larga duración.</string>
|
||||
<string id="SettingsApiUrl">URL para la API de HomeAssistant.</string>
|
||||
<string id="SettingsApiUrl">URL para la API de Home Assistant.</string>
|
||||
<string id="SettingsConfigUrl">URL para la configuración del menú (JSON).</string>
|
||||
<string id="SettingsCacheConfig">¿Debe la aplicación almacenar en caché la configuración del menú?</string>
|
||||
<string id="SettingsClearCache">¿La aplicación debe borrar el caché existente la próxima vez que se inicie?</string>
|
||||
<string id="SettingsVibration">¿La aplicación debería proporcionar retroalimentación mediante vibraciones?</string>
|
||||
<string id="SettingsAppTimeout">Tiempo de espera en segundos. Salga de la aplicación después de este período de inactividad para ahorrar batería del dispositivo.</string>
|
||||
<string id="SettingsPollDelay">Retraso de sondeo adicional (en segundos). Agrega un retraso entre la actualización de estado de todos los elementos del menú.</string>
|
||||
<string id="SettingsConfirmTimeout">Después de este tiempo (en segundos), se cierra automáticamente un cuadro de diálogo de confirmación de una acción y se cancela la acción. Establezca en 0 para desactivar el tiempo de espera.</string>
|
||||
<string id="SettingsPin">PIN de 4 dígitos a utilizar para todas las acciones que requieran confirmación (0000-9999).</string>
|
||||
<string id="SettingsPinError">Configure un PIN numérico válido de 4 dígitos entre 0000 y 9999 en la configuración de la aplicación.</string>
|
||||
<string id="SettingsTextAlign">Alineación del menú izquierda (desactivada) o derecha (activada).</string>
|
||||
<string id="LeftToRight">De izquierda a derecha</string>
|
||||
<string id="RightToLeft">De derecha a izquierda</string>
|
||||
<string id="SettingsWidgetStart">(Solo widget) Inicia automáticamente la aplicación desde el widget sin esperar un toque.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Habilite el servicio en segundo plano para enviar el nivel de batería del dispositivo, la ubicación y (si es compatible) los datos de actividad a Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">La frecuencia de actualización (en minutos) con la que el servicio en segundo plano debe repetir el envío de datos.</string>
|
||||
<string id="WebhookId">(Solo lectura) El ID del webhook creado por el dispositivo para las actualizaciones del servicio en segundo plano. Es posible que lo necesites para la depuración.</string>
|
||||
<string id="SettingsCacheConfig">¿Debería la aplicación almacenar en caché la configuración del
|
||||
menú?</string>
|
||||
<string id="SettingsClearCache">¿Debería la aplicación borrar el caché existente la próxima vez
|
||||
que se inicie?</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">¿Buscar actualizaciones del menú al iniciar la aplicación? Nota: El almacenamiento en caché del menú debe estar habilitado. Esta configuración puede causar que dispositivos más antiguos con menos memoria se bloqueen.</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">Habilitar la ejecución de comandos a través de
|
||||
Wi-Fi/LTE.</string>
|
||||
<string id="SettingsVibration">¿Debería la aplicación proporcionar retroalimentación mediante
|
||||
vibraciones?</string>
|
||||
<string id="SettingsAppTimeout">Tiempo de espera en segundos. La aplicación se cerrará después de
|
||||
este período de inactividad para ahorrar batería del dispositivo.</string>
|
||||
<string id="SettingsPollDelay">Retraso de sondeo adicional (en segundos). Agrega un retraso entre
|
||||
la actualización de estado de todos los elementos del menú.</string>
|
||||
<string id="SettingsConfirmTimeout">Después de este tiempo (en segundos), un diálogo de
|
||||
confirmación para una acción se cierra automáticamente y la acción se cancela. Establezca en 0
|
||||
para deshabilitar el tiempo de espera.</string>
|
||||
<string id="SettingsPin">PIN de 4 dígitos que se utilizará para todas las acciones que lo
|
||||
requieran (0000-9999).</string>
|
||||
<string id="SettingsPinError">Configure un PIN numérico válido de 4 dígitos entre 0000 y 9999 en
|
||||
la configuración de la aplicación.</string>
|
||||
<string id="SettingsTextAlign">Alineación del menú: izquierda (desactivado) o derecha (activado).</string>
|
||||
<string id="SettingsLeftToRight">De izquierda a derecha</string>
|
||||
<string id="SettingsRightToLeft">De derecha a izquierda</string>
|
||||
<string id="SettingsWidgetStart">(Solo widget) Iniciar automáticamente la aplicación desde el
|
||||
widget sin esperar un toque.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Habilitar el servicio en segundo plano para enviar el
|
||||
nivel de batería del dispositivo, la ubicación y (si es compatible) los datos de actividad a
|
||||
Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">La frecuencia de actualización (en minutos) a la que
|
||||
el servicio en segundo plano debe repetir el envío de datos.</string>
|
||||
<string id="SettingsUserHttpHeader">Encabezado HTTP suministrado por el usuario</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">Algunas instalaciones de Home Assistant requieren
|
||||
la especificación de un encabezado HTTP personalizado para funcionar.</string>
|
||||
<string id="SettingsUserHttpHeaderName">Encabezado HTTP suministrado por el usuario: Nombre</string>
|
||||
<string id="SettingsUserHttpHeaderValue">Encabezado HTTP suministrado por el usuario: Valor</string>
|
||||
<string id="SettingsClearWebhookId">Volver a conectar a Home Assistant (borrar ID de Webhook,
|
||||
consulte la guía de solución de problemas).</string>
|
||||
<string id="SettingsWebhookId">(Solo lectura) El ID de Webhook creado por el dispositivo para las
|
||||
actualizaciones del servicio en segundo plano. Es posible que lo necesite para la depuración.</string>
|
||||
</strings>
|
||||
|
@@ -9,64 +9,92 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Swedish
|
||||
Genereras av Google Translate från engelska
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Swedish
|
||||
Genererad av Google Translate och gemini-2.5-flash från engelska till svenska
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">API-anrop för snabba. Vänligen sakta ner dina förfrågningar.</string>
|
||||
<string id="ApiUrlNotFound">Webbadressen hittades inte. Potentiellt API-URL-fel i inställningarna.</string>
|
||||
<string id="ApiFlood">API-anrop är för snabba. Sakta ner dina förfrågningar.</string>
|
||||
<string id="ApiUrlNotFound">URL hittades inte. Möjligt fel i API-URL i inställningarna.</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">Tillgänglig</string>
|
||||
<string id="Cached" scope="glance">Cachad</string>
|
||||
<string id="Checking" scope="glance">Kontroll...</string>
|
||||
<string id="ConfigUrlNotFound">Webbadressen hittades inte. Potentiellt konfigurations-URL-fel i inställningarna.</string>
|
||||
<string id="Checking" scope="glance">Kontrollerar...</string>
|
||||
<string id="ConfigUrlNotFound">URL hittades inte. Möjligt fel i konfigurations-URL i
|
||||
inställningarna.</string>
|
||||
<string id="Confirm">Säker?</string>
|
||||
<string id="Empty">Tömma</string>
|
||||
<string id="Empty">Tom</string>
|
||||
<string id="Executed" scope="glance">Bekräftad</string>
|
||||
<string id="GlanceMenu" scope="glance">Meny</string>
|
||||
<string id="Memory" scope="glance">Minne</string>
|
||||
<string id="MenuUpdated">Meny uppdaterad, starta om.</string>
|
||||
<string id="MenuCheckDisabled">Menyuppdateringar inaktiverade.</string>
|
||||
<string id="NoAPIKey" scope="glance">Ingen API-nyckel i applikationsinställningarna.</string>
|
||||
<string id="NoApiUrl" scope="glance">Ingen API-URL i applikationsinställningarna.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Ingen konfigurations-URL i programinställningarna.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Ingen konfigurations-URL i applikationsinställningarna.</string>
|
||||
<string id="NoInternet">Ingen internetanslutning.</string>
|
||||
<string id="NoJson">Ingen JSON returnerades från HTTP-begäran.</string>
|
||||
<string id="NoPhone" scope="glance">Ingen telefonanslutning.</string>
|
||||
<string id="NoResponse">Inget svar, kontrollera internetanslutningen</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">Ingen telefonanslutning, ingen cachad meny.</string>
|
||||
<string id="NoResponse">Inget svar, kontrollera internetanslutningen.</string>
|
||||
<string id="TimedOut">Tidsgränsen överskreds</string>
|
||||
<string id="PinInputLocked">PIN-inmatning låst för</string>
|
||||
<string id="PotentialError">Potentiellt fel</string>
|
||||
<string id="Seconds">sekunder</string>
|
||||
<string id="TemplateError">Mallfel</string>
|
||||
<string id="TrailingSlashErr">API-URL får inte ha ett snedstreck '/'.</string>
|
||||
<string id="TrailingSlashErr">API-URL får inte ha ett avslutande snedstreck '/'.</string>
|
||||
<string id="Unavailable" scope="glance">Inte tillgänglig</string>
|
||||
<string id="Unconfigured" scope="glance">Okonfigurerad</string>
|
||||
<string id="UnhandledHttpErr">HTTP-begäran returnerade felkod =</string>
|
||||
<string id="WebhookFailed">Det gick inte att registrera Webhook</string>
|
||||
<string id="WebhookFailed">Det gick inte att registrera webhook</string>
|
||||
<string id="WrongPin">Fel PIN-kod</string>
|
||||
<!-- För inställningarna GUI, bör strängar vara i den ordning de används. -->
|
||||
<string id="SettingsSelect">Välja...</string>
|
||||
<string id="SettingsApiKey">API-nyckel för HomeAssistant.</string>
|
||||
<string id="WifiLteNotAvailable">Ingen Wi-Fi eller LTE tillgänglig</string>
|
||||
<string id="WifiLtePrompt">Utför över Wi-Fi/LTE?</string>
|
||||
<string id="WifiLteExecutionTitle">Skickar till Home Assistant.</string>
|
||||
<string id="WifiLteExecutionDataError">Inga data mottagna.</string>
|
||||
<!-- För inställningsgui bör strängar vara i den ordning de används. -->
|
||||
<string id="SettingsSelect">Välj...</string>
|
||||
<string id="SettingsApiKey">API-nyckel för Home Assistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">Långlivad åtkomsttoken.</string>
|
||||
<string id="SettingsApiUrl">URL för HomeAssistant API.</string>
|
||||
<string id="SettingsApiUrl">URL för Home Assistant API.</string>
|
||||
<string id="SettingsConfigUrl">URL för menykonfiguration (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Ska programmet cachelagra menykonfigurationen?</string>
|
||||
<string id="SettingsClearCache">Ska programmet rensa den befintliga cachen nästa gång den startas?</string>
|
||||
<string id="SettingsCacheConfig">Ska applikationen cachelagra menykonfigurationen?</string>
|
||||
<string id="SettingsClearCache">Ska applikationen rensa den befintliga cachen nästa gång den
|
||||
startas?</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">Sök efter menyuppdateringar vid appstart? Obs: Menycache måste vara aktiverad. Denna inställning kan orsaka att äldre enheter med mindre minne kraschar.</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">Aktivera att köra kommandon via Wi-Fi/LTE.</string>
|
||||
<string id="SettingsVibration">Ska applikationen ge feedback via vibrationer?</string>
|
||||
<string id="SettingsAppTimeout">Timeout i sekunder. Avsluta programmet efter denna period av inaktivitet för att spara enhetens batteri.</string>
|
||||
<string id="SettingsPollDelay">Ytterligare fördröjning (i sekunder). Lägger till en fördröjning mellan statusuppdateringen av alla menyalternativ.</string>
|
||||
<string id="SettingsConfirmTimeout">Efter denna tid (i sekunder) stängs en bekräftelsedialog för en åtgärd automatiskt och åtgärden avbryts. Ställ in på 0 för att inaktivera timeout.</string>
|
||||
<string id="SettingsPin">4-siffrig PIN-kod som ska användas för alla åtgärder som kräver bekräftelse (0000-9999).</string>
|
||||
<string id="SettingsPinError">Vänligen konfigurera en giltig 4-siffrig numerisk PIN-kod mellan 0000 och 9999 i programinställningarna.</string>
|
||||
<string id="SettingsTextAlign">Vänster (av) eller höger (på) menyjustering.</string>
|
||||
<string id="LeftToRight">Vänster till höger</string>
|
||||
<string id="RightToLeft">Höger till vänster</string>
|
||||
<string id="SettingsWidgetStart">(Endast widget) Starta programmet automatiskt från widgeten utan att vänta på ett tryck.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Aktivera bakgrundstjänsten för att skicka enhetens batterinivå, plats och (om stöds) aktivitetsdata till Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Uppdateringshastigheten (i minuter) med vilken bakgrundstjänsten ska upprepa sändning av data.</string>
|
||||
<string id="WebhookId">(Endast läs) Webhook-ID som skapats av enheten för uppdateringar av bakgrundstjänster. Du kan behöva detta för felsökning.</string>
|
||||
<string id="SettingsAppTimeout">Tidsgräns i sekunder. Applikationen avslutas efter denna
|
||||
inaktivitetsperiod för att spara enhetens batteri.</string>
|
||||
<string id="SettingsPollDelay">Ytterligare pollingfördröjning (i sekunder). Lägger till en
|
||||
fördröjning mellan statusuppdateringen av alla menyalternativ.</string>
|
||||
<string id="SettingsConfirmTimeout">Efter denna tid (i sekunder) stängs en bekräftelsedialog för
|
||||
en åtgärd automatiskt och åtgärden avbryts. Ställ in på 0 för att inaktivera tidsgränsen.</string>
|
||||
<string id="SettingsPin">4-siffrig PIN-kod att använda för alla åtgärder som kräver det
|
||||
(0000-9999).</string>
|
||||
<string id="SettingsPinError">Konfigurera en giltig fyrsiffrig numerisk PIN-kod mellan 0000 och
|
||||
9999 i applikationsinställningarna.</string>
|
||||
<string id="SettingsTextAlign">Vänster (av) eller höger (på) menyinriktning.</string>
|
||||
<string id="SettingsLeftToRight">Vänster till höger</string>
|
||||
<string id="SettingsRightToLeft">Höger till vänster</string>
|
||||
<string id="SettingsWidgetStart">(Endast widget) Starta applikationen automatiskt från widgeten
|
||||
utan att vänta på ett tryck.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Aktivera bakgrundstjänsten att skicka enhetens
|
||||
batterinivå, plats och (om det stöds) aktivitetsdata till Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Uppdateringsfrekvensen (i minuter) med vilken
|
||||
bakgrundstjänsten ska upprepa sändningen av data.</string>
|
||||
<string id="SettingsUserHttpHeader">Användardefinierat HTTP-huvud</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">Vissa Home Assistant-installationer kräver att ett
|
||||
anpassat HTTP-huvud anges för att fungera.</string>
|
||||
<string id="SettingsUserHttpHeaderName">Användardefinierat HTTP-huvud: Namn</string>
|
||||
<string id="SettingsUserHttpHeaderValue">Användardefinierat HTTP-huvud: Värde</string>
|
||||
<string id="SettingsClearWebhookId">Återanslut till Home Assistant (rensa Webhook-ID, se
|
||||
Felsökningsguide).</string>
|
||||
<string id="SettingsWebhookId">(Skrivskyddad) Webhook-ID som skapats av enheten för
|
||||
bakgrundstjänstuppdateringar. Du kan behöva detta för felsökning.</string>
|
||||
</strings>
|
||||
|
@@ -9,64 +9,90 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Thai
|
||||
สร้างโดย Google แปลจากภาษาอังกฤษ
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Thai
|
||||
สร้างโดย Google Translate และ gemini-2.5-flash จากภาษาอังกฤษเป็นภาษาไทย
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">การเรียก API เร็วเกินไป กรุณาลดความเร็วคำขอของคุณลง</string>
|
||||
<string id="ApiUrlNotFound">ไม่พบ URL อาจมีข้อผิดพลาด URL API ในการตั้งค่า</string>
|
||||
<string id="ApiFlood">API เรียกเร็วเกินไป โปรดชะลอคำขอของคุณ</string>
|
||||
<string id="ApiUrlNotFound">ไม่พบ URL ข้อผิดพลาด API URL ที่อาจเกิดขึ้นในการตั้งค่า</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">มีอยู่</string>
|
||||
<string id="Cached" scope="glance">แคช</string>
|
||||
<string id="Checking" scope="glance">กำลังตรวจสอบ...</string>
|
||||
<string id="ConfigUrlNotFound">ไม่พบ URL อาจมีข้อผิดพลาดเกี่ยวกับ URL การกำหนดค่าในการตั้งค่า</string>
|
||||
<string id="Checking" scope="glance">ตรวจสอบ...</string>
|
||||
<string id="ConfigUrlNotFound">ไม่พบ URL ข้อผิดพลาด URL การกำหนดค่าที่มีศักยภาพในการตั้งค่า</string>
|
||||
<string id="Confirm">แน่นอน?</string>
|
||||
<string id="Empty">ว่างเปล่า</string>
|
||||
<string id="Executed" scope="glance">ได้รับการยืนยันแล้ว</string>
|
||||
<string id="Executed" scope="glance">ยืนยันแล้ว</string>
|
||||
<string id="GlanceMenu" scope="glance">เมนู</string>
|
||||
<string id="Memory" scope="glance">หน่วยความจำ</string>
|
||||
<string id="MenuUpdated">อัปเดตเมนูรีสตาร์ท</string>
|
||||
<string id="MenuCheckDisabled">การอัปเดตเมนูปิดใช้งาน</string>
|
||||
<string id="NoAPIKey" scope="glance">ไม่มีคีย์ API ในการตั้งค่าแอปพลิเคชัน</string>
|
||||
<string id="NoApiUrl" scope="glance">ไม่มี URL API ในการตั้งค่าแอปพลิเคชัน</string>
|
||||
<string id="NoConfigUrl" scope="glance">ไม่มี URL การกำหนดค่าในการตั้งค่าแอปพลิเคชัน</string>
|
||||
<string id="NoInternet">ไม่มีการเชื่อมต่ออินเตอร์เน็ต</string>
|
||||
<string id="NoJson">ไม่มี JSON ที่ส่งคืนจากคำขอ HTTP</string>
|
||||
<string id="NoInternet">ไม่มีการเชื่อมต่ออินเทอร์เน็ต</string>
|
||||
<string id="NoJson">ไม่มี JSON ส่งคืนจากคำขอ HTTP</string>
|
||||
<string id="NoPhone" scope="glance">ไม่มีการเชื่อมต่อโทรศัพท์</string>
|
||||
<string id="NoResponse">ไม่มีการตอบสนอง กรุณาตรวจสอบการเชื่อมต่ออินเตอร์เน็ต</string>
|
||||
<string id="PinInputLocked">ล็อคอินพุต PIN สำหรับ</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">ไม่มีการเชื่อมต่อโทรศัพท์ ไม่มีเมนูแคช</string>
|
||||
<string id="NoResponse">ไม่มีการตอบกลับ ตรวจสอบการเชื่อมต่ออินเทอร์เน็ต</string>
|
||||
<string id="TimedOut">หมดเวลา</string>
|
||||
<string id="PinInputLocked">อินพุตพินล็อคสำหรับ</string>
|
||||
<string id="PotentialError">ข้อผิดพลาดที่อาจเกิดขึ้น</string>
|
||||
<string id="Seconds">วินาที</string>
|
||||
<string id="TemplateError">ข้อผิดพลาดเทมเพลต</string>
|
||||
<string id="TrailingSlashErr">URL ของ API จะต้องไม่มีเครื่องหมายทับต่อท้าย '/'</string>
|
||||
<string id="TrailingSlashErr">URL API จะต้องไม่มี Slash ต่อท้าย '/'</string>
|
||||
<string id="Unavailable" scope="glance">ไม่สามารถใช้งานได้</string>
|
||||
<string id="Unconfigured" scope="glance">ไม่ได้กำหนดค่า</string>
|
||||
<string id="UnhandledHttpErr">คำขอ HTTP ส่งกลับรหัสข้อผิดพลาด =</string>
|
||||
<string id="WebhookFailed">ไม่สามารถลงทะเบียน Webhook ได้</string>
|
||||
<string id="WrongPin">รหัส PIN ผิด</string>
|
||||
<!-- สำหรับ GUI การตั้งค่า สตริงควรอยู่ในลำดับที่ใช้ -->
|
||||
<string id="UnhandledHttpErr">คำขอ HTTP ส่งคืนรหัสข้อผิดพลาด =</string>
|
||||
<string id="WebhookFailed">ไม่สามารถลงทะเบียน Webhook</string>
|
||||
<string id="WrongPin">พินผิด</string>
|
||||
<string id="WifiLteNotAvailable">ไม่มี Wi-Fi หรือ LTE</string>
|
||||
<string id="WifiLtePrompt">ดำเนินการผ่าน Wi-Fi/LTE?</string>
|
||||
<string id="WifiLteExecutionTitle">ส่งไปยัง Home Assistant</string>
|
||||
<string id="WifiLteExecutionDataError">ไม่ได้รับข้อมูล</string>
|
||||
<!-- สำหรับการตั้งค่า GUI สตริงควรอยู่ในลำดับที่ใช้ -->
|
||||
<string id="SettingsSelect">เลือก...</string>
|
||||
<string id="SettingsApiKey">API Key สำหรับ HomeAssistant</string>
|
||||
<string id="SettingsApiKeyPrompt">โทเค็นการเข้าถึงที่มีอายุยืนยาว</string>
|
||||
<string id="SettingsApiUrl">URL สำหรับ HomeAssistant API</string>
|
||||
<string id="SettingsApiKey">คีย์ API สำหรับ HomeAssistant</string>
|
||||
<string id="SettingsApiKeyPrompt">โทเค็นการเข้าถึงระยะยาว</string>
|
||||
<string id="SettingsApiUrl">URL สำหรับ API HomeAssistant</string>
|
||||
<string id="SettingsConfigUrl">URL สำหรับการกำหนดค่าเมนู (JSON)</string>
|
||||
<string id="SettingsCacheConfig">แอปพลิเคชันควรแคชการกำหนดค่าเมนูหรือไม่</string>
|
||||
<string id="SettingsClearCache">แอปพลิเคชันควรจะล้างแคชที่มีอยู่บนสุดในครั้งต่อไปที่เริ่มต้นใช้งานหรือไม่</string>
|
||||
<string id="SettingsCacheConfig">แอปพลิเคชันควรแคชการกำหนดค่าเมนูหรือไม่?</string>
|
||||
<string id="SettingsClearCache">แอปพลิเคชันควรล้างแคชที่มีอยู่ครั้งต่อไปที่เริ่มต้นหรือไม่?</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">ตรวจสอบการอัปเดตเมนูเมื่อเริ่มต้นแอปพลิเคชันหรือไม่? หมายเหตุ: ต้องเปิดใช้งานการแคชเมนู การตั้งค่านี้อาจทำให้อุปกรณ์รุ่นเก่าที่มีหน่วยความจำน้อยกว่าขัดข้อง</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">เปิดใช้งานการดำเนินการคำสั่งผ่าน Wi-Fi/LTE</string>
|
||||
<string id="SettingsVibration">แอปพลิเคชันควรให้ข้อเสนอแนะผ่านการสั่นสะเทือนหรือไม่?</string>
|
||||
<string id="SettingsAppTimeout">หมดเวลาในไม่กี่วินาที ออกจากแอปพลิเคชันหลังจากช่วงเวลาที่ไม่ได้ใช้งานเพื่อประหยัดแบตเตอรี่ของอุปกรณ์</string>
|
||||
<string id="SettingsPollDelay">การหน่วงเวลาการสำรวจเพิ่มเติม (เป็นวินาที) เพิ่มการหน่วงเวลาระหว่างการอัปเดตสถานะของรายการเมนูทั้งหมด</string>
|
||||
<string id="SettingsConfirmTimeout">หลังจากเวลาที่กำหนด (เป็นวินาที) กล่องโต้ตอบยืนยันการดำเนินการจะถูกปิดโดยอัตโนมัติและการดำเนินการจะถูกยกเลิก ตั้งค่าเป็น 0 เพื่อปิดใช้งานการหมดเวลา</string>
|
||||
<string id="SettingsPin">รหัส PIN 4 หลักที่จะใช้สำหรับทุกการกระทำที่ต้องได้รับการยืนยัน (0000-9999)</string>
|
||||
<string id="SettingsPinError">กรุณาตั้งค่ารหัส PIN ตัวเลข 4 หลักที่ถูกต้องระหว่าง 0000 ถึง 9999 ในการตั้งค่าแอปพลิเคชัน</string>
|
||||
<string id="SettingsTextAlign">การจัดตำแหน่งเมนูด้านซ้าย (ปิด) หรือด้านขวา (เปิด)</string>
|
||||
<string id="LeftToRight">จากซ้ายไปขวา</string>
|
||||
<string id="RightToLeft">จากขวาไปซ้าย</string>
|
||||
<string id="SettingsWidgetStart">(เฉพาะวิดเจ็ต) เริ่มแอปพลิเคชันจากวิดเจ็ตโดยอัตโนมัติโดยไม่ต้องรอแตะ</string>
|
||||
<string id="SettingsEnableBatteryLevel">เปิดใช้งานบริการพื้นหลังเพื่อส่งระดับแบตเตอรี่ของอุปกรณ์ ตำแหน่ง และข้อมูลกิจกรรม (ถ้ารองรับ) ไปยัง Home Assistant</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">อัตราการรีเฟรช (เป็นนาที) ที่บริการพื้นหลังควรจะส่งข้อมูลซ้ำ</string>
|
||||
<string id="WebhookId">(อ่านอย่างเดียว) ID เว็บฮุกที่สร้างโดยอุปกรณ์สำหรับการอัปเดตบริการเบื้องหลัง คุณอาจต้องใช้สิ่งนี้เพื่อแก้ไขข้อบกพร่อง</string>
|
||||
<string id="SettingsAppTimeout">หมดเวลา (วินาที)
|
||||
ออกจากแอปพลิเคชันหลังจากช่วงเวลาที่ไม่มีการใช้งานเพื่อประหยัดแบตเตอรี่อุปกรณ์</string>
|
||||
<string id="SettingsPollDelay">ความล่าช้าในการสำรวจเพิ่มเติม (วินาที)
|
||||
เพิ่มความล่าช้าระหว่างการอัปเดตสถานะของรายการเมนูทั้งหมด</string>
|
||||
<string id="SettingsConfirmTimeout">หลังจากเวลานี้ (วินาที)
|
||||
กล่องโต้ตอบยืนยันสำหรับการกระทำจะถูกปิดโดยอัตโนมัติและการดำเนินการจะถูกยกเลิก ตั้งค่าเป็น 0
|
||||
เพื่อปิดการหมดเวลา</string>
|
||||
<string id="SettingsPin">พิน 4 หลักที่จะใช้สำหรับการกระทำทั้งหมดที่ต้องการ (0000-9999)</string>
|
||||
<string id="SettingsPinError">โปรดกำหนดค่าพินตัวเลข 4 หลักที่ถูกต้องระหว่าง 0000 ถึง 9999
|
||||
ในการตั้งค่าแอปพลิเคชัน</string>
|
||||
<string id="SettingsTextAlign">การจัดตำแหน่งเมนูซ้าย (ปิด) หรือขวา (เปิด)</string>
|
||||
<string id="SettingsLeftToRight">จากซ้ายไปขวา</string>
|
||||
<string id="SettingsRightToLeft">ขวาไปซ้าย</string>
|
||||
<string id="SettingsWidgetStart">(วิดเจ็ตเท่านั้น)
|
||||
เริ่มแอปพลิเคชันจากวิดเจ็ตโดยอัตโนมัติโดยไม่ต้องรอแตะ</string>
|
||||
<string id="SettingsEnableBatteryLevel">เปิดใช้งานบริการพื้นหลังเพื่อส่งระดับแบตเตอรี่ของอุปกรณ์
|
||||
ตำแหน่ง และข้อมูลกิจกรรม (ถ้ารองรับ) ไปยัง Home Assistant</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">อัตราการรีเฟรช (นาที)
|
||||
ที่บริการพื้นหลังควรส่งข้อมูลซ้ำ</string>
|
||||
<string id="SettingsUserHttpHeader">ส่วนหัว HTTP ที่ผู้ใช้จัดหา</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">การติดตั้ง Home Assistant
|
||||
บางรายการต้องการการระบุส่วนหัว HTTP ที่กำหนดเองเพื่อให้สามารถทำงานได้</string>
|
||||
<string id="SettingsUserHttpHeaderName">ส่วนหัว HTTP ที่ผู้ใช้ระบุ: ชื่อ</string>
|
||||
<string id="SettingsUserHttpHeaderValue">ส่วนหัว HTTP ที่ผู้ใช้ระบุ: ค่า</string>
|
||||
<string id="SettingsClearWebhookId">เชื่อมต่อกับ Home Assistant (ล้าง Webhook ID
|
||||
ดูคู่มือการแก้ไขปัญหา)</string>
|
||||
<string id="SettingsWebhookId">(อ่านเท่านั้น) Webhook ID
|
||||
ที่สร้างโดยอุปกรณ์สำหรับการอัปเดตบริการพื้นหลัง คุณอาจต้องการสิ่งนี้สำหรับการดีบัก</string>
|
||||
</strings>
|
||||
|
@@ -9,13 +9,13 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Turkish
|
||||
Google Translate tarafından İngilizce'den oluşturuldu
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Turkish
|
||||
Google Çeviri ve gemini-2.5-flash tarafından İngilizceden Türkçeye çevrilmiştir
|
||||
-->
|
||||
|
||||
<strings>
|
||||
@@ -23,50 +23,78 @@
|
||||
<string id="ApiUrlNotFound">URL bulunamadı. Ayarlarda potansiyel API URL hatası.</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">Mevcut</string>
|
||||
<string id="Cached" scope="glance">Önbelleğe alındı</string>
|
||||
<string id="Cached" scope="glance">Önbelleğe alınmış</string>
|
||||
<string id="Checking" scope="glance">Kontrol ediliyor...</string>
|
||||
<string id="ConfigUrlNotFound">URL bulunamadı. Ayarlarda potansiyel Yapılandırma URL hatası.</string>
|
||||
<string id="Confirm">Elbette?</string>
|
||||
<string id="ConfigUrlNotFound">URL bulunamadı. Ayarlarda potansiyel yapılandırma URL hatası.</string>
|
||||
<string id="Confirm">Onayla?</string>
|
||||
<string id="Empty">Boş</string>
|
||||
<string id="Executed" scope="glance">Onaylandı</string>
|
||||
<string id="Executed" scope="glance">Onaylanmış</string>
|
||||
<string id="GlanceMenu" scope="glance">Menü</string>
|
||||
<string id="Memory" scope="glance">Hafıza</string>
|
||||
<string id="MenuUpdated">Menü güncellendi, yeniden başlat.</string>
|
||||
<string id="MenuCheckDisabled">Menü güncellemeleri devre dışı.</string>
|
||||
<string id="NoAPIKey" scope="glance">Uygulama ayarlarında API anahtarı yok.</string>
|
||||
<string id="NoApiUrl" scope="glance">Uygulama ayarlarında API URL'si yok.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Uygulama ayarlarında yapılandırma URL'si yok.</string>
|
||||
<string id="NoInternet">İnternet bağlantısı yok.</string>
|
||||
<string id="NoJson">HTTP isteğinden JSON döndürülmedi.</string>
|
||||
<string id="NoJson">HTTP isteğinden JSON dönmedi.</string>
|
||||
<string id="NoPhone" scope="glance">Telefon bağlantısı yok.</string>
|
||||
<string id="NoResponse">Cevap yok, İnternet bağlantısını kontrol edin</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">Telefon bağlantısı yok, önbelleğe alınmış menü yok.</string>
|
||||
<string id="NoResponse">Yanıt yok, İnternet bağlantısını kontrol edin</string>
|
||||
<string id="TimedOut">İstek zaman aşımına uğradı.</string>
|
||||
<string id="PinInputLocked">PIN girişi kilitlendi</string>
|
||||
<string id="PotentialError">Potansiyel Hata</string>
|
||||
<string id="Seconds">saniyeler</string>
|
||||
<string id="TemplateError">Şablon Hatası</string>
|
||||
<string id="TrailingSlashErr">API URL'sinin sonunda eğik çizgi '/' bulunmamalıdır.</string>
|
||||
<string id="Unavailable" scope="glance">Mevcut değil</string>
|
||||
<string id="PotentialError">Potansiyel hata</string>
|
||||
<string id="Seconds">saniye</string>
|
||||
<string id="TemplateError">Şablon hatası</string>
|
||||
<string id="TrailingSlashErr">API URL'si sonunda '/' olmamalıdır.</string>
|
||||
<string id="Unavailable" scope="glance">Kullanılamıyor</string>
|
||||
<string id="Unconfigured" scope="glance">Yapılandırılmamış</string>
|
||||
<string id="UnhandledHttpErr">HTTP isteği hata kodu döndürdü =</string>
|
||||
<string id="WebhookFailed">Webhook'u kaydetme başarısız oldu</string>
|
||||
<string id="WebhookFailed">Webhook kaydedilemedi</string>
|
||||
<string id="WrongPin">Yanlış PIN</string>
|
||||
<!-- Ayarlar GUI'si için dizeler kullanıldıkları sıraya göre olmalıdır. -->
|
||||
<string id="SettingsSelect">Seçme...</string>
|
||||
<string id="SettingsApiKey">HomeAssistant için API Anahtarı.</string>
|
||||
<string id="SettingsApiKeyPrompt">Uzun Ömürlü Erişim Jetonu.</string>
|
||||
<string id="SettingsApiUrl">HomeAssistant API'sinin URL'si.</string>
|
||||
<string id="WifiLteNotAvailable">Wi-Fi veya LTE yok</string>
|
||||
<string id="WifiLtePrompt">Wi-Fi/LTE üzerinden yürütülsün mü?</string>
|
||||
<string id="WifiLteExecutionTitle">Home Assistant'a gönderiliyor.</string>
|
||||
<string id="WifiLteExecutionDataError">Alınan veri yok.</string>
|
||||
<!-- Ayarlar GUI için dizeler kullanıldıkları sırayla olmalıdır. -->
|
||||
<string id="SettingsSelect">Seç...</string>
|
||||
<string id="SettingsApiKey">Home Assistant için API Anahtarı.</string>
|
||||
<string id="SettingsApiKeyPrompt">Uzun ömürlü erişim belirteci.</string>
|
||||
<string id="SettingsApiUrl">Home Assistant API için URL.</string>
|
||||
<string id="SettingsConfigUrl">Menü yapılandırması için URL (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Uygulama menü yapılandırmasını önbelleğe almalı mı?</string>
|
||||
<string id="SettingsClearCache">Uygulama bir sonraki başlatıldığında mevcut önbelleği temizlemeli mi?</string>
|
||||
<string id="SettingsVibration">Uygulama titreşim yoluyla geri bildirim sağlamalı mı?</string>
|
||||
<string id="SettingsAppTimeout">Saniye cinsinden zaman aşımı. Cihaz pilini korumak için bu süre boyunca hareketsizlikten sonra uygulamadan çıkın.</string>
|
||||
<string id="SettingsPollDelay">Ek anket gecikmesi (saniye cinsinden). Tüm menü öğelerinin durum güncellemesi arasına bir gecikme ekler.</string>
|
||||
<string id="SettingsConfirmTimeout">Bu süreden sonra (saniye cinsinden), bir eylem için onay iletişim kutusu otomatik olarak kapatılır ve eylem iptal edilir. Zaman aşımını devre dışı bırakmak için 0 olarak ayarlayın.</string>
|
||||
<string id="SettingsPin">Onay gerektiren tüm işlemlerde kullanılacak 4 haneli PIN (0000-9999).</string>
|
||||
<string id="SettingsPinError">Lütfen uygulama ayarlarından 0000 ile 9999 arasında geçerli bir 4 haneli sayısal PIN yapılandırın.</string>
|
||||
<string id="SettingsTextAlign">Sol (kapalı) veya Sağ (açık) Menü Hizalaması.</string>
|
||||
<string id="LeftToRight">Soldan sağa</string>
|
||||
<string id="RightToLeft">Sağdan Sola</string>
|
||||
<string id="SettingsWidgetStart">(Yalnızca Widget) Dokunmayı beklemeden uygulamayı widget'tan otomatik olarak başlat.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Cihazın pil seviyesini, konumunu ve (destekleniyorsa) etkinlik verilerini Home Assistant'a göndermek için arka plan hizmetini etkinleştirin.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Arka plan hizmetinin veri göndermeyi tekrarlaması gereken yenileme hızı (dakika cinsinden).</string>
|
||||
<string id="WebhookId">(Salt okunur) Arkaplan servis güncellemeleri için cihaz tarafından oluşturulan Webhook Kimliği. Hata ayıklama için buna ihtiyacınız olabilir.</string>
|
||||
<string id="SettingsClearCache">Uygulama bir sonraki başlangıcında mevcut önbelleği temizlemeli
|
||||
mi?</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">Uygulama başlangıcında menü güncellemelerini kontrol etsin mi? Not: Menü önbelleğe alma etkin olmalıdır. Bu ayar, daha az belleğe sahip eski cihazların çökmesine neden olabilir.</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">Wi-Fi/LTE üzerinden komutların yürütülmesini
|
||||
etkinleştirin.</string>
|
||||
<string id="SettingsVibration">Uygulama titreşimlerle geri bildirim sağlamalı mı?</string>
|
||||
<string id="SettingsAppTimeout">Saniye cinsinden zaman aşımı. Cihazın pilini korumak için bu
|
||||
hareketsizlik süresinden sonra uygulamadan çıkın.</string>
|
||||
<string id="SettingsPollDelay">Ek sorgulama gecikmesi (saniye cinsinden). Tüm menü öğelerinin
|
||||
durum güncellemeleri arasına bir gecikme ekler.</string>
|
||||
<string id="SettingsConfirmTimeout">Bu süreden sonra (saniye cinsinden), bir eylem için onay
|
||||
iletişim kutusu otomatik olarak kapatılır ve eylem iptal edilir. Zaman aşımını devre dışı
|
||||
bırakmak için 0 olarak ayarlayın.</string>
|
||||
<string id="SettingsPin">Gerektiren tüm eylemler için kullanılacak 4 haneli PIN (0000-9999).</string>
|
||||
<string id="SettingsPinError">Lütfen uygulama ayarlarında 0000 ve 9999 arasında geçerli bir 4
|
||||
haneli sayısal PIN yapılandırın.</string>
|
||||
<string id="SettingsTextAlign">Sol (kapalı) veya sağ (açık) menü hizalaması.</string>
|
||||
<string id="SettingsLeftToRight">Soldan sağa</string>
|
||||
<string id="SettingsRightToLeft">Sağdan sola</string>
|
||||
<string id="SettingsWidgetStart">(Yalnızca widget) Dokunmayı beklemeden uygulamayı widget'tan
|
||||
otomatik olarak başlatın.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Arka plan hizmetinin cihaz pil seviyesini, konumunu ve
|
||||
(destekleniyorsa) etkinlik verilerini Home Assistant'a göndermesini etkinleştirin.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Arka plan hizmetinin veri göndermeyi tekrarlayacağı
|
||||
yenileme hızı (dakika cinsinden).</string>
|
||||
<string id="SettingsUserHttpHeader">Kullanıcı tarafından sağlanan HTTP başlığı</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">Bazı Home Assistant kurulumları, çalışabilmek için
|
||||
özel bir HTTP başlığının belirtilmesini gerektirir.</string>
|
||||
<string id="SettingsUserHttpHeaderName">Kullanıcı tarafından sağlanan HTTP-Header: Ad</string>
|
||||
<string id="SettingsUserHttpHeaderValue">Kullanıcı tarafından sağlanan HTTP-Header: Değer</string>
|
||||
<string id="SettingsClearWebhookId">Home Assistant'a yeniden bağlanın (Webhook Kimliğini
|
||||
temizleyin, bkz. Sorun Giderme Kılavuzu).</string>
|
||||
<string id="SettingsWebhookId">(Yalnızca okuyun) Arka plan hizmeti güncellemeleri için cihaz
|
||||
tarafından oluşturulan Webhook Kimliği. Hata ayıklama için buna ihtiyacınız olabilir.</string>
|
||||
</strings>
|
||||
|
@@ -9,64 +9,94 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Ukrainian
|
||||
Створено Google Translate з англійської
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Ukrainian
|
||||
Згенеровано Google Translate та gemini-2.5-flash з англійської на українську
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">Надто швидкі виклики API. Будь ласка, сповільніть свої запити.</string>
|
||||
<string id="ApiUrlNotFound">URL не знайдено. Потенційна помилка URL-адреси API в налаштуваннях.</string>
|
||||
<string id="ApiFlood">Занадто часті виклики API. Будь ласка, уповільніть свої запити.</string>
|
||||
<string id="ApiUrlNotFound">URL-адреса не знайдена. Можлива помилка URL-адреси API в
|
||||
налаштуваннях.</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">в наявності</string>
|
||||
<string id="Available" scope="glance">Доступно</string>
|
||||
<string id="Cached" scope="glance">Кешовано</string>
|
||||
<string id="Checking" scope="glance">Перевірка...</string>
|
||||
<string id="ConfigUrlNotFound">URL не знайдено. Потенційна помилка URL-адреси конфігурації в налаштуваннях.</string>
|
||||
<string id="Confirm">Зрозуміло?</string>
|
||||
<string id="Empty">Порожній</string>
|
||||
<string id="ConfigUrlNotFound">URL-адреса не знайдена. Можлива помилка URL-адреси конфігурації в
|
||||
налаштуваннях.</string>
|
||||
<string id="Confirm">Підтвердити?</string>
|
||||
<string id="Empty">Порожньо</string>
|
||||
<string id="Executed" scope="glance">Підтверджено</string>
|
||||
<string id="GlanceMenu" scope="glance">Меню</string>
|
||||
<string id="Memory" scope="glance">Пам'ять</string>
|
||||
<string id="NoAPIKey" scope="glance">У налаштуваннях програми немає ключа API.</string>
|
||||
<string id="NoApiUrl" scope="glance">У налаштуваннях програми немає URL-адреси API.</string>
|
||||
<string id="NoConfigUrl" scope="glance">У налаштуваннях програми немає URL-адреси конфігурації.</string>
|
||||
<string id="MenuUpdated">Меню оновлено, перезапустіть.</string>
|
||||
<string id="MenuCheckDisabled">Оновлення меню вимкнено.</string>
|
||||
<string id="NoAPIKey" scope="glance">Немає ключа API в налаштуваннях програми.</string>
|
||||
<string id="NoApiUrl" scope="glance">Немає URL-адреси API в налаштуваннях програми.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Немає URL-адреси конфігурації в налаштуваннях програми.</string>
|
||||
<string id="NoInternet">Немає підключення до Інтернету.</string>
|
||||
<string id="NoJson">Запит HTTP не повертає JSON.</string>
|
||||
<string id="NoPhone" scope="glance">Немає телефонного зв'язку.</string>
|
||||
<string id="NoResponse">Немає відповіді, перевірте підключення до Інтернету</string>
|
||||
<string id="PinInputLocked">Введення PIN-коду заблоковано для</string>
|
||||
<string id="PotentialError">Потенційна помилка</string>
|
||||
<string id="NoJson">HTTP-запит не повернув JSON.</string>
|
||||
<string id="NoPhone" scope="glance">Немає підключення до телефону.</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">Немає підключення до телефону, немає кешованого меню.</string>
|
||||
<string id="NoResponse">Немає відповіді, перевірте підключення до Інтернету.</string>
|
||||
<string id="TimedOut">Тайм-аут запиту</string>
|
||||
<string id="PinInputLocked">Введення PIN-коду заблоковано на</string>
|
||||
<string id="PotentialError">Можлива помилка</string>
|
||||
<string id="Seconds">секунд</string>
|
||||
<string id="TemplateError">Помилка шаблону</string>
|
||||
<string id="TrailingSlashErr">URL-адреса API не повинна містити косу риску '/'.</string>
|
||||
<string id="Unavailable" scope="glance">Недоступний</string>
|
||||
<string id="Unconfigured" scope="glance">Неналаштований</string>
|
||||
<string id="UnhandledHttpErr">Запит HTTP повернув код помилки =</string>
|
||||
<string id="WebhookFailed">Не вдалося зареєструвати Webhook</string>
|
||||
<string id="TrailingSlashErr">URL-адреса API не повинна містити кінцевої косої риски '/'.</string>
|
||||
<string id="Unavailable" scope="glance">Недоступно</string>
|
||||
<string id="Unconfigured" scope="glance">Не налаштовано</string>
|
||||
<string id="UnhandledHttpErr">HTTP-запит повернув код помилки = </string>
|
||||
<string id="WebhookFailed">Не вдалося зареєструвати вебхук</string>
|
||||
<string id="WrongPin">Неправильний PIN-код</string>
|
||||
<!-- У графічному інтерфейсі налаштувань рядки мають бути в порядку їх використання. -->
|
||||
<string id="WifiLteNotAvailable">Немає Wi-Fi або LTE</string>
|
||||
<string id="WifiLtePrompt">Виконати через Wi-Fi/LTE?</string>
|
||||
<string id="WifiLteExecutionTitle">Надсилання до Home Assistant.</string>
|
||||
<string id="WifiLteExecutionDataError">Дані не отримано.</string>
|
||||
<!-- Для графічного інтерфейсу налаштувань рядки повинні бути в порядку їх використання. -->
|
||||
<string id="SettingsSelect">Виберіть...</string>
|
||||
<string id="SettingsApiKey">Ключ API для HomeAssistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">Довговічний маркер доступу.</string>
|
||||
<string id="SettingsApiUrl">URL для HomeAssistant API.</string>
|
||||
<string id="SettingsConfigUrl">URL для налаштування меню (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Чи має програма кешувати конфігурацію меню?</string>
|
||||
<string id="SettingsClearCache">Чи слід програмі очистити наявний кеш під час наступного запуску?</string>
|
||||
<string id="SettingsVibration">Чи має програма надавати зворотній зв’язок за допомогою вібрації?</string>
|
||||
<string id="SettingsAppTimeout">Час очікування в секундах. Вийдіть із програми після цього періоду бездіяльності, щоб заощадити батарею пристрою.</string>
|
||||
<string id="SettingsPollDelay">Додаткова затримка опитування (у секундах). Додає затримку між оновленням статусу всіх пунктів меню.</string>
|
||||
<string id="SettingsConfirmTimeout">Після закінчення цього часу (у секундах) діалогове вікно підтвердження дії автоматично закривається, а дія скасовується. Встановіть 0, щоб вимкнути тайм-аут.</string>
|
||||
<string id="SettingsPin">4-значний PIN-код для всіх дій, які потребують підтвердження (0000-9999).</string>
|
||||
<string id="SettingsPinError">Налаштуйте дійсний 4-значний цифровий PIN-код між 0000 і 9999 у налаштуваннях програми.</string>
|
||||
<string id="SettingsTextAlign">Ліворуч (вимкнено) або праворуч (увімкнено) вирівнювання меню.</string>
|
||||
<string id="LeftToRight">Зліва направо</string>
|
||||
<string id="RightToLeft">Справа наліво</string>
|
||||
<string id="SettingsWidgetStart">(Лише віджет) Автоматично запускайте програму з віджета, не чекаючи дотику.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Увімкніть фонову службу, щоб надсилати дані про рівень заряду акумулятора пристрою, місцезнаходження та (якщо підтримується) дані про активність до Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Частота оновлення (у хвилинах), з якою фонова служба має повторювати надсилання даних.</string>
|
||||
<string id="WebhookId">(Лише для читання) Ідентифікатор Webhook, створений пристроєм для фонового оновлення служби. Це може знадобитися для налагодження.</string>
|
||||
<string id="SettingsApiKey">Ключ API для Home Assistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">Довгостроковий маркер доступу.</string>
|
||||
<string id="SettingsApiUrl">URL-адреса для API Home Assistant.</string>
|
||||
<string id="SettingsConfigUrl">URL-адреса для конфігурації меню (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Чи повинна програма кешувати конфігурацію меню?</string>
|
||||
<string id="SettingsClearCache">Чи повинна програма очистити наявний кеш під час наступного
|
||||
запуску?</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">Перевіряти оновлення меню під час запуску програми? Примітка: Кешування меню має бути увімкнено. Цей параметр може призвести до збоїв на старих пристроях з меншим обсягом пам'яті.</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">Увімкнути виконання команд через Wi-Fi/LTE.</string>
|
||||
<string id="SettingsVibration">Чи повинна програма надавати зворотний зв'язок за допомогою
|
||||
вібрацій?</string>
|
||||
<string id="SettingsAppTimeout">Тайм-аут у секундах. Вихід з програми після цього періоду
|
||||
бездіяльності для заощадження заряду батареї пристрою.</string>
|
||||
<string id="SettingsPollDelay">Додаткова затримка опитування (у секундах). Додає затримку між
|
||||
оновленням статусу всіх пунктів меню.</string>
|
||||
<string id="SettingsConfirmTimeout">Після цього часу (у секундах) діалогове вікно підтвердження
|
||||
дії автоматично закривається, і дію скасовано. Встановіть 0, щоб вимкнути тайм-аут.</string>
|
||||
<string id="SettingsPin">4-значний PIN-код, що використовується для всіх дій, які його вимагають
|
||||
(0000-9999).</string>
|
||||
<string id="SettingsPinError">Будь ласка, налаштуйте дійсний 4-значний числовий PIN-код від 0000
|
||||
до 9999 у налаштуваннях програми.</string>
|
||||
<string id="SettingsTextAlign">Зліва (вимкнено) або праворуч (увімкнено) вирівнювання меню.</string>
|
||||
<string id="SettingsLeftToRight">Зліва направо</string>
|
||||
<string id="SettingsRightToLeft">Справа наліво</string>
|
||||
<string id="SettingsWidgetStart">(Тільки віджет) Автоматично запускати програму з віджета, не
|
||||
чекаючи натискання.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Увімкнути фонову службу для надсилання рівня заряду
|
||||
батареї пристрою, місцезнаходження та (якщо підтримується) даних активності до Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Частота оновлення (у хвилинах), з якою фонова служба
|
||||
повинна повторно надсилати дані.</string>
|
||||
<string id="SettingsUserHttpHeader">Наданий користувачем HTTP-заголовок</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">Деякі інсталяції Home Assistant вимагають
|
||||
зазначення спеціального HTTP-заголовка для функціонування.</string>
|
||||
<string id="SettingsUserHttpHeaderName">Наданий користувачем HTTP-заголовок: Ім'я</string>
|
||||
<string id="SettingsUserHttpHeaderValue">Наданий користувачем HTTP-заголовок: Значення</string>
|
||||
<string id="SettingsClearWebhookId">Повторне підключення до Home Assistant (очистити ID вебхука,
|
||||
див. Посібник з усунення несправностей).</string>
|
||||
<string id="SettingsWebhookId">(Тільки для читання) ID вебхука, створений пристроєм для оновлень
|
||||
фонових служб. Він може знадобитися для налагодження.</string>
|
||||
</strings>
|
||||
|
@@ -9,64 +9,92 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Vietnamese
|
||||
Được tạo ra bởi Google Dịch từ tiếng Anh
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Vietnamese
|
||||
Được tạo bởi Google Dịch và gemini-2.5-flash từ tiếng Anh sang tiếng Việt
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">Cuộc gọi API quá nhanh. Vui lòng làm chậm yêu cầu của bạn.</string>
|
||||
<string id="ApiUrlNotFound">Không tìm thấy URL. Có thể có lỗi URL API trong cài đặt.</string>
|
||||
<string id="ApiFlood">API gọi quá nhanh. Vui lòng làm chậm các yêu cầu của bạn.</string>
|
||||
<string id="ApiUrlNotFound">URL không tìm thấy. Lỗi URL API tiềm năng trong cài đặt.</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">Có sẵn</string>
|
||||
<string id="Cached" scope="glance">Đã lưu trữ</string>
|
||||
<string id="Checking" scope="glance">Đang kiểm tra...</string>
|
||||
<string id="ConfigUrlNotFound">Không tìm thấy URL. Có thể có lỗi URL cấu hình trong cài đặt.</string>
|
||||
<string id="Cached" scope="glance">Đã lưu vào bộ nhớ đệm</string>
|
||||
<string id="Checking" scope="glance">Kiểm tra...</string>
|
||||
<string id="ConfigUrlNotFound">URL không tìm thấy. Lỗi URL cấu hình tiềm năng trong cài đặt.</string>
|
||||
<string id="Confirm">Chắc chắn?</string>
|
||||
<string id="Empty">Trống</string>
|
||||
<string id="Executed" scope="glance">Đã xác nhận</string>
|
||||
<string id="GlanceMenu" scope="glance">Thực đơn</string>
|
||||
<string id="Memory" scope="glance">Ký ức</string>
|
||||
<string id="Executed" scope="glance">Xác nhận</string>
|
||||
<string id="GlanceMenu" scope="glance">Menu</string>
|
||||
<string id="Memory" scope="glance">Bộ nhớ</string>
|
||||
<string id="MenuUpdated">Menu được cập nhật, khởi động lại.</string>
|
||||
<string id="MenuCheckDisabled">Cập nhật menu bị vô hiệu hóa.</string>
|
||||
<string id="NoAPIKey" scope="glance">Không có khóa API trong cài đặt ứng dụng.</string>
|
||||
<string id="NoApiUrl" scope="glance">Không có URL API trong cài đặt ứng dụng.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Không có URL cấu hình trong cài đặt ứng dụng.</string>
|
||||
<string id="NoInternet">Không có kết nối Internet.</string>
|
||||
<string id="NoJson">Không có JSON nào được trả về từ yêu cầu HTTP.</string>
|
||||
<string id="NoInternet">Không có kết nối internet.</string>
|
||||
<string id="NoJson">Không có JSON được trả về từ yêu cầu HTTP.</string>
|
||||
<string id="NoPhone" scope="glance">Không có kết nối điện thoại.</string>
|
||||
<string id="NoResponse">Không có phản hồi, hãy kiểm tra kết nối Internet</string>
|
||||
<string id="PinInputLocked">Mã PIN đầu vào bị khóa</string>
|
||||
<string id="PotentialError">Lỗi tiềm ẩn</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">Không kết nối điện thoại, không có menu được lưu trong
|
||||
bộ nhớ cache.</string>
|
||||
<string id="NoResponse">Không có phản hồi, kiểm tra kết nối Internet</string>
|
||||
<string id="TimedOut">Yêu cầu đã hết thời gian chờ</string>
|
||||
<string id="PinInputLocked">Nhập mã PIN bị khóa trong</string>
|
||||
<string id="PotentialError">Lỗi tiềm năng</string>
|
||||
<string id="Seconds">giây</string>
|
||||
<string id="TemplateError">Lỗi mẫu</string>
|
||||
<string id="TrailingSlashErr">URL API không được có dấu gạch chéo '/' ở cuối.</string>
|
||||
<string id="Unavailable" scope="glance">Không có sẵn</string>
|
||||
<string id="Unconfigured" scope="glance">Chưa cấu hình</string>
|
||||
<string id="UnhandledHttpErr">Yêu cầu HTTP trả về mã lỗi =</string>
|
||||
<string id="WebhookFailed">Không đăng ký được Webhook</string>
|
||||
<string id="WrongPin">Mã PIN sai</string>
|
||||
<!-- Đối với giao diện cài đặt, các chuỗi phải được sắp xếp theo thứ tự sử dụng. -->
|
||||
<string id="WebhookFailed">Đăng ký Webhook thất bại</string>
|
||||
<string id="WrongPin">PIN sai</string>
|
||||
<string id="WifiLteNotAvailable">Không có Wi-Fi hoặc LTE có sẵn</string>
|
||||
<string id="WifiLtePrompt">Thực hiện qua Wi-Fi/LTE?</string>
|
||||
<string id="WifiLteExecutionTitle">Đang gửi đến Home Assistant.</string>
|
||||
<string id="WifiLteExecutionDataError">Không nhận được dữ liệu.</string>
|
||||
<!-- Đối với GUI cài đặt, các chuỗi phải theo thứ tự chúng được sử dụng. -->
|
||||
<string id="SettingsSelect">Lựa chọn...</string>
|
||||
<string id="SettingsApiKey">Khóa API cho HomeAssistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">Mã thông báo truy cập lâu dài.</string>
|
||||
<string id="SettingsApiUrl">URL cho API HomeAssistant.</string>
|
||||
<string id="SettingsConfigUrl">URL để cấu hình menu (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Ứng dụng có nên lưu trữ cấu hình menu vào bộ nhớ đệm không?</string>
|
||||
<string id="SettingsClearCache">Ứng dụng có nên xóa bộ nhớ đệm hiện có khi khởi động lần sau không?</string>
|
||||
<string id="SettingsVibration">Ứng dụng có nên cung cấp phản hồi thông qua rung động không?</string>
|
||||
<string id="SettingsAppTimeout">Thời gian chờ tính bằng giây. Thoát khỏi ứng dụng sau khoảng thời gian không hoạt động này để tiết kiệm pin cho thiết bị.</string>
|
||||
<string id="SettingsPollDelay">Độ trễ thăm dò bổ sung (tính bằng giây). Thêm độ trễ giữa quá trình cập nhật trạng thái của tất cả các mục menu.</string>
|
||||
<string id="SettingsConfirmTimeout">Sau thời gian này (tính bằng giây), hộp thoại xác nhận cho một hành động sẽ tự động đóng lại và hành động đó sẽ bị hủy. Đặt thành 0 để vô hiệu hóa thời gian chờ.</string>
|
||||
<string id="SettingsPin">Mã PIN gồm 4 chữ số được sử dụng cho mọi hành động cần xác nhận (0000-9999).</string>
|
||||
<string id="SettingsPinError">Vui lòng cấu hình mã PIN số 4 chữ số hợp lệ trong khoảng từ 0000 đến 9999 trong cài đặt ứng dụng.</string>
|
||||
<string id="SettingsTextAlign">Căn chỉnh Menu Trái (tắt) hoặc Phải (bật).</string>
|
||||
<string id="LeftToRight">Từ trái sang phải</string>
|
||||
<string id="RightToLeft">Từ phải sang trái</string>
|
||||
<string id="SettingsWidgetStart">(Chỉ dành cho tiện ích) Tự động khởi động ứng dụng từ tiện ích mà không cần phải chạm.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Bật dịch vụ nền để gửi mức pin, vị trí và dữ liệu hoạt động (nếu được hỗ trợ) của thiết bị tới Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Tốc độ làm mới (tính bằng phút) mà dịch vụ nền sẽ lặp lại việc gửi dữ liệu.</string>
|
||||
<string id="WebhookId">(Chỉ đọc) ID Webhook do thiết bị tạo ra để cập nhật dịch vụ nền. Bạn có thể cần ID này để gỡ lỗi.</string>
|
||||
<string id="SettingsApiKeyPrompt">Mã thông báo truy cập tồn tại lâu dài.</string>
|
||||
<string id="SettingsApiUrl">URL cho API Home Assistant.</string>
|
||||
<string id="SettingsConfigUrl">URL cho cấu hình menu (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Ứng dụng có nên lưu cấu hình menu vào bộ nhớ đệm không?</string>
|
||||
<string id="SettingsClearCache">Ứng dụng có nên xóa bộ nhớ đệm hiện có vào lần khởi động tiếp theo
|
||||
không?</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">Kiểm tra cập nhật menu khi khởi động ứng dụng? Lưu ý: Tính năng lưu bộ nhớ đệm menu phải được bật. Cài đặt này có thể khiến các thiết bị cũ hơn với ít bộ nhớ hơn bị treo.</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">Bật thực thi lệnh qua Wi-Fi/LTE.</string>
|
||||
<string id="SettingsVibration">Ứng dụng có nên cung cấp phản hồi bằng rung không?</string>
|
||||
<string id="SettingsAppTimeout">Thời gian chờ trong giây. Thoát khỏi ứng dụng sau khoảng thời gian
|
||||
không hoạt động để lưu pin thiết bị.</string>
|
||||
<string id="SettingsPollDelay">Độ trễ thăm dò bổ sung (tính bằng giây). Thêm độ trễ giữa các lần
|
||||
cập nhật trạng thái của tất cả các mục menu.</string>
|
||||
<string id="SettingsConfirmTimeout">Sau thời gian này (tính bằng giây), hộp thoại xác nhận cho một
|
||||
hành động sẽ tự động đóng và hành động bị hủy. Đặt thành 0 để vô hiệu hóa thời gian chờ.</string>
|
||||
<string id="SettingsPin">Mã PIN 4 chữ số được sử dụng cho tất cả các hành động yêu cầu
|
||||
(0000-9999).</string>
|
||||
<string id="SettingsPinError">Vui lòng định cấu hình mã PIN số 4 chữ số hợp lệ từ 0000 đến 9999
|
||||
trong cài đặt ứng dụng.</string>
|
||||
<string id="SettingsTextAlign">Căn chỉnh menu: Trái (tắt) hoặc Phải (bật).</string>
|
||||
<string id="SettingsLeftToRight">Trái sang phải</string>
|
||||
<string id="SettingsRightToLeft">Phải sang trái</string>
|
||||
<string id="SettingsWidgetStart">(Chỉ Widget) Tự động khởi động ứng dụng từ tiện ích mà không cần
|
||||
chờ chạm.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Cho phép dịch vụ nền gửi mức pin của thiết bị, vị trí và
|
||||
dữ liệu hoạt động (nếu được hỗ trợ) đến Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Tốc độ làm mới (tính bằng phút) mà dịch vụ nền sẽ
|
||||
tiếp tục gửi dữ liệu.</string>
|
||||
<string id="SettingsUserHttpHeader">Tiêu đề HTTP do người dùng cung cấp</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">Một số cài đặt Home Assistant yêu cầu chỉ định tiêu
|
||||
đề HTTP tùy chỉnh để hoạt động.</string>
|
||||
<string id="SettingsUserHttpHeaderName">Tiêu đề HTTP do người dùng cung cấp: Tên</string>
|
||||
<string id="SettingsUserHttpHeaderValue">Tiêu đề HTTP do người dùng cung cấp: Giá trị</string>
|
||||
<string id="SettingsClearWebhookId">Kết nối lại với Home Assistant (Xóa ID Webhook, xem Hướng dẫn
|
||||
khắc phục sự cố).</string>
|
||||
<string id="SettingsWebhookId">(Chỉ đọc) ID webhook được tạo bởi thiết bị để cập nhật dịch vụ nền.
|
||||
Bạn có thể yêu cầu điều này để gỡ lỗi.</string>
|
||||
</strings>
|
||||
|
@@ -9,64 +9,79 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Chinese (Simplified)
|
||||
由谷歌翻译从英文生成
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Chinese (Simplified)
|
||||
由 Google 翻译和 gemini-2.5-flash 从英语生成到简体中文
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">API 调用速度过快。请放慢您的请求速度。</string>
|
||||
<string id="ApiUrlNotFound">未找到 URL。设置中可能存在 API URL 错误。</string>
|
||||
<string id="ApiFlood">API 调用过于频繁。请放慢您的请求。</string>
|
||||
<string id="ApiUrlNotFound">找不到 URL。设置中可能存在 API URL 错误。</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">可用的</string>
|
||||
<string id="Cached" scope="glance">已缓存</string>
|
||||
<string id="Available" scope="glance">可用</string>
|
||||
<string id="Cached" scope="glance">缓存</string>
|
||||
<string id="Checking" scope="glance">检查...</string>
|
||||
<string id="ConfigUrlNotFound">未找到 URL。设置中可能存在配置 URL 错误。</string>
|
||||
<string id="Confirm">当然?</string>
|
||||
<string id="Empty">空的</string>
|
||||
<string id="Executed" scope="glance">确认的</string>
|
||||
<string id="ConfigUrlNotFound">找不到 URL。设置中可能存在配置 URL 错误。</string>
|
||||
<string id="Confirm">确认?</string>
|
||||
<string id="Empty">空</string>
|
||||
<string id="Executed" scope="glance">已确认</string>
|
||||
<string id="GlanceMenu" scope="glance">菜单</string>
|
||||
<string id="Memory" scope="glance">记忆</string>
|
||||
<string id="Memory" scope="glance">内存</string>
|
||||
<string id="MenuUpdated">菜单更新,重新启动。</string>
|
||||
<string id="MenuCheckDisabled">菜单更新已禁用。</string>
|
||||
<string id="NoAPIKey" scope="glance">应用程序设置中没有 API 密钥。</string>
|
||||
<string id="NoApiUrl" scope="glance">应用程序设置中没有 API URL。</string>
|
||||
<string id="NoConfigUrl" scope="glance">应用程序设置中没有配置 URL。</string>
|
||||
<string id="NoInternet">没有互联网连接。</string>
|
||||
<string id="NoJson">HTTP 请求未返回 JSON。</string>
|
||||
<string id="NoPhone" scope="glance">没有电话连接。</string>
|
||||
<string id="NoResponse">无响应,请检查互联网连接</string>
|
||||
<string id="NoPhone" scope="glance">没有手机连接。</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">没有手机连接,没有缓存菜单。</string>
|
||||
<string id="NoResponse">没有回应,检查互联网连接</string>
|
||||
<string id="TimedOut">请求超时</string>
|
||||
<string id="PinInputLocked">PIN 输入已锁定</string>
|
||||
<string id="PotentialError">潜在错误</string>
|
||||
<string id="Seconds">秒</string>
|
||||
<string id="TemplateError">模板错误</string>
|
||||
<string id="TrailingSlashErr">API URL 末尾不能有斜杠“/”。</string>
|
||||
<string id="TrailingSlashErr">API URL 末尾不能有斜杠 '/'。</string>
|
||||
<string id="Unavailable" scope="glance">不可用</string>
|
||||
<string id="Unconfigured" scope="glance">未配置</string>
|
||||
<string id="UnhandledHttpErr">HTTP 请求返回错误代码 =</string>
|
||||
<string id="UnhandledHttpErr">HTTP 请求返回错误代码 = </string>
|
||||
<string id="WebhookFailed">无法注册 Webhook</string>
|
||||
<string id="WrongPin">PIN 码错误</string>
|
||||
<!-- 对于设置 GUI,字符串应该按照其使用的顺序排列。 -->
|
||||
<string id="WrongPin">PIN 错误</string>
|
||||
<string id="WifiLteNotAvailable">没有 Wi-Fi 或 LTE 可用</string>
|
||||
<string id="WifiLtePrompt">通过 Wi-Fi/LTE 执行?</string>
|
||||
<string id="WifiLteExecutionTitle">正在发送到 Home Assistant。</string>
|
||||
<string id="WifiLteExecutionDataError">没有收到数据。</string>
|
||||
<!-- 对于GUI设置,应按照使用顺序使用。 -->
|
||||
<string id="SettingsSelect">选择...</string>
|
||||
<string id="SettingsApiKey">HomeAssistant 的 API 密钥。</string>
|
||||
<string id="SettingsApiKeyPrompt">长寿命访问令牌。</string>
|
||||
<string id="SettingsApiUrl">HomeAssistant API 的 URL。</string>
|
||||
<string id="SettingsConfigUrl">菜单配置的 URL(JSON)。</string>
|
||||
<string id="SettingsCacheConfig">应用程序是否应该缓存菜单配置?</string>
|
||||
<string id="SettingsClearCache">应用程序下次启动时是否应该清除现有缓存?</string>
|
||||
<string id="SettingsVibration">应用程序是否应通过振动提供反馈?</string>
|
||||
<string id="SettingsAppTimeout">超时时间(秒)。在这段不活动时间过后退出应用程序以节省设备电池。</string>
|
||||
<string id="SettingsPollDelay">附加轮询延迟(以秒为单位)。在所有菜单项的状态更新之间添加延迟。</string>
|
||||
<string id="SettingsApiKeyPrompt">长期访问令牌。</string>
|
||||
<string id="SettingsApiUrl">Home Assistant API 的 URL。</string>
|
||||
<string id="SettingsConfigUrl">菜单配置的 URL (JSON)。</string>
|
||||
<string id="SettingsCacheConfig">应用程序是否应缓存菜单配置?</string>
|
||||
<string id="SettingsClearCache">应用程序下次启动时是否应清除现有缓存?</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">在应用程序启动时检查菜单更新?注意:必须启用菜单缓存。此设置可能会导致内存较少的旧设备崩溃。</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">启用通过 Wi-Fi/LTE 执行命令。</string>
|
||||
<string id="SettingsVibration">应用程序是否应该通过振动提供反馈?</string>
|
||||
<string id="SettingsAppTimeout">超时时间(秒)。在此不活动期间后退出应用程序以节省设备电池。</string>
|
||||
<string id="SettingsPollDelay">额外轮询延迟(秒)。在所有菜单项的状态更新之间添加延迟。</string>
|
||||
<string id="SettingsConfirmTimeout">在此时间(以秒为单位)之后,操作的确认对话框将自动关闭,并且操作将被取消。设置为 0 可禁用超时。</string>
|
||||
<string id="SettingsPin">所有需要确认的操作均需使用 4 位 PIN 码(0000-9999)。</string>
|
||||
<string id="SettingsPinError">请在应用程序设置中配置一个介于 0000 和 9999 之间的有效 4 位数字 PIN 码。</string>
|
||||
<string id="SettingsTextAlign">左(关闭)或右(打开)菜单对齐。</string>
|
||||
<string id="LeftToRight">从左到右</string>
|
||||
<string id="RightToLeft">从右到左</string>
|
||||
<string id="SettingsWidgetStart">(仅限小部件)无需等待点击即可从小部件自动启动应用程序。</string>
|
||||
<string id="SettingsEnableBatteryLevel">启用后台服务将设备电池电量、位置和(如果支持)活动数据发送到 Home Assistant。</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">后台服务应重复发送数据的刷新率(以分钟为单位)。</string>
|
||||
<string id="WebhookId">(只读)设备为后台服务更新创建的 Webhook ID。您可能需要此 ID 来进行调试。</string>
|
||||
<string id="SettingsPin">用于所有需要 PIN 的 4 位数字 PIN (0000-9999)。</string>
|
||||
<string id="SettingsPinError">请在应用程序设置中配置 0000 到 9999 之间有效的 4 位数字 PIN。</string>
|
||||
<string id="SettingsTextAlign">菜单对齐:左对齐(关闭)或右对齐(开启)。</string>
|
||||
<string id="SettingsLeftToRight">从左到右</string>
|
||||
<string id="SettingsRightToLeft">从右到左</string>
|
||||
<string id="SettingsWidgetStart">(仅小部件)自动从小部件启动应用程序,而无需等待点击。</string>
|
||||
<string id="SettingsEnableBatteryLevel">启用后台服务以将设备电池电量、位置以及(如果支持)活动数据发送到 Home Assistant。</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">后台服务应重复发送数据的刷新率(分钟)。</string>
|
||||
<string id="SettingsUserHttpHeader">用户提供的 HTTP 标头</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">某些 Home Assistant 安装需要指定自定义 HTTP 标头才能正常运行。</string>
|
||||
<string id="SettingsUserHttpHeaderName">用户提供的 HTTP 标头:名称</string>
|
||||
<string id="SettingsUserHttpHeaderValue">用户提供的 HTTP 标头:值</string>
|
||||
<string id="SettingsClearWebhookId">重新连接到 Home Assistant(清除 Webhook ID,请参阅故障排除指南)。</string>
|
||||
<string id="SettingsWebhookId">(只读)设备为后台服务更新创建的 Webhook ID。您可能需要此 ID 进行调试。</string>
|
||||
</strings>
|
||||
|
@@ -9,64 +9,79 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Chinese (Traditional)
|
||||
由Google翻譯自英文生成
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Chinese (Traditional)
|
||||
由 Google 翻譯和 gemini-2.5-flash 從英文翻譯成繁體中文
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">API 呼叫速度太快。請放慢您的請求。</string>
|
||||
<string id="ApiUrlNotFound">找不到網址。設定中可能存在 API URL 錯誤。</string>
|
||||
<string id="ApiFlood">API 呼叫過於頻繁。請放慢您的請求。</string>
|
||||
<string id="ApiUrlNotFound">找不到 URL。設定中可能存在 API URL 錯誤。</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">可用的</string>
|
||||
<string id="Cached" scope="glance">快取</string>
|
||||
<string id="Available" scope="glance">可用</string>
|
||||
<string id="Cached" scope="glance">已快取</string>
|
||||
<string id="Checking" scope="glance">檢查...</string>
|
||||
<string id="ConfigUrlNotFound">找不到網址。設定中可能存在配置 URL 錯誤。</string>
|
||||
<string id="Confirm">當然?</string>
|
||||
<string id="ConfigUrlNotFound">找不到 URL。設定中可能存在配置 URL 錯誤。</string>
|
||||
<string id="Confirm">確定?</string>
|
||||
<string id="Empty">空的</string>
|
||||
<string id="Executed" scope="glance">確認的</string>
|
||||
<string id="Executed" scope="glance">已確認</string>
|
||||
<string id="GlanceMenu" scope="glance">選單</string>
|
||||
<string id="Memory" scope="glance">記憶</string>
|
||||
<string id="NoAPIKey" scope="glance">應用程式設定中沒有 API 金鑰。</string>
|
||||
<string id="Memory" scope="glance">記憶體</string>
|
||||
<string id="MenuUpdated">選單已更新,請重新啟動。</string>
|
||||
<string id="MenuCheckDisabled">選單更新已停用。</string>
|
||||
<string id="NoAPIKey" scope="glance">應用程式設定中沒有 API 密鑰。</string>
|
||||
<string id="NoApiUrl" scope="glance">應用程式設定中沒有 API URL。</string>
|
||||
<string id="NoConfigUrl" scope="glance">應用程式設定中沒有配置 URL。</string>
|
||||
<string id="NoInternet">沒有網路連線。</string>
|
||||
<string id="NoJson">HTTP 請求未傳回 JSON。</string>
|
||||
<string id="NoPhone" scope="glance">沒有電話連線。</string>
|
||||
<string id="NoResponse">無響應,請檢查互聯網連接</string>
|
||||
<string id="PinInputLocked">PIN 輸入被鎖定</string>
|
||||
<string id="NoInternet">沒有互聯網連接。</string>
|
||||
<string id="NoJson">HTTP 請求未返回 JSON。</string>
|
||||
<string id="NoPhone" scope="glance">沒有電話連接。</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">沒有電話連接,沒有已快取的選單。</string>
|
||||
<string id="NoResponse">沒有回應,請檢查互聯網連接。</string>
|
||||
<string id="TimedOut">請求逾時</string>
|
||||
<string id="PinInputLocked">PIN 輸入已鎖定,持續</string>
|
||||
<string id="PotentialError">潛在錯誤</string>
|
||||
<string id="Seconds">秒</string>
|
||||
<string id="TemplateError">模板錯誤</string>
|
||||
<string id="TrailingSlashErr">API URL 不得有尾部斜線「/」。</string>
|
||||
<string id="TrailingSlashErr">API URL 不得包含尾隨斜線 '/'。</string>
|
||||
<string id="Unavailable" scope="glance">不可用</string>
|
||||
<string id="Unconfigured" scope="glance">未配置</string>
|
||||
<string id="UnhandledHttpErr">HTTP請求回傳錯誤碼=</string>
|
||||
<string id="WebhookFailed">註冊Webhook失敗</string>
|
||||
<string id="WrongPin">PIN 碼錯誤</string>
|
||||
<!-- 對於設定 GUI,字串應按其使用順序排列。 -->
|
||||
<string id="UnhandledHttpErr">HTTP 請求返回錯誤代碼 = </string>
|
||||
<string id="WebhookFailed">無法註冊 Webhook</string>
|
||||
<string id="WrongPin">PIN 錯誤</string>
|
||||
<string id="WifiLteNotAvailable">沒有 Wi-Fi 或 LTE 可用</string>
|
||||
<string id="WifiLtePrompt">透過 Wi-Fi/LTE 執行?</string>
|
||||
<string id="WifiLteExecutionTitle">正在傳送至 Home Assistant。</string>
|
||||
<string id="WifiLteExecutionDataError">沒有收到數據。</string>
|
||||
<!-- 對於設定 GUI,字串應依使用順序排列。 -->
|
||||
<string id="SettingsSelect">選擇...</string>
|
||||
<string id="SettingsApiKey">HomeAssistant 的 API 金鑰。</string>
|
||||
<string id="SettingsApiKey">HomeAssistant 的 API 密鑰。</string>
|
||||
<string id="SettingsApiKeyPrompt">長期訪問令牌。</string>
|
||||
<string id="SettingsApiUrl">HomeAssistant API 的 URL。</string>
|
||||
<string id="SettingsConfigUrl">選單配置的 URL (JSON)。</string>
|
||||
<string id="SettingsCacheConfig">應用程式是否應該快取選單配置?</string>
|
||||
<string id="SettingsClearCache">應用程式是否應該在下次啟動時清除現有快取?</string>
|
||||
<string id="SettingsVibration">應用程式是否應該透過振動提供回饋?</string>
|
||||
<string id="SettingsAppTimeout">超時(以秒為單位)。閒置一段時間後退出應用程式以節省設備電池。</string>
|
||||
<string id="SettingsPollDelay">額外的輪詢延遲(以秒為單位)。在所有選單項目的狀態更新之間新增延遲。</string>
|
||||
<string id="SettingsConfirmTimeout">在此時間(以秒為單位)之後,操作的確認對話方塊將自動關閉並取消該操作。設定為 0 以停用逾時。</string>
|
||||
<string id="SettingsPin">用於所有需要確認的操作的 4 位元 PIN (0000-9999)。</string>
|
||||
<string id="SettingsPinError">請在應用程式設定中設定 0000 到 9999 之間的有效 4 位數 PIN。</string>
|
||||
<string id="SettingsTextAlign">左(關)或右(開)選單對齊。</string>
|
||||
<string id="LeftToRight">從左到右</string>
|
||||
<string id="RightToLeft">從右到左</string>
|
||||
<string id="SettingsWidgetStart">(僅限小部件)從小部件自動啟動應用程序,無需等待點擊。</string>
|
||||
<string id="SettingsEnableBatteryLevel">啟用後台服務將裝置電池電量、位置和(如果支援)活動資料傳送至 Home Assistant。</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">後台服務應重複傳送資料的更新率(以分鐘為單位)。</string>
|
||||
<string id="WebhookId">(唯讀)裝置為後台服務更新所建立的 Webhook ID。您可能需要它來進行調試。</string>
|
||||
<string id="SettingsCacheConfig">應用程式是否應快取選單配置?</string>
|
||||
<string id="SettingsClearCache">應用程式下次啟動時是否應清除現有快取?</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">在應用程式啟動時檢查選單更新?注意:必須啟用選單快取。此設定可能會導致記憶體較少的舊裝置崩潰。</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">啟用透過 Wi-Fi/LTE 執行命令。</string>
|
||||
<string id="SettingsVibration">應用程式是否應透過振動提供回饋?</string>
|
||||
<string id="SettingsAppTimeout">逾時(秒)。在此不活動期間後退出應用程式以節省設備電池。</string>
|
||||
<string id="SettingsPollDelay">額外輪詢延遲(秒)。在所有選單項目的狀態更新之間增加延遲。</string>
|
||||
<string id="SettingsConfirmTimeout">在此時間(秒)之後,動作的確認對話框將自動關閉並取消該動作。設定為 0 可停用逾時。</string>
|
||||
<string id="SettingsPin">用於所有需要 PIN 碼動作的 4 位數 PIN 碼 (0000-9999)。</string>
|
||||
<string id="SettingsPinError">請在應用程式設定中配置 0000 到 9999 之間有效的 4 位數數字 PIN 碼。</string>
|
||||
<string id="SettingsTextAlign">選單對齊:靠左 (關閉) 或 靠右 (開啟)。</string>
|
||||
<string id="SettingsLeftToRight">從左到右</string>
|
||||
<string id="SettingsRightToLeft">從右到左</string>
|
||||
<string id="SettingsWidgetStart">(僅限小工具)自動從小工具啟動應用程式,無需等待輕觸。</string>
|
||||
<string id="SettingsEnableBatteryLevel">啟用背景服務以傳送裝置電池電量、位置以及 (如果支援) 活動資料至 Home Assistant。</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">背景服務應重複傳送資料的更新頻率(分鐘)。</string>
|
||||
<string id="SettingsUserHttpHeader">使用者提供的 HTTP 標頭</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">部分 Home Assistant 安裝需要指定自訂 HTTP 標頭才能運作。</string>
|
||||
<string id="SettingsUserHttpHeaderName">使用者提供的 HTTP 標頭:名稱</string>
|
||||
<string id="SettingsUserHttpHeaderValue">使用者提供的 HTTP 標頭:值</string>
|
||||
<string id="SettingsClearWebhookId">重新連線至 Home Assistant (清除 Webhook ID,請參閱疑難排解指南)。</string>
|
||||
<string id="SettingsWebhookId">(唯讀)裝置為背景服務更新建立的 Webhook ID。您可能需要此 ID 進行偵錯。</string>
|
||||
</strings>
|
||||
|
@@ -9,64 +9,79 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Generated by Google Translate: English to Standard (Bahasa) Malay
|
||||
Dijana oleh Terjemahan Google daripada Bahasa Inggeris
|
||||
Generated by Google Translate and gemini-2.5-flash from English to Standard (Bahasa) Malay
|
||||
Dijana oleh Google Translate dan gemini-2.5-flash dari Bahasa Inggeris ke Bahasa Melayu Standard (Bahasa)
|
||||
-->
|
||||
|
||||
<strings>
|
||||
<string id="ApiFlood">Panggilan API terlalu pantas. Sila perlahankan permintaan anda.</string>
|
||||
<string id="ApiUrlNotFound">URL tidak ditemui. Ralat URL API yang berpotensi dalam tetapan.</string>
|
||||
<string id="ApiUrlNotFound">URL tidak ditemui. Kemungkinan ralat URL API dalam tetapan.</string>
|
||||
<string id="AppName" scope="glance">HomeAssistant</string>
|
||||
<string id="Available" scope="glance">Tersedia</string>
|
||||
<string id="Cached" scope="glance">Dicache</string>
|
||||
<string id="Checking" scope="glance">Menyemak...</string>
|
||||
<string id="ConfigUrlNotFound">URL tidak ditemui. Ralat URL Konfigurasi Potensi dalam tetapan.</string>
|
||||
<string id="Confirm">pasti?</string>
|
||||
<string id="Empty">kosong</string>
|
||||
<string id="Checking" scope="glance">Memeriksa ...</string>
|
||||
<string id="ConfigUrlNotFound">URL tidak ditemui. Kemungkinan ralat URL Konfigurasi dalam tetapan.</string>
|
||||
<string id="Confirm">Pasti?</string>
|
||||
<string id="Empty">Kosong</string>
|
||||
<string id="Executed" scope="glance">Disahkan</string>
|
||||
<string id="GlanceMenu" scope="glance">Menu</string>
|
||||
<string id="Memory" scope="glance">Ingatan</string>
|
||||
<string id="Memory" scope="glance">Memori</string>
|
||||
<string id="MenuUpdated">Menu dikemas kini, mulakan semula.</string>
|
||||
<string id="MenuCheckDisabled">Kemas kini menu dilumpuhkan.</string>
|
||||
<string id="NoAPIKey" scope="glance">Tiada kunci API dalam tetapan aplikasi.</string>
|
||||
<string id="NoApiUrl" scope="glance">Tiada URL API dalam tetapan aplikasi.</string>
|
||||
<string id="NoConfigUrl" scope="glance">Tiada URL konfigurasi dalam tetapan aplikasi.</string>
|
||||
<string id="NoInternet">Tiada sambungan Internet.</string>
|
||||
<string id="NoInternet">Tiada sambungan internet.</string>
|
||||
<string id="NoJson">Tiada JSON dikembalikan daripada permintaan HTTP.</string>
|
||||
<string id="NoPhone" scope="glance">Tiada sambungan Telefon.</string>
|
||||
<string id="NoResponse">Tiada Respons, semak sambungan Internet</string>
|
||||
<string id="PinInputLocked">Input PIN dikunci untuk</string>
|
||||
<string id="PotentialError">Ralat Berpotensi</string>
|
||||
<string id="Seconds">detik</string>
|
||||
<string id="TemplateError">Ralat Templat</string>
|
||||
<string id="TrailingSlashErr">URL API mestilah tidak mempunyai garis miring '/'.</string>
|
||||
<string id="NoPhone" scope="glance">Tiada sambungan telefon.</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">Tiada sambungan telefon, tiada menu dicache.</string>
|
||||
<string id="NoResponse">Tiada respons, periksa sambungan Internet.</string>
|
||||
<string id="TimedOut">Permintaan tamat masa</string>
|
||||
<string id="PinInputLocked">Input PIN terkunci untuk</string>
|
||||
<string id="PotentialError">Kemungkinan ralat</string>
|
||||
<string id="Seconds">saat</string>
|
||||
<string id="TemplateError">Ralat templat</string>
|
||||
<string id="TrailingSlashErr">URL API tidak boleh mempunyai garis miring di hujung '/'.</string>
|
||||
<string id="Unavailable" scope="glance">Tidak tersedia</string>
|
||||
<string id="Unconfigured" scope="glance">Tidak dikonfigurasikan</string>
|
||||
<string id="Unconfigured" scope="glance">Tidak dikonfigurasi</string>
|
||||
<string id="UnhandledHttpErr">Permintaan HTTP mengembalikan kod ralat =</string>
|
||||
<string id="WebhookFailed">Gagal mendaftar Webhook</string>
|
||||
<string id="WrongPin">PIN salah</string>
|
||||
<!-- Untuk GUI tetapan, rentetan hendaklah mengikut susunan ia digunakan. -->
|
||||
<string id="SettingsSelect">Pilih...</string>
|
||||
<string id="WebhookFailed">Gagal mendaftarkan Webhook</string>
|
||||
<string id="WrongPin">PIN yang salah</string>
|
||||
<string id="WifiLteNotAvailable">Tiada Wi-Fi atau LTE tersedia</string>
|
||||
<string id="WifiLtePrompt">Jalankan melalui Wi-Fi/LTE?</string>
|
||||
<string id="WifiLteExecutionTitle">Menghantar ke Home Assistant.</string>
|
||||
<string id="WifiLteExecutionDataError">Tiada data yang diterima.</string>
|
||||
<!-- Untuk tetapan GUI, rentetan harus mengikut urutan yang digunakan. -->
|
||||
<string id="SettingsSelect">Pilih ...</string>
|
||||
<string id="SettingsApiKey">Kunci API untuk HomeAssistant.</string>
|
||||
<string id="SettingsApiKeyPrompt">Token Akses Berumur Panjang.</string>
|
||||
<string id="SettingsApiKeyPrompt">Token Akses Jangka Panjang.</string>
|
||||
<string id="SettingsApiUrl">URL untuk API HomeAssistant.</string>
|
||||
<string id="SettingsConfigUrl">URL untuk konfigurasi menu (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Sekiranya aplikasi cache konfigurasi menu?</string>
|
||||
<string id="SettingsClearCache">Patutkah aplikasi mengosongkan cache sedia ada pada kali seterusnya ia dimulakan?</string>
|
||||
<string id="SettingsCacheConfig">Patutkah aplikasi mencache konfigurasi menu?</string>
|
||||
<string id="SettingsClearCache">Patutkah aplikasi mengosongkan cache sedia ada apabila ia dimulakan semula?</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">Semak kemas kini menu semasa aplikasi dimulakan? Nota: Penyahcahan menu mesti didayakan. Tetapan ini mungkin menyebabkan peranti lama dengan memori yang kurang terhempas.</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">Dayakan pelaksanaan perintah melalui Wi-Fi/LTE.</string>
|
||||
<string id="SettingsVibration">Patutkah aplikasi memberikan maklum balas melalui getaran?</string>
|
||||
<string id="SettingsAppTimeout">Tamat masa dalam beberapa saat. Keluar dari aplikasi selepas tempoh tidak aktif ini untuk menjimatkan bateri peranti.</string>
|
||||
<string id="SettingsPollDelay">Kelewatan tinjauan pendapat tambahan (dalam beberapa saat). Menambah kelewatan antara kemas kini status semua item menu.</string>
|
||||
<string id="SettingsConfirmTimeout">Selepas masa ini (dalam beberapa saat), dialog pengesahan untuk tindakan ditutup secara automatik dan tindakan itu dibatalkan. Tetapkan kepada 0 untuk melumpuhkan tamat masa.</string>
|
||||
<string id="SettingsPin">PIN 4 digit untuk digunakan untuk semua tindakan yang memerlukan pengesahan (0000-9999).</string>
|
||||
<string id="SettingsPinError">Sila konfigurasikan PIN berangka 4 digit yang sah antara 0000 dan 9999 dalam tetapan aplikasi.</string>
|
||||
<string id="SettingsAppTimeout">Tamat masa dalam saat. Keluar daripada aplikasi selepas tempoh tidak aktif ini untuk menjimatkan bateri peranti.</string>
|
||||
<string id="SettingsPollDelay">Kelewatan tinjauan tambahan (dalam saat). Menambah kelewatan antara kemas kini status semua item menu.</string>
|
||||
<string id="SettingsConfirmTimeout">Selepas masa ini (dalam saat), dialog pengesahan untuk tindakan ditutup secara automatik dan tindakan dibatalkan. Tetapkan kepada 0 untuk melumpuhkan tamat masa.</string>
|
||||
<string id="SettingsPin">PIN 4 digit untuk digunakan bagi semua tindakan yang memerlukannya (0000-9999).</string>
|
||||
<string id="SettingsPinError">Sila konfigurasikan PIN angka 4 digit yang sah antara 0000 dan 9999 dalam tetapan aplikasi.</string>
|
||||
<string id="SettingsTextAlign">Penjajaran Menu Kiri (mati) atau Kanan (hidup).</string>
|
||||
<string id="LeftToRight">Kiri ke kanan</string>
|
||||
<string id="RightToLeft">Kanan ke Kiri</string>
|
||||
<string id="SettingsWidgetStart">(Widget sahaja) Mulakan aplikasi secara automatik daripada widget tanpa menunggu satu ketikan.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Dayakan perkhidmatan latar belakang untuk menghantar data paras bateri peranti, lokasi dan (jika disokong) kepada Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Kadar penyegaran semula (dalam minit) di mana perkhidmatan latar belakang harus mengulangi penghantaran data.</string>
|
||||
<string id="WebhookId">(Baca sahaja) ID Webhook yang dibuat oleh peranti untuk kemas kini perkhidmatan latar belakang. Anda mungkin memerlukan ini untuk penyahpepijatan.</string>
|
||||
<string id="SettingsLeftToRight">Kiri ke kanan</string>
|
||||
<string id="SettingsRightToLeft">Kanan ke kiri</string>
|
||||
<string id="SettingsWidgetStart">(Widget sahaja) Secara automatik memulakan aplikasi dari widget tanpa menunggu ketukan.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Dayakan perkhidmatan latar belakang untuk menghantar aras bateri peranti, lokasi dan (jika disokong) data aktiviti ke Home Assistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">Kadar penyegaran (dalam minit) di mana perkhidmatan latar belakang harus mengulang penghantaran data.</string>
|
||||
<string id="SettingsUserHttpHeader">Pengepala HTTP dibekalkan pengguna</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">Sesetengah pemasangan Home Assistant memerlukan spesifikasi pengepala HTTP tersuai untuk berfungsi.</string>
|
||||
<string id="SettingsUserHttpHeaderName">Pengepala HTTP dibekalkan pengguna: Nama</string>
|
||||
<string id="SettingsUserHttpHeaderValue">Pengepala HTTP dibekalkan pengguna: Nilai</string>
|
||||
<string id="SettingsClearWebhookId">Sambung semula ke Home Assistant (kosongkan ID Webhook, lihat panduan penyelesaian masalah).</string>
|
||||
<string id="SettingsWebhookId">(Baca sahaja) ID Webhook yang dibuat oleh peranti untuk kemas kini perkhidmatan latar belakang. Anda mungkin memerlukan ini untuk penyahpepijatan.</string>
|
||||
</strings>
|
||||
|
@@ -8,7 +8,7 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
@@ -38,6 +38,28 @@
|
||||
-->
|
||||
<property id="clear_cache" type="boolean">false</property>
|
||||
|
||||
<!--
|
||||
Enables checking of the menu definition URL for updates each time the
|
||||
application is started. Only if menu caching is enabled, then if a menu
|
||||
update is detected, the new menu definition is downloaded and cached ready
|
||||
for an application restart. This menu item will be disabled by the application
|
||||
if:
|
||||
1. The menu caching is disabled or,
|
||||
2. if a `Communications.INVALID_HTTP_BODY_IN_NETWORK_RESPONSE` API response
|
||||
is encountered indicating that the Garmin device is short of memory, or
|
||||
3. The device has < 10% memory left prior to calling the API.
|
||||
|
||||
Off by default due to the chance an old device will crash by default with an
|
||||
"Out of Memory" error. At least let the application work before enabling.
|
||||
-->
|
||||
<property id="enable_menu_update_check" type="boolean">false</property>
|
||||
|
||||
<!--
|
||||
Enables the SyncDelegate and prompt to send a command over Wi-Fi/LTE.
|
||||
This will only show when not connected to the user's phone.
|
||||
-->
|
||||
<property id="wifi_lte_execution" type="boolean">false</property>
|
||||
|
||||
<!--
|
||||
Enable notification via vibrations, typically for confirmation of actions.
|
||||
-->
|
||||
@@ -53,7 +75,7 @@
|
||||
Poll delay adds a user configurable delay (in seconds) to each round of
|
||||
status updates of all item in the device's menu that might be amended
|
||||
externally from the watch. A user has requested that it is possible to add
|
||||
this delayfor an "always open" mode of operation, which then drains the
|
||||
this delay for an "always open" mode of operation, which then drains the
|
||||
watch battery from the additional API access activity.
|
||||
-->
|
||||
<property id="poll_delay_combined" type="number">5</property>
|
||||
@@ -88,6 +110,26 @@
|
||||
-->
|
||||
<property id="battery_level_refresh_rate" type="number">15</property>
|
||||
|
||||
<!--
|
||||
A user specified HTTP header name to be used in all HTTP requests.
|
||||
This is useful for some Home Assistant installations that require a
|
||||
custom HTTP header.
|
||||
-->
|
||||
<property id="user_http_header_name" type="string"></property>
|
||||
|
||||
<!--
|
||||
A user specified HTTP header value to be used in all HTTP requests.
|
||||
This is useful for some Home Assistant installations that require a
|
||||
custom HTTP header.
|
||||
-->
|
||||
<property id="user_http_header_value" type="string"></property>
|
||||
|
||||
<!--
|
||||
Clear the Webhook ID on next application start, and reauthenticate,
|
||||
then set this back to false.
|
||||
-->
|
||||
<property id="clear_webhook_id" type="boolean">false</property>
|
||||
|
||||
<!--
|
||||
The webhook ID is the last part of the webhook URL. It is secret and
|
||||
should not be shared. It will not be set in settings but will be
|
||||
@@ -95,5 +137,4 @@
|
||||
for trouble shooting.
|
||||
-->
|
||||
<property id="webhook_id" type="string"></property>
|
||||
|
||||
</properties>
|
||||
|
@@ -8,7 +8,7 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
title="@Strings.SettingsApiKey"
|
||||
prompt="@Strings.SettingsApiKeyPrompt"
|
||||
>
|
||||
<settingConfig type="alphaNumeric" />
|
||||
<settingConfig type="alphaNumeric" required="true" />
|
||||
</setting>
|
||||
|
||||
<setting
|
||||
@@ -26,7 +26,7 @@
|
||||
title="@Strings.SettingsApiUrl"
|
||||
prompt="https://homeassistant.local/api"
|
||||
>
|
||||
<settingConfig type="alphaNumeric" />
|
||||
<settingConfig type="alphaNumeric" required="true" />
|
||||
</setting>
|
||||
|
||||
<setting
|
||||
@@ -34,7 +34,7 @@
|
||||
title="@Strings.SettingsConfigUrl"
|
||||
prompt="https://homeassistant.local/local/garmin/menu.json"
|
||||
>
|
||||
<settingConfig type="alphaNumeric" />
|
||||
<settingConfig type="alphaNumeric" required="true" />
|
||||
</setting>
|
||||
|
||||
<setting
|
||||
@@ -51,6 +51,20 @@
|
||||
<settingConfig type="boolean" />
|
||||
</setting>
|
||||
|
||||
<setting
|
||||
propertyKey="@Properties.enable_menu_update_check"
|
||||
title="@Strings.SettingsEnableMenuUpdateCheck"
|
||||
>
|
||||
<settingConfig type="boolean" />
|
||||
</setting>
|
||||
|
||||
<setting
|
||||
propertyKey="@Properties.wifi_lte_execution"
|
||||
title="@Strings.SettingsWifiLteExecutionEnable"
|
||||
>
|
||||
<settingConfig type="boolean" />
|
||||
</setting>
|
||||
|
||||
<setting
|
||||
propertyKey="@Properties.enable_vibration"
|
||||
title="@Strings.SettingsVibration"
|
||||
@@ -83,7 +97,7 @@
|
||||
propertyKey="@Properties.pin"
|
||||
title="@Strings.SettingsPin"
|
||||
>
|
||||
<settingConfig type="alphaNumeric" />
|
||||
<settingConfig type="alphaNumeric" maxLength="4" />
|
||||
</setting>
|
||||
|
||||
<setting
|
||||
@@ -91,8 +105,8 @@
|
||||
title="@Strings.SettingsTextAlign"
|
||||
>
|
||||
<settingConfig type="list">
|
||||
<listEntry value="1">@Strings.LeftToRight</listEntry>
|
||||
<listEntry value="0">@Strings.RightToLeft</listEntry>
|
||||
<listEntry value="1">@Strings.SettingsLeftToRight</listEntry>
|
||||
<listEntry value="0">@Strings.SettingsRightToLeft</listEntry>
|
||||
</settingConfig>
|
||||
</setting>
|
||||
|
||||
@@ -110,10 +124,31 @@
|
||||
<settingConfig type="numeric" min="5" />
|
||||
</setting>
|
||||
|
||||
<setting
|
||||
propertyKey="@Properties.user_http_header_name"
|
||||
title="@Strings.SettingsUserHttpHeaderName"
|
||||
>
|
||||
<settingConfig type="alphaNumeric" />
|
||||
</setting>
|
||||
<setting
|
||||
propertyKey="@Properties.user_http_header_value"
|
||||
title="@Strings.SettingsUserHttpHeaderValue"
|
||||
>
|
||||
<settingConfig type="alphaNumeric" />
|
||||
</setting>
|
||||
|
||||
<setting
|
||||
propertyKey="@Properties.clear_webhook_id"
|
||||
title="@Strings.SettingsClearWebhookId"
|
||||
>
|
||||
<settingConfig type="boolean" />
|
||||
</setting>
|
||||
|
||||
<setting
|
||||
propertyKey="@Properties.webhook_id"
|
||||
title="@Strings.WebhookId"
|
||||
title="@Strings.SettingsWebhookId"
|
||||
>
|
||||
<settingConfig type="alphaNumeric" readonly="true" />
|
||||
</setting>
|
||||
|
||||
</settings>
|
||||
|
@@ -8,7 +8,7 @@
|
||||
tested on a Venu 2 device. The source code is provided at:
|
||||
https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
|
||||
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
|
||||
|
||||
-->
|
||||
|
||||
@@ -25,13 +25,17 @@
|
||||
<string id="Executed" scope="glance">Confirmed</string>
|
||||
<string id="GlanceMenu" scope="glance">Menu</string>
|
||||
<string id="Memory" scope="glance">Memory</string>
|
||||
<string id="MenuUpdated">Menu updated, restart.</string>
|
||||
<string id="MenuCheckDisabled">Menu updates disabled.</string>
|
||||
<string id="NoAPIKey" scope="glance">No API key in the application settings.</string>
|
||||
<string id="NoApiUrl" scope="glance">No API URL in the application settings.</string>
|
||||
<string id="NoConfigUrl" scope="glance">No configuration URL in the application settings.</string>
|
||||
<string id="NoInternet">No Internet connection.</string>
|
||||
<string id="NoJson">No JSON returned from HTTP request.</string>
|
||||
<string id="NoPhone" scope="glance">No Phone connection.</string>
|
||||
<string id="NoPhoneNoCache" scope="glance">No phone connection, no cached menu.</string>
|
||||
<string id="NoResponse">No Response, check Internet connection</string>
|
||||
<string id="TimedOut">Request timed out</string>
|
||||
<string id="PinInputLocked">PIN input locked for</string>
|
||||
<string id="PotentialError">Potential Error</string>
|
||||
<string id="Seconds">seconds</string>
|
||||
@@ -42,6 +46,10 @@
|
||||
<string id="UnhandledHttpErr">HTTP request returned error code = </string>
|
||||
<string id="WebhookFailed">Failed to register Webhook</string>
|
||||
<string id="WrongPin">Wrong PIN</string>
|
||||
<string id="WifiLteNotAvailable">No Wi-Fi or LTE available</string>
|
||||
<string id="WifiLtePrompt">Execute over Wi-Fi/LTE?</string>
|
||||
<string id="WifiLteExecutionTitle">Sending to HomeAssistant.</string>
|
||||
<string id="WifiLteExecutionDataError">No data received.</string>
|
||||
|
||||
<!-- For the settings GUI, strings should be in the order they are used. -->
|
||||
<string id="SettingsSelect">Select...</string>
|
||||
@@ -51,17 +59,24 @@
|
||||
<string id="SettingsConfigUrl">URL for menu configuration (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Should the application cache the menu configuration?</string>
|
||||
<string id="SettingsClearCache">Should the application clear the existing cache next time it is started?</string>
|
||||
<string id="SettingsEnableMenuUpdateCheck">Check for menu updates on application start? Note: Menu caching must be enabled.This setting may cause older devices with less memory to crash.</string>
|
||||
<string id="SettingsWifiLteExecutionEnable">Enable executing commands over Wi-Fi/LTE.</string>
|
||||
<string id="SettingsVibration">Should the application provide feedback via vibrations?</string>
|
||||
<string id="SettingsAppTimeout">Timeout in seconds. Exit the application after this period of inactivity to save the device battery.</string>
|
||||
<string id="SettingsPollDelay">Additional poll delay (in seconds). Adds a delay between the status update of all menu items.</string>
|
||||
<string id="SettingsConfirmTimeout">After this time (in seconds), a confirmation dialog for an action is automatically closed and the action is cancelled. Set to 0 to disable the timeout.</string>
|
||||
<string id="SettingsPin">4-digit PIN to be used for all actions that require confirmation (0000-9999).</string>
|
||||
<string id="SettingsPin">4-digit PIN to be used for all actions that require it (0000-9999).</string>
|
||||
<string id="SettingsPinError">Please configure a valid 4-digit numeric PIN between 0000 and 9999 in the application settings.</string>
|
||||
<string id="SettingsTextAlign">Left (off) or Right (on) Menu Alignment.</string>
|
||||
<string id="LeftToRight">Left to right</string>
|
||||
<string id="RightToLeft">Right to Left</string>
|
||||
<string id="SettingsLeftToRight">Left to right</string>
|
||||
<string id="SettingsRightToLeft">Right to Left</string>
|
||||
<string id="SettingsWidgetStart">(Widget only) Automatically start the application from the widget without waiting for a tap.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Enable the background service to send the device battery level, location and (if supported) activity data to Home Assistant.</string>
|
||||
<string id="SettingsEnableBatteryLevel">Enable the background service to send the device battery level, location and (if supported) activity data to HomeAssistant.</string>
|
||||
<string id="SettingsBatteryLevelRefreshRate">The refresh rate (in minutes) at which the background service should repeat sending data.</string>
|
||||
<string id="WebhookId">(Read only) The Webhook ID created by the device for background service updates. You might require this for debugging.</string>
|
||||
<string id="SettingsUserHttpHeader">User supplied HTTP header</string>
|
||||
<string id="SettingsUserHttpHeaderDescription">Some HomeAssistant installations require the specification of a custom HTTP header in order to function.</string>
|
||||
<string id="SettingsUserHttpHeaderName">User supplied HTTP-Header: Name</string>
|
||||
<string id="SettingsUserHttpHeaderValue">User supplied HTTP-Header: Value</string>
|
||||
<string id="SettingsClearWebhookId">Reconnect to HomeAssistant (clear Webhook ID, see Troubleshooting guide).</string>
|
||||
<string id="SettingsWebhookId">(Read only) The Webhook ID created by the device for background service updates. You might require this for debugging.</string>
|
||||
</strings>
|
||||
|
@@ -11,15 +11,6 @@
|
||||
//
|
||||
// J D Abbey & P A Abbey, 28 December 2022
|
||||
//
|
||||
//
|
||||
// Description:
|
||||
//
|
||||
// Alert provides a means to present application notifications to the user
|
||||
// briefly. Credit to travis.vitek on forums.garmin.com.
|
||||
//
|
||||
// Reference:
|
||||
// * https://forums.garmin.com/developer/connect-iq/f/discussion/106/how-to-show-alert-messages
|
||||
//
|
||||
//-----------------------------------------------------------------------------------
|
||||
|
||||
using Toybox.Lang;
|
||||
@@ -27,6 +18,12 @@ using Toybox.Graphics;
|
||||
using Toybox.WatchUi;
|
||||
using Toybox.Timer;
|
||||
|
||||
//! The Alert class provides a means to present application notifications to the user
|
||||
//! briefly. Credit to travis.vitek on forums.garmin.com.
|
||||
//!
|
||||
//! Reference:
|
||||
//! @url https://forums.garmin.com/developer/connect-iq/f/discussion/106/how-to-show-alert-messages
|
||||
//
|
||||
class Alert extends WatchUi.View {
|
||||
private static const scRadius = 10;
|
||||
private var mTimer as Timer.Timer;
|
||||
@@ -36,30 +33,40 @@ class Alert extends WatchUi.View {
|
||||
private var mFgcolor as Graphics.ColorType;
|
||||
private var mBgcolor as Graphics.ColorType;
|
||||
|
||||
//! Class Constructor
|
||||
//! @param params A dictionary object as follows:<br>
|
||||
//! `{`<br>
|
||||
//!   `:timeout as Lang.Number,` // Timeout in millseconds<br>
|
||||
//!   `:font as Graphics.FontType,` // Text font size<br>
|
||||
//!   `:text as Lang.String,` // Text to display<br>
|
||||
//!   `:fgcolor as Graphics.ColorType,` // Foreground Colour<br>
|
||||
//!   `:bgcolor as Graphics.ColorType` // Background Colour<br>
|
||||
//! `}`
|
||||
//
|
||||
function initialize(params as Lang.Dictionary) {
|
||||
View.initialize();
|
||||
|
||||
mText = params.get(:text) as Lang.String;
|
||||
mText = params[:text] as Lang.String;
|
||||
if (mText == null) {
|
||||
mText = "Alert";
|
||||
}
|
||||
|
||||
mFont = params.get(:font) as Graphics.FontType;
|
||||
mFont = params[:font] as Graphics.FontType;
|
||||
if (mFont == null) {
|
||||
mFont = Graphics.FONT_MEDIUM;
|
||||
}
|
||||
|
||||
mFgcolor = params.get(:fgcolor) as Graphics.ColorType;
|
||||
mFgcolor = params[:fgcolor] as Graphics.ColorType;
|
||||
if (mFgcolor == null) {
|
||||
mFgcolor = Graphics.COLOR_BLACK;
|
||||
}
|
||||
|
||||
mBgcolor = params.get(:bgcolor) as Graphics.ColorType;
|
||||
mBgcolor = params[:bgcolor] as Graphics.ColorType;
|
||||
if (mBgcolor == null) {
|
||||
mBgcolor = Graphics.COLOR_WHITE;
|
||||
}
|
||||
|
||||
mTimeout = params.get(:timeout) as Lang.Number;
|
||||
mTimeout = params[:timeout] as Lang.Number;
|
||||
if (mTimeout == null) {
|
||||
mTimeout = 2000;
|
||||
}
|
||||
@@ -67,14 +74,22 @@ class Alert extends WatchUi.View {
|
||||
mTimer = new Timer.Timer();
|
||||
}
|
||||
|
||||
//! Setup a timer to dismiss the alert.
|
||||
//
|
||||
function onShow() {
|
||||
mTimer.start(method(:dismiss), mTimeout, false);
|
||||
}
|
||||
|
||||
//! Prematurely stop the timer.
|
||||
//
|
||||
function onHide() {
|
||||
mTimer.stop();
|
||||
}
|
||||
|
||||
//! Draw the Alert view.
|
||||
//!
|
||||
//! @param dc Device context
|
||||
//
|
||||
function onUpdate(dc as Graphics.Dc) {
|
||||
var tWidth = dc.getTextWidthInPixels(mText, mFont);
|
||||
var tHeight = dc.getFontHeight(mFont);
|
||||
@@ -110,32 +125,49 @@ class Alert extends WatchUi.View {
|
||||
dc.drawText(tX, tY, mFont, mText, Graphics.TEXT_JUSTIFY_CENTER | Graphics.TEXT_JUSTIFY_VCENTER);
|
||||
}
|
||||
|
||||
// Remove the alert from view, usually on user input, but that is defined by the calling function.
|
||||
//! Remove the alert from view, usually on user input, but that is defined by the calling function.
|
||||
//
|
||||
function dismiss() as Void {
|
||||
WatchUi.popView(SLIDE_IMMEDIATE);
|
||||
}
|
||||
|
||||
function pushView(transition) as Void {
|
||||
//! Push this view onto the view stack.
|
||||
//!
|
||||
//! @param transition Slide Type
|
||||
function pushView(transition as WatchUi.SlideType) as Void {
|
||||
WatchUi.pushView(self, new AlertDelegate(self), transition);
|
||||
}
|
||||
}
|
||||
|
||||
//! Input Delegate for the Alert view.
|
||||
//
|
||||
class AlertDelegate extends WatchUi.InputDelegate {
|
||||
private var mView;
|
||||
private var mView as Alert;
|
||||
|
||||
function initialize(view) {
|
||||
//! Class Constructor
|
||||
//!
|
||||
//! @param view The Alert view for which this class is a delegate.
|
||||
//!
|
||||
function initialize(view as Alert) {
|
||||
InputDelegate.initialize();
|
||||
mView = view;
|
||||
}
|
||||
|
||||
function onKey(evt) as Lang.Boolean {
|
||||
//! Handle key events.
|
||||
//!
|
||||
//! @param evt The key event whose value is ignored, just fact of key event matters.
|
||||
//!
|
||||
function onKey(evt as WatchUi.KeyEvent) as Lang.Boolean {
|
||||
mView.dismiss();
|
||||
getApp().getQuitTimer().reset();
|
||||
return true;
|
||||
}
|
||||
|
||||
function onTap(evt) as Lang.Boolean {
|
||||
//! Handle click events.
|
||||
//!
|
||||
//! @param evt The click event whose value is ignored, just fact of key event matters.
|
||||
//!
|
||||
function onTap(evt as WatchUi.ClickEvent) as Lang.Boolean {
|
||||
mView.dismiss();
|
||||
getApp().getQuitTimer().reset();
|
||||
return true;
|
||||
|
@@ -11,12 +11,6 @@
|
||||
//
|
||||
// P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
//
|
||||
//
|
||||
// Description:
|
||||
//
|
||||
// The background service delegate currently just reports the Garmin watch's battery
|
||||
// level.
|
||||
//
|
||||
//-----------------------------------------------------------------------------------
|
||||
|
||||
using Toybox.Lang;
|
||||
@@ -25,20 +19,43 @@ using Toybox.Background;
|
||||
using Toybox.System;
|
||||
using Toybox.Activity;
|
||||
|
||||
//! The background service delegate reports the Garmin watch's various status values
|
||||
//! back to the Home Assistant instance.
|
||||
//
|
||||
(:background)
|
||||
class BackgroundServiceDelegate extends System.ServiceDelegate {
|
||||
|
||||
//! Class Constructor
|
||||
//
|
||||
function initialize() {
|
||||
ServiceDelegate.initialize();
|
||||
}
|
||||
|
||||
function onReturnBatteryUpdate(responseCode as Lang.Number, data as Null or Lang.Dictionary or Lang.String) as Void {
|
||||
// System.println("BackgroundServiceDelegate onReturnBatteryUpdate() Response Code: " + responseCode);
|
||||
// System.println("BackgroundServiceDelegate onReturnBatteryUpdate() Response Data: " + data);
|
||||
//! Callback function for doUpdate().
|
||||
//!
|
||||
//! @param responseCode Response code
|
||||
//! @param data Return data
|
||||
//
|
||||
function onReturnDoUpdate(responseCode as Lang.Number, data as Null or Lang.Dictionary or Lang.String) as Void {
|
||||
// System.println("BackgroundServiceDelegate onReturnDoUpdate() Response Code: " + responseCode);
|
||||
// System.println("BackgroundServiceDelegate onReturnDoUpdate() Response Data: " + data);
|
||||
Background.exit(null);
|
||||
}
|
||||
|
||||
function onActivityCompleted(activity as { :sport as Activity.Sport, :subSport as Activity.SubSport }) as Void {
|
||||
//! Called on completion of an activity.
|
||||
//!
|
||||
//! @param activity Specified as a Dictionary with two items.<br>
|
||||
//! `{`<br>
|
||||
//!   `:sport as Activity.Sport`<br>
|
||||
//!   `:subSport as Activity.SubSport`<br>
|
||||
//! `}`
|
||||
//
|
||||
function onActivityCompleted(
|
||||
activity as {
|
||||
:sport as Activity.Sport,
|
||||
:subSport as Activity.SubSport
|
||||
}
|
||||
) as Void {
|
||||
if (!System.getDeviceSettings().phoneConnected) {
|
||||
// System.println("BackgroundServiceDelegate onActivityCompleted(): No Phone connection, skipping API call.");
|
||||
} else if (!System.getDeviceSettings().connectionAvailable) {
|
||||
@@ -50,6 +67,8 @@ class BackgroundServiceDelegate extends System.ServiceDelegate {
|
||||
}
|
||||
}
|
||||
|
||||
//! Called periodically to send status updates to the Home Assistant instance.
|
||||
//
|
||||
function onTemporalEvent() as Void {
|
||||
if (!System.getDeviceSettings().phoneConnected) {
|
||||
// System.println("BackgroundServiceDelegate onTemporalEvent(): No Phone connection, skipping API call.");
|
||||
@@ -76,7 +95,15 @@ class BackgroundServiceDelegate extends System.ServiceDelegate {
|
||||
}
|
||||
}
|
||||
|
||||
private function doUpdate(activity as Lang.Number or Null, sub_activity as Lang.Number or Null) {
|
||||
//! Combined update function to collect the data to be sent as updates to the Home Assistant instance.
|
||||
//!
|
||||
//! @param activity Activity.Sport
|
||||
//! @param sub_activity Activity.SubSport
|
||||
//
|
||||
private function doUpdate(
|
||||
activity as Lang.Number?,
|
||||
sub_activity as Lang.Number?
|
||||
) {
|
||||
// System.println("BackgroundServiceDelegate onTemporalEvent(): Making API call.");
|
||||
var position = Position.getInfo();
|
||||
// System.println("BackgroundServiceDelegate onTemporalEvent(): GPS : " + position.position.toDegrees());
|
||||
@@ -127,16 +154,16 @@ class BackgroundServiceDelegate extends System.ServiceDelegate {
|
||||
(Properties.getValue("api_url") as Lang.String) + "/webhook/" + (Properties.getValue("webhook_id") as Lang.String),
|
||||
{
|
||||
"type" => "update_location",
|
||||
"data" => data,
|
||||
"data" => data
|
||||
},
|
||||
{
|
||||
:method => Communications.HTTP_REQUEST_METHOD_POST,
|
||||
:headers => {
|
||||
:headers => Settings.augmentHttpHeaders({
|
||||
"Content-Type" => Communications.REQUEST_CONTENT_TYPE_JSON
|
||||
},
|
||||
}),
|
||||
:responseType => Communications.HTTP_RESPONSE_CONTENT_TYPE_JSON
|
||||
},
|
||||
method(:onReturnBatteryUpdate)
|
||||
method(:onReturnDoUpdate)
|
||||
);
|
||||
}
|
||||
var activityInfo = ActivityMonitor.getInfo();
|
||||
@@ -217,12 +244,12 @@ class BackgroundServiceDelegate extends System.ServiceDelegate {
|
||||
},
|
||||
{
|
||||
:method => Communications.HTTP_REQUEST_METHOD_POST,
|
||||
:headers => {
|
||||
:headers => Settings.augmentHttpHeaders({
|
||||
"Content-Type" => Communications.REQUEST_CONTENT_TYPE_JSON
|
||||
},
|
||||
}),
|
||||
:responseType => Communications.HTTP_RESPONSE_CONTENT_TYPE_JSON
|
||||
},
|
||||
method(:onReturnBatteryUpdate)
|
||||
method(:onReturnDoUpdate)
|
||||
);
|
||||
}
|
||||
|
||||
|
@@ -11,15 +11,12 @@
|
||||
//
|
||||
// J D Abbey & P A Abbey, 28 December 2022
|
||||
//
|
||||
//
|
||||
// Description:
|
||||
//
|
||||
// ClientId is somewhere to store personal credentials that should not be shared in
|
||||
// a separate file that is locally customised to the source code and not commited
|
||||
// back to GitHub.
|
||||
//
|
||||
//-----------------------------------------------------------------------------------
|
||||
|
||||
//! ClientId is somewhere to store personal credentials that should not be shared in
|
||||
//! a separate file that is locally customised to the source code and not committed
|
||||
//! back to GitHub.
|
||||
//
|
||||
(:glance)
|
||||
class ClientId {
|
||||
static const webLogUrl = "https://...";
|
||||
|
@@ -11,22 +11,6 @@
|
||||
//
|
||||
// J D Abbey & P A Abbey, 28 December 2022
|
||||
//
|
||||
//
|
||||
// Description:
|
||||
//
|
||||
// ErrorView provides a means to present application errors to the user. These
|
||||
// should not happen of course... but they do, so best make sure errors can be
|
||||
// reported.
|
||||
//
|
||||
// Designed so that a single ErrorView is used for all errors and hence can ensure
|
||||
// that only the first call to display is honoured until the view is dismissed.
|
||||
// This compensates for older devices not being able to call WatchUi.getCurrentView()
|
||||
// due to not supporting API level 3.4.0.
|
||||
//
|
||||
// Usage:
|
||||
// 1) ErrorView.show("Error message");
|
||||
// 2) return ErrorView.create("Error message"); // as Lang.Array<WatchUi.Views or WatchUi.InputDelegates>
|
||||
//
|
||||
//-----------------------------------------------------------------------------------
|
||||
|
||||
using Toybox.Graphics;
|
||||
@@ -35,6 +19,19 @@ using Toybox.WatchUi;
|
||||
using Toybox.Communications;
|
||||
using Toybox.Timer;
|
||||
|
||||
//! ErrorView provides a means to present application errors to the user. These
|
||||
//! should not happen of course... but they do, so best make sure errors can be
|
||||
//! reported.
|
||||
//!
|
||||
//! Designed so that a single ErrorView is used for all errors and hence can ensure
|
||||
//! that only the first call to display is honoured until the view is dismissed.
|
||||
//! This compensates for older devices not being able to call WatchUi.getCurrentView()
|
||||
//! due to not supporting API level 3.4.0.
|
||||
//!
|
||||
//! Usage:
|
||||
//! 1) `ErrorView.show("Error message");`
|
||||
//! 2) `return ErrorView.create("Error message"); // as Lang.Array<WatchUi.Views or WatchUi.InputDelegates>`
|
||||
//
|
||||
class ErrorView extends ScalableView {
|
||||
private static const scErrorIconMargin as Lang.Float = 7f;
|
||||
private var mText as Lang.String = "";
|
||||
@@ -42,15 +39,17 @@ class ErrorView extends ScalableView {
|
||||
// Vertical spacing between the top of the face and the error icon
|
||||
private var mErrorIconMargin as Lang.Number;
|
||||
private var mErrorIcon;
|
||||
private var mTextArea as WatchUi.TextArea or Null;
|
||||
private var mTextArea as WatchUi.TextArea?;
|
||||
private var mAntiAlias as Lang.Boolean = false;
|
||||
|
||||
private static var instance;
|
||||
private static var mShown as Lang.Boolean = false;
|
||||
|
||||
//! Class Constructor
|
||||
//
|
||||
function initialize() {
|
||||
ScalableView.initialize();
|
||||
mDelegate = new ErrorDelegate(self);
|
||||
mDelegate = new ErrorDelegate();
|
||||
// Convert the settings from % of screen size to pixels
|
||||
mErrorIconMargin = pixelsForScreen(scErrorIconMargin);
|
||||
mErrorIcon = Application.loadResource(Rez.Drawables.ErrorIcon) as Graphics.BitmapResource;
|
||||
@@ -59,7 +58,10 @@ class ErrorView extends ScalableView {
|
||||
}
|
||||
}
|
||||
|
||||
// Load your resources here
|
||||
//! Construct the view.
|
||||
//!
|
||||
//! @param dc Device context
|
||||
//
|
||||
function onLayout(dc as Graphics.Dc) as Void {
|
||||
var w = dc.getWidth();
|
||||
|
||||
@@ -75,7 +77,10 @@ class ErrorView extends ScalableView {
|
||||
});
|
||||
}
|
||||
|
||||
// Update the view
|
||||
//! Update the view
|
||||
//!
|
||||
//! @param dc Device context
|
||||
//
|
||||
function onUpdate(dc as Graphics.Dc) as Void {
|
||||
var w = dc.getWidth();
|
||||
if (mAntiAlias) {
|
||||
@@ -87,10 +92,18 @@ class ErrorView extends ScalableView {
|
||||
mTextArea.draw(dc);
|
||||
}
|
||||
|
||||
//! Get this view's delegate for processing events.
|
||||
//
|
||||
function getDelegate() as ErrorDelegate {
|
||||
return mDelegate;
|
||||
}
|
||||
|
||||
//! 'Create' (get) the ErrorView instance, intended to make short work of using this class. E.g.
|
||||
//!
|
||||
//! `return ErrorView.create("Went wrong!");`
|
||||
//!
|
||||
//! @param text The string to display in the ErrorView.
|
||||
//
|
||||
static function create(text as Lang.String) as [ WatchUi.Views ] or [ WatchUi.Views, WatchUi.InputDelegates ] {
|
||||
if (instance == null) {
|
||||
instance = new ErrorView();
|
||||
@@ -102,7 +115,10 @@ class ErrorView extends ScalableView {
|
||||
return [instance, instance.getDelegate()];
|
||||
}
|
||||
|
||||
// Create or reuse an existing ErrorView, and pass on the text.
|
||||
//! Create or reuse an existing ErrorView, and pass on the text.
|
||||
//!
|
||||
//! @param text The string to display in the ErrorView.
|
||||
//
|
||||
static function show(text as Lang.String) as Void {
|
||||
if (!mShown) {
|
||||
create(text); // Ignore returned values
|
||||
@@ -113,20 +129,25 @@ class ErrorView extends ScalableView {
|
||||
}
|
||||
}
|
||||
|
||||
//! Pop the view and clean up timers.
|
||||
//
|
||||
static function unShow() as Void {
|
||||
if (mShown) {
|
||||
WatchUi.popView(WatchUi.SLIDE_DOWN);
|
||||
// The call to 'updateMenuItems()' must be on another thread so that the view is popped above.
|
||||
var myTimer = new Timer.Timer();
|
||||
// Now this feels very "closely coupled" to the application, but it is the most reliable method instead of using a timer.
|
||||
myTimer.start(getApp().method(:updateMenuItems), Globals.scApiResume, false);
|
||||
myTimer.start(getApp().method(:updateMenuItems), Globals.scApiResumeMs, false);
|
||||
// This must be last to avoid a race condition with show(), where the
|
||||
// ErrorView can't be dismissed.
|
||||
mShown = false;
|
||||
}
|
||||
}
|
||||
|
||||
// Internal show now we're not a static method like 'show()'.
|
||||
//! Internal show now we're not a static method like 'show()'.
|
||||
//!
|
||||
//! @param text Change the string tio display in the ErrorView.
|
||||
//
|
||||
function setText(text as Lang.String) as Void {
|
||||
mText = text;
|
||||
if (mTextArea != null) {
|
||||
@@ -137,12 +158,19 @@ class ErrorView extends ScalableView {
|
||||
|
||||
}
|
||||
|
||||
|
||||
//! Delegate for the ErrorView.
|
||||
//
|
||||
class ErrorDelegate extends WatchUi.BehaviorDelegate {
|
||||
|
||||
function initialize(view as ErrorView) {
|
||||
//! Class Constructor
|
||||
//!
|
||||
function initialize() {
|
||||
WatchUi.BehaviorDelegate.initialize();
|
||||
}
|
||||
|
||||
//! Handle the back button (ESC) to clear the ErrorView.
|
||||
//
|
||||
function onBack() as Lang.Boolean {
|
||||
getApp().getQuitTimer().reset();
|
||||
ErrorView.unShow();
|
||||
|
@@ -11,30 +11,48 @@
|
||||
//
|
||||
// P A Abbey & J D Abbey & Someone0nEarth & moesterheld, 31 October 2023
|
||||
//
|
||||
//
|
||||
// Description:
|
||||
//
|
||||
// Home Assistant centralised constants.
|
||||
//
|
||||
//-----------------------------------------------------------------------------------
|
||||
|
||||
using Toybox.Lang;
|
||||
|
||||
//! Home Assistant centralised constants.
|
||||
//
|
||||
(:glance)
|
||||
class Globals {
|
||||
static const scAlertTimeout = 2000; // ms
|
||||
static const scTapTimeout = 1000; // ms
|
||||
// Time to let the existing HTTP responses get serviced after a
|
||||
// Communications.NETWORK_RESPONSE_OUT_OF_MEMORY response code.
|
||||
static const scApiBackoff = 1000; // ms
|
||||
// Needs to be long enough to enable a "double ESC" to quit the application from
|
||||
// an ErrorView.
|
||||
static const scApiResume = 200; // ms
|
||||
// Warn the user after fetching the menu if their watch is low on memory before the device crashes.
|
||||
static const scLowMem = 0.90; // percent as a fraction.
|
||||
//! Alert is a toast at the top of the watch screen, it stays present until tapped
|
||||
//! or this timeout has expired.
|
||||
static const scAlertTimeoutMs = 2000; // ms
|
||||
|
||||
// Constants for PIN confirmation dialog
|
||||
static const scPinMaxFailures = 5; // Maximum number of failed PIN confirmation attemps allwed in ...
|
||||
static const scPinMaxFailureMinutes = 2; // ... this number of minutes before PIN confirmation is locked for ...
|
||||
static const scPinLockTimeMinutes = 10; // ... this number of minutes
|
||||
//! Time to let the existing HTTP responses get serviced after a
|
||||
//! `Communications.NETWORK_RESPONSE_OUT_OF_MEMORY` response code.
|
||||
static const scApiBackoffMs = 2000; // ms
|
||||
|
||||
//! Needs to be long enough to enable a "double ESC" to quit the application from
|
||||
//! an ErrorView.
|
||||
static const scApiResumeMs = 200; // ms
|
||||
|
||||
//! Threshold of memory usage (guessed) to consider a device unable to automatically check
|
||||
//! for a more recent menu due to insufficient memory.
|
||||
static const scLowMem = 0.85; // Fraction of total memory used.
|
||||
|
||||
//! Constant for PIN confirmation dialog.<br>
|
||||
//! Maximum number of failed PIN confirmation attempts allowed in `scPinMaxFailureMinutes`.
|
||||
static const scPinMaxFailures = 5;
|
||||
|
||||
//! Constant for PIN confirmation dialog.<br>
|
||||
//! Period in minutes during which no more than `scPinMaxFailures` PIN attempts are tolerated.
|
||||
static const scPinMaxFailureMinutes = 2;
|
||||
|
||||
//! Constant for PIN confirmation dialog.<br>
|
||||
//! Lock out time in minutes after a failed PIN entry.
|
||||
static const scPinLockTimeMinutes = 10;
|
||||
|
||||
//! After running a task by Wi-Fi/LTE synchronisation the periodic updates need to resume. This
|
||||
//! is the delay between synchronisation completion and resumption of updates.
|
||||
static const wifiPollResumeDelayMs = 2000; // ms
|
||||
|
||||
//! After running a task by Wi-Fi/LTE synchronisation the if the menu item requests to quit the
|
||||
//! application, this is the delay to wait after synchronisation completion before quitting.
|
||||
//! Failure to wait causes the transfer to indicate a failure.
|
||||
static const wifiQuitDelayMs = 5000; // ms
|
||||
}
|
||||
|
@@ -9,59 +9,107 @@
|
||||
// tested on a Venu 2 device. The source code is provided at:
|
||||
// https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
//
|
||||
// P A Abbey & J D Abbey & Someone0nEarth, 19 November 2023
|
||||
//
|
||||
//
|
||||
// Description:
|
||||
//
|
||||
// Calling a Home Assistant confirmation dialogue view.
|
||||
// P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 19 November 2023
|
||||
//
|
||||
//-----------------------------------------------------------------------------------
|
||||
|
||||
using Toybox.Lang;
|
||||
// Required for callback method definition
|
||||
typedef Method as Toybox.Lang.Method;
|
||||
using Toybox.WatchUi;
|
||||
using Toybox.Timer;
|
||||
using Toybox.Application.Properties;
|
||||
|
||||
//! Calling a Home Assistant confirmation dialogue view.
|
||||
//
|
||||
class HomeAssistantConfirmation extends WatchUi.Confirmation {
|
||||
|
||||
//! Class Constructor
|
||||
//
|
||||
function initialize() {
|
||||
WatchUi.Confirmation.initialize(WatchUi.loadResource($.Rez.Strings.Confirm) as Lang.String);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//! Delegate to respond to the confirmation request.
|
||||
//
|
||||
class HomeAssistantConfirmationDelegate extends WatchUi.ConfirmationDelegate {
|
||||
private static var mTimer as Timer.Timer?;
|
||||
private var mConfirmMethod as Method(state as Lang.Boolean) as Void;
|
||||
private var mTimer as Timer.Timer or Null;
|
||||
private var mState as Lang.Boolean;
|
||||
private var mToggleMethod as Method(state as Lang.Boolean) as Void or Null;
|
||||
private var mConfirmationView as WatchUi.Confirmation;
|
||||
|
||||
//! Class Constructor
|
||||
//!
|
||||
//! @param options A dictionary describing the following options:<br>
|
||||
//! `{`<br>
|
||||
//!   `:callback as Method(state as Lang.Boolean) as Void,` // Method to call on confirmation.<br>
|
||||
//!   `:confirmationView as WatchUi.Confirmation,` // Confirmation the delegate is active for<br>
|
||||
//!   `:state as Lang.Boolean,` // Wanted state of a toggle button.<br>
|
||||
//!   `:toggle as Method(state as Lang.Boolean)?` // Optional setEnabled method to untoggle ToggleItem.<br>
|
||||
//! `}`
|
||||
//
|
||||
function initialize(
|
||||
options as {
|
||||
:callback as Method(state as Lang.Boolean) as Void,
|
||||
:confirmationView as WatchUi.Confirmation,
|
||||
:state as Lang.Boolean,
|
||||
:toggleMethod as Method(state as Lang.Boolean)?
|
||||
}
|
||||
) {
|
||||
if (mTimer != null) {
|
||||
mTimer.stop();
|
||||
}
|
||||
|
||||
function initialize(callback as Method(state as Lang.Boolean) as Void, state as Lang.Boolean) {
|
||||
WatchUi.ConfirmationDelegate.initialize();
|
||||
mConfirmMethod = callback;
|
||||
mState = state;
|
||||
mConfirmMethod = options[:callback];
|
||||
mConfirmationView = options[:confirmationView];
|
||||
mState = options[:state];
|
||||
mToggleMethod = options[:toggleMethod];
|
||||
|
||||
var timeout = Settings.getConfirmTimeout(); // ms
|
||||
if (timeout > 0) {
|
||||
if (mTimer == null) {
|
||||
mTimer = new Timer.Timer();
|
||||
}
|
||||
|
||||
mTimer.start(method(:onTimeout), timeout, true);
|
||||
}
|
||||
}
|
||||
|
||||
function onResponse(response) as Lang.Boolean {
|
||||
//! Respond to the confirmation event.
|
||||
//!
|
||||
//! @param response response code
|
||||
//! @return Required to meet the function prototype, but the base class does not indicate a definition.
|
||||
//
|
||||
function onResponse(response as WatchUi.Confirm) as Lang.Boolean {
|
||||
getApp().getQuitTimer().reset();
|
||||
if (mTimer != null) {
|
||||
mTimer.stop();
|
||||
}
|
||||
if (response == WatchUi.CONFIRM_YES) {
|
||||
mConfirmMethod.invoke(mState);
|
||||
} else {
|
||||
// Undo the toggle, if we have one
|
||||
if (mToggleMethod != null) {
|
||||
mToggleMethod.invoke(!mState);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
//! Function supplied to a timer in order to limit the time for which the confirmation can be provided.
|
||||
//
|
||||
function onTimeout() as Void {
|
||||
mTimer.stop();
|
||||
// Undo the toggle, if we have one
|
||||
if (mToggleMethod != null) {
|
||||
mToggleMethod.invoke(!mState);
|
||||
}
|
||||
|
||||
var getCurrentView = WatchUi.getCurrentView();
|
||||
if (getCurrentView[0] == mConfirmationView) {
|
||||
WatchUi.popView(WatchUi.SLIDE_RIGHT);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -11,29 +11,49 @@
|
||||
//
|
||||
// P A Abbey & J D Abbey & Someone0nEarth, 23 November 2023
|
||||
//
|
||||
//
|
||||
// Description:
|
||||
//
|
||||
// Glance view for GarminHomeAssistant
|
||||
//
|
||||
//-----------------------------------------------------------------------------------
|
||||
|
||||
using Toybox.Lang;
|
||||
using Toybox.WatchUi;
|
||||
using Toybox.Graphics;
|
||||
|
||||
//! Glance view for GarminHomeAssistant
|
||||
//
|
||||
(:glance)
|
||||
class HomeAssistantGlanceView extends WatchUi.GlanceView {
|
||||
private static const scLeftMargin = 5; // in pixels
|
||||
private static const scMidSep = 10; // Middle Separator "text:_text" in pixels
|
||||
//! Margin left of the filled rectangle in pixels.
|
||||
private static const scLeftRectMargin = 5;
|
||||
//! Filled rectangle width in pixels.
|
||||
private static const scRectWidth = 20;
|
||||
//! Margin right of the filled rectangle in pixels.
|
||||
private static const scRightRectMargin = 5;
|
||||
//! Separator between the first column of text and the second in pixels.
|
||||
//! i.e. Middle Separator "text:_text"
|
||||
private static const scMidSep = 10;
|
||||
//! Margin on the right side of the glance in pixels.
|
||||
private static const scRightGlanceMargin = 15;
|
||||
//! Internal margin for the custom template between the border and the text in pixels.
|
||||
private static const scIntCustMargin = 5;
|
||||
//! Margin top and bottom of the rectangles in pixels.
|
||||
private static const scVertMargin = 5;
|
||||
//! Size of the rounded rectangle corners in pixels.
|
||||
private static const scRectRadius = 5;
|
||||
|
||||
//! Dynamically scale the width of the first column of text based on the
|
||||
//! language selection for the word "Menu".
|
||||
private var mTextWidth as Lang.Number = 0;
|
||||
// Re-usable text items for drawing
|
||||
private var mApp as HomeAssistantApp;
|
||||
private var mTitle as WatchUi.Text or Null;
|
||||
private var mApiText as WatchUi.Text or Null;
|
||||
private var mApiStatus as WatchUi.Text or Null;
|
||||
private var mMenuText as WatchUi.Text or Null;
|
||||
private var mMenuStatus as WatchUi.Text or Null;
|
||||
private var mTitle as WatchUi.Text?;
|
||||
private var mApiText as WatchUi.Text?;
|
||||
private var mApiStatus as WatchUi.Text?;
|
||||
private var mMenuText as WatchUi.Text?;
|
||||
private var mMenuStatus as WatchUi.Text?;
|
||||
private var mGlanceContent as WatchUi.TextArea?;
|
||||
private var mAntiAlias as Lang.Boolean = false;
|
||||
|
||||
//! Class Constructor
|
||||
//
|
||||
function initialize(app as HomeAssistantApp) {
|
||||
GlanceView.initialize();
|
||||
mApp = app;
|
||||
@@ -42,16 +62,21 @@ class HomeAssistantGlanceView extends WatchUi.GlanceView {
|
||||
}
|
||||
}
|
||||
|
||||
//! Construct the view.
|
||||
//!
|
||||
//! @param dc Device context
|
||||
//
|
||||
function onLayout(dc as Graphics.Dc) as Void {
|
||||
var h = dc.getHeight();
|
||||
var tw = dc.getTextWidthInPixels(WatchUi.loadResource($.Rez.Strings.GlanceMenu) as Lang.String, Graphics.FONT_XTINY);
|
||||
|
||||
mTextWidth = dc.getTextWidthInPixels(WatchUi.loadResource($.Rez.Strings.GlanceMenu) as Lang.String + ":", Graphics.FONT_XTINY);
|
||||
|
||||
mTitle = new WatchUi.Text({
|
||||
:text => WatchUi.loadResource($.Rez.Strings.AppName) as Lang.String,
|
||||
:color => Graphics.COLOR_WHITE,
|
||||
:font => Graphics.FONT_TINY,
|
||||
:justification => Graphics.TEXT_JUSTIFY_LEFT | Graphics.TEXT_JUSTIFY_VCENTER,
|
||||
:locX => scLeftMargin,
|
||||
:locX => scLeftRectMargin,
|
||||
:locY => 1 * h / 6
|
||||
});
|
||||
|
||||
@@ -60,7 +85,7 @@ class HomeAssistantGlanceView extends WatchUi.GlanceView {
|
||||
:color => Graphics.COLOR_WHITE,
|
||||
:font => Graphics.FONT_XTINY,
|
||||
:justification => Graphics.TEXT_JUSTIFY_LEFT | Graphics.TEXT_JUSTIFY_VCENTER,
|
||||
:locX => scLeftMargin,
|
||||
:locX => scLeftRectMargin + scRectWidth + scRightRectMargin,
|
||||
:locY => 3 * h / 6
|
||||
});
|
||||
mApiStatus = new WatchUi.Text({
|
||||
@@ -68,15 +93,16 @@ class HomeAssistantGlanceView extends WatchUi.GlanceView {
|
||||
:color => Graphics.COLOR_WHITE,
|
||||
:font => Graphics.FONT_XTINY,
|
||||
:justification => Graphics.TEXT_JUSTIFY_LEFT | Graphics.TEXT_JUSTIFY_VCENTER,
|
||||
:locX => scLeftMargin + scMidSep + tw,
|
||||
:locX => scLeftRectMargin + scRectWidth + scRightRectMargin + scMidSep + mTextWidth,
|
||||
:locY => 3 * h / 6
|
||||
});
|
||||
|
||||
mMenuText = new WatchUi.Text({
|
||||
:text => WatchUi.loadResource($.Rez.Strings.GlanceMenu) as Lang.String + ":",
|
||||
:color => Graphics.COLOR_WHITE,
|
||||
:font => Graphics.FONT_XTINY,
|
||||
:justification => Graphics.TEXT_JUSTIFY_LEFT | Graphics.TEXT_JUSTIFY_VCENTER,
|
||||
:locX => scLeftMargin,
|
||||
:locX => scLeftRectMargin + scRectWidth + scRightRectMargin,
|
||||
:locY => 5 * h / 6
|
||||
});
|
||||
mMenuStatus = new WatchUi.Text({
|
||||
@@ -84,14 +110,38 @@ class HomeAssistantGlanceView extends WatchUi.GlanceView {
|
||||
:color => Graphics.COLOR_WHITE,
|
||||
:font => Graphics.FONT_XTINY,
|
||||
:justification => Graphics.TEXT_JUSTIFY_LEFT | Graphics.TEXT_JUSTIFY_VCENTER,
|
||||
:locX => scLeftMargin + scMidSep + tw,
|
||||
:locX => scLeftRectMargin + scRectWidth + scRightRectMargin + scMidSep + mTextWidth,
|
||||
:locY => 5 * h / 6
|
||||
});
|
||||
|
||||
mGlanceContent = new WatchUi.TextArea({
|
||||
:text => "A longer piece of text to wrap.",
|
||||
:color => Graphics.COLOR_WHITE,
|
||||
:font => Graphics.FONT_XTINY,
|
||||
:justification => Graphics.TEXT_JUSTIFY_LEFT | Graphics.TEXT_JUSTIFY_VCENTER,
|
||||
:locX => scLeftRectMargin + scRectWidth + scRightRectMargin + scIntCustMargin,
|
||||
:locY => (2 * h / 6) + scVertMargin,
|
||||
:width => dc.getWidth() - scLeftRectMargin - scRectWidth - scRightRectMargin - (2 * scIntCustMargin) - scRightGlanceMargin,
|
||||
:height => (4 * h / 6) - (2 * scVertMargin)
|
||||
});
|
||||
}
|
||||
|
||||
//! Update the view with the latest status text.
|
||||
//!
|
||||
//! @param dc Device context
|
||||
//
|
||||
function onUpdate(dc as Graphics.Dc) as Void {
|
||||
var h = dc.getHeight();
|
||||
var w = dc.getWidth() - scLeftRectMargin - scRightGlanceMargin;
|
||||
var apiStatus = mApp.getApiStatus();
|
||||
var menuStatus = mApp.getMenuStatus();
|
||||
var glanceText = mApp.getGlanceText();
|
||||
var apiCol;
|
||||
var menuCol;
|
||||
// System.println("HomeAssistantGlanceView onUpdate() glanceText=" + glanceText);
|
||||
|
||||
GlanceView.onUpdate(dc);
|
||||
if(mAntiAlias) {
|
||||
if (mAntiAlias) {
|
||||
dc.setAntiAlias(true);
|
||||
}
|
||||
dc.setColor(
|
||||
@@ -99,12 +149,60 @@ class HomeAssistantGlanceView extends WatchUi.GlanceView {
|
||||
Graphics.COLOR_TRANSPARENT
|
||||
);
|
||||
dc.clear();
|
||||
mTitle.setColor(Graphics.COLOR_BLUE);
|
||||
mTitle.draw(dc);
|
||||
|
||||
if (apiStatus.equals(WatchUi.loadResource($.Rez.Strings.Checking))) {
|
||||
apiCol = Graphics.COLOR_YELLOW;
|
||||
} else if (apiStatus.equals(WatchUi.loadResource($.Rez.Strings.Available))) {
|
||||
apiCol = Graphics.COLOR_GREEN;
|
||||
} else {
|
||||
apiCol = Graphics.COLOR_RED;
|
||||
}
|
||||
|
||||
if (menuStatus.equals(WatchUi.loadResource($.Rez.Strings.Checking))) {
|
||||
menuCol = Graphics.COLOR_YELLOW;
|
||||
} else if (menuStatus.equals(WatchUi.loadResource($.Rez.Strings.Available))) {
|
||||
menuCol = Graphics.COLOR_GREEN;
|
||||
} else if (menuStatus.equals(WatchUi.loadResource($.Rez.Strings.Cached))) {
|
||||
menuCol = Graphics.COLOR_GREEN;
|
||||
} else {
|
||||
menuCol = Graphics.COLOR_RED;
|
||||
}
|
||||
|
||||
if (glanceText == null) {
|
||||
// Default Glance View
|
||||
mApiText.draw(dc);
|
||||
mApiStatus.setText(mApp.getApiStatus());
|
||||
mApiStatus.setText(apiStatus);
|
||||
mApiStatus.setColor(apiCol);
|
||||
dc.setColor(apiCol, apiCol);
|
||||
dc.drawRoundedRectangle(scLeftRectMargin, 2 * h / 6 + scVertMargin, w, 2 * h / 6 - (2 * scVertMargin), scRectRadius);
|
||||
dc.fillRoundedRectangle(scLeftRectMargin, 2 * h / 6 + scVertMargin, scRectWidth, 2 * h / 6 - (2 * scVertMargin), scRectRadius);
|
||||
mApiStatus.draw(dc);
|
||||
|
||||
mMenuText.draw(dc);
|
||||
mMenuStatus.setText(mApp.getMenuStatus());
|
||||
mMenuStatus.setText(menuStatus);
|
||||
mMenuStatus.setColor(menuCol);
|
||||
dc.setColor(menuCol, menuCol);
|
||||
dc.drawRoundedRectangle(scLeftRectMargin, 4 * h / 6 + scVertMargin, w, 2 * h / 6 - (2 * scVertMargin), scRectRadius);
|
||||
dc.fillRoundedRectangle(scLeftRectMargin, 4 * h / 6 + scVertMargin, scRectWidth, 2 * h / 6 - (2 * scVertMargin), scRectRadius);
|
||||
mMenuStatus.draw(dc);
|
||||
} else {
|
||||
// Customised Glance View
|
||||
dc.setColor(Graphics.COLOR_BLUE, Graphics.COLOR_BLUE);
|
||||
dc.drawRoundedRectangle(
|
||||
scLeftRectMargin + scRectWidth + scRightRectMargin,
|
||||
2 * h / 6 + scVertMargin,
|
||||
w - scRectWidth - scRightRectMargin,
|
||||
4 * h / 6 - (2 * scVertMargin),
|
||||
scRectRadius
|
||||
);
|
||||
dc.setColor(apiCol, apiCol);
|
||||
dc.fillRoundedRectangle(scLeftRectMargin, 2 * h / 6 + scVertMargin, scRectWidth, 2 * h / 6 - (2 * scVertMargin), scRectRadius);
|
||||
dc.setColor(menuCol, menuCol);
|
||||
dc.fillRoundedRectangle(scLeftRectMargin, 4 * h / 6 + scVertMargin, scRectWidth, 2 * h / 6 - (2 * scVertMargin), scRectRadius);
|
||||
mGlanceContent.setText(glanceText);
|
||||
mGlanceContent.draw(dc);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -11,27 +11,26 @@
|
||||
//
|
||||
// P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
//
|
||||
//
|
||||
// Description:
|
||||
//
|
||||
// Menu button with an icon that opens a sub-menu, i.e. group, and optionally renders
|
||||
// a Home Assistant Template.
|
||||
//
|
||||
//-----------------------------------------------------------------------------------
|
||||
|
||||
using Toybox.Lang;
|
||||
using Toybox.WatchUi;
|
||||
|
||||
//! Menu button with an icon that opens a sub-menu, i.e. group, and optionally renders
|
||||
//! a Home Assistant Template.
|
||||
//
|
||||
class HomeAssistantGroupMenuItem extends HomeAssistantMenuItem {
|
||||
private var mMenu as HomeAssistantView;
|
||||
|
||||
//! Class Constructor
|
||||
//
|
||||
function initialize(
|
||||
definition as Lang.Dictionary,
|
||||
template as Lang.String,
|
||||
icon as WatchUi.Drawable,
|
||||
options as {
|
||||
:alignment as WatchUi.MenuItem.Alignment
|
||||
} or Null
|
||||
}?
|
||||
) {
|
||||
if (options != null) {
|
||||
options.put(:icon, icon);
|
||||
@@ -48,6 +47,8 @@ class HomeAssistantGroupMenuItem extends HomeAssistantMenuItem {
|
||||
mMenu = new HomeAssistantView(definition, null);
|
||||
}
|
||||
|
||||
//! Return the submenu for this group menu item.
|
||||
//
|
||||
function getMenuView() as HomeAssistantView {
|
||||
return mMenu;
|
||||
}
|
||||
|
@@ -11,46 +11,62 @@
|
||||
//
|
||||
// P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
|
||||
//
|
||||
//
|
||||
// Description:
|
||||
//
|
||||
// Generic menu button with an icon that optionally renders a Home Assistant Template.
|
||||
//
|
||||
//-----------------------------------------------------------------------------------
|
||||
|
||||
using Toybox.Lang;
|
||||
using Toybox.WatchUi;
|
||||
using Toybox.Graphics;
|
||||
|
||||
//! Generic menu button with an icon that optionally renders a Home Assistant Template.
|
||||
//
|
||||
class HomeAssistantMenuItem extends WatchUi.IconMenuItem {
|
||||
private var mTemplate as Lang.String or Null;
|
||||
private var mTemplate as Lang.String?;
|
||||
|
||||
//! Class Constructor
|
||||
//!
|
||||
//! @param label Menu item label
|
||||
//! @param template Menu item template
|
||||
//! @param options Menu item options to be passed on.
|
||||
//
|
||||
function initialize(
|
||||
label as Lang.String or Lang.Symbol,
|
||||
template as Lang.String,
|
||||
options as {
|
||||
:alignment as WatchUi.MenuItem.Alignment,
|
||||
:icon as Graphics.BitmapType or WatchUi.Drawable or Lang.Symbol
|
||||
} or Null
|
||||
}?
|
||||
) {
|
||||
WatchUi.IconMenuItem.initialize(
|
||||
label,
|
||||
null,
|
||||
null,
|
||||
options.get(:icon),
|
||||
options[:icon],
|
||||
options
|
||||
);
|
||||
mTemplate = template;
|
||||
}
|
||||
|
||||
//! Does this menu item use a template?
|
||||
//!
|
||||
//! @return True if the menu has a defined template else false.
|
||||
//
|
||||
function hasTemplate() as Lang.Boolean {
|
||||
return mTemplate != null;
|
||||
}
|
||||
|
||||
function buildTemplate() as Lang.String or Null {
|
||||
//! Return the menu item's template.
|
||||
//!
|
||||
//! @return A string with the menu item's template definition (or null).
|
||||
//
|
||||
function getTemplate() as Lang.String? {
|
||||
return mTemplate;
|
||||
}
|
||||
|
||||
//! Update the menu item's sub label to display the template rendered by Home Assistant.
|
||||
//!
|
||||
//! @param data The rendered template (typically a string) to be placed in the sub label. This may
|
||||
//! unusually be a number if the SDK interprets the JSON returned by Home Assistant as such.
|
||||
//
|
||||
function updateState(data as Lang.String or Lang.Dictionary or Lang.Number or Lang.Float or Null) as Void {
|
||||
if (data == null) {
|
||||
setSubLabel($.Rez.Strings.Empty);
|
||||
|
@@ -11,17 +11,14 @@
|
||||
//
|
||||
// P A Abbey & J D Abbey & Someone0nEarth, 17 November 2023
|
||||
//
|
||||
//
|
||||
// Description:
|
||||
//
|
||||
// MenuItems Factory.
|
||||
//
|
||||
//-----------------------------------------------------------------------------------
|
||||
|
||||
using Toybox.Application;
|
||||
using Toybox.Lang;
|
||||
using Toybox.WatchUi;
|
||||
|
||||
//! MenuItems Factory class.
|
||||
//
|
||||
class HomeAssistantMenuItemFactory {
|
||||
private var mMenuItemOptions as Lang.Dictionary;
|
||||
private var mTapTypeIcon as WatchUi.Bitmap;
|
||||
@@ -31,6 +28,8 @@ class HomeAssistantMenuItemFactory {
|
||||
|
||||
private static var instance;
|
||||
|
||||
//! Class Constructor
|
||||
//
|
||||
private function initialize() {
|
||||
mMenuItemOptions = {
|
||||
:alignment => Settings.getMenuAlignment()
|
||||
@@ -57,6 +56,8 @@ class HomeAssistantMenuItemFactory {
|
||||
mHomeAssistantService = new HomeAssistantService();
|
||||
}
|
||||
|
||||
//! Create the one and only instance of this class.
|
||||
//
|
||||
static function create() as HomeAssistantMenuItemFactory {
|
||||
if (instance == null) {
|
||||
instance = new HomeAssistantMenuItemFactory();
|
||||
@@ -64,69 +65,98 @@ class HomeAssistantMenuItemFactory {
|
||||
return instance;
|
||||
}
|
||||
|
||||
//! Toggle menu item.
|
||||
//!
|
||||
//! @param label Menu item label.
|
||||
//! @param entity_id Home Assistant Entity ID (optional)
|
||||
//! @param template Template for Home Assistant to render (optional)
|
||||
//! @param options Menu item options to be passed on, including both SDK and menu options, e.g. exit, confirm & pin.
|
||||
//
|
||||
function toggle(
|
||||
label as Lang.String or Lang.Symbol,
|
||||
entity_id as Lang.String or Null,
|
||||
template as Lang.String or Null,
|
||||
confirm as Lang.Boolean,
|
||||
pin as Lang.Boolean
|
||||
entity_id as Lang.String?,
|
||||
template as Lang.String?,
|
||||
options as {
|
||||
:exit as Lang.Boolean,
|
||||
:confirm as Lang.Boolean,
|
||||
:pin as Lang.Boolean
|
||||
}
|
||||
) as WatchUi.MenuItem {
|
||||
var keys = mMenuItemOptions.keys();
|
||||
for (var i = 0; i < keys.size(); i++) {
|
||||
options.put(keys[i], mMenuItemOptions.get(keys[i]));
|
||||
}
|
||||
return new HomeAssistantToggleMenuItem(
|
||||
label,
|
||||
template,
|
||||
confirm,
|
||||
pin,
|
||||
{ "entity_id" => entity_id },
|
||||
mMenuItemOptions
|
||||
options
|
||||
);
|
||||
}
|
||||
|
||||
//! Tap menu item.
|
||||
//!
|
||||
//! @param label Menu item label.
|
||||
//! @param entity_id Home Assistant Entity ID (optional)
|
||||
//! @param template Template for Home Assistant to render (optional)
|
||||
//! @param service Template for Home Assistant to render (optional)
|
||||
//! @param data Sourced from the menu JSON, this is the `data` field from the `tap_action` field.
|
||||
//! @param options Menu item options to be passed on, including both SDK and menu options, e.g. exit, confirm & pin.
|
||||
//
|
||||
function tap(
|
||||
label as Lang.String or Lang.Symbol,
|
||||
entity as Lang.String or Null,
|
||||
template as Lang.String or Null,
|
||||
service as Lang.String or Null,
|
||||
confirm as Lang.Boolean,
|
||||
pin as Lang.Boolean,
|
||||
data as Lang.Dictionary or Null
|
||||
) as WatchUi.MenuItem {
|
||||
if (entity != null) {
|
||||
if (data == null) {
|
||||
data = { "entity_id" => entity };
|
||||
} else {
|
||||
data.put("entity_id", entity);
|
||||
entity_id as Lang.String?,
|
||||
template as Lang.String?,
|
||||
service as Lang.String?,
|
||||
data as Lang.Dictionary?,
|
||||
options as {
|
||||
:exit as Lang.Boolean,
|
||||
:confirm as Lang.Boolean,
|
||||
:pin as Lang.Boolean
|
||||
}
|
||||
) as WatchUi.MenuItem {
|
||||
if (entity_id != null) {
|
||||
if (data == null) {
|
||||
data = { "entity_id" => entity_id };
|
||||
} else {
|
||||
data.put("entity_id", entity_id);
|
||||
}
|
||||
}
|
||||
var keys = mMenuItemOptions.keys();
|
||||
for (var i = 0; i < keys.size(); i++) {
|
||||
options.put(keys[i], mMenuItemOptions.get(keys[i]));
|
||||
}
|
||||
if (service != null) {
|
||||
options.put(:icon, mTapTypeIcon);
|
||||
return new HomeAssistantTapMenuItem(
|
||||
label,
|
||||
template,
|
||||
service,
|
||||
confirm,
|
||||
pin,
|
||||
data,
|
||||
mTapTypeIcon,
|
||||
mMenuItemOptions,
|
||||
options,
|
||||
mHomeAssistantService
|
||||
);
|
||||
} else {
|
||||
options.put(:icon, mInfoTypeIcon);
|
||||
return new HomeAssistantTapMenuItem(
|
||||
label,
|
||||
template,
|
||||
service,
|
||||
confirm,
|
||||
pin,
|
||||
null,
|
||||
data,
|
||||
mInfoTypeIcon,
|
||||
mMenuItemOptions,
|
||||
options,
|
||||
mHomeAssistantService
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
//! Group menu item.
|
||||
//!
|
||||
//! @param definition Items array from the JSON that defines this sub menu.
|
||||
//! @param template Template for Home Assistant to render (optional)
|
||||
//
|
||||
function group(
|
||||
definition as Lang.Dictionary,
|
||||
template as Lang.String or Null
|
||||
template as Lang.String?
|
||||
) as WatchUi.MenuItem {
|
||||
return new HomeAssistantGroupMenuItem(
|
||||
definition,
|
||||
|
@@ -9,27 +9,30 @@
|
||||
// tested on a Venu 2 device. The source code is provided at:
|
||||
// https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
//
|
||||
// P A Abbey & J D Abbey & Someone0nEarth & moesterheld, 31 October 2023
|
||||
//
|
||||
//
|
||||
// Description:
|
||||
//
|
||||
// Pin Confirmation dialog and logic.
|
||||
// P A Abbey & J D Abbey & Someone0nEarth & moesterheld & vincentezw, 31 October 2023
|
||||
//
|
||||
//-----------------------------------------------------------------------------------
|
||||
|
||||
import Toybox.Graphics;
|
||||
import Toybox.Lang;
|
||||
import Toybox.WatchUi;
|
||||
import Toybox.Timer;
|
||||
import Toybox.Attention;
|
||||
import Toybox.Time;
|
||||
using Toybox.Graphics;
|
||||
using Toybox.Lang;
|
||||
using Toybox.WatchUi;
|
||||
using Toybox.Timer;
|
||||
using Toybox.Attention;
|
||||
using Toybox.Time;
|
||||
|
||||
//! Pin digit used for number 0..9
|
||||
//
|
||||
class PinDigit extends WatchUi.Selectable {
|
||||
|
||||
private var mDigit as Number;
|
||||
private var mDigit as Lang.Number;
|
||||
|
||||
function initialize(digit as Number, stepX as Number, stepY as Number) {
|
||||
//! Class Constructor
|
||||
//!
|
||||
//! @param digit The digit this instance of the class represents and to display.
|
||||
//! @param stepX Horizontal spacing.
|
||||
//! @param stepY Vertical spacing.
|
||||
//
|
||||
function initialize(digit as Lang.Number, stepX as Lang.Number, stepY as Lang.Number) {
|
||||
var marginX = stepX * 0.05; // 5% margin on all sides
|
||||
var marginY = stepY * 0.05;
|
||||
var x = (digit == 0) ? stepX : stepX * ((digit+2) % 3); // layout '0' in 2nd col, others ltr in 3 columns
|
||||
@@ -42,7 +45,8 @@ class PinDigit extends WatchUi.Selectable {
|
||||
var button = new PinDigitButton({
|
||||
:width => width,
|
||||
:height => height,
|
||||
:label => digit
|
||||
:label => digit,
|
||||
:touched => false
|
||||
});
|
||||
|
||||
var buttonTouched = new PinDigitButton({
|
||||
@@ -63,24 +67,47 @@ class PinDigit extends WatchUi.Selectable {
|
||||
});
|
||||
|
||||
mDigit = digit;
|
||||
|
||||
}
|
||||
|
||||
function getDigit() as Number {
|
||||
//! Return the digit 0..9 represented by this button
|
||||
//
|
||||
function getDigit() as Lang.Number {
|
||||
return mDigit;
|
||||
}
|
||||
|
||||
//! Customised drawing of a PIN digit's button.
|
||||
//
|
||||
class PinDigitButton extends WatchUi.Drawable {
|
||||
private var mText as Number;
|
||||
private var mTouched as Boolean = false;
|
||||
private var mText as Lang.Number;
|
||||
private var mTouched as Lang.Boolean = false;
|
||||
|
||||
function initialize(options) {
|
||||
//! Class Constructor
|
||||
//!
|
||||
//! @param options See `Drawable.initialize()`, but with `:label` and `:touched` added.<br>
|
||||
//! `{`<br>
|
||||
//!   `:label as Lang.Number,` // The digit 0..9 to display<br>
|
||||
//!   `:touched as Lang.Boolean,` // Should the digit be filled to indicate it has been pressed?<br>
|
||||
//!   + those required by `Drawable.initialize()`<br>
|
||||
//! ``}`
|
||||
//
|
||||
function initialize(
|
||||
options as {
|
||||
:width as Lang.Float,
|
||||
:height as Lang.Float,
|
||||
:label as Lang.Number,
|
||||
:touched as Lang.Boolean
|
||||
}
|
||||
) {
|
||||
Drawable.initialize(options);
|
||||
mText = options.get(:label);
|
||||
mTouched = options.get(:touched);
|
||||
mText = options[:label];
|
||||
mTouched = options[:touched];
|
||||
}
|
||||
|
||||
function draw(dc) {
|
||||
//! Draw the PIN digit button.
|
||||
//!
|
||||
//! @param dc Device context
|
||||
//
|
||||
function draw(dc as Graphics.Dc) {
|
||||
if (mTouched) {
|
||||
dc.setColor(Graphics.COLOR_ORANGE, Graphics.COLOR_ORANGE);
|
||||
} else {
|
||||
@@ -98,17 +125,27 @@ class PinDigit extends WatchUi.Selectable {
|
||||
|
||||
}
|
||||
|
||||
|
||||
//! Pin Confirmation dialog and logic.
|
||||
//
|
||||
class HomeAssistantPinConfirmationView extends WatchUi.View {
|
||||
|
||||
static const MARGIN_X = 20; // margin on left & right side of screen (overall prettier and works better on round displays)
|
||||
|
||||
var mPinMask as String = "";
|
||||
//! Margin on left & right side of screen (overall prettier and works better on round displays)
|
||||
static const MARGIN_X = 20;
|
||||
//! Indicates how many digits have been entered so far.
|
||||
var mPinMask as Lang.String = "";
|
||||
|
||||
//! Class Constructor
|
||||
//
|
||||
function initialize() {
|
||||
View.initialize();
|
||||
}
|
||||
|
||||
function onLayout(dc as Dc) as Void {
|
||||
//! Construct the view.
|
||||
//!
|
||||
//! @param dc Device context
|
||||
//
|
||||
function onLayout(dc as Graphics.Dc) as Void {
|
||||
var stepX = (dc.getWidth() - MARGIN_X * 2) / 3; // three columns
|
||||
var stepY = dc.getHeight() / 5; // five rows (first row for masked pin entry)
|
||||
var digits = [];
|
||||
@@ -119,7 +156,11 @@ class HomeAssistantPinConfirmationView extends WatchUi.View {
|
||||
setLayout(digits);
|
||||
}
|
||||
|
||||
function onUpdate(dc as Dc) as Void {
|
||||
//! Update the view.
|
||||
//!
|
||||
//! @param dc Device context
|
||||
//
|
||||
function onUpdate(dc as Graphics.Dc) as Void {
|
||||
View.onUpdate(dc);
|
||||
if (mPinMask.length() != 0) {
|
||||
dc.setColor(Graphics.COLOR_WHITE, Graphics.COLOR_BLACK);
|
||||
@@ -127,7 +168,11 @@ class HomeAssistantPinConfirmationView extends WatchUi.View {
|
||||
}
|
||||
}
|
||||
|
||||
function updatePinMask(length as Number) {
|
||||
//! Update the PIN mask displayed.
|
||||
//!
|
||||
//! @param length Number of `*` characters to use for the mask string.
|
||||
//
|
||||
function updatePinMask(length as Lang.Number) {
|
||||
mPinMask = "";
|
||||
for (var i=0; i<length; i++) {
|
||||
mPinMask += "*";
|
||||
@@ -138,17 +183,35 @@ class HomeAssistantPinConfirmationView extends WatchUi.View {
|
||||
}
|
||||
|
||||
|
||||
//! Delegate for the HomeAssistantPinConfirmationView.
|
||||
//
|
||||
class HomeAssistantPinConfirmationDelegate extends WatchUi.BehaviorDelegate {
|
||||
|
||||
private var mPin as String;
|
||||
private var mEnteredPin as String;
|
||||
private var mPin as Lang.String;
|
||||
private var mEnteredPin as Lang.String;
|
||||
private var mConfirmMethod as Method(state as Lang.Boolean) as Void;
|
||||
private var mTimer as Timer.Timer or Null;
|
||||
private var mTimer as Timer.Timer?;
|
||||
private var mState as Lang.Boolean;
|
||||
private var mFailures as PinFailures;
|
||||
private var mToggleMethod as Method(state as Lang.Boolean) as Void?;
|
||||
private var mView as HomeAssistantPinConfirmationView;
|
||||
|
||||
function initialize(callback as Method(state as Lang.Boolean) as Void, state as Lang.Boolean, pin as String, view as HomeAssistantPinConfirmationView) {
|
||||
//! Class Constructor
|
||||
//!
|
||||
//! @param options A dictionary describing the following options:
|
||||
//! - callback Method to call on confirmation.
|
||||
//! - pin PIN to be matched.
|
||||
//! - state Wanted state of a toggle button.
|
||||
//! - toggle Optional setEnabled method to untoggle ToggleItem.
|
||||
//! - view PIN confirmation view.
|
||||
//
|
||||
function initialize(options as {
|
||||
:callback as Method(state as Lang.Boolean) as Void,
|
||||
:pin as Lang.String,
|
||||
:state as Lang.Boolean,
|
||||
:view as HomeAssistantPinConfirmationView,
|
||||
:toggleMethod as (Method(state as Lang.Boolean) as Void)?,
|
||||
}) {
|
||||
BehaviorDelegate.initialize();
|
||||
mFailures = new PinFailures();
|
||||
if (mFailures.isLocked()) {
|
||||
@@ -157,15 +220,22 @@ class HomeAssistantPinConfirmationDelegate extends WatchUi.BehaviorDelegate {
|
||||
WatchUi.loadResource($.Rez.Strings.Seconds);
|
||||
WatchUi.showToast(msg, {});
|
||||
}
|
||||
mPin = pin;
|
||||
mPin = options[:pin];
|
||||
mEnteredPin = "";
|
||||
mConfirmMethod = callback;
|
||||
mState = state;
|
||||
mView = view;
|
||||
mConfirmMethod = options[:callback];
|
||||
mState = options[:state];
|
||||
mToggleMethod = options[:toggleMethod];
|
||||
mView = options[:view];
|
||||
|
||||
resetTimer();
|
||||
}
|
||||
|
||||
function onSelectable(event as SelectableEvent) as Boolean {
|
||||
//! Add another entered digit to the "PIN so far". When it is long enough verify the PIN is correct and the
|
||||
//! invoke the supplied call back function.
|
||||
//!
|
||||
//! @param event The digit pressed by the user tapping the screen.
|
||||
//
|
||||
function onSelectable(event as WatchUi.SelectableEvent) as Lang.Boolean {
|
||||
if (mFailures.isLocked()) {
|
||||
goBack();
|
||||
}
|
||||
@@ -173,7 +243,7 @@ class HomeAssistantPinConfirmationDelegate extends WatchUi.BehaviorDelegate {
|
||||
if (instance instanceof PinDigit && event.getPreviousState() == :stateSelected) {
|
||||
mEnteredPin += instance.getDigit();
|
||||
createUserFeedback();
|
||||
// System.println("HomeAssitantPinConfirmationDelegate onSelectable() mEnteredPin = " + mEnteredPin);
|
||||
// System.println("HomeAssistantPinConfirmationDelegate onSelectable() mEnteredPin = " + mEnteredPin);
|
||||
if (mEnteredPin.length() == mPin.length()) {
|
||||
if (mEnteredPin.equals(mPin)) {
|
||||
mFailures.reset();
|
||||
@@ -181,8 +251,13 @@ class HomeAssistantPinConfirmationDelegate extends WatchUi.BehaviorDelegate {
|
||||
if (mTimer != null) {
|
||||
mTimer.stop();
|
||||
}
|
||||
mConfirmMethod.invoke(mState);
|
||||
WatchUi.popView(WatchUi.SLIDE_RIGHT);
|
||||
|
||||
// Set the toggle, if we have one
|
||||
if (mToggleMethod != null) {
|
||||
mToggleMethod.invoke(!mState);
|
||||
}
|
||||
mConfirmMethod.invoke(mState);
|
||||
} else {
|
||||
error();
|
||||
}
|
||||
@@ -193,6 +268,8 @@ class HomeAssistantPinConfirmationDelegate extends WatchUi.BehaviorDelegate {
|
||||
return true;
|
||||
}
|
||||
|
||||
//! Hepatic feedback.
|
||||
//
|
||||
function createUserFeedback() {
|
||||
if (Attention has :vibrate && Settings.getVibrate()) {
|
||||
Attention.vibrate([new Attention.VibeProfile(25, 25)]);
|
||||
@@ -200,6 +277,9 @@ class HomeAssistantPinConfirmationDelegate extends WatchUi.BehaviorDelegate {
|
||||
mView.updatePinMask(mEnteredPin.length());
|
||||
}
|
||||
|
||||
//! A timer is used to clear the PIN entry view if digits are not pressed. So each time a digit is pressed the
|
||||
//! timer is reset.
|
||||
//
|
||||
function resetTimer() {
|
||||
var timeout = Settings.getConfirmTimeout(); // ms
|
||||
if (timeout > 0) {
|
||||
@@ -212,25 +292,30 @@ class HomeAssistantPinConfirmationDelegate extends WatchUi.BehaviorDelegate {
|
||||
}
|
||||
}
|
||||
|
||||
//! Cancel PIN entry.
|
||||
//
|
||||
function goBack() as Void {
|
||||
if (mTimer != null) {
|
||||
mTimer.stop();
|
||||
}
|
||||
|
||||
WatchUi.popView(WatchUi.SLIDE_RIGHT);
|
||||
}
|
||||
|
||||
//! Hepatic feedback for a wrong PIN and cancel entry.
|
||||
//
|
||||
function error() as Void {
|
||||
// System.println("HomeAssistantPinConfirmationDelegate error() Wrong PIN entered");
|
||||
mFailures.addFailure();
|
||||
if (Attention has :vibrate && Settings.getVibrate()) {
|
||||
Attention.vibrate([
|
||||
new Attention.VibeProfile(100, 100),
|
||||
new Attention.VibeProfile(0, 200),
|
||||
new Attention.VibeProfile(75, 100),
|
||||
new Attention.VibeProfile(0, 200),
|
||||
new Attention.VibeProfile(50, 100),
|
||||
new Attention.VibeProfile(0, 200),
|
||||
new Attention.VibeProfile(25, 100)
|
||||
new Attention.VibeProfile( 0, 200),
|
||||
new Attention.VibeProfile( 75, 100),
|
||||
new Attention.VibeProfile( 0, 200),
|
||||
new Attention.VibeProfile( 50, 100),
|
||||
new Attention.VibeProfile( 0, 200),
|
||||
new Attention.VibeProfile( 25, 100)
|
||||
]);
|
||||
}
|
||||
if (WatchUi has :showToast) {
|
||||
@@ -239,16 +324,28 @@ class HomeAssistantPinConfirmationDelegate extends WatchUi.BehaviorDelegate {
|
||||
goBack();
|
||||
}
|
||||
|
||||
//! Handle the back button (ESC)
|
||||
//
|
||||
function onBack() as Lang.Boolean {
|
||||
goBack();
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
//! Manage PIN entry failures to try and prevent brute force exhaustion by inserting delays in retries.
|
||||
//
|
||||
class PinFailures {
|
||||
|
||||
const STORAGE_KEY_FAILURES as String = "pin_failures";
|
||||
const STORAGE_KEY_LOCKED as String = "pin_locked";
|
||||
const STORAGE_KEY_FAILURES as Lang.String = "pin_failures";
|
||||
const STORAGE_KEY_LOCKED as Lang.String = "pin_locked";
|
||||
|
||||
private var mFailures as Array<Number>;
|
||||
private var mLockedUntil as Number or Null;
|
||||
private var mFailures as Lang.Array<Lang.Number>;
|
||||
private var mLockedUntil as Lang.Number?;
|
||||
|
||||
//! Class Constructor
|
||||
//
|
||||
function initialize() {
|
||||
// System.println("PinFailures initialize() Initializing PIN failures from storage");
|
||||
var failures = Application.Storage.getValue(PinFailures.STORAGE_KEY_FAILURES);
|
||||
@@ -256,6 +353,8 @@ class PinFailures {
|
||||
mLockedUntil = Application.Storage.getValue(PinFailures.STORAGE_KEY_LOCKED);
|
||||
}
|
||||
|
||||
//! Record a PIN entry failure. If too many have occurred lock the application.
|
||||
//
|
||||
function addFailure() {
|
||||
mFailures.add(Time.now().value());
|
||||
// System.println("PinFailures addFailure() " + mFailures.size() + " PIN confirmation failures recorded");
|
||||
@@ -268,7 +367,7 @@ class PinFailures {
|
||||
mFailures = mFailures.slice(1, null);
|
||||
} else {
|
||||
mFailures = [];
|
||||
mLockedUntil = Time.now().add(new Time.Duration(Globals.scPinLockTimeMinutes * Gregorian.SECONDS_PER_MINUTE)).value();
|
||||
mLockedUntil = Time.now().add(new Time.Duration(Globals.scPinLockTimeMinutes * Time.Gregorian.SECONDS_PER_MINUTE)).value();
|
||||
Application.Storage.setValue(STORAGE_KEY_LOCKED, mLockedUntil);
|
||||
// System.println("PinFailures addFailure() Locked until " + mLockedUntil);
|
||||
}
|
||||
@@ -276,6 +375,9 @@ class PinFailures {
|
||||
Application.Storage.setValue(STORAGE_KEY_FAILURES, mFailures);
|
||||
}
|
||||
|
||||
//! Clear the record of previous PIN entry failures, e.g. because the correct PIN has now been entered
|
||||
//! within tolerance.
|
||||
//
|
||||
function reset() {
|
||||
// System.println("PinFailures reset() Resetting failures");
|
||||
mFailures = [];
|
||||
@@ -284,11 +386,18 @@ class PinFailures {
|
||||
Application.Storage.deleteValue(STORAGE_KEY_LOCKED);
|
||||
}
|
||||
|
||||
function getLockedUntilSeconds() as Number {
|
||||
//! Retrieve the remaining time the application must be locked out for.
|
||||
//
|
||||
function getLockedUntilSeconds() as Lang.Number {
|
||||
return new Time.Moment(mLockedUntil).subtract(Time.now()).value();
|
||||
}
|
||||
|
||||
function isLocked() as Boolean {
|
||||
//! Is the application currently locked out? If the application is no longer locked out, then clear the
|
||||
//! stored values used to determine this state.
|
||||
//!
|
||||
//! @return Boolean indicating if the application is currently locked out.
|
||||
//
|
||||
function isLocked() as Lang.Boolean {
|
||||
if (mLockedUntil == null) {
|
||||
return false;
|
||||
}
|
||||
|
@@ -9,12 +9,7 @@
|
||||
// tested on a Venu 2 device. The source code is provided at:
|
||||
// https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
//
|
||||
// P A Abbey & J D Abbey & Someone0nEarth, 19 November 2023
|
||||
//
|
||||
//
|
||||
// Description:
|
||||
//
|
||||
// Calling a Home Assistant Service.
|
||||
// P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 19 November 2023
|
||||
//
|
||||
//-----------------------------------------------------------------------------------
|
||||
|
||||
@@ -23,27 +18,40 @@ using Toybox.WatchUi;
|
||||
using Toybox.Graphics;
|
||||
using Toybox.Application.Properties;
|
||||
|
||||
//! Calling a Home Assistant Service.
|
||||
//
|
||||
class HomeAssistantService {
|
||||
private var mHasToast as Lang.Boolean = false;
|
||||
private var mHasVibrate as Lang.Boolean = false;
|
||||
|
||||
//! Class Constructor
|
||||
//
|
||||
function initialize() {
|
||||
if (WatchUi has :showToast) {
|
||||
mHasToast = true;
|
||||
}
|
||||
mHasToast = WatchUi has :showToast;
|
||||
|
||||
if (Attention has :vibrate) {
|
||||
mHasVibrate = true;
|
||||
}
|
||||
}
|
||||
|
||||
// Callback function after completing the POST request to call a service.
|
||||
//! Callback function after completing the POST request to call a service.
|
||||
//!
|
||||
//! @param responseCode Response code.
|
||||
//! @param data Response data.
|
||||
//! @param context An `entity_id` supplied in the GET request `options` `Lang.Dictionary` `context` field.
|
||||
//
|
||||
function onReturnCall(
|
||||
responseCode as Lang.Number,
|
||||
data as Null or Lang.Dictionary or Lang.String,
|
||||
context as Lang.Object
|
||||
) as Void {
|
||||
var entity_id = context as Lang.String or Null;
|
||||
var c = context as Lang.Dictionary;
|
||||
var entity_id;
|
||||
var exit = false;
|
||||
if (c != null) {
|
||||
entity_id = c[:entity_id] as Lang.String;
|
||||
exit = c[:exit] as Lang.Boolean;
|
||||
}
|
||||
// System.println("HomeAssistantService onReturnCall() Response Code: " + responseCode);
|
||||
// System.println("HomeAssistantService onReturnCall() Response Data: " + data);
|
||||
|
||||
@@ -92,13 +100,16 @@ class HomeAssistantService {
|
||||
WatchUi.showToast(toast, null);
|
||||
} else {
|
||||
new Alert({
|
||||
:timeout => Globals.scAlertTimeout,
|
||||
:timeout => Globals.scAlertTimeoutMs,
|
||||
:font => Graphics.FONT_MEDIUM,
|
||||
:text => toast,
|
||||
:fgcolor => Graphics.COLOR_WHITE,
|
||||
:bgcolor => Graphics.COLOR_BLACK
|
||||
}).pushView(WatchUi.SLIDE_IMMEDIATE);
|
||||
}
|
||||
if (exit) {
|
||||
System.exit();
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
@@ -107,14 +118,35 @@ class HomeAssistantService {
|
||||
}
|
||||
}
|
||||
|
||||
//! Invoke a service call for a menu item.
|
||||
//!
|
||||
//! @param service The Home Assistant service to be run, e.g. from the JSON `service` field.
|
||||
//! @param data Data to be supplied to the service call.
|
||||
//
|
||||
function call(
|
||||
service as Lang.String,
|
||||
data as Lang.Dictionary or Null
|
||||
data as Lang.Dictionary?,
|
||||
exit as Lang.Boolean
|
||||
) as Void {
|
||||
if (! System.getDeviceSettings().phoneConnected) {
|
||||
var phoneConnected = System.getDeviceSettings().phoneConnected;
|
||||
var internetAvailable = System.getDeviceSettings().connectionAvailable;
|
||||
if (Settings.getWifiLteExecutionEnabled() && (! phoneConnected || ! internetAvailable)) {
|
||||
var dialogMsg = WatchUi.loadResource($.Rez.Strings.WifiLtePrompt) as Lang.String;
|
||||
var dialog = new WatchUi.Confirmation(dialogMsg);
|
||||
WatchUi.pushView(
|
||||
dialog,
|
||||
new WifiLteExecutionConfirmDelegate({
|
||||
:type => "service",
|
||||
:service => service,
|
||||
:data => data,
|
||||
:exit => exit,
|
||||
}, dialog),
|
||||
WatchUi.SLIDE_LEFT
|
||||
);
|
||||
} else if (! phoneConnected) {
|
||||
// System.println("HomeAssistantService call(): No Phone connection, skipping API call.");
|
||||
ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoPhone) as Lang.String);
|
||||
} else if (! System.getDeviceSettings().connectionAvailable) {
|
||||
} else if (! internetAvailable) {
|
||||
// System.println("HomeAssistantService call(): No Internet connection, skipping API call.");
|
||||
ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoInternet) as Lang.String);
|
||||
} else {
|
||||
@@ -136,12 +168,15 @@ class HomeAssistantService {
|
||||
data, // Includes {"entity_id": xxxx}
|
||||
{
|
||||
:method => Communications.HTTP_REQUEST_METHOD_POST,
|
||||
:headers => {
|
||||
:headers => Settings.augmentHttpHeaders({
|
||||
"Content-Type" => Communications.REQUEST_CONTENT_TYPE_JSON,
|
||||
"Authorization" => "Bearer " + Settings.getApiKey()
|
||||
},
|
||||
}),
|
||||
:responseType => Communications.HTTP_RESPONSE_CONTENT_TYPE_JSON,
|
||||
:context => entity_id
|
||||
:context => {
|
||||
:entity_id => entity_id,
|
||||
:exit => exit
|
||||
}
|
||||
},
|
||||
method(:onReturnCall)
|
||||
);
|
||||
|
145
source/HomeAssistantSyncDelegate.mc
Normal file
@@ -0,0 +1,145 @@
|
||||
//-----------------------------------------------------------------------------------
|
||||
//
|
||||
// Distributed under MIT Licence
|
||||
// See https://github.com/house-of-abbey/GarminHomeAssistant/blob/main/LICENSE.
|
||||
//
|
||||
//-----------------------------------------------------------------------------------
|
||||
//
|
||||
// GarminHomeAssistant is a Garmin IQ application written in Monkey C and routinely
|
||||
// tested on a Venu 2 device. The source code is provided at:
|
||||
// https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
//
|
||||
// P A Abbey & J D Abbey & vincentezw, 22 July 2025
|
||||
//
|
||||
//-----------------------------------------------------------------------------------
|
||||
|
||||
using Toybox.Communications;
|
||||
using Toybox.Lang;
|
||||
|
||||
//! SyncDelegate to execute single command via POST request to the Home Assistant
|
||||
//! server.
|
||||
//
|
||||
class HomeAssistantSyncDelegate extends Communications.SyncDelegate {
|
||||
//! Retain the last synchronisation error.
|
||||
private static var mSyncError as Lang.String?;
|
||||
|
||||
//! Class Constructor
|
||||
//
|
||||
public function initialize() {
|
||||
SyncDelegate.initialize();
|
||||
}
|
||||
|
||||
//! Called by the system to determine if a synchronisation is needed
|
||||
//
|
||||
public function isSyncNeeded() as Lang.Boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
//! Called by the system when starting a bulk synchronisation.
|
||||
//
|
||||
public function onStartSync() as Void {
|
||||
mSyncError = null;
|
||||
if (WifiLteExecutionConfirmDelegate.mCommandData == null) {
|
||||
mSyncError = WatchUi.loadResource($.Rez.Strings.WifiLteExecutionDataError) as Lang.String;
|
||||
onStopSync();
|
||||
return;
|
||||
}
|
||||
|
||||
var type = WifiLteExecutionConfirmDelegate.mCommandData[:type];
|
||||
var data = WifiLteExecutionConfirmDelegate.mCommandData[:data];
|
||||
var url;
|
||||
|
||||
switch (type) {
|
||||
case "service":
|
||||
var service = WifiLteExecutionConfirmDelegate.mCommandData[:service];
|
||||
url = Settings.getApiUrl() + "/services/" + service.substring(0, service.find(".")) + "/" + service.substring(service.find(".")+1, service.length());
|
||||
var entity_id = "";
|
||||
if (data != null) {
|
||||
entity_id = data.get("entity_id");
|
||||
if (entity_id == null) {
|
||||
entity_id = "";
|
||||
}
|
||||
}
|
||||
performRequest(url, data);
|
||||
break;
|
||||
case "entity":
|
||||
url = WifiLteExecutionConfirmDelegate.mCommandData[:url];
|
||||
performRequest(url, data);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
//! Performs a POST request to the Home Assistant server with a given payload and URL, and calls
|
||||
//! haCallback.
|
||||
//!
|
||||
//! @param url URL for the API call.
|
||||
//! @param data Data to be supplied to the API call.
|
||||
//
|
||||
private function performRequest(url as Lang.String, data as Lang.Dictionary?) {
|
||||
Communications.makeWebRequest(
|
||||
url,
|
||||
data, // May include {"entity_id": xxxx} for service calls
|
||||
{
|
||||
:method => Communications.HTTP_REQUEST_METHOD_POST,
|
||||
:headers => Settings.augmentHttpHeaders({
|
||||
"Content-Type" => Communications.REQUEST_CONTENT_TYPE_JSON,
|
||||
"Authorization" => "Bearer " + Settings.getApiKey()
|
||||
}),
|
||||
:responseType => Communications.HTTP_RESPONSE_CONTENT_TYPE_JSON,
|
||||
},
|
||||
method(:haCallback)
|
||||
);
|
||||
}
|
||||
|
||||
//! Handle callback from request
|
||||
//!
|
||||
//! @param responseCode Response code.
|
||||
//! @param data Response data.
|
||||
//
|
||||
public function haCallback(code as Lang.Number, data as Lang.Dictionary?) as Void {
|
||||
Communications.notifySyncProgress(100);
|
||||
switch(code) {
|
||||
case Communications.NETWORK_REQUEST_TIMED_OUT:
|
||||
mSyncError = WatchUi.loadResource($.Rez.Strings.TimedOut);
|
||||
break;
|
||||
case Communications.NETWORK_RESPONSE_OUT_OF_MEMORY:
|
||||
case Communications.INVALID_HTTP_BODY_IN_NETWORK_RESPONSE:
|
||||
mSyncError = WatchUi.loadResource($.Rez.Strings.PotentialError);
|
||||
break;
|
||||
case 404:
|
||||
mSyncError = WatchUi.loadResource($.Rez.Strings.ApiUrlNotFound);
|
||||
break;
|
||||
case 200:
|
||||
mSyncError = null;
|
||||
if (WifiLteExecutionConfirmDelegate.mCommandData[:type].equals("entity")) {
|
||||
var callbackMethod = WifiLteExecutionConfirmDelegate.mCommandData[:callback];
|
||||
if (callbackMethod != null) {
|
||||
callbackMethod.invoke(data as Lang.Array);
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
mSyncError = WatchUi.loadResource($.Rez.Strings.UnhandledHttpErr) + code;
|
||||
break;
|
||||
}
|
||||
onStopSync();
|
||||
}
|
||||
|
||||
//! Clean up
|
||||
//
|
||||
public function onStopSync() as Void {
|
||||
Communications.notifySyncComplete(mSyncError);
|
||||
Communications.cancelAllRequests();
|
||||
// Need to delay the exit here or the transfer shows as failed (and it might not be).
|
||||
if (WifiLteExecutionConfirmDelegate.mCommandData[:exit]) {
|
||||
var myTimer = new Timer.Timer();
|
||||
myTimer.start(method(:exit), Globals.wifiQuitDelayMs, false);
|
||||
}
|
||||
}
|
||||
|
||||
//! Required for `method(:exit)` to be able to find a method at all.
|
||||
//
|
||||
public function exit() as Void {
|
||||
System.exit();
|
||||
}
|
||||
}
|
@@ -9,12 +9,7 @@
|
||||
// tested on a Venu 2 device. The source code is provided at:
|
||||
// https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
//
|
||||
// P A Abbey & J D Abbey & Someone0nEarth & moesterheld, 31 October 2023
|
||||
//
|
||||
//
|
||||
// Description:
|
||||
//
|
||||
// Menu button that triggers a service.
|
||||
// P A Abbey & J D Abbey & Someone0nEarth & moesterheld & vincentezw, 31 October 2023
|
||||
//
|
||||
//-----------------------------------------------------------------------------------
|
||||
|
||||
@@ -22,46 +17,63 @@ using Toybox.Lang;
|
||||
using Toybox.WatchUi;
|
||||
using Toybox.Graphics;
|
||||
|
||||
//! Menu button that triggers a service.
|
||||
//
|
||||
class HomeAssistantTapMenuItem extends HomeAssistantMenuItem {
|
||||
private var mHomeAssistantService as HomeAssistantService;
|
||||
private var mService as Lang.String or Null;
|
||||
private var mService as Lang.String?;
|
||||
private var mConfirm as Lang.Boolean;
|
||||
private var mExit as Lang.Boolean;
|
||||
private var mPin as Lang.Boolean;
|
||||
private var mData as Lang.Dictionary or Null;
|
||||
private var mData as Lang.Dictionary?;
|
||||
|
||||
//! Class Constructor
|
||||
//!
|
||||
//! @param label Menu item label.
|
||||
//! @param template Menu item template.
|
||||
//! @param service Menu item service.
|
||||
//! @param data Data to supply to the service call.
|
||||
//! @param exit Should the service call complete and then exit?
|
||||
//! @param confirm Should the service call be confirmed to avoid accidental invocation?
|
||||
//! @param pin Should the service call be protected with a PIN for some low level of security?
|
||||
//! @param icon Icon to use for the menu item.
|
||||
//! @param options Menu item options to be passed on, including both SDK and menu options, e.g. exit, confirm & pin.
|
||||
//! @param haService Shared Home Assistant service object that will perform the required call. Only
|
||||
//! one of these objects is created for all menu items to re-use.
|
||||
//
|
||||
function initialize(
|
||||
label as Lang.String or Lang.Symbol,
|
||||
template as Lang.String,
|
||||
service as Lang.String or Null,
|
||||
confirm as Lang.Boolean,
|
||||
pin as Lang.Boolean,
|
||||
data as Lang.Dictionary or Null,
|
||||
icon as Graphics.BitmapType or WatchUi.Drawable,
|
||||
service as Lang.String?,
|
||||
data as Lang.Dictionary?,
|
||||
options as {
|
||||
:alignment as WatchUi.MenuItem.Alignment,
|
||||
:icon as Graphics.BitmapType or WatchUi.Drawable or Lang.Symbol
|
||||
} or Null,
|
||||
:icon as Graphics.BitmapType or WatchUi.Drawable or Lang.Symbol,
|
||||
:exit as Lang.Boolean,
|
||||
:confirm as Lang.Boolean,
|
||||
:pin as Lang.Boolean
|
||||
}?,
|
||||
haService as HomeAssistantService
|
||||
) {
|
||||
if (options != null) {
|
||||
options.put(:icon, icon);
|
||||
} else {
|
||||
options = { :icon => icon };
|
||||
}
|
||||
|
||||
HomeAssistantMenuItem.initialize(
|
||||
label,
|
||||
template,
|
||||
options
|
||||
{
|
||||
:alignment => options[:alignment],
|
||||
:icon => options[:icon]
|
||||
}
|
||||
);
|
||||
|
||||
mHomeAssistantService = haService;
|
||||
mService = service;
|
||||
mConfirm = confirm;
|
||||
mPin = pin;
|
||||
mData = data;
|
||||
mExit = options[:exit];
|
||||
mConfirm = options[:confirm];
|
||||
mPin = options[:pin];
|
||||
}
|
||||
|
||||
//! Call a Home Assistant service only after checks have been done for confirmation or PIN entry.
|
||||
//
|
||||
function callService() as Void {
|
||||
var hasTouchScreen = System.getDeviceSettings().isTouchScreen;
|
||||
if (mPin && hasTouchScreen) {
|
||||
@@ -70,25 +82,55 @@ class HomeAssistantTapMenuItem extends HomeAssistantMenuItem {
|
||||
var pinConfirmationView = new HomeAssistantPinConfirmationView();
|
||||
WatchUi.pushView(
|
||||
pinConfirmationView,
|
||||
new HomeAssistantPinConfirmationDelegate(method(:onConfirm), false, pin, pinConfirmationView),
|
||||
new HomeAssistantPinConfirmationDelegate({
|
||||
:callback => method(:onConfirm),
|
||||
:pin => pin,
|
||||
:state => false,
|
||||
:view => pinConfirmationView,
|
||||
}),
|
||||
WatchUi.SLIDE_IMMEDIATE
|
||||
);
|
||||
}
|
||||
} else if (mConfirm) {
|
||||
if ((! System.getDeviceSettings().phoneConnected ||
|
||||
! System.getDeviceSettings().connectionAvailable) &&
|
||||
Settings.getWifiLteExecutionEnabled()) {
|
||||
var dialogMsg = WatchUi.loadResource($.Rez.Strings.WifiLtePrompt) as Lang.String;
|
||||
var dialog = new WatchUi.Confirmation(dialogMsg);
|
||||
WatchUi.pushView(
|
||||
new HomeAssistantConfirmation(),
|
||||
new HomeAssistantConfirmationDelegate(method(:onConfirm), false),
|
||||
dialog,
|
||||
new WifiLteExecutionConfirmDelegate({
|
||||
:type => "service",
|
||||
:service => mService,
|
||||
:data => mData,
|
||||
:exit => mExit,
|
||||
}, dialog),
|
||||
WatchUi.SLIDE_LEFT
|
||||
);
|
||||
} else {
|
||||
var view = new HomeAssistantConfirmation();
|
||||
WatchUi.pushView(
|
||||
view,
|
||||
new HomeAssistantConfirmationDelegate({
|
||||
:callback => method(:onConfirm),
|
||||
:confirmationView => view,
|
||||
:state => false,
|
||||
}),
|
||||
WatchUi.SLIDE_IMMEDIATE
|
||||
);
|
||||
}
|
||||
} else {
|
||||
onConfirm(false);
|
||||
}
|
||||
}
|
||||
|
||||
// NB. Parameter 'b' is ignored
|
||||
//! Callback function after the menu items selection has been (optionally) confirmed.
|
||||
//!
|
||||
//! @param b Ignored. It is included in order to match the expected function prototype of the callback method.
|
||||
//
|
||||
function onConfirm(b as Lang.Boolean) as Void {
|
||||
if (mService != null) {
|
||||
mHomeAssistantService.call(mService, mData);
|
||||
mHomeAssistantService.call(mService, mData, mExit);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -9,12 +9,7 @@
|
||||
// tested on a Venu 2 device. The source code is provided at:
|
||||
// https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
//
|
||||
// P A Abbey & J D Abbey & Someone0nEarth & moesterheld, 31 October 2023
|
||||
//
|
||||
//
|
||||
// Description:
|
||||
//
|
||||
// Light or switch toggle button that calls the API to maintain the up to date state.
|
||||
// P A Abbey & J D Abbey & Someone0nEarth & moesterheld & vincentezw, 31 October 2023
|
||||
//
|
||||
//-----------------------------------------------------------------------------------
|
||||
|
||||
@@ -24,40 +19,57 @@ using Toybox.Graphics;
|
||||
using Toybox.Application.Properties;
|
||||
using Toybox.Timer;
|
||||
|
||||
//! Light or switch toggle menu button that calls the API to maintain the up to date state.
|
||||
//
|
||||
class HomeAssistantToggleMenuItem extends WatchUi.ToggleMenuItem {
|
||||
private var mConfirm as Lang.Boolean;
|
||||
private var mPin as Lang.Boolean;
|
||||
private var mData as Lang.Dictionary;
|
||||
private var mTemplate as Lang.String;
|
||||
private var mExit as Lang.Boolean;
|
||||
private var mConfirm as Lang.Boolean;
|
||||
private var mPin as Lang.Boolean;
|
||||
private var mHasVibrate as Lang.Boolean = false;
|
||||
|
||||
//! Class Constructor
|
||||
//!
|
||||
//! @param label Menu item label.
|
||||
//! @param template Menu item template.
|
||||
//! @param data Data to supply to the service call.
|
||||
//! @param options Menu item options to be passed on, including both SDK and menu options, e.g. exit, confirm & pin.
|
||||
//
|
||||
function initialize(
|
||||
label as Lang.String or Lang.Symbol,
|
||||
template as Lang.String,
|
||||
confirm as Lang.Boolean,
|
||||
pin as Lang.Boolean,
|
||||
data as Lang.Dictionary or Null,
|
||||
data as Lang.Dictionary?,
|
||||
options as {
|
||||
:alignment as WatchUi.MenuItem.Alignment,
|
||||
:icon as Graphics.BitmapType or WatchUi.Drawable or Lang.Symbol
|
||||
} or Null
|
||||
:icon as Graphics.BitmapType or WatchUi.Drawable or Lang.Symbol,
|
||||
:exit as Lang.Boolean,
|
||||
:confirm as Lang.Boolean,
|
||||
:pin as Lang.Boolean
|
||||
}?
|
||||
) {
|
||||
WatchUi.ToggleMenuItem.initialize(
|
||||
label,
|
||||
null,
|
||||
null,
|
||||
false,
|
||||
options
|
||||
{
|
||||
:alignment => options[:alignment],
|
||||
:icon => options[:icon]
|
||||
}
|
||||
);
|
||||
if (Attention has :vibrate) {
|
||||
mHasVibrate = true;
|
||||
}
|
||||
mConfirm = confirm;
|
||||
mPin = pin;
|
||||
mData = data;
|
||||
mTemplate = template;
|
||||
mExit = options[:exit];
|
||||
mConfirm = options[:confirm];
|
||||
mPin = options[:pin];
|
||||
}
|
||||
|
||||
//! Set the state of a toggle menu item.
|
||||
//
|
||||
private function setUiToggle(state as Null or Lang.String) as Void {
|
||||
if (state != null) {
|
||||
if (state.equals("on") && !isEnabled()) {
|
||||
@@ -68,18 +80,35 @@ class HomeAssistantToggleMenuItem extends WatchUi.ToggleMenuItem {
|
||||
}
|
||||
}
|
||||
|
||||
function buildTemplate() as Lang.String or Null {
|
||||
//! Return the menu item's template.
|
||||
//!
|
||||
//! @return A string with the menu item's template definition (or null).
|
||||
//
|
||||
function getTemplate() as Lang.String? {
|
||||
return mTemplate;
|
||||
}
|
||||
function buildToggleTemplate() as Lang.String or Null {
|
||||
|
||||
//! Return a toggle menu item's state template.
|
||||
//!
|
||||
//! @return A string with the menu item's template definition (or null).
|
||||
//
|
||||
function getToggleTemplate() as Lang.String? {
|
||||
return "{{states('" + mData.get("entity_id") + "')}}";
|
||||
}
|
||||
|
||||
//! Update the menu item's label from a recent GET request.
|
||||
//!
|
||||
//! @param data This should be a string, but the way the GET response is parsed, it can also be a number.
|
||||
//
|
||||
function updateState(data as Lang.String or Lang.Dictionary or Lang.Number or Lang.Float or Null) as Void {
|
||||
if (data == null) {
|
||||
setSubLabel(null);
|
||||
} else if(data instanceof Lang.String) {
|
||||
setSubLabel(data);
|
||||
// Need to set both labels, you can't just 'setSubLabel(data)' or nothing displays.
|
||||
setSubLabel({
|
||||
:enabled => data,
|
||||
:disabled => data
|
||||
});
|
||||
} else if(data instanceof Lang.Number) {
|
||||
var d = data as Lang.Number;
|
||||
setSubLabel(d.format("%d"));
|
||||
@@ -100,6 +129,10 @@ class HomeAssistantToggleMenuItem extends WatchUi.ToggleMenuItem {
|
||||
WatchUi.requestUpdate();
|
||||
}
|
||||
|
||||
//! Update the menu item's toggle state from a recent GET request.
|
||||
//!
|
||||
//! @param data This should be a string of either "on" or "off".
|
||||
//
|
||||
function updateToggleState(data as Lang.String or Lang.Dictionary or Null) as Void {
|
||||
if (data == null) {
|
||||
setUiToggle("off");
|
||||
@@ -107,6 +140,9 @@ class HomeAssistantToggleMenuItem extends WatchUi.ToggleMenuItem {
|
||||
setUiToggle(data);
|
||||
if (mTemplate == null and data.equals("unavailable")) {
|
||||
setSubLabel($.Rez.Strings.Unavailable);
|
||||
} else {
|
||||
// Needed to revert the sub-label when the entity becomes available again.
|
||||
setSubLabel(null);
|
||||
}
|
||||
} else if(data instanceof Lang.Dictionary) {
|
||||
// System.println("HomeAssistantToggleMenuItem updateState() data = " + data);
|
||||
@@ -126,9 +162,15 @@ class HomeAssistantToggleMenuItem extends WatchUi.ToggleMenuItem {
|
||||
WatchUi.requestUpdate();
|
||||
}
|
||||
|
||||
// Callback function after completing the POST request to set the status.
|
||||
//! Callback function after completing the POST request to set the status.
|
||||
//!
|
||||
//! @param responseCode Response code.
|
||||
//! @param data Response data.
|
||||
//
|
||||
function onReturnSetState(responseCode as Lang.Number, data as Null or Lang.Dictionary or Lang.String) as Void {
|
||||
function onReturnSetState(
|
||||
responseCode as Lang.Number,
|
||||
data as Null or Lang.Dictionary or Lang.String
|
||||
) as Void {
|
||||
// System.println("HomeAssistantToggleMenuItem onReturnSetState() Response Code: " + responseCode);
|
||||
// System.println("HomeAssistantToggleMenuItem onReturnSetState() Response Data: " + data);
|
||||
|
||||
@@ -163,16 +205,8 @@ class HomeAssistantToggleMenuItem extends WatchUi.ToggleMenuItem {
|
||||
case 200:
|
||||
// System.println("HomeAssistantToggleMenuItem onReturnSetState(): Service executed.");
|
||||
getApp().forceStatusUpdates();
|
||||
var state;
|
||||
var d = data as Lang.Array;
|
||||
for(var i = 0; i < d.size(); i++) {
|
||||
if ((d[i].get("entity_id") as Lang.String).equals(mData.get("entity_id"))) {
|
||||
state = d[i].get("state") as Lang.String;
|
||||
// System.println((d[i].get("attributes") as Lang.Dictionary).get("friendly_name") + " State=" + state);
|
||||
setUiToggle(state);
|
||||
WatchUi.requestUpdate();
|
||||
}
|
||||
}
|
||||
setToggleStateWithData(d);
|
||||
status = WatchUi.loadResource($.Rez.Strings.Available) as Lang.String;
|
||||
break;
|
||||
|
||||
@@ -181,28 +215,59 @@ class HomeAssistantToggleMenuItem extends WatchUi.ToggleMenuItem {
|
||||
ErrorView.show(WatchUi.loadResource($.Rez.Strings.UnhandledHttpErr) as Lang.String + responseCode);
|
||||
}
|
||||
getApp().setApiStatus(status);
|
||||
if (mExit) {
|
||||
System.exit();
|
||||
}
|
||||
}
|
||||
|
||||
function setState(s as Lang.Boolean) as Void {
|
||||
// Toggle the UI back, we'll wait for confirmation from the Home Assistant
|
||||
//! Handles the response from a Home Assistant service or state call and updates the toggle UI.
|
||||
//!
|
||||
//! @param data An array of dictionaries, each representing a Home Assistant entity state.
|
||||
//
|
||||
function setToggleStateWithData(data as Lang.Array) {
|
||||
// If there's no response body, let's assume that what we did actually happened and flip the toggle.
|
||||
if (data.size() == 0) {
|
||||
setEnabled(!isEnabled());
|
||||
if (! System.getDeviceSettings().phoneConnected) {
|
||||
}
|
||||
|
||||
else {
|
||||
for(var i = 0; i < data.size(); i++) {
|
||||
if ((data[i].get("entity_id") as Lang.String).equals(mData.get("entity_id"))) {
|
||||
var state = data[i].get("state") as Lang.String;
|
||||
// System.println((d[i].get("attributes") as Lang.Dictionary).get("friendly_name") + " State=" + state);
|
||||
setUiToggle(state);
|
||||
WatchUi.requestUpdate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//! Set the state of the toggle menu item.
|
||||
//!
|
||||
//! @param s Boolean indicating the desired state of the toggle switch.
|
||||
//
|
||||
function setState(s as Lang.Boolean) as Void {
|
||||
var phoneConnected = System.getDeviceSettings().phoneConnected;
|
||||
var internetAvailable = System.getDeviceSettings().connectionAvailable;
|
||||
|
||||
if (! phoneConnected && ! Settings.getWifiLteExecutionEnabled()) {
|
||||
// System.println("HomeAssistantToggleMenuItem getState(): No Phone connection, skipping API call.");
|
||||
ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoPhone) as Lang.String);
|
||||
} else if (! System.getDeviceSettings().connectionAvailable) {
|
||||
} else if (! internetAvailable && ! Settings.getWifiLteExecutionEnabled()) {
|
||||
// System.println("HomeAssistantToggleMenuItem getState(): No Internet connection, skipping API call.");
|
||||
// Toggle the UI back
|
||||
ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoInternet) as Lang.String);
|
||||
} else {
|
||||
// Updated SDK and got a new error
|
||||
// ERROR: venu: Cannot find symbol ':substring' on type 'PolyType<Null or $.Toybox.Lang.Object>'.
|
||||
var id = mData.get("entity_id") as Lang.String;
|
||||
var url = Settings.getApiUrl() + "/services/";
|
||||
if (s) {
|
||||
url = url + id.substring(0, id.find(".")) + "/turn_on";
|
||||
} else {
|
||||
url = url + id.substring(0, id.find(".")) + "/turn_off";
|
||||
var url = getUrl(id, s);
|
||||
|
||||
if ((! phoneConnected || ! internetAvailable) && Settings.getWifiLteExecutionEnabled()) {
|
||||
// Undo the toggle
|
||||
setEnabled(!isEnabled());
|
||||
wifiPrompt(s);
|
||||
return;
|
||||
}
|
||||
|
||||
// System.println("HomeAssistantToggleMenuItem setState() URL = " + url);
|
||||
// System.println("HomeAssistantToggleMenuItem setState() entity_id = " + id);
|
||||
Communications.makeWebRequest(
|
||||
@@ -210,10 +275,10 @@ class HomeAssistantToggleMenuItem extends WatchUi.ToggleMenuItem {
|
||||
mData,
|
||||
{
|
||||
:method => Communications.HTTP_REQUEST_METHOD_POST,
|
||||
:headers => {
|
||||
:headers => Settings.augmentHttpHeaders({
|
||||
"Content-Type" => Communications.REQUEST_CONTENT_TYPE_JSON,
|
||||
"Authorization" => "Bearer " + Settings.getApiKey()
|
||||
},
|
||||
}),
|
||||
:responseType => Communications.HTTP_RESPONSE_CONTENT_TYPE_JSON
|
||||
},
|
||||
method(:onReturnSetState)
|
||||
@@ -228,31 +293,100 @@ class HomeAssistantToggleMenuItem extends WatchUi.ToggleMenuItem {
|
||||
}
|
||||
}
|
||||
|
||||
//! Call a Home Assistant service only after checks have been done for confirmation or PIN entry.
|
||||
//
|
||||
function callService(b as Lang.Boolean) as Void {
|
||||
var hasTouchScreen = System.getDeviceSettings().isTouchScreen;
|
||||
if (mPin && hasTouchScreen) {
|
||||
// Undo the toggle
|
||||
setEnabled(!isEnabled());
|
||||
|
||||
var pin = Settings.getPin();
|
||||
if (pin != null) {
|
||||
var pinConfirmationView = new HomeAssistantPinConfirmationView();
|
||||
WatchUi.pushView(
|
||||
pinConfirmationView,
|
||||
new HomeAssistantPinConfirmationDelegate(method(:onConfirm), b, pin, pinConfirmationView),
|
||||
new HomeAssistantPinConfirmationDelegate({
|
||||
:callback => method(:onConfirm),
|
||||
:pin => pin,
|
||||
:state => b,
|
||||
:toggleMethod => method(:setEnabled),
|
||||
:view => pinConfirmationView,
|
||||
}),
|
||||
WatchUi.SLIDE_IMMEDIATE
|
||||
);
|
||||
}
|
||||
} else if (mConfirm) {
|
||||
// Undo the toggle
|
||||
setEnabled(!isEnabled());
|
||||
if ((! System.getDeviceSettings().phoneConnected ||
|
||||
! System.getDeviceSettings().connectionAvailable) &&
|
||||
Settings.getWifiLteExecutionEnabled()) {
|
||||
wifiPrompt(b);
|
||||
} else {
|
||||
var confirmationView = new HomeAssistantConfirmation();
|
||||
WatchUi.pushView(
|
||||
new HomeAssistantConfirmation(),
|
||||
new HomeAssistantConfirmationDelegate(method(:onConfirm), b),
|
||||
confirmationView,
|
||||
new HomeAssistantConfirmationDelegate({
|
||||
:callback => method(:onConfirm),
|
||||
:confirmationView => confirmationView,
|
||||
:state => b,
|
||||
:toggleMethod => method(:setEnabled),
|
||||
}),
|
||||
WatchUi.SLIDE_IMMEDIATE
|
||||
);
|
||||
}
|
||||
} else {
|
||||
onConfirm(b);
|
||||
}
|
||||
}
|
||||
|
||||
//! Callback function to toggle state of this item after (optional) confirmation.
|
||||
//!
|
||||
//! @param b Desired toggle button state.
|
||||
//
|
||||
function onConfirm(b as Lang.Boolean) as Void {
|
||||
setState(b);
|
||||
}
|
||||
|
||||
//! Displays a confirmation dialog before executing a service call via Wi-Fi/LTE.
|
||||
//!
|
||||
//! @param s Desired state: `true` to turn on, `false` to turn off.
|
||||
//
|
||||
private function wifiPrompt(s as Lang.Boolean) as Void {
|
||||
var id = mData.get("entity_id") as Lang.String;
|
||||
var url = getUrl(id, s);
|
||||
var dialogMsg = WatchUi.loadResource($.Rez.Strings.WifiLtePrompt) as Lang.String;
|
||||
var dialog = new WatchUi.Confirmation(dialogMsg);
|
||||
WatchUi.pushView(
|
||||
dialog,
|
||||
new WifiLteExecutionConfirmDelegate({
|
||||
:type => "entity",
|
||||
:url => url,
|
||||
:id => id,
|
||||
:data => mData,
|
||||
:callback => method(:setToggleStateWithData),
|
||||
:exit => mExit,
|
||||
}, dialog),
|
||||
WatchUi.SLIDE_LEFT
|
||||
);
|
||||
}
|
||||
|
||||
//! Constructs a Home Assistant API URL for the given entity and desired state.
|
||||
//!
|
||||
//! @param id The entity ID, e.g., `"switch.kitchen"`.
|
||||
//! @param s Desired state: `true` for "turn_on", `false` for "turn_off".
|
||||
//!
|
||||
//! @return Full service URL string.
|
||||
//
|
||||
private static function getUrl(id as Lang.String, s as Lang.Boolean) as Lang.String {
|
||||
var url = Settings.getApiUrl() + "/services/";
|
||||
if (s) {
|
||||
url = url + id.substring(0, id.find(".")) + "/turn_on";
|
||||
} else {
|
||||
url = url + id.substring(0, id.find(".")) + "/turn_off";
|
||||
}
|
||||
|
||||
return url;
|
||||
}
|
||||
}
|
||||
|
@@ -11,11 +11,6 @@
|
||||
//
|
||||
// P A Abbey & J D Abbey & Someone0nEarth & moesterheld, 31 October 2023
|
||||
//
|
||||
//
|
||||
// Description:
|
||||
//
|
||||
// Home Assistant menu construction.
|
||||
//
|
||||
//-----------------------------------------------------------------------------------
|
||||
|
||||
using Toybox.Application;
|
||||
@@ -24,14 +19,18 @@ using Toybox.Graphics;
|
||||
using Toybox.System;
|
||||
using Toybox.WatchUi;
|
||||
|
||||
//! Home Assistant menu construction.
|
||||
//
|
||||
class HomeAssistantView extends WatchUi.Menu2 {
|
||||
|
||||
//! Class Constructor
|
||||
//
|
||||
function initialize(
|
||||
definition as Lang.Dictionary,
|
||||
options as {
|
||||
:focus as Lang.Number,
|
||||
:icon as Graphics.BitmapType or WatchUi.Drawable or Lang.Symbol
|
||||
} or Null
|
||||
}?
|
||||
) {
|
||||
if (options == null) {
|
||||
options = { :title => definition.get("title") as Lang.String };
|
||||
@@ -43,30 +42,104 @@ class HomeAssistantView extends WatchUi.Menu2 {
|
||||
var items = definition.get("items") as Lang.Array<Lang.Dictionary>;
|
||||
for (var i = 0; i < items.size(); i++) {
|
||||
if (items[i] instanceof(Lang.Dictionary)) {
|
||||
var type = items[i].get("type") as Lang.String or Null;
|
||||
var name = items[i].get("name") as Lang.String or Null;
|
||||
var content = items[i].get("content") as Lang.String or Null;
|
||||
var entity = items[i].get("entity") as Lang.String or Null;
|
||||
var tap_action = items[i].get("tap_action") as Lang.Dictionary or Null;
|
||||
var service = items[i].get("service") as Lang.String or Null; // Deprecated schema
|
||||
var confirm = false as Lang.Boolean or Null;
|
||||
var pin = false as Lang.Boolean or Null;
|
||||
var data = null as Lang.Dictionary or Null;
|
||||
var type = items[i].get("type") as Lang.String?;
|
||||
var name = items[i].get("name") as Lang.String?;
|
||||
var content = items[i].get("content") as Lang.String?;
|
||||
var entity = items[i].get("entity") as Lang.String?;
|
||||
var tap_action = items[i].get("tap_action") as Lang.Dictionary?;
|
||||
var service = items[i].get("service") as Lang.String?; // Deprecated schema
|
||||
var confirm = false as Lang.Boolean?;
|
||||
var pin = false as Lang.Boolean?;
|
||||
var data = null as Lang.Dictionary?;
|
||||
var enabled = true as Lang.Boolean?;
|
||||
var exit = false as Lang.Boolean?;
|
||||
if (items[i].get("enabled") != null) {
|
||||
enabled = items[i].get("enabled"); // Optional
|
||||
}
|
||||
if (items[i].get("exit") != null) {
|
||||
exit = items[i].get("exit"); // Optional
|
||||
}
|
||||
if (tap_action != null) {
|
||||
service = tap_action.get("service");
|
||||
confirm = tap_action.get("confirm"); // Optional
|
||||
pin = tap_action.get("pin"); // Optional
|
||||
data = tap_action.get("data"); // Optional
|
||||
if (confirm == null) {
|
||||
confirm = false;
|
||||
if (tap_action.get("confirm") != null) {
|
||||
confirm = tap_action.get("confirm"); // Optional
|
||||
}
|
||||
if (tap_action.get("pin") != null) {
|
||||
pin = tap_action.get("pin"); // Optional
|
||||
}
|
||||
}
|
||||
if (type != null && name != null) {
|
||||
if (type != null && name != null && enabled) {
|
||||
if (type.equals("toggle") && entity != null) {
|
||||
addItem(HomeAssistantMenuItemFactory.create().toggle(name, entity, content, confirm, pin));
|
||||
} else if ((type.equals("tap") && service != null) || (type.equals("info") && content != null) || (type.equals("template") && content != null)) {
|
||||
addItem(HomeAssistantMenuItemFactory.create().toggle(
|
||||
name,
|
||||
entity,
|
||||
content,
|
||||
{
|
||||
:exit => exit,
|
||||
:confirm => confirm,
|
||||
:pin => pin
|
||||
}
|
||||
));
|
||||
} else if (type.equals("tap") && service != null) {
|
||||
addItem(HomeAssistantMenuItemFactory.create().tap(
|
||||
name,
|
||||
entity,
|
||||
content,
|
||||
service,
|
||||
data,
|
||||
{
|
||||
:exit => exit,
|
||||
:confirm => confirm,
|
||||
:pin => pin
|
||||
}
|
||||
));
|
||||
} else if (type.equals("template") && content != null) {
|
||||
// NB. "template" is deprecated in the schema and remains only for backward compatibility. All menu items can now use templates, so the replacement is "info".
|
||||
addItem(HomeAssistantMenuItemFactory.create().tap(name, entity, content, service, confirm, pin, data));
|
||||
// The exit option is dependent on the type of template.
|
||||
if (tap_action == null) {
|
||||
// No exit from an information only item
|
||||
addItem(HomeAssistantMenuItemFactory.create().tap(
|
||||
name,
|
||||
entity,
|
||||
content,
|
||||
service,
|
||||
data,
|
||||
{
|
||||
:exit => false,
|
||||
:confirm => confirm,
|
||||
:pin => pin
|
||||
}
|
||||
));
|
||||
} else {
|
||||
// You may exit from template item with a 'tap_action'.
|
||||
addItem(HomeAssistantMenuItemFactory.create().tap(
|
||||
name,
|
||||
entity,
|
||||
content,
|
||||
service,
|
||||
data,
|
||||
{
|
||||
:exit => exit,
|
||||
:confirm => confirm,
|
||||
:pin => pin
|
||||
}
|
||||
));
|
||||
}
|
||||
} else if (type.equals("info") && content != null) {
|
||||
// Cannot exit from a non-actionable information only menu item.
|
||||
addItem(HomeAssistantMenuItemFactory.create().tap(
|
||||
name,
|
||||
entity,
|
||||
content,
|
||||
service,
|
||||
data,
|
||||
{
|
||||
:exit => false,
|
||||
:confirm => confirm,
|
||||
:pin => pin
|
||||
}
|
||||
));
|
||||
} else if (type.equals("group")) {
|
||||
addItem(HomeAssistantMenuItemFactory.create().group(items[i], content));
|
||||
}
|
||||
@@ -75,7 +148,12 @@ class HomeAssistantView extends WatchUi.Menu2 {
|
||||
}
|
||||
}
|
||||
|
||||
// Lang.Array.addAll() fails structural type checking without including "Null" in the return type
|
||||
//! Return a list of items that need to be updated within this menu structure.
|
||||
//!
|
||||
//! MN. Lang.Array.addAll() fails structural type checking without including "Null" in the return type
|
||||
//!
|
||||
//! @return An array of menu items that need to be updated periodically to reflect the latest Home Assistant state.
|
||||
//
|
||||
function getItemsToUpdate() as Lang.Array<HomeAssistantToggleMenuItem or HomeAssistantTapMenuItem or HomeAssistantGroupMenuItem or Null> {
|
||||
var fullList = [];
|
||||
var lmi = mItems as Lang.Array<WatchUi.MenuItem>;
|
||||
@@ -102,26 +180,35 @@ class HomeAssistantView extends WatchUi.Menu2 {
|
||||
return fullList;
|
||||
}
|
||||
|
||||
// Called when this View is brought to the foreground. Restore
|
||||
// the state of this View and prepare it to be shown. This includes
|
||||
// loading resources into memory.
|
||||
//! Called when this View is brought to the foreground. Restore
|
||||
//! the state of this View and prepare it to be shown. This includes
|
||||
//! loading resources into memory.
|
||||
function onShow() as Void {}
|
||||
|
||||
}
|
||||
|
||||
//
|
||||
// Reference: https://developer.garmin.com/connect-iq/core-topics/input-handling/
|
||||
//! Delegate for the HomeAssistantView.
|
||||
//!
|
||||
//! Reference: https://developer.garmin.com/connect-iq/core-topics/input-handling/
|
||||
//
|
||||
class HomeAssistantViewDelegate extends WatchUi.Menu2InputDelegate {
|
||||
private var mIsRootMenuView as Lang.Boolean = false;
|
||||
private var mTimer as QuitTimer;
|
||||
|
||||
//! Class Constructor
|
||||
//!
|
||||
//! @param isRootMenuView As menus can be nested, this state marks the top level menu so that the
|
||||
//! back event can exit the application completely rather than just popping
|
||||
//! a menu view.
|
||||
//
|
||||
function initialize(isRootMenuView as Lang.Boolean) {
|
||||
Menu2InputDelegate.initialize();
|
||||
mIsRootMenuView = isRootMenuView;
|
||||
mTimer = getApp().getQuitTimer();
|
||||
}
|
||||
|
||||
//! Handle the back button (ESC)
|
||||
//
|
||||
function onBack() {
|
||||
mTimer.reset();
|
||||
|
||||
@@ -135,16 +222,22 @@ class HomeAssistantViewDelegate extends WatchUi.Menu2InputDelegate {
|
||||
WatchUi.popView(WatchUi.SLIDE_RIGHT);
|
||||
}
|
||||
|
||||
// Only for CheckboxMenu
|
||||
//! Only for CheckboxMenu
|
||||
//
|
||||
function onDone() {
|
||||
mTimer.reset();
|
||||
}
|
||||
|
||||
// Only for CustomMenu
|
||||
//! Only for CustomMenu
|
||||
//
|
||||
function onFooter() {
|
||||
mTimer.reset();
|
||||
}
|
||||
|
||||
//! Select event
|
||||
//!
|
||||
//! @param item Selected menu item.
|
||||
//
|
||||
function onSelect(item as WatchUi.MenuItem) as Void {
|
||||
mTimer.reset();
|
||||
if (item instanceof HomeAssistantToggleMenuItem) {
|
||||
@@ -164,7 +257,8 @@ class HomeAssistantViewDelegate extends WatchUi.Menu2InputDelegate {
|
||||
}
|
||||
}
|
||||
|
||||
// Only for CustomMenu
|
||||
//! Only for CustomMenu
|
||||
//
|
||||
function onTitle() {
|
||||
mTimer.reset();
|
||||
}
|
||||
|
@@ -11,11 +11,6 @@
|
||||
//
|
||||
// J D Abbey & P A Abbey, 28 December 2022
|
||||
//
|
||||
//
|
||||
// Description:
|
||||
//
|
||||
// Quit the application after a period of inactivity in order to save the battery.
|
||||
//
|
||||
//-----------------------------------------------------------------------------------
|
||||
|
||||
using Toybox.Lang;
|
||||
@@ -23,18 +18,27 @@ using Toybox.Timer;
|
||||
using Toybox.Application.Properties;
|
||||
using Toybox.WatchUi;
|
||||
|
||||
//! Quit the application after a period of inactivity in order to save the battery.
|
||||
//!
|
||||
class QuitTimer extends Timer.Timer {
|
||||
|
||||
//! Class Constructor
|
||||
//
|
||||
function initialize() {
|
||||
Timer.Timer.initialize();
|
||||
}
|
||||
|
||||
//! Can't see how to make a method object from `System.exit()` without this layer of
|
||||
//! indirection. I assume this is because `System` is a static class.
|
||||
//
|
||||
function exitApp() as Void {
|
||||
// System.println("QuitTimer exitApp(): Exiting");
|
||||
// This will exit the system cleanly from any point within an app.
|
||||
System.exit();
|
||||
}
|
||||
|
||||
//! Kick off the quit timer.
|
||||
//
|
||||
function begin() {
|
||||
var api_timeout = Settings.getAppTimeout(); // ms
|
||||
if (api_timeout > 0) {
|
||||
@@ -42,6 +46,8 @@ class QuitTimer extends Timer.Timer {
|
||||
}
|
||||
}
|
||||
|
||||
//! Reset the quit timer.
|
||||
//
|
||||
function reset() {
|
||||
// System.println("QuitTimer reset(): Restarted quit timer");
|
||||
stop();
|
||||
|
@@ -11,35 +11,36 @@
|
||||
//
|
||||
// J D Abbey & P A Abbey, 28 December 2022
|
||||
//
|
||||
//
|
||||
// Description:
|
||||
//
|
||||
// A view with added methods to scale from percentages of scrren size to pixels.
|
||||
//
|
||||
//-----------------------------------------------------------------------------------
|
||||
|
||||
using Toybox.Lang;
|
||||
using Toybox.WatchUi;
|
||||
using Toybox.Math;
|
||||
|
||||
//! A view that provides a common method 'pixelsForScreen' to make Views easier to layout on different
|
||||
//! sized watch screens.
|
||||
//
|
||||
class ScalableView extends WatchUi.View {
|
||||
//! Retain the local screen width for efficiency
|
||||
private var mScreenWidth;
|
||||
|
||||
//! Class Constructor
|
||||
//
|
||||
function initialize() {
|
||||
View.initialize();
|
||||
mScreenWidth = System.getDeviceSettings().screenWidth;
|
||||
}
|
||||
|
||||
// Convert a fraction expressed as a percentage (%) to a number of pixels for the
|
||||
// screen's dimensions.
|
||||
//
|
||||
// Parameters:
|
||||
// * dc - Device context
|
||||
// * pc - Percentage (%) expressed as a number in the range 0.0..100.0
|
||||
//
|
||||
// Uses screen width rather than screen height as rectangular screens tend to have
|
||||
// height > width.
|
||||
//
|
||||
//! Convert a fraction expressed as a percentage (%) to a number of pixels for the
|
||||
//! screen's dimensions.
|
||||
//!
|
||||
//! Uses screen width rather than screen height as rectangular screens tend to have
|
||||
//! height > width.
|
||||
//!
|
||||
//! @param pc Percentage (%) expressed as a number in the range 0.0..100.0
|
||||
//!
|
||||
//! @return Number of pixels for the screen's dimensions for a fraction expressed as a percentage (%).
|
||||
//!
|
||||
function pixelsForScreen(pc as Lang.Float) as Lang.Number {
|
||||
return Math.round(pc * mScreenWidth) / 100;
|
||||
}
|
||||
|
@@ -9,28 +9,24 @@
|
||||
// tested on a Venu 2 device. The source code is provided at:
|
||||
// https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
//
|
||||
// P A Abbey & J D Abbey, SomeoneOnEarth & moesterheld, 23 November 2023
|
||||
//
|
||||
//
|
||||
// Description:
|
||||
//
|
||||
// Home Assistant settings.
|
||||
//
|
||||
// WARNING!
|
||||
//
|
||||
// Careful putting ErrorView.show() calls in here. They need to be guarded so that
|
||||
// they do not get called when only displaying the glance view.
|
||||
// P A Abbey & J D Abbey, SomeoneOnEarth & moesterheld & vincentezw, 23 November 2023
|
||||
//
|
||||
//-----------------------------------------------------------------------------------
|
||||
|
||||
using Toybox.Lang;
|
||||
using Toybox.Application.Properties;
|
||||
using Toybox.Application.Storage;
|
||||
using Toybox.WatchUi;
|
||||
using Toybox.System;
|
||||
// Battery Level Reporting
|
||||
using Toybox.Background;
|
||||
using Toybox.Time;
|
||||
|
||||
//! Home Assistant settings.
|
||||
//!
|
||||
//! <em>WARNING!</em> Careful putting ErrorView.show() calls in here. They need to be
|
||||
//! guarded so that they do not get called when only displaying the glance view.
|
||||
//
|
||||
(:glance, :background)
|
||||
class Settings {
|
||||
private static var mApiKey as Lang.String = "";
|
||||
@@ -39,20 +35,32 @@ class Settings {
|
||||
private static var mConfigUrl as Lang.String = "";
|
||||
private static var mCacheConfig as Lang.Boolean = false;
|
||||
private static var mClearCache as Lang.Boolean = false;
|
||||
private static var mMenuCheck as Lang.Boolean = false;
|
||||
private static var mVibrate as Lang.Boolean = false;
|
||||
private static var mAppTimeout as Lang.Number = 0; // seconds
|
||||
private static var mPollDelay as Lang.Number = 0; // seconds
|
||||
private static var mConfirmTimeout as Lang.Number = 3; // seconds
|
||||
private static var mPin as Lang.String or Null = "0000";
|
||||
private static var mWifiLteExecution as Lang.Boolean = false;
|
||||
//! seconds
|
||||
private static var mAppTimeout as Lang.Number = 0;
|
||||
//! seconds
|
||||
private static var mPollDelay as Lang.Number = 0;
|
||||
//! seconds
|
||||
private static var mConfirmTimeout as Lang.Number = 3;
|
||||
private static var mPin as Lang.String? = "0000";
|
||||
private static var mMenuAlignment as Lang.Number = WatchUi.MenuItem.MENU_ITEM_LABEL_ALIGN_LEFT;
|
||||
private static var mIsSensorsLevelEnabled as Lang.Boolean = false;
|
||||
private static var mBatteryRefreshRate as Lang.Number = 15; // minutes
|
||||
private static var mIsSensorsEnabled as Lang.Boolean = false;
|
||||
//! minutes
|
||||
private static var mBatteryRefreshRate as Lang.Number = 15;
|
||||
//! Additional user configurable HTTP header key
|
||||
private static var mUserHeaderName as Lang.String? = null;
|
||||
//! Additional user configurable HTTP header value
|
||||
private static var mUserHeaderValue as Lang.String? = null;
|
||||
private static var mClearWebhookId as Lang.Boolean = false;
|
||||
private static var mIsApp as Lang.Boolean = false;
|
||||
private static var mHasService as Lang.Boolean = false;
|
||||
// Must keep the object so it doesn't get garbage collected.
|
||||
private static var mWebhookManager as WebhookManager or Null;
|
||||
//! Must keep the object so it doesn't get garbage collected.
|
||||
private static var mWebhookManager as WebhookManager?;
|
||||
|
||||
// Called on application start and then whenever the settings are changed.
|
||||
//! Called on application start and then whenever the settings are changed.
|
||||
//
|
||||
static function update() {
|
||||
mIsApp = getApp().getIsApp();
|
||||
mApiKey = Properties.getValue("api_key");
|
||||
@@ -61,16 +69,33 @@ class Settings {
|
||||
mConfigUrl = Properties.getValue("config_url");
|
||||
mCacheConfig = Properties.getValue("cache_config");
|
||||
mClearCache = Properties.getValue("clear_cache");
|
||||
mMenuCheck = Properties.getValue("enable_menu_update_check");
|
||||
mWifiLteExecution = Properties.getValue("wifi_lte_execution");
|
||||
mVibrate = Properties.getValue("enable_vibration");
|
||||
mAppTimeout = Properties.getValue("app_timeout");
|
||||
mPollDelay = Properties.getValue("poll_delay_combined");
|
||||
mConfirmTimeout = Properties.getValue("confirm_timeout");
|
||||
mPin = validatePin();
|
||||
mMenuAlignment = Properties.getValue("menu_alignment");
|
||||
mIsSensorsLevelEnabled = Properties.getValue("enable_battery_level");
|
||||
mIsSensorsEnabled = Properties.getValue("enable_battery_level");
|
||||
mBatteryRefreshRate = Properties.getValue("battery_level_refresh_rate");
|
||||
mUserHeaderName = Properties.getValue("user_http_header_name");
|
||||
mUserHeaderValue = Properties.getValue("user_http_header_value");
|
||||
mClearWebhookId = Properties.getValue("clear_webhook_id");
|
||||
|
||||
if (mIsApp && mMenuCheck && !mCacheConfig) {
|
||||
unsetMenuCheck();
|
||||
// Tell the user
|
||||
if (WatchUi has :showToast) {
|
||||
WatchUi.showToast(WatchUi.loadResource($.Rez.Strings.MenuCheckDisabled) as Lang.String, null);
|
||||
//} else {
|
||||
// NB. Cannot show an Alert() here.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//! A webhook is required for non-privileged API calls.
|
||||
//
|
||||
static function webhook() {
|
||||
if (System has :ServiceDelegate) {
|
||||
mHasService = true;
|
||||
@@ -80,6 +105,9 @@ class Settings {
|
||||
if (mIsApp) {
|
||||
if (mHasService) {
|
||||
if (System.getDeviceSettings().phoneConnected) {
|
||||
if (getClearWebhookId()) {
|
||||
clearWebhookId();
|
||||
}
|
||||
mWebhookManager = new WebhookManager();
|
||||
if (getWebhookId().equals("")) {
|
||||
// System.println("Settings update(): Doing full webhook & sensor creation.");
|
||||
@@ -87,9 +115,13 @@ class Settings {
|
||||
} else {
|
||||
// System.println("Settings update(): Doing just sensor creation.");
|
||||
// We already have a Webhook ID, so just enable or disable the sensor in Home Assistant.
|
||||
// Storage.getValue("sensors_enabled") returns true, false, or null
|
||||
if (mIsSensorsEnabled != Storage.getValue("sensors_enabled")) {
|
||||
Storage.setValue("sensors_enabled", mIsSensorsEnabled);
|
||||
mWebhookManager.registerWebhookSensors();
|
||||
}
|
||||
if (mIsSensorsLevelEnabled) {
|
||||
}
|
||||
if (mIsSensorsEnabled) {
|
||||
// Create the timed activity
|
||||
if ((Background.getTemporalEventRegisteredTime() == null) or
|
||||
(Background.getTemporalEventRegisteredTime() != (mBatteryRefreshRate * 60))) {
|
||||
@@ -104,7 +136,7 @@ class Settings {
|
||||
} else {
|
||||
// Explicitly disable the background event which persists when the application closes.
|
||||
// If !mHasService disable the Settings option as user feedback
|
||||
unsetIsSensorsLevelEnabled();
|
||||
unsetIsSensorsEnabled();
|
||||
unsetWebhookId();
|
||||
}
|
||||
}
|
||||
@@ -116,66 +148,170 @@ class Settings {
|
||||
// }
|
||||
}
|
||||
|
||||
//! Get the API key supplied as part of the Settings.
|
||||
//!
|
||||
//! @return The API Key
|
||||
//
|
||||
static function getApiKey() as Lang.String {
|
||||
if (mApiKey == null) {
|
||||
return "";
|
||||
} else {
|
||||
return mApiKey;
|
||||
}
|
||||
|
||||
static function getWebhookId() as Lang.String {
|
||||
return mWebhookId;
|
||||
}
|
||||
|
||||
//! Get the Webhook ID supplied as part of the Settings.
|
||||
//!
|
||||
//! @return The Webhook ID
|
||||
//
|
||||
static function getWebhookId() as Lang.String {
|
||||
if (mWebhookId == null) {
|
||||
return "";
|
||||
} else {
|
||||
return mWebhookId;
|
||||
}
|
||||
}
|
||||
|
||||
//! Set the Webhook ID supplied as part of the Settings.
|
||||
//!
|
||||
//! @param webhookId The Webhook ID value to be saved.
|
||||
//
|
||||
static function setWebhookId(webhookId as Lang.String) {
|
||||
mWebhookId = webhookId;
|
||||
Properties.setValue("webhook_id", mWebhookId);
|
||||
}
|
||||
|
||||
//! Delete the Webhook ID saved as part of the Settings.
|
||||
//
|
||||
static function unsetWebhookId() {
|
||||
mWebhookId = "";
|
||||
Properties.setValue("webhook_id", mWebhookId);
|
||||
}
|
||||
|
||||
//! Get the API URL supplied as part of the Settings.
|
||||
//!
|
||||
//! @return The API URL
|
||||
//
|
||||
static function getApiUrl() as Lang.String {
|
||||
if (mApiUrl == null) {
|
||||
return "";
|
||||
} else {
|
||||
return mApiUrl;
|
||||
}
|
||||
|
||||
static function getConfigUrl() as Lang.String {
|
||||
return mConfigUrl;
|
||||
}
|
||||
|
||||
//! Get the menu configuration URL supplied as part of the Settings.
|
||||
//!
|
||||
//! @return The menu configuration URL
|
||||
//
|
||||
static function getConfigUrl() as Lang.String {
|
||||
if (mConfigUrl == null) {
|
||||
return "";
|
||||
} else {
|
||||
return mConfigUrl;
|
||||
}
|
||||
}
|
||||
|
||||
//! Get the menu cache Boolean option supplied as part of the Settings.
|
||||
//!
|
||||
//! @return Boolean for whether the menu should be cached to save application
|
||||
//! start up time.
|
||||
//
|
||||
static function getCacheConfig() as Lang.Boolean {
|
||||
return mCacheConfig;
|
||||
}
|
||||
|
||||
//! Get the clear cache Boolean option supplied as part of the Settings.
|
||||
//!
|
||||
//! @return Boolean for whether the cache should be cleared next time the
|
||||
//! application is started, forcing a menu refresh.
|
||||
//
|
||||
static function getClearCache() as Lang.Boolean {
|
||||
return mClearCache;
|
||||
}
|
||||
|
||||
//! Unset the clear cache Boolean option supplied as part of the Settings.
|
||||
//
|
||||
static function unsetClearCache() {
|
||||
mClearCache = false;
|
||||
Properties.setValue("clear_cache", mClearCache);
|
||||
}
|
||||
|
||||
//! Get the menu check Boolean option supplied as part of the Settings.
|
||||
//!
|
||||
//! @return Boolean for whether the menu should be checked for updates when
|
||||
//! the application is started, and the cache updated ready for the
|
||||
//! next time the application is restarted.
|
||||
//
|
||||
static function getMenuCheck() as Lang.Boolean {
|
||||
return mMenuCheck;
|
||||
}
|
||||
|
||||
//! Unset the menu check Boolean option supplied as part of the Settings. This
|
||||
//! option should only be set when the menu definition is cached too.
|
||||
//
|
||||
static function unsetMenuCheck() {
|
||||
mMenuCheck = false;
|
||||
Properties.setValue("enable_menu_update_check", mMenuCheck);
|
||||
}
|
||||
|
||||
//! Get the value of the Wi-Fi/LTE toggle in settings.
|
||||
//!
|
||||
//! @return The state of the toggle.
|
||||
//
|
||||
static function getWifiLteExecutionEnabled() as Lang.Boolean {
|
||||
// Wi-Fi/LTE sync execution on a cached menu
|
||||
if (!mCacheConfig) {
|
||||
return false;
|
||||
}
|
||||
return mWifiLteExecution;
|
||||
}
|
||||
|
||||
//! Get the vibration Boolean option supplied as part of the Settings.
|
||||
//!
|
||||
//! @return Boolean for whether vibration is enabled.
|
||||
//
|
||||
static function getVibrate() as Lang.Boolean {
|
||||
return mVibrate;
|
||||
}
|
||||
|
||||
//! Get the application timeout value supplied as part of the Settings.
|
||||
//!
|
||||
//! @return The application timeout in milliseconds.
|
||||
//
|
||||
static function getAppTimeout() as Lang.Number {
|
||||
return mAppTimeout * 1000; // Convert to milliseconds
|
||||
}
|
||||
|
||||
//! Get the application API polling interval supplied as part of the Settings.
|
||||
//!
|
||||
//! @return The application API polling interval in milliseconds.
|
||||
//
|
||||
static function getPollDelay() as Lang.Number {
|
||||
return mPollDelay * 1000; // Convert to milliseconds
|
||||
}
|
||||
|
||||
//! Get the menu item confirmation delay supplied as part of the Settings.
|
||||
//!
|
||||
//! @return The menu item confirmation delay in milliseconds.
|
||||
//
|
||||
static function getConfirmTimeout() as Lang.Number {
|
||||
return mConfirmTimeout * 1000; // Convert to milliseconds
|
||||
}
|
||||
|
||||
static function getPin() as Lang.String or Null {
|
||||
//! Get the menu item security PIN supplied as part of the Settings.
|
||||
//!
|
||||
//! @return The menu item security PIN.
|
||||
//
|
||||
static function getPin() as Lang.String? {
|
||||
return mPin;
|
||||
}
|
||||
|
||||
private static function validatePin() as Lang.String or Null {
|
||||
//! Check the user selected PIN confirms to 4 digits as a string.
|
||||
//!
|
||||
//! @return The validated 4 digit string.
|
||||
//
|
||||
private static function validatePin() as Lang.String? {
|
||||
var pin = Properties.getValue("pin");
|
||||
if (pin.toNumber() == null || pin.length() != 4) {
|
||||
return null;
|
||||
@@ -183,21 +319,64 @@ class Settings {
|
||||
return pin;
|
||||
}
|
||||
|
||||
//! Get the menu item alignment as part of the Settings.
|
||||
//!
|
||||
//! @return The menu item alignment.
|
||||
//
|
||||
static function getMenuAlignment() as Lang.Number {
|
||||
return mMenuAlignment; // Either WatchUi.MenuItem.MENU_ITEM_LABEL_ALIGN_RIGHT or WatchUi.MenuItem.MENU_ITEM_LABEL_ALIGN_LEFT
|
||||
}
|
||||
|
||||
static function isSensorsLevelEnabled() as Lang.Boolean {
|
||||
return mIsSensorsLevelEnabled;
|
||||
//! Is logging of the watch sensors enabled? E.g. battery, activity etc.
|
||||
//!
|
||||
//! @return Boolean for whether logging of the watch sensors is enabled.
|
||||
//
|
||||
static function IsSensorsEnabled() as Lang.Boolean {
|
||||
return mIsSensorsEnabled;
|
||||
}
|
||||
|
||||
static function unsetIsSensorsLevelEnabled() {
|
||||
mIsSensorsLevelEnabled = false;
|
||||
Properties.setValue("enable_battery_level", mIsSensorsLevelEnabled);
|
||||
//! Disable logging of the watch's sensors.
|
||||
//
|
||||
static function unsetIsSensorsEnabled() {
|
||||
mIsSensorsEnabled = false;
|
||||
Properties.setValue("enable_battery_level", mIsSensorsEnabled);
|
||||
if (mHasService and (Background.getTemporalEventRegisteredTime() != null)) {
|
||||
Background.deleteTemporalEvent();
|
||||
Background.deleteActivityCompletedEvent();
|
||||
}
|
||||
}
|
||||
|
||||
//! Augment the HTTP header options passed in with the user configurable HTTP header key and value.
|
||||
//!
|
||||
//! @param options The HTTP header options to augment.
|
||||
//!
|
||||
//! @return The augmented HTTP header options.
|
||||
//
|
||||
static function augmentHttpHeaders(options as Lang.Dictionary) {
|
||||
// Use 'm.length() > 0' here in preference to 'm != ""' or '.equals("")'. They make the App crash on device but not in simulation.
|
||||
if (mUserHeaderName != null && mUserHeaderName.length() > 0 && mUserHeaderValue != null && mUserHeaderValue.length() > 0) {
|
||||
options[mUserHeaderName] = mUserHeaderValue;
|
||||
}
|
||||
return options;
|
||||
}
|
||||
|
||||
//! Get the clear cache Boolean option supplied as part of the Settings.
|
||||
//!
|
||||
//! @return Boolean for whether the cache should be cleared next time the
|
||||
//! application is started, forcing a menu refresh.
|
||||
//
|
||||
static function getClearWebhookId() as Lang.Boolean {
|
||||
return mClearWebhookId;
|
||||
}
|
||||
|
||||
//! Unset the clear Webhook ID Boolean option supplied and the Webhook ID string as part of
|
||||
//! the Settings.
|
||||
//
|
||||
static function clearWebhookId() {
|
||||
mClearWebhookId = false;
|
||||
mWebhookId = "";
|
||||
Properties.setValue("clear_webhook_id", mClearWebhookId);
|
||||
Properties.setValue("webhook_id", mWebhookId);
|
||||
}
|
||||
|
||||
}
|
||||
|
123
source/WebLog.mc
@@ -11,88 +11,99 @@
|
||||
//
|
||||
// J D Abbey & P A Abbey, 28 December 2022
|
||||
//
|
||||
//
|
||||
// Description:
|
||||
//
|
||||
// WebLog provides a logging and hence debugging aid for when the application is
|
||||
// deployed to the watch. This is only used for development and use of it must not
|
||||
// persist into a deployed version. It uses a string buffer to group log entries into
|
||||
// larger submissions in order to prevent overflow of the blue tooth stack.
|
||||
//
|
||||
//-----------------------------------------------------------------------------------
|
||||
//
|
||||
// Usage:
|
||||
// wl = new WebLog();
|
||||
// wl.clear();
|
||||
// wl.println("Debug Message");
|
||||
// wl.flush();
|
||||
//
|
||||
// https://domain.name/path/log.php
|
||||
//
|
||||
// <?php
|
||||
// $myfile = fopen("log", "a");
|
||||
// $queries = array();
|
||||
// parse_str($_SERVER['QUERY_STRING'], $queries);
|
||||
// fwrite($myfile, $queries['log']);
|
||||
// print "Success";
|
||||
// ?>
|
||||
//
|
||||
// Logs published to: https://domain.name/path/log
|
||||
//
|
||||
// https://domain.name/path/log_clear.php
|
||||
//
|
||||
// <?php
|
||||
// $myfile = fopen("log", "w");
|
||||
// fwrite($myfile, "");
|
||||
// print "Success";
|
||||
// ?>
|
||||
|
||||
using Toybox.Communications;
|
||||
using Toybox.Lang;
|
||||
using Toybox.System;
|
||||
|
||||
//! WebLog provides a logging and hence debugging aid for when the application is
|
||||
//! deployed to the watch. This is only used for development and use of it must not
|
||||
//! persist into a deployed version. It uses a string buffer to group log entries into
|
||||
//! larger submissions in order to prevent overflow of the Bluetooth stack.
|
||||
//!
|
||||
//! Usage:
|
||||
//! <pre>
|
||||
//! wl = new WebLog();
|
||||
//! wl.clear();
|
||||
//! wl.println("Debug Message");
|
||||
//! wl.flush();
|
||||
//! </pre>
|
||||
//!
|
||||
//! File: https://domain.name/path/log.php
|
||||
//!
|
||||
//! <pre>
|
||||
//! <?php
|
||||
//! $myfile = fopen("log", "a");
|
||||
//! $queries = array();
|
||||
//! parse_str($_SERVER['QUERY_STRING'], $queries);
|
||||
//! fwrite($myfile, $queries['log']);
|
||||
//! print "Success";
|
||||
//! ?>
|
||||
//! </pre>
|
||||
//!
|
||||
//! Logs published to https://domain.name/path/log.
|
||||
//!
|
||||
//! File: https://domain.name/path/log_clear.php
|
||||
//!
|
||||
//! <pre>
|
||||
//! <?php
|
||||
//! $myfile = fopen("log", "w");
|
||||
//! fwrite($myfile, "");
|
||||
//! print "Success";
|
||||
//! ?>
|
||||
//! </pre>
|
||||
//
|
||||
(:glance, :background)
|
||||
class WebLog {
|
||||
private var callsbuffer = 4 as Lang.Number;
|
||||
private var callsBuffer = 4 as Lang.Number;
|
||||
private var numCalls = 0 as Lang.Number;
|
||||
private var buffer = "" as Lang.String;
|
||||
|
||||
// Set the number of calls to print() before sending the buffer to the online
|
||||
// logger.
|
||||
//! Set the number of calls to print() before sending the buffer to the online
|
||||
//! logger.
|
||||
//!
|
||||
//! @param l The number of log calls to buffer before writing to the online service.
|
||||
//
|
||||
function setCallsBuffer(l as Lang.Number) {
|
||||
callsbuffer = l;
|
||||
callsBuffer = l;
|
||||
}
|
||||
|
||||
// Get the number of calls to print() before sending the buffer to the online
|
||||
// logger.
|
||||
//! Get the number of calls to print() before sending the buffer to the online
|
||||
//! logger.
|
||||
//!
|
||||
//! @return The number of log calls to buffer before writing to the online service.
|
||||
//
|
||||
function getCallsBuffer() as Lang.Number {
|
||||
return callsbuffer;
|
||||
return callsBuffer;
|
||||
}
|
||||
|
||||
// Create a debug log over the Internet to keep track of the watch's runtime
|
||||
// execution.
|
||||
//! Create a debug log over the Internet to keep track of the watch's runtime
|
||||
//! execution.
|
||||
//!
|
||||
//! @param str The string to log.
|
||||
//
|
||||
function print(str as Lang.String) {
|
||||
var myTime = System.getClockTime();
|
||||
buffer += myTime.hour.format("%02d") + ":" + myTime.min.format("%02d") + ":" + myTime.sec.format("%02d") + " " + str;
|
||||
numCalls++;
|
||||
// System.println("WebLog print() str = " + str);
|
||||
if (numCalls >= callsbuffer) {
|
||||
if (numCalls >= callsBuffer) {
|
||||
doPrint();
|
||||
}
|
||||
}
|
||||
|
||||
// Create a debug log over the Internet to keep track of the watch's runtime
|
||||
// execution. Add a new line character to the end.
|
||||
//! Create a debug log over the Internet to keep track of the watch's runtime
|
||||
//! execution. Add a new line character to the end.
|
||||
//!
|
||||
//! @param str The string to log.
|
||||
//
|
||||
function println(str as Lang.String) {
|
||||
print(str + "\n");
|
||||
}
|
||||
|
||||
// Flush the current buffer to the online logger even if it has not reach the
|
||||
// submission level set by 'callsbuffer'.
|
||||
//! Flush the current buffer to the online logger even if it has not reach the
|
||||
//! submission level set by 'callsBuffer'.
|
||||
//
|
||||
function flush() {
|
||||
// System.println("WebLog flush()");
|
||||
@@ -101,7 +112,7 @@ class WebLog {
|
||||
}
|
||||
}
|
||||
|
||||
// Perform the submission to the online logger.
|
||||
//! Perform the submission to the online logger.
|
||||
//
|
||||
function doPrint() {
|
||||
// System.println("WebLog doPrint()");
|
||||
@@ -122,8 +133,8 @@ class WebLog {
|
||||
buffer = "";
|
||||
}
|
||||
|
||||
// Clear the debug log over the Internet to start a new track of the watch's runtime
|
||||
// execution.
|
||||
//! Clear the debug log over the Internet to start a new track of the watch's runtime
|
||||
//! execution.
|
||||
//
|
||||
function clear() {
|
||||
// System.println("WebLog clear()");
|
||||
@@ -143,7 +154,10 @@ class WebLog {
|
||||
buffer = "";
|
||||
}
|
||||
|
||||
// Callback function to print the outcome of a doPrint() method.
|
||||
//! Callback function to print the outcome of a doPrint() method. Typically used for debugging this class.
|
||||
//!
|
||||
//! @param responseCode Response code.
|
||||
//! @param data Response data.
|
||||
//
|
||||
function onLog(responseCode as Lang.Number, data as Null or Lang.Dictionary or Lang.String) as Void {
|
||||
// if (responseCode != 200) {
|
||||
@@ -153,7 +167,10 @@ class WebLog {
|
||||
// }
|
||||
}
|
||||
|
||||
// Callback function to print the outcome of a clear() method.
|
||||
//! Callback function to print the outcome of a clear() method. Typically used for debugging this class.
|
||||
//!
|
||||
//! @param responseCode Response code.
|
||||
//! @param data Response data.
|
||||
//
|
||||
function onClear(responseCode as Lang.Number, data as Null or Lang.Dictionary or Lang.String) as Void {
|
||||
// if (responseCode != 200) {
|
||||
|
@@ -11,14 +11,6 @@
|
||||
//
|
||||
// P A Abbey & J D Abbey, 10 January 2024
|
||||
//
|
||||
//
|
||||
// Description:
|
||||
//
|
||||
// Home Assistant Webhook creation.
|
||||
//
|
||||
// Reference:
|
||||
// * https://developers.home-assistant.io/docs/api/native-app-integration
|
||||
//
|
||||
//-----------------------------------------------------------------------------------
|
||||
|
||||
using Toybox.Lang;
|
||||
@@ -26,10 +18,26 @@ using Toybox.Communications;
|
||||
using Toybox.System;
|
||||
using Toybox.WatchUi;
|
||||
|
||||
// Can use push view so must never be run in a glance context
|
||||
//! Home Assistant Webhook creation.
|
||||
//!
|
||||
//! NB. Because we can use push view (E.g. `ErrorView.show()`) this class must never
|
||||
//! be run in a glance context.
|
||||
//!
|
||||
//! Reference: https://developers.home-assistant.io/docs/api/native-app-integration
|
||||
//
|
||||
(:glance)
|
||||
class WebhookManager {
|
||||
private var mSensors as Lang.Array<Lang.Object> = [];
|
||||
|
||||
function onReturnRequestWebhookId(responseCode as Lang.Number, data as Null or Lang.Dictionary or Lang.String) as Void {
|
||||
//! Callback for requesting a Webhook ID.
|
||||
//!
|
||||
//! @param responseCode Response code
|
||||
//! @param data Return data
|
||||
//
|
||||
function onReturnRequestWebhookId(
|
||||
responseCode as Lang.Number,
|
||||
data as Null or Lang.Dictionary or Lang.String
|
||||
) as Void {
|
||||
switch (responseCode) {
|
||||
case Communications.BLE_HOST_TIMEOUT:
|
||||
case Communications.BLE_CONNECTION_UNAVAILABLE:
|
||||
@@ -53,37 +61,39 @@ class WebhookManager {
|
||||
break;
|
||||
case Communications.INVALID_HTTP_BODY_IN_NETWORK_RESPONSE:
|
||||
// System.println("WebhookManager onReturnRequestWebhookId() Response Code: INVALID_HTTP_BODY_IN_NETWORK_RESPONSE, check JSON is returned.");
|
||||
Settings.unsetIsSensorsLevelEnabled();
|
||||
Settings.unsetIsSensorsEnabled();
|
||||
ErrorView.show(WatchUi.loadResource($.Rez.Strings.WebhookFailed) as Lang.String + "\n" + WatchUi.loadResource($.Rez.Strings.NoJson) as Lang.String);
|
||||
break;
|
||||
|
||||
case 404:
|
||||
// System.println("WebhookManager onReturnRequestWebhookId() Response Code: 404, page not found. Check API URL setting.");
|
||||
Settings.unsetIsSensorsLevelEnabled();
|
||||
Settings.unsetIsSensorsEnabled();
|
||||
ErrorView.show(WatchUi.loadResource($.Rez.Strings.WebhookFailed) as Lang.String + "\n" + WatchUi.loadResource($.Rez.Strings.ApiUrlNotFound) as Lang.String);
|
||||
break;
|
||||
|
||||
case 200:
|
||||
case 201:
|
||||
var id = data.get("webhook_id") as Lang.String or Null;
|
||||
var id = data.get("webhook_id") as Lang.String?;
|
||||
if (id != null) {
|
||||
Settings.setWebhookId(id);
|
||||
// System.println("WebhookManager onReturnRegisterWebhookSensor(): Registering first sensor: Battery Level");
|
||||
registerWebhookSensors();
|
||||
} else {
|
||||
// System.println("WebhookManager onReturnRequestWebhookId(): No webhook id in response data.");
|
||||
Settings.unsetIsSensorsLevelEnabled();
|
||||
Settings.unsetIsSensorsEnabled();
|
||||
ErrorView.show(WatchUi.loadResource($.Rez.Strings.WebhookFailed) as Lang.String + ".");
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
// System.println("WebhookManager onReturnRequestWebhookId(): Unhandled HTTP response code = " + responseCode);
|
||||
Settings.unsetIsSensorsLevelEnabled();
|
||||
Settings.unsetIsSensorsEnabled();
|
||||
ErrorView.show(WatchUi.loadResource($.Rez.Strings.WebhookFailed) as Lang.String + "\n" + WatchUi.loadResource($.Rez.Strings.UnhandledHttpErr) as Lang.String + responseCode);
|
||||
}
|
||||
}
|
||||
|
||||
//! Request a Webhook ID from Home Assistant for use in this application.
|
||||
//
|
||||
function requestWebhookId() {
|
||||
var deviceSettings = System.getDeviceSettings();
|
||||
// System.println("WebhookManager requestWebhookId(): Requesting webhook id for device = " + deviceSettings.uniqueIdentifier);
|
||||
@@ -105,17 +115,24 @@ class WebhookManager {
|
||||
},
|
||||
{
|
||||
:method => Communications.HTTP_REQUEST_METHOD_POST,
|
||||
:headers => {
|
||||
:headers => Settings.augmentHttpHeaders({
|
||||
"Content-Type" => Communications.REQUEST_CONTENT_TYPE_JSON,
|
||||
"Authorization" => "Bearer " + Settings.getApiKey()
|
||||
},
|
||||
}),
|
||||
:responseType => Communications.HTTP_RESPONSE_CONTENT_TYPE_JSON
|
||||
},
|
||||
method(:onReturnRequestWebhookId)
|
||||
);
|
||||
}
|
||||
|
||||
function onReturnRegisterWebhookSensor(responseCode as Lang.Number, data as Null or Lang.Dictionary or Lang.String, sensors as Lang.Array<Lang.Object>) as Void {
|
||||
//! Callback function for the POST request to register the watch's sensors on the Home Assistant instance.
|
||||
//!
|
||||
//! @param responseCode Response code.
|
||||
//! @param data Response data.
|
||||
//! @param sensors The remaining sensors to be processed. The list of sensors is iterated through
|
||||
//! until empty. Each POST request creating one sensor on the local Home Assistant.
|
||||
//
|
||||
function onReturnRegisterWebhookSensor(responseCode as Lang.Number, data as Null or Lang.Dictionary or Lang.String) as Void {
|
||||
switch (responseCode) {
|
||||
case Communications.BLE_HOST_TIMEOUT:
|
||||
case Communications.BLE_CONNECTION_UNAVAILABLE:
|
||||
@@ -158,17 +175,18 @@ class WebhookManager {
|
||||
case 201:
|
||||
if (data instanceof Lang.Dictionary) {
|
||||
var d = data as Lang.Dictionary;
|
||||
var b = d.get("success") as Lang.Boolean or Null;
|
||||
var b = d.get("success") as Lang.Boolean?;
|
||||
if (b != null and b != false) {
|
||||
if (sensors.size() == 0) {
|
||||
mSensors = mSensors.slice(1, null);
|
||||
if (mSensors.size() == 0) {
|
||||
getApp().startUpdates();
|
||||
} else {
|
||||
registerWebhookSensor(sensors);
|
||||
registerWebhookSensor();
|
||||
}
|
||||
} else {
|
||||
// System.println("WebhookManager onReturnRegisterWebhookSensor(): Failure, no 'success'.");
|
||||
Settings.unsetWebhookId();
|
||||
Settings.unsetIsSensorsLevelEnabled();
|
||||
Settings.unsetIsSensorsEnabled();
|
||||
ErrorView.show(WatchUi.loadResource($.Rez.Strings.WebhookFailed) as Lang.String + ".");
|
||||
}
|
||||
} else {
|
||||
@@ -176,7 +194,7 @@ class WebhookManager {
|
||||
// System.println("WebhookManager onReturnRegisterWebhookSensor(): Failure, not a Lang.Dict");
|
||||
// Webhook ID might have been deleted on Home Assistant server and a Lang.String is trying to tell us an error message
|
||||
Settings.unsetWebhookId();
|
||||
Settings.unsetIsSensorsLevelEnabled();
|
||||
Settings.unsetIsSensorsEnabled();
|
||||
if (data == null) {
|
||||
ErrorView.show(WatchUi.loadResource($.Rez.Strings.WebhookFailed) as Lang.String + "\nNull data");
|
||||
} else {
|
||||
@@ -189,12 +207,15 @@ class WebhookManager {
|
||||
default:
|
||||
// System.println("WebhookManager onReturnRequestWebhookId(): Unhandled HTTP response code = " + responseCode);
|
||||
Settings.unsetWebhookId();
|
||||
Settings.unsetIsSensorsLevelEnabled();
|
||||
Settings.unsetIsSensorsEnabled();
|
||||
ErrorView.show(WatchUi.loadResource($.Rez.Strings.WebhookFailed) as Lang.String + "\n" + WatchUi.loadResource($.Rez.Strings.UnhandledHttpErr) as Lang.String + " " + responseCode);
|
||||
}
|
||||
}
|
||||
|
||||
function registerWebhookSensor(sensors as Lang.Array<Lang.Object>) {
|
||||
//! Local method to send the POST request to register a number of sensors. The sensors are taken from the class variable
|
||||
//! mSensors created by registerWebhookSensors().
|
||||
//
|
||||
private function registerWebhookSensor() {
|
||||
var url = Settings.getApiUrl() + "/webhook/" + Settings.getWebhookId();
|
||||
// System.println("WebhookManager registerWebhookSensor(): Registering webhook sensor: " + sensor.toString());
|
||||
// System.println("WebhookManager registerWebhookSensor(): URL=" + url);
|
||||
@@ -203,24 +224,25 @@ class WebhookManager {
|
||||
url,
|
||||
{
|
||||
"type" => "register_sensor",
|
||||
"data" => sensors[0]
|
||||
"data" => mSensors[0]
|
||||
},
|
||||
{
|
||||
:method => Communications.HTTP_REQUEST_METHOD_POST,
|
||||
:headers => {
|
||||
:headers => Settings.augmentHttpHeaders({
|
||||
"Content-Type" => Communications.REQUEST_CONTENT_TYPE_JSON
|
||||
},
|
||||
:responseType => Communications.HTTP_RESPONSE_CONTENT_TYPE_JSON,
|
||||
:context => sensors.slice(1, null)
|
||||
}),
|
||||
:responseType => Communications.HTTP_RESPONSE_CONTENT_TYPE_JSON
|
||||
},
|
||||
method(:onReturnRegisterWebhookSensor)
|
||||
);
|
||||
}
|
||||
|
||||
//! Request the creation of all the supported watch sensors on the Home Assistant instance.
|
||||
//
|
||||
function registerWebhookSensors() {
|
||||
var heartRate = Activity.getActivityInfo().currentHeartRate;
|
||||
|
||||
var sensors = [
|
||||
mSensors = [
|
||||
{
|
||||
"device_class" => "battery",
|
||||
"name" => "Battery Level",
|
||||
@@ -231,7 +253,7 @@ class WebhookManager {
|
||||
"unit_of_measurement" => "%",
|
||||
"state_class" => "measurement",
|
||||
"entity_category" => "diagnostic",
|
||||
"disabled" => !Settings.isSensorsLevelEnabled()
|
||||
"disabled" => !Settings.IsSensorsEnabled()
|
||||
},
|
||||
{
|
||||
"device_class" => "battery_charging",
|
||||
@@ -241,7 +263,7 @@ class WebhookManager {
|
||||
"unique_id" => "battery_is_charging",
|
||||
"icon" => System.getSystemStats().charging ? "mdi:battery-plus" : "mdi:battery-minus",
|
||||
"entity_category" => "diagnostic",
|
||||
"disabled" => !Settings.isSensorsLevelEnabled()
|
||||
"disabled" => !Settings.IsSensorsEnabled()
|
||||
},
|
||||
{
|
||||
"name" => "Heart rate",
|
||||
@@ -251,49 +273,49 @@ class WebhookManager {
|
||||
"icon" => "mdi:heart-pulse",
|
||||
"unit_of_measurement" => "bpm",
|
||||
"state_class" => "measurement",
|
||||
"disabled" => !Settings.isSensorsLevelEnabled()
|
||||
"disabled" => !Settings.IsSensorsEnabled()
|
||||
}
|
||||
];
|
||||
|
||||
if (Toybox has :ActivityMonitor) {
|
||||
// System.println("WebhookManager registerWebhookSensors(): has ActivityMonitor class");
|
||||
var activityInfo = ActivityMonitor.getInfo();
|
||||
sensors.add({
|
||||
mSensors.add({
|
||||
"name" => "Steps today",
|
||||
"state" => activityInfo.steps == null ? "unknown" : activityInfo.steps,
|
||||
"type" => "sensor",
|
||||
"unique_id" => "steps_today",
|
||||
"icon" => "mdi:walk",
|
||||
"state_class" => "total",
|
||||
"disabled" => !Settings.isSensorsLevelEnabled()
|
||||
"disabled" => !Settings.IsSensorsEnabled()
|
||||
});
|
||||
|
||||
if (ActivityMonitor.Info has :floorsClimbed) {
|
||||
sensors.add({
|
||||
mSensors.add({
|
||||
"name" => "Floors climbed today",
|
||||
"state" => activityInfo.floorsClimbed == null ? "unknown" : activityInfo.floorsClimbed,
|
||||
"type" => "sensor",
|
||||
"unique_id" => "floors_climbed_today",
|
||||
"icon" => "mdi:stairs-up",
|
||||
"state_class" => "total",
|
||||
"disabled" => !Settings.isSensorsLevelEnabled()
|
||||
"disabled" => !Settings.IsSensorsEnabled()
|
||||
});
|
||||
}
|
||||
|
||||
if (ActivityMonitor.Info has :floorsDescended) {
|
||||
sensors.add({
|
||||
mSensors.add({
|
||||
"name" => "Floors descended today",
|
||||
"state" => activityInfo.floorsDescended == null ? "unknown" : activityInfo.floorsDescended,
|
||||
"type" => "sensor",
|
||||
"unique_id" => "floors_descended_today",
|
||||
"icon" => "mdi:stairs-down",
|
||||
"state_class" => "total",
|
||||
"disabled" => !Settings.isSensorsLevelEnabled()
|
||||
"disabled" => !Settings.IsSensorsEnabled()
|
||||
});
|
||||
}
|
||||
|
||||
if (ActivityMonitor.Info has :respirationRate) {
|
||||
sensors.add({
|
||||
mSensors.add({
|
||||
"name" => "Respiration rate",
|
||||
"state" => activityInfo.respirationRate == null ? "unknown" : activityInfo.respirationRate,
|
||||
"type" => "sensor",
|
||||
@@ -301,7 +323,7 @@ class WebhookManager {
|
||||
"icon" => "mdi:lungs",
|
||||
"unit_of_measurement" => "bpm",
|
||||
"state_class" => "measurement",
|
||||
"disabled" => !Settings.isSensorsLevelEnabled()
|
||||
"disabled" => !Settings.IsSensorsEnabled()
|
||||
});
|
||||
}
|
||||
} else {
|
||||
@@ -320,23 +342,23 @@ class WebhookManager {
|
||||
activity = -1;
|
||||
sub_activity = -1;
|
||||
}
|
||||
sensors.add({
|
||||
mSensors.add({
|
||||
"name" => "Activity",
|
||||
"state" => activity,
|
||||
"type" => "sensor",
|
||||
"unique_id" => "activity",
|
||||
"disabled" => !Settings.isSensorsLevelEnabled()
|
||||
"disabled" => !Settings.IsSensorsEnabled()
|
||||
});
|
||||
sensors.add({
|
||||
mSensors.add({
|
||||
"name" => "Sub-activity",
|
||||
"state" => sub_activity,
|
||||
"type" => "sensor",
|
||||
"unique_id" => "sub_activity",
|
||||
"disabled" => !Settings.isSensorsLevelEnabled()
|
||||
"disabled" => !Settings.IsSensorsEnabled()
|
||||
});
|
||||
}
|
||||
|
||||
registerWebhookSensor(sensors);
|
||||
registerWebhookSensor();
|
||||
}
|
||||
|
||||
}
|
||||
|
159
source/WifiLteExecutionConfirmDelegate.mc
Normal file
@@ -0,0 +1,159 @@
|
||||
//-----------------------------------------------------------------------------------
|
||||
//
|
||||
// Distributed under MIT Licence
|
||||
// See https://github.com/house-of-abbey/GarminHomeAssistant/blob/main/LICENSE.
|
||||
//
|
||||
//-----------------------------------------------------------------------------------
|
||||
//
|
||||
// GarminHomeAssistant is a Garmin IQ application written in Monkey C and routinely
|
||||
// tested on a Venu 2 device. The source code is provided at:
|
||||
// https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
//
|
||||
// P A Abbey & J D Abbey & vincentezw, 22 July 2025
|
||||
//
|
||||
//-----------------------------------------------------------------------------------
|
||||
|
||||
using Toybox.WatchUi;
|
||||
using Toybox.System;
|
||||
using Toybox.Communications;
|
||||
using Toybox.Lang;
|
||||
using Toybox.Timer;
|
||||
|
||||
//! Delegate to respond to a confirmation to execute an API request via bulk
|
||||
//! synchronisation.
|
||||
//
|
||||
class WifiLteExecutionConfirmDelegate extends WatchUi.ConfirmationDelegate {
|
||||
public static var mCommandData as {
|
||||
:type as Lang.String,
|
||||
:service as Lang.String?,
|
||||
:data as Lang.Dictionary?,
|
||||
:url as Lang.String?,
|
||||
:id as Lang.Number?,
|
||||
:exit as Lang.Boolean
|
||||
};
|
||||
|
||||
private static var mTimer as Timer.Timer?;
|
||||
private var mHasToast as Lang.Boolean = false;
|
||||
private var mConfirmationView as WatchUi.Confirmation;
|
||||
|
||||
//! Initializes a confirmation delegate to confirm a Wi-Fi or LTE command execution
|
||||
//!
|
||||
//! @param options A dictionary describing the command to be executed:<br>
|
||||
//! `{`<br>
|
||||
//!   `:type: as Lang.String,` // The command type, either `"service"` or `"entity"`.<br>
|
||||
//!   `:service: as Lang.String?,` // (For type `"service"`) The Home Assistant service to call (e.g., "light.turn_on").<br>
|
||||
//!   `:url: as Lang.Dictionary?,` // (For type `"entity"`) The full Home Assistant entity API URL.<br>
|
||||
//!   `:callback: as Lang.String?,` // (For type `"entity"`) A callback method (Method<data as Dictionary>) to handle the response.<br>
|
||||
//!   `:data: as Lang.Method?,` // (Optional) A dictionary of data to send with the request.<br>
|
||||
//!   `:exit: as Lang.Boolean,` // Boolean: if set to true: exit after running command.<br>
|
||||
//! }<br>
|
||||
//! @param view The Confirmation view the delegate is active for
|
||||
//
|
||||
function initialize(
|
||||
cOptions as {
|
||||
:type as Lang.String,
|
||||
:service as Lang.String?,
|
||||
:data as Lang.Dictionary?,
|
||||
:url as Lang.String?,
|
||||
:callback as Lang.Method?,
|
||||
:exit as Lang.Boolean,
|
||||
},
|
||||
view as WatchUi.Confirmation
|
||||
) {
|
||||
ConfirmationDelegate.initialize();
|
||||
|
||||
if (mTimer != null) {
|
||||
mTimer.stop();
|
||||
}
|
||||
|
||||
if (WatchUi has :showToast) {
|
||||
mHasToast = true;
|
||||
}
|
||||
|
||||
mConfirmationView = view;
|
||||
mCommandData = {
|
||||
:type => cOptions[:type],
|
||||
:service => cOptions[:service],
|
||||
:data => cOptions[:data],
|
||||
:url => cOptions[:url],
|
||||
:callback => cOptions[:callback],
|
||||
:exit => cOptions[:exit]
|
||||
};
|
||||
|
||||
var timeout = Settings.getConfirmTimeout(); // ms
|
||||
if (timeout > 0) {
|
||||
if (mTimer == null) {
|
||||
mTimer = new Timer.Timer();
|
||||
}
|
||||
mTimer.start(method(:onTimeout), timeout, true);
|
||||
}
|
||||
}
|
||||
|
||||
//! Handles the user's response to the confirmation dialog.
|
||||
//!
|
||||
//! @param response The user's confirmation response as `WatchUi.Confirm`
|
||||
//! @return Always returns `true` to indicate the response was handled.
|
||||
//
|
||||
function onResponse(response) as Lang.Boolean {
|
||||
getApp().getQuitTimer().reset();
|
||||
if (mTimer != null) {
|
||||
mTimer.stop();
|
||||
}
|
||||
|
||||
if (response == WatchUi.CONFIRM_YES) {
|
||||
trySync();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
//! Initiates a bulk sync process to execute a command, if connections are available
|
||||
//
|
||||
private function trySync() as Void {
|
||||
var connectionInfo = System.getDeviceSettings().connectionInfo;
|
||||
var keys = connectionInfo.keys();
|
||||
var possibleConnection = false;
|
||||
|
||||
for(var i = 0; i < keys.size(); i++) {
|
||||
if (keys[i] != :bluetooth) {
|
||||
if (connectionInfo[keys[i]].state != System.CONNECTION_STATE_NOT_INITIALIZED) {
|
||||
possibleConnection = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (possibleConnection) {
|
||||
if (Communications has :startSync2) {
|
||||
Communications.startSync2({
|
||||
:message => WatchUi.loadResource($.Rez.Strings.WifiLteExecutionTitle) as Lang.String
|
||||
});
|
||||
} else {
|
||||
Communications.startSync();
|
||||
}
|
||||
} else {
|
||||
var toast = WatchUi.loadResource($.Rez.Strings.WifiLteNotAvailable) as Lang.String;
|
||||
if (mHasToast) {
|
||||
WatchUi.showToast(toast, null);
|
||||
} else {
|
||||
new Alert({
|
||||
:timeout => Globals.scAlertTimeoutMs,
|
||||
:font => Graphics.FONT_MEDIUM,
|
||||
:text => toast,
|
||||
:fgcolor => Graphics.COLOR_WHITE,
|
||||
:bgcolor => Graphics.COLOR_BLACK
|
||||
}).pushView(WatchUi.SLIDE_IMMEDIATE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//! Function supplied to a timer in order to limit the time for which the confirmation can be provided.
|
||||
//
|
||||
function onTimeout() as Void {
|
||||
mTimer.stop();
|
||||
var getCurrentView = WatchUi.getCurrentView();
|
||||
|
||||
if (getCurrentView[0] == mConfirmationView) {
|
||||
WatchUi.popView(WatchUi.SLIDE_RIGHT);
|
||||
}
|
||||
}
|
||||
}
|
24
translate.cmd
Normal file
@@ -0,0 +1,24 @@
|
||||
@echo off
|
||||
rem -----------------------------------------------------------------------------------
|
||||
rem
|
||||
rem Distributed under MIT Licence
|
||||
rem See https://github.com/house-of-abbey/GarminHomeAssistant/blob/main/LICENSE.
|
||||
rem
|
||||
rem -----------------------------------------------------------------------------------
|
||||
rem
|
||||
rem GarminHomeAssistant is a Garmin IQ application written in Monkey C and routinely
|
||||
rem tested on a Venu 2 device. The source code is provided at:
|
||||
rem https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
rem
|
||||
rem J D Abbey & P A Abbey, 28 December 2022
|
||||
rem
|
||||
rem Run the automatic translation script.
|
||||
rem
|
||||
rem Reference:
|
||||
rem * Using Monkey C from the Command Line
|
||||
rem https://developer.garmin.com/connect-iq/reference-guides/monkey-c-command-line-setup/
|
||||
rem
|
||||
rem -----------------------------------------------------------------------------------
|
||||
|
||||
python translate.py
|
||||
pause
|
496
translate.py
@@ -1,13 +1,13 @@
|
||||
####################################################################################
|
||||
#
|
||||
# Distributed under MIT Licence
|
||||
# See https://github.com/house-of-abbey/GarminThermoNest/blob/main/LICENSE.
|
||||
# See https://github.com/house-of-abbey/GarminHomeAssistant/blob/main/LICENSE.
|
||||
#
|
||||
####################################################################################
|
||||
#
|
||||
# ThermoNest is a Garmin IQ application written in Monkey C and routinely tested on
|
||||
# a Venu 2 device. The source code is provided at:
|
||||
# https://github.com/house-of-abbey/GarminThermoNest.
|
||||
# GarminHomeAssistant is a Garmin IQ application written in Monkey C and routinely
|
||||
# tested on a Venu 2 device. The source code is provided at:
|
||||
# https://github.com/house-of-abbey/GarminHomeAssistant.
|
||||
#
|
||||
# J D Abbey & P A Abbey, 28 December 2022
|
||||
#
|
||||
@@ -15,32 +15,40 @@
|
||||
# Description:
|
||||
#
|
||||
# Python script to automatically translate the strings.xml file to each supported
|
||||
# language using Google Translate.
|
||||
# language. Rewritten by krzys_h with the help of AI to use Gemini instead of
|
||||
# Google Translate for more contextual translations.
|
||||
#
|
||||
# Python installation:
|
||||
# pip install beautifulsoup4
|
||||
# pip install deep-translator
|
||||
# NB. For XML formatting:
|
||||
# pip install lxml
|
||||
# Requirements:
|
||||
# pip install google-genai beautifulsoup4 lxml
|
||||
#
|
||||
# References:
|
||||
# * https://www.crummy.com/software/BeautifulSoup/bs4/doc/
|
||||
# * https://realpython.com/beautiful-soup-web-scraper-python/
|
||||
# * https://www.crummy.com/software/BeautifulSoup/bs4/doc/#parsing-xml
|
||||
# * https://www.crummy.com/software/BeautifulSoup/bs4/doc/#xml
|
||||
# Env:
|
||||
# export GEMINI_API_KEY="YOUR_API_KEY"
|
||||
#
|
||||
# To get your own API key, go to:
|
||||
# https://aistudio.google.com/app/apikey
|
||||
#
|
||||
####################################################################################
|
||||
|
||||
import os
|
||||
import sys
|
||||
import re
|
||||
import json
|
||||
import argparse
|
||||
from typing import Dict, List, Tuple
|
||||
|
||||
from bs4 import BeautifulSoup
|
||||
from bs4 import Comment
|
||||
from deep_translator import GoogleTranslator
|
||||
from google import genai
|
||||
from bs4 import BeautifulSoup, Comment
|
||||
|
||||
# List of tuples in the form os:
|
||||
# * Garmin IQ language three letter mnemonic,
|
||||
# * Google Translate language mnemonic,
|
||||
# * Language familiar name (mainly for reference)
|
||||
languages: list[tuple[str, str, str]] = [
|
||||
# ---------------- Configuration ----------------
|
||||
|
||||
# Gemini model name
|
||||
MODEL_NAME = "gemini-2.5-flash"
|
||||
|
||||
# Language definitions:
|
||||
# * Garmin IQ language three-letter mnemonic (used in resources-XXX folder),
|
||||
# * Unused Google mnemonic kept for reference,
|
||||
# * Human-readable language name for prompts
|
||||
languages: List[Tuple[str, str, str]] = [
|
||||
("ara", "ar", "Arabic"),
|
||||
("bul", "bg", "Bulgarian"),
|
||||
("zhs", "zh-CN", "Chinese (Simplified)"),
|
||||
@@ -79,57 +87,405 @@ languages: list[tuple[str, str, str]] = [
|
||||
("vie", "vi", "Vietnamese"),
|
||||
]
|
||||
|
||||
langLength = len(languages)
|
||||
exceptionIds: List[str] = ["AppName", "AppVersionTitle"]
|
||||
|
||||
exceptionIds: list[str] = ["AppName", "AppVersionTitle"]
|
||||
titleIds: list[str] = []
|
||||
# ---------------- Helpers ----------------
|
||||
|
||||
i = 1
|
||||
with open("./resources/strings/strings.xml", "r") as f:
|
||||
c = f.read().replace("\r", "")
|
||||
for l in languages:
|
||||
os.makedirs(f"./resources-{l[0]}/strings/", exist_ok=True)
|
||||
try:
|
||||
with open(f"./resources-{l[0]}/strings/corrections.xml", "r") as r:
|
||||
curr = BeautifulSoup(r.read().replace("\r", ""),
|
||||
features="xml")
|
||||
except FileNotFoundError:
|
||||
curr = BeautifulSoup("", features=["xml"])
|
||||
print(f"{i} of {langLength}: Translating English to {l[2]}")
|
||||
soup = BeautifulSoup(c, features="xml")
|
||||
soup.find(name="strings").insert_before("\n\n")
|
||||
soup.find(name="strings").insert_before(
|
||||
Comment(
|
||||
f"\n Generated by Google Translate: English to {l[2]}\n " +
|
||||
GoogleTranslator(source="en", target=l[1]).translate(
|
||||
"Generated by Google Translate from English") + "\n"))
|
||||
soup.find(name="strings").insert_before("\n\n")
|
||||
def load_xml_as_soup(path: str) -> BeautifulSoup:
|
||||
if not os.path.exists(path):
|
||||
return BeautifulSoup("", features="xml")
|
||||
with open(path, "r", encoding="utf-8") as f:
|
||||
return BeautifulSoup(f.read().replace("\r", ""), features="xml")
|
||||
|
||||
for s in soup.find(name="strings").findAll(name="string"):
|
||||
s.insert_before(" ")
|
||||
if s["id"] in exceptionIds:
|
||||
def extract_strings(soup: BeautifulSoup) -> Dict[str, str]:
|
||||
out = {}
|
||||
strings_node = soup.find(name="strings")
|
||||
if not strings_node:
|
||||
return out
|
||||
for s in strings_node.find_all(name="string"):
|
||||
sid = s.get("id")
|
||||
if not sid:
|
||||
continue
|
||||
value = s.string if s.string is not None else s.get_text()
|
||||
out[sid] = value if value is not None else ""
|
||||
return out
|
||||
|
||||
def extract_comments_in_order(soup: BeautifulSoup) -> List[str]:
|
||||
comments = []
|
||||
strings_node = soup.find(name="strings")
|
||||
if not strings_node:
|
||||
return comments
|
||||
for c in strings_node.find_all(string=lambda text: isinstance(text, Comment)):
|
||||
comments.append(str(c))
|
||||
return comments
|
||||
|
||||
def replace_comments_in_order(soup: BeautifulSoup, translated_comments: List[str]) -> None:
|
||||
strings_node = soup.find(name="strings")
|
||||
if not strings_node:
|
||||
return
|
||||
idx = 0
|
||||
for c in strings_node.find_all(string=lambda text: isinstance(text, Comment)):
|
||||
if idx < len(translated_comments):
|
||||
c.insert_before(" ")
|
||||
c.replace_with(Comment(translated_comments[idx]))
|
||||
idx += 1
|
||||
|
||||
def build_translation_prompt(
|
||||
language_name: str,
|
||||
english_full: Dict[str, str],
|
||||
existing_translations: Dict[str, str],
|
||||
to_translate: Dict[str, str],
|
||||
english_comments: List[str],
|
||||
existing_translated_comments: List[str],
|
||||
generator_comment_en: str,
|
||||
improve_mode: bool,
|
||||
) -> str:
|
||||
if improve_mode:
|
||||
existing_header = "Here are previous translations for this language (you may reuse them or improve them; keep unchanged if already correct):"
|
||||
items_header = "Here are the strings to review and output FINAL translations for (provide a value for every key; if keeping the existing translation, repeat it verbatim):"
|
||||
mode_rules = """
|
||||
Improve mode rules:
|
||||
- You are revising existing translations for a smartwatch UI.
|
||||
- For each string:
|
||||
- If the English source text changed in meaning, update the translation accordingly.
|
||||
- If the existing translation has grammar or style issues, or you are certain a different translation is a better fit (more natural, concise, and consistent with UI), provide an improved translation.
|
||||
- If the existing translation is already accurate, natural, and consistent, you may keep it unchanged by returning the same text.
|
||||
""".strip()
|
||||
else:
|
||||
existing_header = "Here are existing translations for this language (do not modify these; use for terminology/style consistency):"
|
||||
items_header = "Here are the ONLY strings that need new translations (translate the values):"
|
||||
mode_rules = ""
|
||||
|
||||
return f"""
|
||||
You are a professional localizer for a smartwatch UI. Translate UI strings into {language_name}.
|
||||
|
||||
Rules:
|
||||
- Preserve placeholders EXACTLY and do not translate them:
|
||||
- printf style: %s, %d, %f, %1$s, %2$d, etc.
|
||||
- brace placeholders: {{0}}, {{1}}, {{name}}, {{value}}
|
||||
- dollar placeholders: $1, $2
|
||||
- Never translate app/product names; keep them unchanged, e.g., "Home Assistant".
|
||||
- Do not change punctuation, spacing, or add extra punctuation unless natural in the target language.
|
||||
- Keep any whitespace at the beginning or end of string unchanged.
|
||||
- Keep meaning accurate and UI-appropriate (short, natural, consistent).
|
||||
- Use consistent terminology aligned with existing translations for this language.
|
||||
- Do NOT translate the string IDs themselves.
|
||||
{("\n" + mode_rules) if mode_rules else ""}
|
||||
|
||||
Comments handling:
|
||||
- You are given comments from the English XML (in order) and the current translations (same order where available).
|
||||
- If a given English comment has not changed since the last revision and a current translation exists at the same index, return the existing translation unchanged.
|
||||
- If you believe an existing translation is already correct for the provided English, keep it unchanged; otherwise provide an improved translation.
|
||||
- Also translate the generator comment line shown below. We will store both the English and translated lines inside a single XML comment.
|
||||
|
||||
Here are the complete English strings for context:
|
||||
{json.dumps(english_full, ensure_ascii=False, indent=2)}
|
||||
|
||||
{existing_header}
|
||||
{json.dumps(existing_translations, ensure_ascii=False, indent=2)}
|
||||
|
||||
{items_header}
|
||||
{json.dumps(to_translate, ensure_ascii=False, indent=2)}
|
||||
|
||||
Comments to translate (same order as in the XML):
|
||||
{json.dumps(english_comments, ensure_ascii=False, indent=2)}
|
||||
|
||||
Existing translated comments (same order; may be fewer items):
|
||||
{json.dumps(existing_translated_comments, ensure_ascii=False, indent=2)}
|
||||
|
||||
Generator comment (English; translate this too):
|
||||
{json.dumps(generator_comment_en, ensure_ascii=False)}
|
||||
|
||||
Return only valid JSON with this exact structure and nothing else (no markdown fences, no prose):
|
||||
{{
|
||||
"translations": {{ "<STRING_ID>": "<translated string>", ... }},
|
||||
"translated_comments": ["<translated comment 1>", "<translated comment 2>", ...],
|
||||
"generator_comment_translated": "<translated generator comment line>"
|
||||
}}
|
||||
- "translations" must have exactly the keys provided in "to_translate".
|
||||
- "translated_comments" must have the same number of items and order as the input comments list.
|
||||
- For comments that should remain unchanged based on the rules above, return the existing translation verbatim.
|
||||
""".strip()
|
||||
|
||||
# ---------------- Language selection helper ----------------
|
||||
|
||||
def select_languages_from_arg(spec: str, verbose: bool = False) -> List[Tuple[str, str, str]]:
|
||||
"""
|
||||
Parse a language selection spec and return the list of language tuples to process.
|
||||
|
||||
Accepted selectors (case-insensitive, comma or whitespace separated):
|
||||
- Garmin 3-letter codes (e.g., 'deu, fre, spa')
|
||||
- 2-letter codes from the tuple (e.g., 'de, fr, es', 'zh-cn', 'zh-tw', 'iw')
|
||||
- Language names (e.g., 'German, French, Spanish')
|
||||
- '*' or 'all' to select all languages
|
||||
|
||||
Unknown selectors are ignored with a warning.
|
||||
"""
|
||||
if not spec:
|
||||
return languages
|
||||
|
||||
tokens = [t for t in re.split(r"[,\s]+", spec.strip()) if t]
|
||||
if not tokens:
|
||||
return languages
|
||||
|
||||
# If any token is '*' or 'all', select all
|
||||
lowered = [t.lower() for t in tokens]
|
||||
if any(t in ("*", "all") for t in lowered):
|
||||
return languages
|
||||
|
||||
# Build lookup maps
|
||||
by_garmin: Dict[str, Tuple[str, str, str]] = {}
|
||||
by_google: Dict[str, Tuple[str, str, str]] = {}
|
||||
by_name: Dict[str, Tuple[str, str, str]] = {}
|
||||
for trip in languages:
|
||||
gar, g2, name = trip
|
||||
if isinstance(gar, str):
|
||||
by_garmin[gar.lower()] = trip
|
||||
if isinstance(g2, str):
|
||||
by_google[g2.lower()] = trip
|
||||
if isinstance(name, str):
|
||||
by_name[name.lower()] = trip
|
||||
|
||||
selected_codes = set()
|
||||
unknown = []
|
||||
|
||||
for t in lowered:
|
||||
t_norm = t.replace("_", "-")
|
||||
if t_norm in by_garmin:
|
||||
selected_codes.add(by_garmin[t_norm][0].lower())
|
||||
elif t_norm in by_google:
|
||||
selected_codes.add(by_google[t_norm][0].lower())
|
||||
elif t_norm in by_name:
|
||||
selected_codes.add(by_name[t_norm][0].lower())
|
||||
else:
|
||||
unknown.append(t)
|
||||
|
||||
if unknown and verbose:
|
||||
print(f"Warning: unknown language selectors ignored: {', '.join(sorted(set(unknown)))}")
|
||||
|
||||
# Preserve original order from 'languages'
|
||||
selected = [trip for trip in languages if trip[0].lower() in selected_codes]
|
||||
return selected
|
||||
|
||||
# ---------------- Main translation logic ----------------
|
||||
|
||||
def translate_language(
|
||||
client: genai.Client,
|
||||
lang_tuple: Tuple[str, str, str],
|
||||
english_soup: BeautifulSoup,
|
||||
english_strings: Dict[str, str],
|
||||
verbose: bool = False,
|
||||
improve: bool = False,
|
||||
) -> None:
|
||||
garmin_code, _unused, language_name = lang_tuple
|
||||
|
||||
# Ensure output directory exists
|
||||
out_dir = f"./resources-{garmin_code}/strings/"
|
||||
os.makedirs(out_dir, exist_ok=True)
|
||||
|
||||
# Load previous translations and corrections
|
||||
prev_soup = load_xml_as_soup(os.path.join(out_dir, "strings.xml"))
|
||||
corrections_soup = load_xml_as_soup(os.path.join(out_dir, "corrections.xml"))
|
||||
|
||||
prev_map = extract_strings(prev_soup)
|
||||
corrections_map = extract_strings(corrections_soup)
|
||||
|
||||
# Build a fresh soup for this language from English source
|
||||
soup = BeautifulSoup(str(english_soup), features="xml")
|
||||
|
||||
# Collect comments
|
||||
english_comments = extract_comments_in_order(english_soup)
|
||||
existing_translated_comments = extract_comments_in_order(prev_soup)
|
||||
|
||||
# Detect any mention of Google Translate anywhere in the previous XML
|
||||
all_comments_text_prev = [
|
||||
str(c) for c in prev_soup.find_all(string=lambda t: isinstance(t, Comment))
|
||||
]
|
||||
mentions_google_translate = any("google translate" in c.lower() for c in all_comments_text_prev)
|
||||
|
||||
# Build generator comment English line (the translated line will be returned by the API)
|
||||
if mentions_google_translate:
|
||||
generator_comment_en = f"Generated by Google Translate and {MODEL_NAME} from English to {language_name}"
|
||||
else:
|
||||
generator_comment_en = f"Generated by {MODEL_NAME} from English to {language_name}"
|
||||
|
||||
# Decide which strings need translation
|
||||
to_translate_map: Dict[str, str] = {}
|
||||
final_values: Dict[str, str] = {}
|
||||
|
||||
for s in soup.find_all(name="string"):
|
||||
sid = s.get("id")
|
||||
if not sid:
|
||||
continue
|
||||
|
||||
s_curr = curr.find(name="string", attrs={"id": s["id"]})
|
||||
if s_curr:
|
||||
s.string = s_curr.string
|
||||
else:
|
||||
a = GoogleTranslator(source="en",
|
||||
target=l[1]).translate(s.string)
|
||||
if s["id"] in titleIds:
|
||||
s.string = a.title()
|
||||
else:
|
||||
s.string = a
|
||||
for s in soup.find(name="strings").findAll(
|
||||
string=lambda text: isinstance(text, Comment)):
|
||||
s.insert_before(" ")
|
||||
s.replace_with(
|
||||
Comment(
|
||||
" " +
|
||||
GoogleTranslator(source="en", target=l[1]).translate(s) +
|
||||
" "))
|
||||
# Always keep English as-is for exception IDs
|
||||
if sid in exceptionIds:
|
||||
final_values[sid] = s.get_text()
|
||||
continue
|
||||
|
||||
# print(str(soup))
|
||||
with open(f"./resources-{l[0]}/strings/strings.xml", "wb") as w:
|
||||
# Respect corrections.xml as authoritative
|
||||
if sid in corrections_map and corrections_map[sid] is not None:
|
||||
final_values[sid] = corrections_map[sid]
|
||||
continue
|
||||
|
||||
if improve:
|
||||
# Improve mode: reprocess all remaining strings
|
||||
to_translate_map[sid] = s.get_text()
|
||||
else:
|
||||
# Normal mode: translate only new strings
|
||||
if sid in prev_map and prev_map[sid] is not None:
|
||||
final_values[sid] = prev_map[sid]
|
||||
else:
|
||||
to_translate_map[sid] = s.get_text()
|
||||
|
||||
# If there are no strings to translate (e.g., all covered by corrections), skip
|
||||
if not to_translate_map:
|
||||
reason = "no strings to translate (all covered by corrections or exceptions)"
|
||||
if not improve:
|
||||
reason = "no new strings to translate."
|
||||
print(f" Skipping {language_name}: {reason}")
|
||||
return
|
||||
|
||||
# Prepare context (always include full English strings)
|
||||
english_context = english_strings
|
||||
existing_translations = {k: v for k, v in prev_map.items()}
|
||||
if corrections_map:
|
||||
existing_translations.update(corrections_map)
|
||||
|
||||
# Translate all at once; force JSON output but do not enforce a schema
|
||||
prompt = build_translation_prompt(
|
||||
language_name=language_name,
|
||||
english_full=english_context,
|
||||
existing_translations=existing_translations,
|
||||
to_translate=to_translate_map,
|
||||
english_comments=english_comments,
|
||||
existing_translated_comments=existing_translated_comments,
|
||||
generator_comment_en=generator_comment_en,
|
||||
improve_mode=improve,
|
||||
)
|
||||
|
||||
if verbose:
|
||||
print(prompt)
|
||||
|
||||
config = genai.types.GenerateContentConfig(
|
||||
temperature=0,
|
||||
response_mime_type="application/json",
|
||||
)
|
||||
|
||||
resp = client.models.generate_content(
|
||||
model=MODEL_NAME,
|
||||
contents=prompt,
|
||||
config=config,
|
||||
)
|
||||
|
||||
data = getattr(resp, "parsed", None)
|
||||
if data is None:
|
||||
txt = getattr(resp, "text", None)
|
||||
if not txt:
|
||||
try:
|
||||
txt = resp.candidates[0].content.parts[0].text
|
||||
except Exception:
|
||||
txt = ""
|
||||
if not txt.strip():
|
||||
raise RuntimeError("Empty response from model; cannot parse translations.")
|
||||
data = json.loads(txt)
|
||||
|
||||
if verbose:
|
||||
print(data)
|
||||
|
||||
translations = data.get("translations", {}) or {}
|
||||
for sid, translated in translations.items():
|
||||
if sid in to_translate_map:
|
||||
final_values[sid] = translated
|
||||
|
||||
translated_comments_all: List[str] = data.get("translated_comments", []) or []
|
||||
generator_comment_translated: str = data.get("generator_comment_translated", "") or ""
|
||||
|
||||
# Apply final values to the soup
|
||||
for s in soup.find_all(name="string"):
|
||||
sid = s.get("id")
|
||||
if not sid:
|
||||
continue
|
||||
if sid in final_values:
|
||||
val = final_values[sid]
|
||||
s.insert_before(" ")
|
||||
s.string = val
|
||||
|
||||
# Replace comments with translated versions (order-preserving)
|
||||
if translated_comments_all:
|
||||
replace_comments_in_order(soup, translated_comments_all)
|
||||
|
||||
# Insert the generator comment (English + translated) before <strings>
|
||||
strings_node = soup.find(name="strings")
|
||||
if strings_node:
|
||||
strings_node.insert_before("\n\n")
|
||||
combined = f"\n {generator_comment_en}\n {generator_comment_translated}\n"
|
||||
strings_node.insert_before(Comment(combined))
|
||||
strings_node.insert_before("\n\n")
|
||||
|
||||
# Write output
|
||||
out_path = os.path.join(out_dir, "strings.xml")
|
||||
with open(out_path, "wb") as w:
|
||||
w.write(soup.encode("utf-8") + b"\n")
|
||||
i += 1
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description="Translate Garmin IQ strings.xml using Gemini.")
|
||||
parser.add_argument(
|
||||
"-v", "--verbose",
|
||||
action="store_true",
|
||||
help="Enable verbose debug output (prints prompts and responses)"
|
||||
)
|
||||
parser.add_argument(
|
||||
"-i", "--improve",
|
||||
action="store_true",
|
||||
help="Improve mode: re-run all strings through translation for potential improvements"
|
||||
)
|
||||
parser.add_argument(
|
||||
"-l", "--langs",
|
||||
type=str,
|
||||
default=None,
|
||||
help="Limit processed languages. Accepts comma/space separated Garmin codes (e.g., 'deu, fre'), "
|
||||
"2-letter codes (e.g., 'de fr'), or names (e.g., 'German French'). Use '*' or 'all' for all."
|
||||
)
|
||||
args = parser.parse_args()
|
||||
|
||||
# Init client
|
||||
client = genai.Client()
|
||||
|
||||
# Load English source
|
||||
src_path = "./resources/strings/strings.xml"
|
||||
if not os.path.exists(src_path):
|
||||
raise FileNotFoundError(f"Missing source file: {src_path}")
|
||||
|
||||
with open(src_path, "r", encoding="utf-8") as f:
|
||||
english_xml = f.read().replace("\r", "")
|
||||
english_soup = BeautifulSoup(english_xml, features="xml")
|
||||
english_strings = extract_strings(english_soup)
|
||||
|
||||
# Determine which languages to process
|
||||
selected_languages = select_languages_from_arg(args.langs, verbose=args.verbose)
|
||||
if not selected_languages:
|
||||
print("No valid languages selected. Nothing to do.")
|
||||
sys.exit(0)
|
||||
|
||||
if args.verbose and args.langs:
|
||||
pretty = ", ".join([f"{name} ({code})" for code, _g, name in selected_languages])
|
||||
print(f"Selected languages: {pretty}")
|
||||
|
||||
total_langs = len(selected_languages)
|
||||
for i, lang in enumerate(selected_languages, start=1):
|
||||
print(f"{i} of {total_langs}: Translating English to {lang[2]}" + (" [improve]" if args.improve else ""))
|
||||
try:
|
||||
translate_language(
|
||||
client=client,
|
||||
lang_tuple=lang,
|
||||
english_soup=english_soup,
|
||||
english_strings=english_strings,
|
||||
verbose=args.verbose,
|
||||
improve=args.improve,
|
||||
)
|
||||
except Exception as e:
|
||||
print(f" Error translating {lang[2]}: {e}")
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
@@ -37,7 +37,8 @@
|
||||
margin-left: 0.5em;
|
||||
filter: grayscale() invert();
|
||||
}
|
||||
.template {
|
||||
.template,
|
||||
.info {
|
||||
background-image: url(../resources-icons-48/info_type.svg);
|
||||
background-size: contain;
|
||||
margin-left: 0.5em;
|
||||
@@ -63,6 +64,13 @@
|
||||
margin-left: 0.5em;
|
||||
filter: grayscale() invert();
|
||||
}
|
||||
.mdi {
|
||||
margin-left: 0.5em;
|
||||
}
|
||||
|
||||
.disabled {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
:root {
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
@@ -285,6 +293,10 @@
|
||||
background-color: var(--ctp-mocha-overlay1);
|
||||
}
|
||||
</style>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdn.jsdelivr.net/npm/@mdi/font@7.4.47/css/materialdesignicons.min.css"
|
||||
defer />
|
||||
</head>
|
||||
<body>
|
||||
<div id="settings">
|
||||
@@ -441,9 +453,10 @@ http:
|
||||
</div>
|
||||
</dialog>
|
||||
|
||||
<script src="https://www.unpkg.com/monaco-editor@0.45.0/min/vs/loader.js"></script>
|
||||
<script src="https://www.unpkg.com/monaco-editor@0.52.2/min/vs/loader.js"></script>
|
||||
<script src="https://www.unpkg.com/json-ast-comments@1.1.1/lib/json.js"></script>
|
||||
<script src="https://www.unpkg.com/toastify-js@1.12.0/src/toastify.js"></script>
|
||||
<script src="https://code.iconify.design/1/1.0.6/iconify.min.js"></script>
|
||||
<script type="module" src="./main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
70
web/main.js
@@ -11,7 +11,7 @@ let api_token = localStorage.getItem('api_token') ?? '';
|
||||
|
||||
/**
|
||||
* Get all entities in HomeAssistant.
|
||||
* @returns {Promise<Record<string, string>>} [id, name]
|
||||
* @returns {Promise<Record<string, { name: string, icon?: string }>>} [id, name]
|
||||
*/
|
||||
async function get_entities() {
|
||||
try {
|
||||
@@ -21,7 +21,7 @@ async function get_entities() {
|
||||
Authorization: `Bearer ${api_token}`,
|
||||
},
|
||||
mode: 'cors',
|
||||
body: `{"template":"[{% for entity in states %}[\\"{{ entity.entity_id }}\\",\\"{{ entity.name }}\\"]{% if not loop.last %},{% endif %}{% endfor %}]"}`,
|
||||
body: `{"template":"[{% for entity in states %}[\\"{{ entity.entity_id }}\\",\\"{{ entity.name }}\\",\\"{{ entity.attributes.icon }}\\"]{% if not loop.last %},{% endif %}{% endfor %}]"}`,
|
||||
});
|
||||
if (res.status == 401 || res.status == 403) {
|
||||
document.querySelector('#api_token').classList.add('invalid');
|
||||
@@ -29,8 +29,16 @@ async function get_entities() {
|
||||
}
|
||||
document.querySelector('#api_url').classList.remove('invalid');
|
||||
document.querySelector('#api_token').classList.remove('invalid');
|
||||
return Object.fromEntries(await res.json());
|
||||
} catch {
|
||||
const data = {};
|
||||
for (const [id, name, icon] of await res.json()) {
|
||||
data[id] = { name };
|
||||
if (icon !== '') {
|
||||
data[id].icon = icon;
|
||||
}
|
||||
}
|
||||
return data;
|
||||
} catch (e) {
|
||||
console.error('Error fetching entities:', e);
|
||||
document.querySelector('#api_url').classList.add('invalid');
|
||||
return {};
|
||||
}
|
||||
@@ -57,7 +65,8 @@ async function get_devices() {
|
||||
document.querySelector('#api_url').classList.remove('invalid');
|
||||
document.querySelector('#api_token').classList.remove('invalid');
|
||||
return Object.fromEntries(await res.json());
|
||||
} catch {
|
||||
} catch (e) {
|
||||
console.error('Error fetching devices:', e);
|
||||
document.querySelector('#api_url').classList.add('invalid');
|
||||
return {};
|
||||
}
|
||||
@@ -84,7 +93,8 @@ async function get_areas() {
|
||||
document.querySelector('#api_url').classList.remove('invalid');
|
||||
document.querySelector('#api_token').classList.remove('invalid');
|
||||
return Object.fromEntries(await res.json());
|
||||
} catch {
|
||||
} catch (e) {
|
||||
console.error('Error fetching areas:', e);
|
||||
document.querySelector('#api_url').classList.add('invalid');
|
||||
return {};
|
||||
}
|
||||
@@ -119,7 +129,8 @@ async function get_services() {
|
||||
}
|
||||
}
|
||||
return services;
|
||||
} catch {
|
||||
} catch (e) {
|
||||
console.error('Error fetching services:', e);
|
||||
document.querySelector('#api_url').classList.add('invalid');
|
||||
return [];
|
||||
}
|
||||
@@ -370,6 +381,9 @@ async function generate_schema(entities, devices, areas, services, schema) {
|
||||
confirm: {
|
||||
$ref: '#/$defs/confirm',
|
||||
},
|
||||
pin: {
|
||||
$ref: '#/$defs/pin',
|
||||
},
|
||||
data: {
|
||||
type: 'object',
|
||||
properties: {},
|
||||
@@ -724,6 +738,7 @@ require(['vs/editor/editor.main'], async () => {
|
||||
|
||||
var decorations = editor.createDecorationsCollection([]);
|
||||
|
||||
/** @type {monaco.editor.IMarkerData[]} */
|
||||
let markers = [];
|
||||
|
||||
const renderTemplate = editor.addCommand(
|
||||
@@ -905,6 +920,7 @@ require(['vs/editor/editor.main'], async () => {
|
||||
const ast = json.parse(model.getValue());
|
||||
const data = JSON.parse(model.getValue());
|
||||
markers = [];
|
||||
/** @type {monaco.editor.IModelDeltaDecoration[]} */
|
||||
const glyphs = [];
|
||||
async function testToggle(range, entity) {
|
||||
const res = await fetch(api_url + '/states/' + entity, {
|
||||
@@ -983,8 +999,10 @@ require(['vs/editor/editor.main'], async () => {
|
||||
* @param {import('json-ast-comments').JsonAst |
|
||||
* import('json-ast-comments').JsonProperty} node
|
||||
* @param {string[]} path
|
||||
* @param {import('json-ast-comments').JsonAst |
|
||||
* import('json-ast-comments').JsonProperty | null} parent
|
||||
*/
|
||||
function recurse(node, path) {
|
||||
function recurse(node, path, parent = null) {
|
||||
if (node.type === 'property') {
|
||||
if (node.key[0].value === 'content') {
|
||||
templates.push([
|
||||
@@ -1010,11 +1028,39 @@ require(['vs/editor/editor.main'], async () => {
|
||||
}
|
||||
trim++;
|
||||
markers.push({
|
||||
message: entities[node.value[0].value] ?? 'Entity not found',
|
||||
message: entities[node.value[0].value].name ?? 'Entity not found',
|
||||
severity: monaco.MarkerSeverity.Hint,
|
||||
...range,
|
||||
startColumn: trim,
|
||||
});
|
||||
glyphs.push({
|
||||
range,
|
||||
options: {
|
||||
isWholeLine: true,
|
||||
glyphMarginClassName:
|
||||
'mdi ' +
|
||||
entities[node.value[0].value]?.icon?.replace(':', '-'),
|
||||
},
|
||||
});
|
||||
} else if (
|
||||
node.key[0].value === 'enabled' &&
|
||||
node.value[0].type === 'boolean' &&
|
||||
!node.value[0].value
|
||||
) {
|
||||
glyphs.push({
|
||||
range: {
|
||||
startLineNumber: parent.members[0].key[0].range.start.line + 1,
|
||||
startColumn: 0,
|
||||
endLineNumber:
|
||||
parent.members[parent.members.length - 1].value[0].range.end
|
||||
.line + 1,
|
||||
endColumn: 10000,
|
||||
},
|
||||
options: {
|
||||
isWholeLine: true,
|
||||
inlineClassName: 'disabled',
|
||||
},
|
||||
});
|
||||
} else if (node.key[0].value === 'type') {
|
||||
if (node.value[0].value === 'toggle') {
|
||||
toggles.push([
|
||||
@@ -1041,15 +1087,15 @@ require(['vs/editor/editor.main'], async () => {
|
||||
});
|
||||
}
|
||||
} else {
|
||||
recurse(node.value[0], [...path, node.key[0].value]);
|
||||
recurse(node.value[0], [...path, node.key[0].value], node);
|
||||
}
|
||||
} else if (node.type === 'array') {
|
||||
for (let i = 0; i < node.members.length; i++) {
|
||||
recurse(node.members[i], [...path, i]);
|
||||
recurse(node.members[i], [...path, i], node);
|
||||
}
|
||||
} else if (node.type === 'object') {
|
||||
for (let member of node.members) {
|
||||
recurse(member, path);
|
||||
recurse(member, path, node);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -10,10 +10,11 @@
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"@types/toastify-js": "^1.12.3",
|
||||
"@types/toastify-js": "^1.12.4",
|
||||
"@vscode/webview-ui-toolkit": "1.4.0",
|
||||
"json-ast-comments": "1.1.1",
|
||||
"monaco-editor": "0.45.0",
|
||||
"monaco-editor": "0.52.2",
|
||||
"prettier": "^3.6.2",
|
||||
"serve": "^14.2.1"
|
||||
}
|
||||
}
|
25
web/pnpm-lock.yaml
generated
@@ -6,8 +6,8 @@ settings:
|
||||
|
||||
devDependencies:
|
||||
'@types/toastify-js':
|
||||
specifier: ^1.12.3
|
||||
version: 1.12.3
|
||||
specifier: ^1.12.4
|
||||
version: 1.12.4
|
||||
'@vscode/webview-ui-toolkit':
|
||||
specifier: 1.4.0
|
||||
version: 1.4.0(react@18.2.0)
|
||||
@@ -15,8 +15,11 @@ devDependencies:
|
||||
specifier: 1.1.1
|
||||
version: 1.1.1
|
||||
monaco-editor:
|
||||
specifier: 0.45.0
|
||||
version: 0.45.0
|
||||
specifier: 0.52.2
|
||||
version: 0.52.2
|
||||
prettier:
|
||||
specifier: ^3.6.2
|
||||
version: 3.6.2
|
||||
serve:
|
||||
specifier: ^14.2.1
|
||||
version: 14.2.1
|
||||
@@ -52,8 +55,8 @@ packages:
|
||||
exenv-es6: 1.1.1
|
||||
dev: true
|
||||
|
||||
/@types/toastify-js@1.12.3:
|
||||
resolution: {integrity: sha512-9RjLlbAHMSaae/KZNHGv19VG4gcLIm3YjvacCXBtfMfYn26h76YP5oxXI8k26q4iKXCB9LNfv18lsoS0JnFPTg==}
|
||||
/@types/toastify-js@1.12.4:
|
||||
resolution: {integrity: sha512-zfZHU4tKffPCnZRe7pjv/eFKzTVHozKewFCKaCjZ4gFinKgJRz/t0bkZiMCXJxPhv/ZoeDGNOeRD09R0kQZ/nw==}
|
||||
dev: true
|
||||
|
||||
/@vscode/webview-ui-toolkit@1.4.0(react@18.2.0):
|
||||
@@ -415,8 +418,8 @@ packages:
|
||||
resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==}
|
||||
dev: true
|
||||
|
||||
/monaco-editor@0.45.0:
|
||||
resolution: {integrity: sha512-mjv1G1ZzfEE3k9HZN0dQ2olMdwIfaeAAjFiwNprLfYNRSz7ctv9XuCT7gPtBGrMUeV1/iZzYKj17Khu1hxoHOA==}
|
||||
/monaco-editor@0.52.2:
|
||||
resolution: {integrity: sha512-GEQWEZmfkOGLdd3XK8ryrfWz3AIP8YymVXiPHEdewrUq7mh0qrKrfHLNCXcbB6sTnMLnOZ3ztSiKcciFUkIJwQ==}
|
||||
dev: true
|
||||
|
||||
/ms@2.0.0:
|
||||
@@ -460,6 +463,12 @@ packages:
|
||||
resolution: {integrity: sha512-gu9bD6Ta5bwGrrU8muHzVOBFFREpp2iRkVfhBJahwJ6p6Xw20SjT0MxLnwkjOibQmGSYhiUnf2FLe7k+jcFmGQ==}
|
||||
dev: true
|
||||
|
||||
/prettier@3.6.2:
|
||||
resolution: {integrity: sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==}
|
||||
engines: {node: '>=14'}
|
||||
hasBin: true
|
||||
dev: true
|
||||
|
||||
/punycode@1.4.1:
|
||||
resolution: {integrity: sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==}
|
||||
dev: true
|
||||
|