├── .github └── workflows │ └── validate.yml ├── CHANGELOG.md ├── LICENSE ├── README.md ├── TWC Icon Codes & Icon Images v2.0.ods ├── TWC_Icon_Map.ods ├── custom_components └── weatherdotcom │ ├── __init__.py │ ├── config_flow.py │ ├── const.py │ ├── coordinator.py │ ├── manifest.json │ ├── sensor.py │ ├── strings.json │ ├── translations │ ├── ar.json │ ├── de.json │ ├── en.json │ ├── es.json │ ├── fr.json │ ├── it.json │ ├── ja.json │ ├── pt.json │ ├── ru.json │ ├── sk.json │ └── zh.json │ ├── weather.py │ ├── weather_current_conditions_sensors.py │ └── weather_translations │ ├── ar.json │ ├── az.json │ ├── bg.json │ ├── bn.json │ ├── bs.json │ ├── ca.json │ ├── cs.json │ ├── da.json │ ├── de.json │ ├── el.json │ ├── en.json │ ├── es.json │ ├── et.json │ ├── fa.json │ ├── fi.json │ ├── fr.json │ ├── gu.json │ ├── he.json │ ├── hi.json │ ├── hr.json │ ├── hu.json │ ├── in.json │ ├── is.json │ ├── it.json │ ├── iw.json │ ├── ja.json │ ├── jv.json │ ├── ka.json │ ├── kk.json │ ├── kn.json │ ├── ko.json │ ├── lt.json │ ├── lv.json │ ├── mk.json │ ├── mn.json │ ├── ms.json │ ├── nl.json │ ├── no.json │ ├── pl.json │ ├── pt.json │ ├── ro.json │ ├── ru.json │ ├── si.json │ ├── sk.json │ ├── sl.json │ ├── sq.json │ ├── sr.json │ ├── sv.json │ ├── sw.json │ ├── ta.json │ ├── te.json │ ├── tg.json │ ├── th.json │ ├── tk.json │ ├── tl.json │ ├── tr.json │ ├── uk.json │ ├── ur.json │ ├── uz.json │ ├── vi.json │ └── zh.json └── hacs.json /.github/workflows/validate.yml: -------------------------------------------------------------------------------- 1 | name: HACS validation 2 | 3 | on: 4 | push: 5 | pull_request: 6 | schedule: 7 | - cron: '0 0 * * *' 8 | 9 | jobs: 10 | validate: 11 | runs-on: "ubuntu-latest" 12 | steps: 13 | - name: Checkout 14 | uses: "actions/checkout@v3" 15 | - name: Hassfest 16 | uses: "home-assistant/actions/hassfest@master" 17 | - name: HACS validation 18 | uses: "hacs/action@main" 19 | with: 20 | CATEGORY: integration 21 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | v1.2.1.1 2 | * Bump version number to try to fix an issue where HACS seems to have cached a bad release 3 | 4 | v1.2.1 5 | * Bind all entities to a service (see [issue #50](https://github.com/jaydeethree/Home-Assistant-weatherdotcom/issues/50)) 6 | 7 | v1.2.0 8 | * Reliability improvements - if the Weather.com API is down then there's nothing we can do, but these will hopefully help with network glitches and other temporary issues: 9 | * Retry API calls that fail 10 | * Only mark entities unavailable if they're from an API call that failed - this way if some of the API calls succeed but others fail, we will still get data from the ones that succeeded 11 | * Update user agent to a current version of Chrome (I doubt this actually matters but it's worth a try) 12 | 13 | v1.1.9 14 | * Fix bug where "async" keyword was missing from some async calls 15 | 16 | v1.1.8 17 | * Merge https://github.com/cytech/Home-Assistant-wundergroundpws/commit/36e33bf17e07fa342e1e66d9ab007382d5b1b9ea to fix "Detected blocking call" error 18 | 19 | v1.1.7 20 | * Change forecast API endpoints so that we have 15 days of forecast data (this applies to both hourly and daily forecasts) 21 | 22 | v1.1.6 23 | * Fix bug where cloud coverage data was incorrect for hourly forecasts 24 | * Add more data to daily and hourly forecasts - see [this feature request](https://github.com/jaydeethree/Home-Assistant-weatherdotcom/issues/27) for details 25 | 26 | v1.1.5 27 | * Add the following properties to the weather.LOCATION_NAME entity: native_apparent_temperature, native_dew_point, native_wind_gust_speed, and uv_index 28 | 29 | v1.1.4.1 30 | * Fix "Error doing job: Task exception was never retrieved" error for latitude/longitude sensors 31 | 32 | v1.1.4 33 | * Add sensors for latitude/longitude - these make it easier to figure out which exact location is being used by a given set of weather sensors 34 | 35 | v1.1.3 36 | * Add one new sensor for current conditions - cloud cover phrase (see README for details of what this is) 37 | 38 | v1.1.2 39 | * Hopefully improve error handling so that if we fail to retrieve data from Weather.com, we'll just keep using the previous data 40 | * Fix a unit of measurement issue that was causing errors to be logged and some long-term statistics problems 41 | 42 | v1.1.1 43 | * Add two new current conditions sensors - cloud ceiling and pressure tendency trend (see the README for details of what these sensors are measuring) 44 | 45 | v1.1.0 46 | * BREAKING CHANGE: Switch to [new Home Assistant weather entity format](https://developers.home-assistant.io/blog/2023/08/07/weather_entity_forecast_types/). This has been tested with Home Assistant 2023.9 and 2023.10, but probably will not work with older versions of Home Assistant. This also removes the weather.LOCATION_hourly sensor, as all forecast data has been combined into a single sensor. 47 | 48 | v1.0.8.1 49 | * Add Slovak translation. Thank you @misa1515! 50 | 51 | v1.0.8 52 | * Fix the integration not working when the Weather.com API returns a Content-Type other than `application/json` 53 | 54 | v1.0.7 55 | * Fix the integration not working with Home Assistant 2023.9 56 | 57 | v1.0.6.1 58 | * Add Portuguese translation. Thank you @ViPeR5000! 59 | 60 | v1.0.6 61 | * Add cloud cover information to forecasts 62 | 63 | v1.0.5 64 | * Switch from 5-day forecasts to 10-day forecasts 65 | 66 | v1.0.4 67 | * Fix hourly weather forecast for Home Assistant 2023.8. Thank you @klopyrev! 68 | 69 | v1.0.3 70 | * Fix humidity in weather. entities - the field was named incorrectly so it wasn't working 71 | 72 | v1.0.2 73 | * Fix "has state class total_increasing, but its state is not strictly increasing" for precipitation sensors - they were using the wrong state class 74 | 75 | v1.0.1 76 | * Icons: Map 'haze' (Weather.com) to 'fog' (Home Assistant), and map 'blizzard' (Weather.com) to 'snowy' (Home Assistant) 77 | * Add a new Weather Description sensor that contains a detailed description of the current weather conditions 78 | 79 | v1.0.0 80 | * No real changes, just minor adjustments to get this ready to add to the default HACS repo 81 | 82 | v1.0.0-RC2 83 | * Lots of refactoring/code clean-up - removed dead code, migrated strings to constants, renamed variables, and more 84 | * Actually fixed wind gust sensor 85 | * New sensors/data: 86 | * Added temperature "feels like" sensor 87 | * Added precipitation in last 6 hours sensor 88 | * Added visibility data to weather entities 89 | * Current condition is now retrieved from the current data instead of the forecast data 90 | * Removed reconfiguration flow - it was broken and seems unnecessary since it makes more sense to set up the integration again if the location needs to be changed 91 | * Rewrote the README 92 | 93 | v1.0.0-RC1 94 | * Add hourly forecasts 95 | * Lots of refactoring/code clean-up to support hourly forecasts 96 | 97 | v1.0.0b3 98 | * Simplify wind cardinal direction sensor 99 | * Fix precipitation entries using wrong names and units 100 | * Fix local observation time being incorrect 101 | 102 | v1.0.0b2 103 | * Properly handle windGust being null 104 | * Fix JSON trailing commas that were causing log spam 105 | * Various code clean-up (redundant README, remaining references to Wunderground PWS) 106 | * Add hacs.json 107 | 108 | v1.0.0b1 109 | * Initial beta release - mostly functional, missing hourly forecast, may still be somewhat buggy -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | **This integration is not dead/abandoned** (this message was last updated on 2025-05-12). I personally use this integration every day and I plan to continue maintaining it. However I am not aware of any remaining bugs and I currently do not plan to add more features - this is why there have not been any commits or releases lately. If a bug/problem is discovered then I will take care of that, otherwise don't expect to see very many changes to this integration as I feel that it is feature-complete. 2 | 3 | # Home-Assistant-Weather.com 4 | Home Assistant custom integration for Weather.com. 5 | Includes a native Home Assistant Weather Entity and a variety of weather sensors. 6 | 7 | This is a fork of the excellent [wundergroundpws integration by @cytech](https://github.com/cytech/Home-Assistant-wundergroundpws) - if you 8 | find this software useful, feel free to make a donation to them. 9 | 10 | ------------------- 11 | 12 | # Installation Prerequisites 13 | Please review the minimum requirements below to determine whether you will be able to 14 | install and use the software. 15 | 16 | - This integration requires Home Assistant Version 2023.9 or greater 17 | - A Weather.com API Key is required (see below for how to get this) 18 | 19 | [Back to top](#top) 20 | 21 | # Weather.com API Key 22 | 1) Open https://www.wunderground.com (Wunderground is owned by Weather.com and uses some of the Weather.com APIs) 23 | 2) View the page source in your browser. 24 | 3) In the source, search for "apiKey" and copy/paste that into the integration 25 | 26 | Important notes: 27 | * It seems like Wunderground may provide different API keys depending on which country you are located in, and that the API keys for some countries may not be compatible with this integration. This integration has only been tested with the US API key which ends in `96f525` - if your API key isn't working, you may need to connect to a US VPN to retrieve the US API key. 28 | * It also seems like Weather.com blocks traffic from certain countries. If this integration does not work for you, make sure that you can access Weather.com in your browser. 29 | * Wunderground PWS (Personal Weather Station) API Keys will not work for this integration, as they do not have access to the Weather.com APIs that this integration uses. 30 | * While there have been no reports of API keys being blocked or changing over time, it's always possible that Weather.com will eventually block them. If that happens you will need to find an API key from another source. 31 | 32 | [Back to top](#top) 33 | 34 | # Installation 35 | 36 | This integration is available in HACS, so just install it from there and then: 37 | 38 | 1. In Home Assistant Settings, select DEVICES & SERVICES, then ADD INTEGRATION. 39 | 2. Select the "Weather.com" integration. 40 | 3. Enter your Weather.com API key and submit. 41 | 42 | [Back to top](#top) 43 | 44 | # Sensors Created By This Integration 45 | The following Weather.com data is available in the `weather.` entity: 46 | 47 | Current conditions: 48 | - Condition (icon) 49 | - Temperature 50 | - Barometric pressure 51 | - Wind speed 52 | - Wind bearing (cardinal direction) 53 | - Visibility 54 | 55 | Forecast (daily and hourly): 56 | - Date/time of forecast 57 | - Temperature (high) 58 | - Temperature (low) 59 | - Condition (icon) 60 | - Precipitation quantity 61 | - Precipitation probability 62 | - Wind speed 63 | - Wind bearing (cardinal direction) 64 | 65 | To access these values in automations, scripts, etc. you will need to create triggered template sensors for them. [This post](https://community.home-assistant.io/t/customising-the-bom-weather-and-lovelace-now-in-hacs/123549/1465) on the Home Assistant forums provides details about how to do that. 66 | 67 | In addition to the Weather entity, these additional sensors will be created by this integration: 68 | 69 | * `sensor._cloud_ceiling` - distance to the lowest cloud layer, or 0 if there are no clouds 70 | * `sensor._cloud_cover_phrase` - a description of the current cloud cover, e.g. "Clear" or "Mostly Cloudy" 71 | * `sensor._dewpoint` - the current dew point 72 | * `sensor._heat_index` - the current heat index, which is what the current temperature "feels like" when combined with the current humidity 73 | * `sensor._latitude` - the latitude that is configured for this location 74 | * `sensor._local_observation_time` - the time that the Weather.com data was generated 75 | * `sensor._longitude` - the longitude that is configured for this location 76 | * `sensor._precipitation_last_hour` - the quantity of precipitation in the last hour 77 | * `sensor._precipitation_last_6_hours` - the quantity of precipitation in the last 6 hours 78 | * `sensor._precipitation_last_24_hours` - the quantity of precipitation in the last 24 hours 79 | * `sensor._pressure` - the current barometric pressure 80 | * `sensor._pressure_tendency_trend` - the current trend for barometric pressure, e.g. "Rising" or "Falling" 81 | * `sensor._relative_humidity` - the current relative humidity 82 | * `sensor._temperature` - the current temperature 83 | * `sensor._temperature_feels_like` - what the current temperature "feels like" when combined with the current heat index and wind chill 84 | * `sensor._uv_index` - the current UV index, ranging from 0 (very low) to 10 (very high) 85 | * `sensor._weather_description` - the current weather description, e.g. "Freezing Rain" or "Scattered Showers" 86 | * `sensor._wind_chill` - the current wind chill, which is what the current temperature "feels like" when combined with the current wind 87 | * `sensor._wind_direction_cardinal` - the current cardinal wind direction - for example: North 88 | * `sensor._wind_direction_degrees` - the current cardinal wind direction in degrees 89 | * `sensor._wind_gust` - the current wind gust speed 90 | * `sensor._wind_speed` - the current wind speed 91 | 92 | All of the data listed above will be updated every 20 minutes. 93 | 94 | Additional details about the API are available [here](https://docs.google.com/document/d/14OK6NG5GRwezb6-5C1vQJoRdStrGnXUiXBDCmQP9T9s/edit). 95 | 96 | [Back to top](#top) 97 | 98 | # Localization 99 | 100 | Sensor "friendly names" are set via translation files. 101 | Weather.com translation files are located in the 'weatherdotcom/weather_translations' directory. 102 | Files were translated, using 'en.json' as the base, via https://translate.i18next.com. 103 | Translations only use the base language code and not the variant (i.e. zh-CN/zh-HK/zh-TW uses zh). 104 | The default is en-US (translations/en.json) if the lang: option is not set in the Weather.com config. 105 | If lang: is set (i.e. lang: de-DE), then the translations/de.json file is loaded, and the Weather.com API is queried with de-DE. 106 | The translation file applies to all sensor friendly names. 107 | Available lang: options are: 108 | ``` 109 | 'am-ET', 'ar-AE', 'az-AZ', 'bg-BG', 'bn-BD', 'bn-IN', 'bs-BA', 'ca-ES', 'cs-CZ', 'da-DK', 'de-DE', 'el-GR', 'en-GB', 110 | 'en-IN', 'en-US', 'es-AR', 'es-ES', 'es-LA', 'es-MX', 'es-UN', 'es-US', 'et-EE', 'fa-IR', 'fi-FI', 'fr-CA', 'fr-FR', 111 | 'gu-IN', 'he-IL', 'hi-IN', 'hr-HR', 'hu-HU', 'in-ID', 'is-IS', 'it-IT', 'iw-IL', 'ja-JP', 'jv-ID', 'ka-GE', 'kk-KZ', 112 | 'km-KH', 'kn-IN', 'ko-KR', 'lo-LA', 'lt-LT', 'lv-LV', 'mk-MK', 'mn-MN', 'mr-IN', 'ms-MY', 'my-MM', 'ne-IN', 'ne-NP', 113 | 'nl-NL', 'no-NO', 'om-ET', 'pa-IN', 'pa-PK', 'pl-PL', 'pt-BR', 'pt-PT', 'ro-RO', 'ru-RU', 'si-LK', 'sk-SK', 'sl-SI', 114 | 'sq-AL', 'sr-BA', 'sr-ME', 'sr-RS', 'sv-SE', 'sw-KE', 'ta-IN', 'ta-LK', 'te-IN', 'ti-ER', 'ti-ET', 'tg-TJ', 'th-TH', 115 | 'tk-TM', 'tl-PH', 'tr-TR', 'uk-UA', 'ur-PK', 'uz-UZ', 'vi-VN', 'zh-CN', 'zh-HK', 'zh-TW' 116 | ``` 117 | Weather Entity translations are handled by Home Assistant and configured under the User -> Language setting. 118 | 119 | [Back to top](#top) -------------------------------------------------------------------------------- /TWC Icon Codes & Icon Images v2.0.ods: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaydeethree/Home-Assistant-weatherdotcom/a4f22f8dd22ec0a904c26d18f9d0ea66702e7929/TWC Icon Codes & Icon Images v2.0.ods -------------------------------------------------------------------------------- /TWC_Icon_Map.ods: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaydeethree/Home-Assistant-weatherdotcom/a4f22f8dd22ec0a904c26d18f9d0ea66702e7929/TWC_Icon_Map.ods -------------------------------------------------------------------------------- /custom_components/weatherdotcom/__init__.py: -------------------------------------------------------------------------------- 1 | """The weather.com component.""" 2 | import logging 3 | import os.path 4 | from typing import Final 5 | from homeassistant.config_entries import ConfigEntry 6 | from homeassistant.const import ( 7 | CONF_API_KEY, 8 | CONF_LATITUDE, CONF_LONGITUDE, CONF_NAME, Platform 9 | ) 10 | from homeassistant.core import HomeAssistant 11 | from homeassistant.util.unit_system import METRIC_SYSTEM 12 | from homeassistant.util import json 13 | from .coordinator import WeatherUpdateCoordinator, WeatherUpdateCoordinatorConfig 14 | from .const import ( 15 | CONF_LANG, 16 | DOMAIN, 17 | 18 | API_METRIC, 19 | API_IMPERIAL, 20 | API_URL_METRIC, 21 | API_URL_IMPERIAL 22 | ) 23 | 24 | PLATFORMS: Final = [Platform.WEATHER, Platform.SENSOR] 25 | 26 | _LOGGER = logging.getLogger(__name__) 27 | 28 | 29 | async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry): 30 | """Set up the Weather.com component.""" 31 | hass.data.setdefault(DOMAIN, {}) 32 | 33 | if hass.config.units is METRIC_SYSTEM: 34 | unit_system_api = API_URL_METRIC 35 | unit_system = API_METRIC 36 | else: 37 | unit_system_api = API_URL_IMPERIAL 38 | unit_system = API_IMPERIAL 39 | 40 | config = WeatherUpdateCoordinatorConfig( 41 | api_key=entry.data[CONF_API_KEY], 42 | location_name=entry.data[CONF_NAME], 43 | unit_system_api=unit_system_api, 44 | unit_system=unit_system, 45 | lang=entry.data[CONF_LANG], 46 | latitude=entry.data[CONF_LATITUDE], 47 | longitude=entry.data[CONF_LONGITUDE], 48 | tranfile='', 49 | ) 50 | 51 | tfiledir = f'{hass.config.config_dir}/custom_components/{DOMAIN}/weather_translations/' 52 | tfilename = config.lang.split('-', 1)[0] 53 | 54 | if os.path.isfile(f'{tfiledir}{tfilename}.json'): 55 | config.tranfile = await hass.async_add_executor_job(json.load_json, f'{tfiledir}{tfilename}.json') 56 | else: 57 | config.tranfile = await hass.async_add_executor_job(json.load_json, f'{tfiledir}en.json') 58 | _LOGGER.warning(f'Sensor translation file {tfilename}.json does not exist. Defaulting to en-US.') 59 | 60 | weathercoordinator = WeatherUpdateCoordinator(hass, config) 61 | await weathercoordinator.async_config_entry_first_refresh() 62 | 63 | entry.async_on_unload(entry.add_update_listener(_async_update_listener)) 64 | hass.data[DOMAIN][entry.entry_id] = weathercoordinator 65 | 66 | await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS) 67 | 68 | return True 69 | 70 | 71 | async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: 72 | """Unload a config entry.""" 73 | unload_ok = await hass.config_entries.async_unload_platforms(entry, PLATFORMS) 74 | if unload_ok: 75 | hass.data[DOMAIN].pop(entry.entry_id) 76 | 77 | return unload_ok 78 | 79 | 80 | async def _async_update_listener(hass: HomeAssistant, entry: ConfigEntry) -> None: 81 | """Update listener.""" 82 | await hass.config_entries.async_reload(entry.entry_id) 83 | -------------------------------------------------------------------------------- /custom_components/weatherdotcom/config_flow.py: -------------------------------------------------------------------------------- 1 | """Config Flow to configure Weather.com Integration.""" 2 | from __future__ import annotations 3 | import logging 4 | from http import HTTPStatus 5 | import async_timeout 6 | import voluptuous as vol 7 | from homeassistant import config_entries 8 | import homeassistant.helpers.config_validation as cv 9 | from homeassistant.const import CONF_API_KEY, CONF_LATITUDE, CONF_LONGITUDE, CONF_NAME 10 | from homeassistant.core import callback 11 | from homeassistant.helpers.aiohttp_client import async_create_clientsession 12 | from .coordinator import InvalidApiKey 13 | 14 | from .const import ( 15 | DOMAIN, 16 | 17 | CONF_LANG, 18 | DEFAULT_LANG, 19 | LANG_CODES 20 | ) 21 | 22 | _LOGGER = logging.getLogger(__name__) 23 | 24 | 25 | class WeatherFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): 26 | """Handle a Weather.com config flow.""" 27 | 28 | VERSION = 1 29 | 30 | async def async_step_user(self, user_input=None): 31 | """Handle a flow initiated by the user.""" 32 | if user_input is None: 33 | return await self._show_setup_form(user_input) 34 | 35 | errors = {} 36 | session = async_create_clientsession(self.hass) 37 | 38 | api_key = user_input[CONF_API_KEY] 39 | latitude = user_input[CONF_LATITUDE] 40 | longitude = user_input[CONF_LONGITUDE] 41 | location_name = user_input[CONF_NAME] 42 | headers = { 43 | 'Accept-Encoding': 'gzip', 44 | "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36" 45 | } 46 | try: 47 | if user_input[CONF_API_KEY] is None or user_input[CONF_API_KEY] == "": 48 | errors["base"] = "invalid_api_key" 49 | raise InvalidApiKey 50 | 51 | async with async_timeout.timeout(10): 52 | # Use English and US units for the initial test API call. User-supplied units and language will be used for 53 | # the created entities. 54 | url = f'https://api.weather.com/v3/wx/observations/current?geocode={latitude},{longitude}&format=json&units=e' \ 55 | f'&apiKey={api_key}&language=en-US' 56 | response = await session.get(url, headers=headers) 57 | # _LOGGER.debug(response.status) 58 | if response.status != HTTPStatus.OK: 59 | # 401 status is most likely bad api_key or api usage limit exceeded 60 | if response.status == HTTPStatus.UNAUTHORIZED: 61 | _LOGGER.error( 62 | "Weather.com config responded with HTTP error %s: %s", 63 | response.status, 64 | response.reason, 65 | ) 66 | raise InvalidApiKey 67 | else: 68 | _LOGGER.error( 69 | "Weather.com config responded with HTTP error %s: %s", 70 | response.status, 71 | response.reason, 72 | ) 73 | raise Exception 74 | 75 | except InvalidApiKey: 76 | errors["base"] = "invalid_api_key" 77 | return await self._show_setup_form(errors=errors) 78 | except Exception: # pylint: disable=broad-except 79 | _LOGGER.exception("Unexpected exception") 80 | errors["base"] = "unknown_error" 81 | return await self._show_setup_form(errors=errors) 82 | 83 | if not errors: 84 | result_current = await response.json(content_type=None) 85 | 86 | unique_id = str(f"{DOMAIN}-{location_name}") 87 | await self.async_set_unique_id(unique_id) 88 | self._abort_if_unique_id_configured() 89 | 90 | return self.async_create_entry( 91 | title=location_name, 92 | data={ 93 | CONF_API_KEY: user_input[CONF_API_KEY], 94 | CONF_LATITUDE: latitude, 95 | CONF_LONGITUDE: longitude, 96 | CONF_NAME: location_name, 97 | CONF_LANG: user_input[CONF_LANG] 98 | }, 99 | ) 100 | 101 | async def _show_setup_form(self, errors=None): 102 | """Show the setup form to the user.""" 103 | return self.async_show_form( 104 | step_id="user", 105 | data_schema=vol.Schema( 106 | { 107 | vol.Required(CONF_API_KEY): str, 108 | vol.Required( 109 | CONF_LATITUDE, default=self.hass.config.latitude 110 | ): cv.latitude, 111 | vol.Required( 112 | CONF_LONGITUDE, default=self.hass.config.longitude 113 | ): cv.longitude, 114 | vol.Required( 115 | CONF_NAME, default=self.hass.config.location_name 116 | ): str, 117 | vol.Required( 118 | CONF_LANG, default=DEFAULT_LANG 119 | ): vol.All(vol.In(LANG_CODES)), 120 | } 121 | ), 122 | errors=errors or {}, 123 | ) 124 | -------------------------------------------------------------------------------- /custom_components/weatherdotcom/const.py: -------------------------------------------------------------------------------- 1 | """ 2 | Support for Weather.com weather service. 3 | For more details about this platform, please refer to the documentation at 4 | https://github.com/jaydeethree/Home-Assistant-weatherdotcom 5 | """ 6 | from typing import Final 7 | 8 | from homeassistant.components.weather import ( 9 | ATTR_CONDITION_CLEAR_NIGHT, 10 | ATTR_CONDITION_CLOUDY, 11 | ATTR_CONDITION_EXCEPTIONAL, 12 | ATTR_CONDITION_FOG, 13 | ATTR_CONDITION_HAIL, 14 | ATTR_CONDITION_LIGHTNING, 15 | ATTR_CONDITION_LIGHTNING_RAINY, 16 | ATTR_CONDITION_PARTLYCLOUDY, 17 | ATTR_CONDITION_POURING, 18 | ATTR_CONDITION_RAINY, 19 | ATTR_CONDITION_SNOWY, 20 | ATTR_CONDITION_SNOWY_RAINY, 21 | ATTR_CONDITION_SUNNY, 22 | ATTR_CONDITION_WINDY, 23 | ATTR_CONDITION_WINDY_VARIANT 24 | ) 25 | 26 | DOMAIN = 'weatherdotcom' 27 | # MANUFACTURER = 'WeatherUnderground' 28 | # NAME = 'WeatherUnderground' 29 | CONF_ATTRIBUTION = 'Data provided by the Weather.com weather service' 30 | CONF_LANG = 'lang' 31 | 32 | ENTRY_WEATHER_COORDINATOR = 'weather_coordinator' 33 | 34 | # Language Supported Codes 35 | LANG_CODES = [ 36 | 'am-ET', 'ar-AE', 'az-AZ', 'bg-BG', 'bn-BD', 'bn-IN', 'bs-BA', 'ca-ES', 'cs-CZ', 'da-DK', 'de-DE', 'el-GR', 'en-GB', 37 | 'en-IN', 'en-US', 'es-AR', 'es-ES', 'es-LA', 'es-MX', 'es-UN', 'es-US', 'et-EE', 'fa-IR', 'fi-FI', 'fr-CA', 'fr-FR', 38 | 'gu-IN', 'he-IL', 'hi-IN', 'hr-HR', 'hu-HU', 'in-ID', 'is-IS', 'it-IT', 'iw-IL', 'ja-JP', 'jv-ID', 'ka-GE', 'kk-KZ', 39 | 'km-KH', 'kn-IN', 'ko-KR', 'lo-LA', 'lt-LT', 'lv-LV', 'mk-MK', 'mn-MN', 'mr-IN', 'ms-MY', 'my-MM', 'ne-IN', 'ne-NP', 40 | 'nl-NL', 'no-NO', 'om-ET', 'pa-IN', 'pa-PK', 'pl-PL', 'pt-BR', 'pt-PT', 'ro-RO', 'ru-RU', 'si-LK', 'sk-SK', 'sl-SI', 41 | 'sq-AL', 'sr-BA', 'sr-ME', 'sr-RS', 'sv-SE', 'sw-KE', 'ta-IN', 'ta-LK', 'te-IN', 'ti-ER', 'ti-ET', 'tg-TJ', 'th-TH', 42 | 'tk-TM', 'tl-PH', 'tr-TR', 'uk-UA', 'ur-PK', 'uz-UZ', 'vi-VN', 'zh-CN', 'zh-HK', 'zh-TW' 43 | ] 44 | # Only the TWC 5-day forecast API handles the translation of phrases for values of the following data. 45 | # However, when formatting a request URL a valid language must be passed along. 46 | # dayOfWeek,daypartName,moonPhase,qualifierPhrase,uvDescription,windDirectionCardinal,windPhrase,wxPhraseLong 47 | 48 | ICON_CONDITION_MAP: Final[dict[str, list[int]]] = { 49 | ATTR_CONDITION_CLEAR_NIGHT: [31, 33], 50 | ATTR_CONDITION_CLOUDY: [26, 27, 28], 51 | ATTR_CONDITION_EXCEPTIONAL: [0, 1, 2, 19, 22, 36], # 44 is Not Available (N/A) 52 | ATTR_CONDITION_FOG: [20, 21], 53 | ATTR_CONDITION_HAIL: [17], 54 | ATTR_CONDITION_LIGHTNING: [], 55 | ATTR_CONDITION_LIGHTNING_RAINY: [3, 4, 37, 38, 47], 56 | ATTR_CONDITION_PARTLYCLOUDY: [29, 30], 57 | ATTR_CONDITION_POURING: [40], 58 | ATTR_CONDITION_RAINY: [9, 11, 12, 39, 45], 59 | ATTR_CONDITION_SNOWY: [13, 14, 15, 16, 41, 42, 43, 46], 60 | ATTR_CONDITION_SNOWY_RAINY: [5, 6, 7, 8, 10, 18, 25, 35], 61 | ATTR_CONDITION_SUNNY: [32, 34], 62 | ATTR_CONDITION_WINDY: [23, 24], 63 | ATTR_CONDITION_WINDY_VARIANT: [] 64 | } 65 | 66 | DEFAULT_LANG = 'en-US' 67 | API_IMPERIAL: Final = "imperial" 68 | API_METRIC: Final = "metric" 69 | API_URL_IMPERIAL: Final = "e" 70 | API_URL_METRIC: Final = "m" 71 | 72 | TEMPUNIT = 0 73 | LENGTHUNIT = 1 74 | SPEEDUNIT = 3 75 | PRESSUREUNIT = 4 76 | 77 | RESULTS_CURRENT = 'current' 78 | RESULTS_FORECAST_DAILY = 'daily' 79 | RESULTS_FORECAST_HOURLY = 'hourly' 80 | 81 | FIELD_CLOUD_COVER = 'cloudCover' 82 | FIELD_DAYPART = 'daypart' 83 | FIELD_DESCRIPTION = 'wxPhraseLong' 84 | FIELD_DEW_POINT = 'temperatureDewPoint' 85 | FIELD_FEELS_LIKE = 'temperatureFeelsLike' 86 | FIELD_HUMIDITY = 'relativeHumidity' 87 | FIELD_ICONCODE = 'iconCode' 88 | FIELD_PRECIPCHANCE = 'precipChance' 89 | FIELD_PRESSURE = 'pressureAltimeter' 90 | FIELD_QPF = 'qpf' 91 | FIELD_TEMPERATUREMAX = 'temperatureMax' 92 | FIELD_TEMPERATUREMIN = 'temperatureMin' 93 | FIELD_TEMP = 'temperature' 94 | FIELD_UV_INDEX = 'uvIndex' 95 | FIELD_VALIDTIMEUTC = 'validTimeUtc' 96 | FIELD_VISIBILITY = 'visibility' 97 | FIELD_WINDDIRECTIONCARDINAL = 'windDirectionCardinal' 98 | FIELD_WINDDIR = 'windDirection' 99 | FIELD_WINDGUST = 'windGust' 100 | FIELD_WINDSPEED = 'windSpeed' 101 | 102 | ICON_THERMOMETER = 'mdi:thermometer' 103 | ICON_UMBRELLA = 'mdi:umbrella' 104 | ICON_WIND = 'mdi:weather-windy' -------------------------------------------------------------------------------- /custom_components/weatherdotcom/coordinator.py: -------------------------------------------------------------------------------- 1 | """The Weather.com data coordinator.""" 2 | 3 | from __future__ import annotations 4 | 5 | import asyncio 6 | from dataclasses import dataclass 7 | from datetime import datetime, timedelta 8 | import logging 9 | from typing import Any 10 | 11 | import aiohttp 12 | import async_timeout 13 | 14 | from homeassistant.core import HomeAssistant 15 | from homeassistant.exceptions import HomeAssistantError 16 | from homeassistant.helpers.aiohttp_client import async_get_clientsession 17 | from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo 18 | from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed 19 | from homeassistant.util.unit_system import METRIC_SYSTEM 20 | from homeassistant.const import ( 21 | PERCENTAGE, UnitOfPressure, UnitOfTemperature, UnitOfLength, UnitOfSpeed, UnitOfVolumetricFlux) 22 | from .const import ( 23 | DOMAIN, 24 | ICON_CONDITION_MAP, 25 | FIELD_DAYPART, 26 | FIELD_HUMIDITY, 27 | FIELD_TEMPERATUREMAX, 28 | FIELD_TEMPERATUREMIN, 29 | FIELD_VALIDTIMEUTC, 30 | FIELD_WINDDIR, 31 | FIELD_WINDGUST, 32 | FIELD_WINDSPEED, 33 | RESULTS_CURRENT, 34 | RESULTS_FORECAST_DAILY, 35 | RESULTS_FORECAST_HOURLY 36 | ) 37 | 38 | _LOGGER = logging.getLogger(__name__) 39 | 40 | _RESOURCESHARED = '&format=json&apiKey={apiKey}&units={units}' 41 | _RESOURCECURRENT = ('https://api.weather.com/v3/wx/observations/current' 42 | '?geocode={latitude},{longitude}') 43 | _RESOURCEFORECASTDAILY = ('https://api.weather.com/v3/wx/forecast/daily/15day' 44 | '?geocode={latitude},{longitude}') 45 | _RESOURCEFORECASTHOURLY = ('https://api.weather.com/v3/wx/forecast/hourly/15day' 46 | '?geocode={latitude},{longitude}') 47 | 48 | MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=20) 49 | 50 | 51 | @dataclass 52 | class WeatherUpdateCoordinatorConfig: 53 | """Class representing coordinator configuration.""" 54 | 55 | api_key: str 56 | location_name: str 57 | unit_system_api: str 58 | unit_system: str 59 | lang: str 60 | latitude: str 61 | longitude: str 62 | update_interval = MIN_TIME_BETWEEN_UPDATES 63 | tranfile: str 64 | 65 | 66 | class WeatherUpdateCoordinator(DataUpdateCoordinator): 67 | """The Weather.com update coordinator.""" 68 | 69 | icon_condition_map = ICON_CONDITION_MAP 70 | 71 | def __init__( 72 | self, hass: HomeAssistant, config: WeatherUpdateCoordinatorConfig 73 | ) -> None: 74 | """Initialize.""" 75 | self._hass = hass 76 | self._api_key = config.api_key 77 | self._location_name = config.location_name 78 | self._unit_system_api = config.unit_system_api 79 | self.unit_system = config.unit_system 80 | self._lang = config.lang 81 | self._latitude = config.latitude 82 | self._longitude = config.longitude 83 | self.data = None 84 | self._session = async_get_clientsession(self._hass) 85 | self._tranfile = config.tranfile 86 | 87 | self.device_info = _get_device_info(self._location_name) 88 | 89 | if self._unit_system_api == 'm': 90 | self.units_of_measurement = (UnitOfTemperature.CELSIUS, UnitOfLength.MILLIMETERS, UnitOfLength.METERS, 91 | UnitOfSpeed.KILOMETERS_PER_HOUR, UnitOfPressure.MBAR, 92 | UnitOfVolumetricFlux.MILLIMETERS_PER_HOUR, PERCENTAGE) 93 | self.visibility_unit = UnitOfLength.KILOMETERS 94 | else: 95 | self.units_of_measurement = (UnitOfTemperature.FAHRENHEIT, UnitOfLength.INCHES, UnitOfLength.FEET, 96 | UnitOfSpeed.MILES_PER_HOUR, UnitOfPressure.INHG, 97 | UnitOfVolumetricFlux.INCHES_PER_HOUR, PERCENTAGE) 98 | self.visibility_unit = UnitOfLength.MILES 99 | 100 | super().__init__( 101 | hass, 102 | _LOGGER, 103 | name="WeatherUpdateCoordinator", 104 | update_interval=config.update_interval, 105 | ) 106 | 107 | @property 108 | def is_metric(self): 109 | """Determine if this is the metric unit system.""" 110 | return self._hass.config.units is METRIC_SYSTEM 111 | 112 | @property 113 | def location_name(self): 114 | """Return the location used for data.""" 115 | return self._location_name 116 | 117 | async def _async_update_data(self) -> dict[str, Any]: 118 | return await self.get_weather() 119 | 120 | async def get_weather(self): 121 | """Get weather data.""" 122 | headers = { 123 | 'Accept-Encoding': 'gzip', 124 | "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36" 125 | } 126 | current_error = False 127 | daily_error = False 128 | hourly_error = False 129 | result_current = None 130 | result_forecast_daily = None 131 | result_forecast_hourly = None 132 | 133 | for attempt in range(2): 134 | try: 135 | async with async_timeout.timeout(10): 136 | url = self._build_url(_RESOURCECURRENT) 137 | response = await self._session.get(url, headers=headers) 138 | result_current = await response.json(content_type=None) 139 | if result_current is None: 140 | raise ValueError('No weather data found') 141 | self._check_errors(url, result_current) 142 | break 143 | except (ValueError, asyncio.TimeoutError, aiohttp.ClientError) as err: 144 | if attempt == 1: 145 | _LOGGER.error('Error getting current weather. Exception: %s. Details: %s', type(err), err) 146 | current_error = True 147 | else: 148 | _LOGGER.error('Error getting current weather, will retry. Exception: %s. Details: %s', type(err), err) 149 | await asyncio.sleep(5) 150 | 151 | for attempt in range(2): 152 | try: 153 | async with async_timeout.timeout(10): 154 | url = self._build_url(_RESOURCEFORECASTDAILY) 155 | response = await self._session.get(url, headers=headers) 156 | result_forecast_daily = await response.json(content_type=None) 157 | if result_forecast_daily is None: 158 | raise ValueError('No weather data found') 159 | self._check_errors(url, result_forecast_daily) 160 | break 161 | except (ValueError, asyncio.TimeoutError, aiohttp.ClientError) as err: 162 | if attempt == 1: 163 | _LOGGER.error('Error getting daily weather. Exception: %s. Details: %s', type(err), err) 164 | daily_error = True 165 | else: 166 | _LOGGER.error('Error getting daily weather, will retry. Exception: %s. Details: %s', type(err), err) 167 | await asyncio.sleep(5) 168 | 169 | for attempt in range(2): 170 | try: 171 | async with async_timeout.timeout(10): 172 | url = self._build_url(_RESOURCEFORECASTHOURLY) 173 | response = await self._session.get(url, headers=headers) 174 | result_forecast_hourly = await response.json(content_type=None) 175 | if result_forecast_hourly is None: 176 | raise ValueError('No weather data found') 177 | self._check_errors(url, result_forecast_hourly) 178 | break 179 | except (ValueError, asyncio.TimeoutError, aiohttp.ClientError) as err: 180 | if attempt == 1: 181 | _LOGGER.error('Error getting hourly weather. Exception: %s. Details: %s', type(err), err) 182 | hourly_error = True 183 | else: 184 | _LOGGER.error('Error getting hourly weather, will retry. Exception: %s. Details: %s', type(err), err) 185 | await asyncio.sleep(5) 186 | 187 | if current_error and daily_error and hourly_error: 188 | raise UpdateFailed('Failed to get weather data') 189 | else: 190 | result = { 191 | RESULTS_CURRENT: result_current, 192 | RESULTS_FORECAST_DAILY: result_forecast_daily, 193 | RESULTS_FORECAST_HOURLY: result_forecast_hourly, 194 | } 195 | self.data = result 196 | return result 197 | 198 | def _build_url(self, baseurl): 199 | baseurl += '&language={language}' 200 | baseurl += _RESOURCESHARED 201 | 202 | return baseurl.format( 203 | apiKey=self._api_key, 204 | language=self._lang, 205 | latitude=self._latitude, 206 | longitude=self._longitude, 207 | units=self._unit_system_api 208 | ) 209 | 210 | def _check_errors(self, url: str, response: dict): 211 | # _LOGGER.debug(f'Checking errors from {url} in {response}') 212 | if 'errors' not in response: 213 | return 214 | if errors := response['errors']: 215 | raise ValueError( 216 | f'Error from {url}: ' 217 | '; '.join([ 218 | e['message'] 219 | for e in errors 220 | ]) 221 | ) 222 | 223 | def get_current(self, field): 224 | if self.data[RESULTS_CURRENT] == None: 225 | return None 226 | return self.data[RESULTS_CURRENT][field] 227 | 228 | def get_forecast_daily(self, field, period=0): 229 | try: 230 | if field in [ 231 | FIELD_TEMPERATUREMAX, 232 | FIELD_TEMPERATUREMIN, 233 | FIELD_VALIDTIMEUTC, 234 | ]: 235 | # Those fields exist per-day, rather than per dayPart, so the period is halved 236 | return self.data[RESULTS_FORECAST_DAILY][field][int(period / 2)] 237 | return self.data[RESULTS_FORECAST_DAILY][FIELD_DAYPART][0][field][period] 238 | except IndexError: 239 | return None 240 | 241 | def get_forecast_hourly(self, field, hour): 242 | try: 243 | return self.data[RESULTS_FORECAST_HOURLY][field][hour] 244 | except IndexError: 245 | return None 246 | 247 | @classmethod 248 | def _iconcode_to_condition(cls, icon_code): 249 | for condition, iconcodes in cls.icon_condition_map.items(): 250 | if icon_code in iconcodes: 251 | return condition 252 | if icon_code != None: 253 | _LOGGER.warning(f'Unmapped icon code from Weather.com API: {icon_code}') 254 | return None 255 | 256 | @classmethod 257 | def _format_timestamp(cls, timestamp_secs): 258 | return datetime.utcfromtimestamp(timestamp_secs).isoformat('T') + 'Z' 259 | 260 | 261 | class InvalidApiKey(HomeAssistantError): 262 | """Error to indicate there is an invalid api key.""" 263 | 264 | 265 | def _get_device_info(name: str) -> DeviceInfo: 266 | """Get device info.""" 267 | return DeviceInfo( 268 | entry_type=DeviceEntryType.SERVICE, 269 | identifiers={(DOMAIN, name)}, 270 | manufacturer="Weather.com", 271 | name=name, 272 | ) 273 | -------------------------------------------------------------------------------- /custom_components/weatherdotcom/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "domain": "weatherdotcom", 3 | "name": "Weather.com", 4 | "codeowners": ["@jaydeethree"], 5 | "config_flow": true, 6 | "dependencies": [], 7 | "documentation": "https://github.com/jaydeethree/Home-Assistant-weatherdotcom", 8 | "iot_class": "cloud_polling", 9 | "issue_tracker": "https://github.com/jaydeethree/Home-Assistant-weatherdotcom/issues/", 10 | "requirements": [], 11 | "version": "1.2.1.1" 12 | } 13 | -------------------------------------------------------------------------------- /custom_components/weatherdotcom/sensor.py: -------------------------------------------------------------------------------- 1 | """ 2 | Sensor Support for Weather.com weather service. 3 | For more details about this platform, please refer to the documentation at 4 | https://github.com/jaydeethree/Home-Assistant-weatherdotcom 5 | """ 6 | from __future__ import annotations 7 | 8 | import logging 9 | 10 | from homeassistant.components.sensor import SensorEntity 11 | from homeassistant.config_entries import ConfigEntry 12 | from homeassistant.core import HomeAssistant, callback 13 | from homeassistant.helpers.entity import generate_entity_id 14 | from homeassistant.helpers.entity_platform import AddEntitiesCallback 15 | from homeassistant.helpers.update_coordinator import CoordinatorEntity 16 | from homeassistant.util.unit_system import METRIC_SYSTEM 17 | 18 | from .coordinator import WeatherUpdateCoordinator 19 | 20 | from .const import ( 21 | CONF_ATTRIBUTION, 22 | DOMAIN, 23 | FIELD_DAYPART, 24 | FIELD_WINDGUST, 25 | FIELD_WINDSPEED, 26 | RESULTS_CURRENT, 27 | RESULTS_FORECAST_DAILY, 28 | RESULTS_FORECAST_HOURLY 29 | ) 30 | from .weather_current_conditions_sensors import * 31 | 32 | _LOGGER = logging.getLogger(__name__) 33 | 34 | # Declaration of supported Weather.com observation/condition sensors 35 | SENSOR_DESCRIPTIONS: tuple[WeatherSensorEntityDescription, ...] = ( 36 | current_condition_sensor_descriptions 37 | ) 38 | 39 | 40 | async def async_setup_entry( 41 | hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback 42 | ) -> None: 43 | """Add Weather.com entities from a config_entry.""" 44 | coordinator: WeatherUpdateCoordinator = hass.data[DOMAIN][entry.entry_id] 45 | sensors = [ 46 | WeatherSensor(coordinator, description) for description in SENSOR_DESCRIPTIONS 47 | ] 48 | 49 | async_add_entities(sensors) 50 | 51 | 52 | class WeatherSensor(CoordinatorEntity, SensorEntity): 53 | """Implementing the Weather.com sensor.""" 54 | _attr_has_entity_name = True 55 | _attr_attribution = CONF_ATTRIBUTION 56 | entity_description: WeatherSensorEntityDescription 57 | 58 | def __init__( 59 | self, 60 | coordinator: WeatherUpdateCoordinator, 61 | description: WeatherSensorEntityDescription, 62 | ): 63 | super().__init__(coordinator) 64 | self.entity_description = description 65 | 66 | entity_id_format = description.key + ".{}" 67 | 68 | self._attr_unique_id = f"{self.coordinator.location_name},{description.key}".lower() 69 | self.entity_id = generate_entity_id( 70 | entity_id_format, f"{self.coordinator.location_name}_{description.name}", hass=coordinator.hass 71 | ) 72 | self._unit_system = coordinator.unit_system 73 | self._attr_device_info = coordinator.device_info 74 | if description.key == 'latitude': 75 | self._sensor_data = coordinator._latitude 76 | elif description.key == 'longitude': 77 | self._sensor_data = coordinator._longitude 78 | else: 79 | self._sensor_data = _get_sensor_data( 80 | coordinator.data, description.key, self._unit_system) 81 | self._attr_native_unit_of_measurement = self.entity_description.unit_fn( 82 | self.coordinator.hass.config.units is METRIC_SYSTEM) 83 | 84 | @property 85 | def available(self) -> bool: 86 | """Return if weather data is available.""" 87 | return self.coordinator.data is not None 88 | 89 | @property 90 | def name(self): 91 | """Return the name of the sensor.""" 92 | if self.entity_description.key in self.coordinator._tranfile.keys() or \ 93 | self.entity_description.key in self.coordinator._tranfile[FIELD_DAYPART].keys(): 94 | return self.coordinator._tranfile[self.entity_description.key] 95 | 96 | return self.entity_description.name 97 | 98 | @property 99 | def native_value(self) -> StateType: 100 | """Return the state.""" 101 | return self.entity_description.value_fn(self._sensor_data, self._unit_system) 102 | 103 | @property 104 | def extra_state_attributes(self) -> dict[str, Any]: 105 | """Return the state attributes.""" 106 | return self.entity_description.attr_fn(self.coordinator.data) 107 | 108 | @callback 109 | def _handle_coordinator_update(self) -> None: 110 | """Handle data update.""" 111 | if self.entity_description.key == 'latitude': 112 | self._sensor_data = self.coordinator._latitude 113 | elif self.entity_description.key == 'longitude': 114 | self._sensor_data = self.coordinator._longitude 115 | else: 116 | self._sensor_data = _get_sensor_data( 117 | self.coordinator.data, self.entity_description.key, self._unit_system 118 | ) 119 | self.async_write_ha_state() 120 | 121 | 122 | def _get_sensor_data( 123 | sensors: dict[str, Any], 124 | kind: str, 125 | unit_system: str 126 | ) -> Any: 127 | """Get sensor data.""" 128 | # windGust is often null. When it is, set it to windSpeed instead. 129 | if sensors[RESULTS_CURRENT] == None: 130 | return None 131 | if kind == FIELD_WINDGUST and sensors[RESULTS_CURRENT][kind] == None: 132 | return sensors[RESULTS_CURRENT][FIELD_WINDSPEED] 133 | else: 134 | return sensors[RESULTS_CURRENT][kind] -------------------------------------------------------------------------------- /custom_components/weatherdotcom/strings.json: -------------------------------------------------------------------------------- 1 | { 2 | "config": { 3 | "step": { 4 | "user": { 5 | "data": { 6 | "api_key": "[%key:common::config_flow::data::api_key%]", 7 | "name": "Name of the integration", 8 | "lang": "Language", 9 | "latitude": "Latitude", 10 | "longitude": "Longitude" 11 | }, 12 | "description": "Set up Weather.com integration. To generate an API key, view the source of https://www.wunderground.com/ and search for apiKey" 13 | } 14 | }, 15 | "error": { 16 | "invalid_api_key": "[%key:common::config_flow::error::invalid_api_key%]", 17 | "unknown_error": "Unknown Error" 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /custom_components/weatherdotcom/translations/ar.json: -------------------------------------------------------------------------------- 1 | { 2 | "config": { 3 | "error": { 4 | "invalid_api_key": "مفتاح API غير صالح", 5 | "unknown_error": "خطأ غير معروف" 6 | }, 7 | "step": { 8 | "user": { 9 | "data": { 10 | "api_key": "مفتاح API", 11 | "name": "اسم", 12 | "lang": "لغة", 13 | "latitude": "خط العرض", 14 | "longitude": "خط الطول" 15 | }, 16 | "description": "قم بإعداد تكامل Weather.com. " 17 | } 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/translations/de.json: -------------------------------------------------------------------------------- 1 | { 2 | "config": { 3 | "error": { 4 | "invalid_api_key": "Ungültiger API-Schlüssel", 5 | "unknown_error": "Unbekannter Fehler" 6 | }, 7 | "step": { 8 | "user": { 9 | "data": { 10 | "api_key": "API-Schlüssel", 11 | "name": "Name", 12 | "lang": "Sprache", 13 | "latitude": "Breite", 14 | "longitude": "Längengrad" 15 | }, 16 | "description": "Richten Sie die Weather.com-Integration ein. " 17 | } 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/translations/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "config": { 3 | "error": { 4 | "invalid_api_key": "Invalid API key", 5 | "unknown_error": "Unknown Error" 6 | }, 7 | "step": { 8 | "user": { 9 | "data": { 10 | "api_key": "API Key", 11 | "name": "Name", 12 | "lang": "Language", 13 | "latitude": "Latitude", 14 | "longitude": "Longitude" 15 | }, 16 | "description": "Set up Weather.com integration. To generate an API key, view the source of https://www.wunderground.com/ and search for apiKey" 17 | } 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /custom_components/weatherdotcom/translations/es.json: -------------------------------------------------------------------------------- 1 | { 2 | "config": { 3 | "error": { 4 | "invalid_api_key": "Clave de API no válida", 5 | "unknown_error": "Error desconocido" 6 | }, 7 | "step": { 8 | "user": { 9 | "data": { 10 | "api_key": "Clave API", 11 | "name": "Nombre", 12 | "lang": "Idioma", 13 | "latitude": "Latitud", 14 | "longitude": "Longitud" 15 | }, 16 | "description": "Configure la integración de Weather.com. " 17 | } 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/translations/fr.json: -------------------------------------------------------------------------------- 1 | { 2 | "config": { 3 | "error": { 4 | "invalid_api_key": "Clé API invalide", 5 | "unknown_error": "Erreur inconnue" 6 | }, 7 | "step": { 8 | "user": { 9 | "data": { 10 | "api_key": "clé API", 11 | "name": "Nom", 12 | "lang": "Langue", 13 | "latitude": "Latitude", 14 | "longitude": "Longitude" 15 | }, 16 | "description": "Configurez l'intégration de Weather.com. " 17 | } 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/translations/it.json: -------------------------------------------------------------------------------- 1 | { 2 | "config": { 3 | "error": { 4 | "invalid_api_key": "Chiave API non valida", 5 | "unknown_error": "Errore sconosciuto" 6 | }, 7 | "step": { 8 | "user": { 9 | "data": { 10 | "api_key": "Chiave dell'API", 11 | "name": "Nome", 12 | "lang": "Lingua", 13 | "latitude": "Latitudine", 14 | "longitude": "Longitudine" 15 | }, 16 | "description": "Configura l'integrazione Weather.com. " 17 | } 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/translations/ja.json: -------------------------------------------------------------------------------- 1 | { 2 | "config": { 3 | "error": { 4 | "invalid_api_key": "無効な API キー", 5 | "unknown_error": "不明なエラー" 6 | }, 7 | "step": { 8 | "user": { 9 | "data": { 10 | "api_key": "APIキー", 11 | "name": "名前", 12 | "lang": "言語", 13 | "latitude": "緯度", 14 | "longitude": "経度" 15 | }, 16 | "description": "Weather.com 統合をセットアップします。 " 17 | } 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/translations/pt.json: -------------------------------------------------------------------------------- 1 | { 2 | "config": { 3 | "error": { 4 | "invalid_api_key": "Chve de API invalida", 5 | "unknown_error": "Erro Desconhecido" 6 | }, 7 | "step": { 8 | "user": { 9 | "data": { 10 | "api_key": "Chave da API", 11 | "name": "Nome", 12 | "lang": "Lingua", 13 | "latitude": "Latitude", 14 | "longitude": "Longitude" 15 | }, 16 | "description": "Configurar a integração Weather.com .Para gerar uma chave de api consultador https://www.wunderground.com/ e procurar por apiKey" 17 | } 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /custom_components/weatherdotcom/translations/ru.json: -------------------------------------------------------------------------------- 1 | { 2 | "config": { 3 | "error": { 4 | "invalid_api_key": "Недействительный ключ API", 5 | "unknown_error": "Неизвестная ошибка" 6 | }, 7 | "step": { 8 | "user": { 9 | "data": { 10 | "api_key": "API-ключ", 11 | "name": "Имя", 12 | "lang": "Язык", 13 | "latitude": "Широта", 14 | "longitude": "Долгота" 15 | }, 16 | "description": "Настройте интеграцию с Weather.com. " 17 | } 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/translations/sk.json: -------------------------------------------------------------------------------- 1 | { 2 | "config": { 3 | "error": { 4 | "invalid_api_key": "Chybný API kľúč", 5 | "unknown_error": "Neznáma chyba" 6 | }, 7 | "step": { 8 | "user": { 9 | "data": { 10 | "api_key": "API kľúč", 11 | "name": "Názov", 12 | "lang": "Jazyk", 13 | "latitude": "Zemepisná šírka", 14 | "longitude": "Zemepisná dĺžka" 15 | }, 16 | "description": "Nastavte integráciu Weather.com. Ak chcete vygenerovať kľúč API, pozrite si zdroj https://www.wunderground.com/ a vyhľadajte apiKey" 17 | } 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /custom_components/weatherdotcom/translations/zh.json: -------------------------------------------------------------------------------- 1 | { 2 | "config": { 3 | "error": { 4 | "invalid_api_key": "无效的 API 密钥", 5 | "unknown_error": "未知错误" 6 | }, 7 | "step": { 8 | "user": { 9 | "data": { 10 | "api_key": "API密钥", 11 | "name": "姓名", 12 | "lang": "语言", 13 | "latitude": "纬度", 14 | "longitude": "经度" 15 | }, 16 | "description": "设置 Weather.com 集成。" 17 | } 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather.py: -------------------------------------------------------------------------------- 1 | """ 2 | Support for Weather.com weather service. 3 | For more details about this platform, please refer to the documentation at 4 | https://github.com/jaydeethree/Home-Assistant-weatherdotcom 5 | """ 6 | 7 | from . import WeatherUpdateCoordinator 8 | from homeassistant.config_entries import ConfigEntry 9 | from .const import ( 10 | DOMAIN, 11 | 12 | TEMPUNIT, 13 | LENGTHUNIT, 14 | SPEEDUNIT, 15 | PRESSUREUNIT, 16 | 17 | FIELD_CLOUD_COVER, 18 | FIELD_DEW_POINT, 19 | FIELD_FEELS_LIKE, 20 | FIELD_HUMIDITY, 21 | FIELD_ICONCODE, 22 | FIELD_PRECIPCHANCE, 23 | FIELD_PRESSURE, 24 | FIELD_QPF, 25 | FIELD_TEMP, 26 | FIELD_TEMPERATUREMAX, 27 | FIELD_TEMPERATUREMIN, 28 | FIELD_UV_INDEX, 29 | FIELD_VALIDTIMEUTC, 30 | FIELD_VISIBILITY, 31 | FIELD_WINDDIR, 32 | FIELD_WINDDIRECTIONCARDINAL, 33 | FIELD_WINDGUST, 34 | FIELD_WINDSPEED 35 | ) 36 | 37 | import logging 38 | 39 | from homeassistant.components.weather import ( 40 | ATTR_FORECAST_CLOUD_COVERAGE, 41 | ATTR_FORECAST_CONDITION, 42 | ATTR_FORECAST_HUMIDITY, 43 | ATTR_FORECAST_NATIVE_APPARENT_TEMP, 44 | ATTR_FORECAST_NATIVE_DEW_POINT, 45 | ATTR_FORECAST_NATIVE_WIND_GUST_SPEED, 46 | ATTR_FORECAST_PRECIPITATION, 47 | ATTR_FORECAST_PRECIPITATION_PROBABILITY, 48 | ATTR_FORECAST_TEMP, 49 | ATTR_FORECAST_TEMP_LOW, 50 | ATTR_FORECAST_TIME, 51 | ATTR_FORECAST_UV_INDEX, 52 | ATTR_FORECAST_WIND_BEARING, 53 | ATTR_FORECAST_WIND_SPEED, 54 | SingleCoordinatorWeatherEntity, 55 | WeatherEntityFeature, 56 | Forecast, 57 | DOMAIN as WEATHER_DOMAIN 58 | ) 59 | 60 | from homeassistant.core import HomeAssistant 61 | from homeassistant.helpers.entity import generate_entity_id 62 | from homeassistant.helpers.entity_platform import AddEntitiesCallback 63 | 64 | _LOGGER = logging.getLogger(__name__) 65 | 66 | ENTITY_ID_FORMAT = WEATHER_DOMAIN + ".{}" 67 | 68 | 69 | async def async_setup_entry( 70 | hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback 71 | ) -> None: 72 | """Add weather entity.""" 73 | coordinator: WeatherUpdateCoordinator = hass.data[DOMAIN][entry.entry_id] 74 | async_add_entities([ 75 | WeatherDotComForecast(coordinator), 76 | ]) 77 | 78 | 79 | class WeatherDotCom(SingleCoordinatorWeatherEntity): 80 | 81 | @property 82 | def native_temperature(self) -> float: 83 | """ 84 | Return the platform temperature in native units 85 | (i.e. not converted). 86 | """ 87 | return self.coordinator.get_current(FIELD_TEMP) 88 | 89 | @property 90 | def native_temperature_unit(self) -> str: 91 | """Return the native unit of measurement for temperature.""" 92 | return self.coordinator.units_of_measurement[TEMPUNIT] 93 | 94 | @property 95 | def native_pressure(self) -> float: 96 | """Return the pressure in native units.""" 97 | return self.coordinator.get_current(FIELD_PRESSURE) 98 | 99 | @property 100 | def native_pressure_unit(self) -> str: 101 | """Return the native unit of measurement for pressure.""" 102 | return self.coordinator.units_of_measurement[PRESSUREUNIT] 103 | 104 | @property 105 | def humidity(self) -> float: 106 | """Return the relative humidity in native units.""" 107 | return self.coordinator.get_current(FIELD_HUMIDITY) 108 | 109 | @property 110 | def native_wind_speed(self) -> float: 111 | """Return the wind speed in native units.""" 112 | return self.coordinator.get_current(FIELD_WINDSPEED) 113 | 114 | @property 115 | def native_wind_speed_unit(self) -> str: 116 | """Return the native unit of measurement for wind speed.""" 117 | return self.coordinator.units_of_measurement[SPEEDUNIT] 118 | 119 | @property 120 | def wind_bearing(self) -> str: 121 | """Return the wind bearing.""" 122 | return self.coordinator.get_current(FIELD_WINDDIR) 123 | 124 | @property 125 | def native_visibility(self) -> float: 126 | """Return the visibility in native units.""" 127 | return self.coordinator.get_current(FIELD_VISIBILITY) 128 | 129 | @property 130 | def native_visibility_unit(self) -> str: 131 | """Return the native unit of measurement for visibility.""" 132 | return self.coordinator.visibility_unit 133 | 134 | @property 135 | def native_precipitation_unit(self) -> str: 136 | """ 137 | Return the native unit of measurement for accumulated precipitation. 138 | """ 139 | return self.coordinator.units_of_measurement[LENGTHUNIT] 140 | 141 | @property 142 | def condition(self) -> str: 143 | """Return the current condition.""" 144 | icon = self.coordinator.get_current(FIELD_ICONCODE) 145 | return self.coordinator._iconcode_to_condition(icon) 146 | 147 | @property 148 | def native_apparent_temperature(self) -> float: 149 | """Return the 'feels like' temperature.""" 150 | return self.coordinator.get_current(FIELD_FEELS_LIKE) 151 | 152 | @property 153 | def native_dew_point(self) -> float: 154 | """Return the dew point.""" 155 | return self.coordinator.get_current(FIELD_DEW_POINT) 156 | 157 | @property 158 | def native_wind_gust_speed(self) -> float: 159 | """Return the wind gust speed.""" 160 | return self.coordinator.get_current(FIELD_WINDGUST) 161 | 162 | @property 163 | def uv_index(self) -> float: 164 | """Return the UV index.""" 165 | return self.coordinator.get_current(FIELD_UV_INDEX) 166 | 167 | 168 | class WeatherDotComForecast(WeatherDotCom): 169 | 170 | def __init__( 171 | self, 172 | coordinator: WeatherUpdateCoordinator 173 | ): 174 | super().__init__(coordinator) 175 | """Initialize the sensor.""" 176 | self.entity_id = generate_entity_id( 177 | ENTITY_ID_FORMAT, f"{coordinator.location_name}", hass=coordinator.hass 178 | ) 179 | self._attr_unique_id = f"{coordinator.location_name},{WEATHER_DOMAIN}".lower() 180 | self._attr_device_info = coordinator.device_info 181 | 182 | @property 183 | def supported_features(self) -> WeatherEntityFeature: 184 | return (WeatherEntityFeature.FORECAST_DAILY | WeatherEntityFeature.FORECAST_HOURLY) 185 | 186 | async def async_forecast_daily(self) -> list[Forecast] | None: 187 | return self.forecast_daily 188 | 189 | async def async_forecast_hourly(self) -> list[Forecast] | None: 190 | return self.forecast_hourly 191 | 192 | @property 193 | def forecast_daily(self) -> list[Forecast]: 194 | """Return the daily forecast in native units.""" 195 | days = [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28] 196 | if self.coordinator.get_forecast_daily('temperature', 0) is None: 197 | days[0] += 1 198 | caldaytempmax = FIELD_TEMPERATUREMAX 199 | caldaytempmin = FIELD_TEMPERATUREMIN 200 | 201 | forecast = [] 202 | for period in days: 203 | forecast.append(Forecast({ 204 | ATTR_FORECAST_CLOUD_COVERAGE: 205 | self.coordinator.get_forecast_daily(FIELD_CLOUD_COVER, period), 206 | ATTR_FORECAST_CONDITION: 207 | self.coordinator._iconcode_to_condition( 208 | self.coordinator.get_forecast_daily( 209 | FIELD_ICONCODE, period) 210 | ), 211 | ATTR_FORECAST_HUMIDITY: 212 | self.coordinator.get_forecast_daily(FIELD_HUMIDITY, period), 213 | ATTR_FORECAST_PRECIPITATION: 214 | self.coordinator.get_forecast_daily(FIELD_QPF, period), 215 | ATTR_FORECAST_PRECIPITATION_PROBABILITY: 216 | self.coordinator.get_forecast_daily(FIELD_PRECIPCHANCE, period), 217 | 218 | ATTR_FORECAST_TEMP: 219 | self.coordinator.get_forecast_daily(caldaytempmax, period), 220 | ATTR_FORECAST_TEMP_LOW: 221 | self.coordinator.get_forecast_daily( 222 | caldaytempmin, period), 223 | 224 | ATTR_FORECAST_TIME: 225 | self.coordinator._format_timestamp( 226 | self.coordinator.get_forecast_daily( 227 | FIELD_VALIDTIMEUTC, period)), 228 | ATTR_FORECAST_UV_INDEX: 229 | self.coordinator.get_forecast_daily(FIELD_UV_INDEX, period), 230 | ATTR_FORECAST_WIND_BEARING: 231 | self.coordinator.get_forecast_daily( 232 | FIELD_WINDDIRECTIONCARDINAL, period), 233 | ATTR_FORECAST_WIND_SPEED: self.coordinator.get_forecast_daily( 234 | FIELD_WINDSPEED, period) 235 | })) 236 | return forecast 237 | 238 | @property 239 | def forecast_hourly(self) -> list[Forecast]: 240 | """Return the hourly forecast in native units.""" 241 | 242 | forecast = [] 243 | for hour in range(0, 360, 1): 244 | forecast.append(Forecast({ 245 | ATTR_FORECAST_CLOUD_COVERAGE: 246 | self.coordinator.get_forecast_hourly(FIELD_CLOUD_COVER, hour), 247 | ATTR_FORECAST_CONDITION: 248 | self.coordinator._iconcode_to_condition( 249 | self.coordinator.get_forecast_hourly( 250 | FIELD_ICONCODE, hour) 251 | ), 252 | ATTR_FORECAST_HUMIDITY: 253 | self.coordinator.get_forecast_hourly(FIELD_HUMIDITY, hour), 254 | ATTR_FORECAST_NATIVE_APPARENT_TEMP: 255 | self.coordinator.get_forecast_hourly(FIELD_FEELS_LIKE, hour), 256 | ATTR_FORECAST_NATIVE_DEW_POINT: 257 | self.coordinator.get_forecast_hourly(FIELD_DEW_POINT, hour), 258 | ATTR_FORECAST_NATIVE_WIND_GUST_SPEED: 259 | self.coordinator.get_forecast_hourly(FIELD_WINDGUST, hour), 260 | ATTR_FORECAST_PRECIPITATION: 261 | self.coordinator.get_forecast_hourly(FIELD_QPF, hour), 262 | ATTR_FORECAST_PRECIPITATION_PROBABILITY: 263 | self.coordinator.get_forecast_hourly(FIELD_PRECIPCHANCE, hour), 264 | ATTR_FORECAST_TEMP: 265 | self.coordinator.get_forecast_hourly(FIELD_TEMP, hour), 266 | ATTR_FORECAST_TIME: 267 | self.coordinator._format_timestamp( 268 | self.coordinator.get_forecast_hourly( 269 | FIELD_VALIDTIMEUTC, hour)), 270 | ATTR_FORECAST_UV_INDEX: 271 | self.coordinator.get_forecast_hourly(FIELD_UV_INDEX, hour), 272 | ATTR_FORECAST_WIND_BEARING: 273 | self.coordinator.get_forecast_hourly( 274 | FIELD_WINDDIRECTIONCARDINAL, hour), 275 | ATTR_FORECAST_WIND_SPEED: self.coordinator.get_forecast_hourly( 276 | FIELD_WINDSPEED, hour) 277 | })) 278 | return forecast 279 | -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_current_conditions_sensors.py: -------------------------------------------------------------------------------- 1 | from __future__ import annotations 2 | 3 | from dataclasses import dataclass 4 | from typing import Callable, Any, cast 5 | 6 | from .const import ( 7 | FIELD_DESCRIPTION, 8 | FIELD_DEW_POINT, 9 | FIELD_FEELS_LIKE, 10 | FIELD_HUMIDITY, 11 | FIELD_PRESSURE, 12 | FIELD_TEMP, 13 | FIELD_UV_INDEX, 14 | FIELD_WINDDIR, 15 | FIELD_WINDDIRECTIONCARDINAL, 16 | FIELD_WINDGUST, 17 | FIELD_WINDSPEED, 18 | ICON_THERMOMETER, 19 | ICON_UMBRELLA, 20 | ICON_WIND 21 | ) 22 | from homeassistant.components.sensor import SensorEntityDescription, SensorDeviceClass, SensorStateClass 23 | from homeassistant.const import PERCENTAGE, UV_INDEX, DEGREE, UnitOfLength, UnitOfTemperature, \ 24 | UnitOfVolumetricFlux, UnitOfPressure, UnitOfSpeed 25 | from homeassistant.helpers.typing import StateType 26 | 27 | 28 | @dataclass 29 | class WeatherRequiredKeysMixin: 30 | """Mixin for required keys.""" 31 | value_fn: Callable[[dict[str, Any], str], StateType] 32 | 33 | 34 | @dataclass 35 | class WeatherSensorEntityDescription( 36 | SensorEntityDescription, WeatherRequiredKeysMixin 37 | ): 38 | attr_fn: Callable[[dict[str, Any]], dict[str, StateType]] = lambda _: {} 39 | unit_fn: Callable[[bool], str | None] = lambda _: None 40 | """Describes Weather.com Sensor entity.""" 41 | 42 | 43 | current_condition_sensor_descriptions = [ 44 | WeatherSensorEntityDescription( 45 | key="validTimeLocal", 46 | name="Local Observation Time", 47 | icon="mdi:clock", 48 | value_fn=lambda data, _: cast(str, data), 49 | ), 50 | WeatherSensorEntityDescription( 51 | key=FIELD_DESCRIPTION, 52 | name="Weather Description", 53 | icon="mdi:note-text", 54 | value_fn=lambda data, _: cast(str, data), 55 | ), 56 | WeatherSensorEntityDescription( 57 | key=FIELD_HUMIDITY, 58 | name="Relative Humidity", 59 | icon="mdi:water-percent", 60 | device_class=SensorDeviceClass.HUMIDITY, 61 | state_class=SensorStateClass.MEASUREMENT, 62 | unit_fn=lambda _: PERCENTAGE, 63 | value_fn=lambda data, _: cast(int, data) or 0, 64 | ), 65 | WeatherSensorEntityDescription( 66 | key=FIELD_UV_INDEX, 67 | name="UV Index", 68 | icon="mdi:sunglasses", 69 | state_class=SensorStateClass.MEASUREMENT, 70 | unit_fn=lambda _: UV_INDEX, 71 | value_fn=lambda data, _: cast(int, data) or 0, 72 | ), 73 | WeatherSensorEntityDescription( 74 | key=FIELD_WINDDIR, 75 | name="Wind Direction - Degrees", 76 | icon=ICON_WIND, 77 | state_class=SensorStateClass.MEASUREMENT, 78 | unit_fn=lambda _: DEGREE, 79 | value_fn=lambda data, _: cast(int, data) or 0, 80 | ), 81 | WeatherSensorEntityDescription( 82 | key=FIELD_WINDDIRECTIONCARDINAL, 83 | name="Wind Direction - Cardinal", 84 | icon=ICON_WIND, 85 | unit_fn=lambda _: None, 86 | value_fn=lambda data, _: cast(str, data) or "", 87 | ), 88 | WeatherSensorEntityDescription( 89 | key=FIELD_DEW_POINT, 90 | name="Dewpoint", 91 | icon="mdi:water", 92 | state_class=SensorStateClass.MEASUREMENT, 93 | device_class=SensorDeviceClass.TEMPERATURE, 94 | unit_fn=lambda metric: UnitOfTemperature.CELSIUS if metric else UnitOfTemperature.FAHRENHEIT, 95 | value_fn=lambda data, _: cast(float, data), 96 | ), 97 | WeatherSensorEntityDescription( 98 | key=FIELD_FEELS_LIKE, 99 | name="Temperature - Feels Like", 100 | icon=ICON_THERMOMETER, 101 | state_class=SensorStateClass.MEASUREMENT, 102 | device_class=SensorDeviceClass.TEMPERATURE, 103 | unit_fn=lambda metric: UnitOfTemperature.CELSIUS if metric else UnitOfTemperature.FAHRENHEIT, 104 | value_fn=lambda data, _: cast(float, data), 105 | ), 106 | WeatherSensorEntityDescription( 107 | key=FIELD_TEMP, 108 | name="Temperature", 109 | icon=ICON_THERMOMETER, 110 | state_class=SensorStateClass.MEASUREMENT, 111 | device_class=SensorDeviceClass.TEMPERATURE, 112 | unit_fn=lambda metric: UnitOfTemperature.CELSIUS if metric else UnitOfTemperature.FAHRENHEIT, 113 | value_fn=lambda data, _: cast(float, data), 114 | ), 115 | WeatherSensorEntityDescription( 116 | key="temperatureHeatIndex", 117 | name="Heat Index", 118 | icon=ICON_THERMOMETER, 119 | state_class=SensorStateClass.MEASUREMENT, 120 | device_class=SensorDeviceClass.TEMPERATURE, 121 | unit_fn=lambda metric: UnitOfTemperature.CELSIUS if metric else UnitOfTemperature.FAHRENHEIT, 122 | value_fn=lambda data, _: cast(float, data), 123 | ), 124 | WeatherSensorEntityDescription( 125 | key="temperatureWindChill", 126 | name="Wind Chill", 127 | icon=ICON_THERMOMETER, 128 | state_class=SensorStateClass.MEASUREMENT, 129 | device_class=SensorDeviceClass.TEMPERATURE, 130 | unit_fn=lambda metric: UnitOfTemperature.CELSIUS if metric else UnitOfTemperature.FAHRENHEIT, 131 | value_fn=lambda data, _: cast(float, data), 132 | ), 133 | WeatherSensorEntityDescription( 134 | key="precip1Hour", 135 | name="Precipitation - Last hour", 136 | icon=ICON_UMBRELLA, 137 | state_class=SensorStateClass.MEASUREMENT, 138 | device_class=SensorDeviceClass.PRECIPITATION, 139 | unit_fn=lambda metric: UnitOfLength.MILLIMETERS if metric else UnitOfLength.INCHES, 140 | value_fn=lambda data, _: cast(float, data) or 0, 141 | ), 142 | WeatherSensorEntityDescription( 143 | key="precip6Hour", 144 | name="Precipitation - Last 6 hours", 145 | icon=ICON_UMBRELLA, 146 | state_class=SensorStateClass.MEASUREMENT, 147 | device_class=SensorDeviceClass.PRECIPITATION, 148 | unit_fn=lambda metric: UnitOfLength.MILLIMETERS if metric else UnitOfLength.INCHES, 149 | value_fn=lambda data, _: cast(float, data) or 0, 150 | ), 151 | WeatherSensorEntityDescription( 152 | key="precip24Hour", 153 | name="Precipitation - Last 24 hours", 154 | icon=ICON_UMBRELLA, 155 | state_class=SensorStateClass.MEASUREMENT, 156 | device_class=SensorDeviceClass.PRECIPITATION, 157 | unit_fn=lambda metric: UnitOfLength.MILLIMETERS if metric else UnitOfLength.INCHES, 158 | value_fn=lambda data, _: cast(float, data) or 0, 159 | ), 160 | WeatherSensorEntityDescription( 161 | key=FIELD_PRESSURE, 162 | name="Pressure", 163 | icon="mdi:gauge", 164 | state_class=SensorStateClass.MEASUREMENT, 165 | device_class=SensorDeviceClass.PRESSURE, 166 | unit_fn=lambda metric: UnitOfPressure.MBAR if metric else UnitOfPressure.INHG, 167 | value_fn=lambda data, _: cast(float, data), 168 | ), 169 | WeatherSensorEntityDescription( 170 | key=FIELD_WINDGUST, 171 | name="Wind Gust", 172 | icon=ICON_WIND, 173 | state_class=SensorStateClass.MEASUREMENT, 174 | device_class=SensorDeviceClass.WIND_SPEED, 175 | unit_fn=lambda metric: UnitOfSpeed.KILOMETERS_PER_HOUR if metric else UnitOfSpeed.MILES_PER_HOUR, 176 | value_fn=lambda data, _: cast(float, data), 177 | ), 178 | WeatherSensorEntityDescription( 179 | key=FIELD_WINDSPEED, 180 | name="Wind Speed", 181 | icon=ICON_WIND, 182 | state_class=SensorStateClass.MEASUREMENT, 183 | device_class=SensorDeviceClass.WIND_SPEED, 184 | unit_fn=lambda metric: UnitOfSpeed.KILOMETERS_PER_HOUR if metric else UnitOfSpeed.MILES_PER_HOUR, 185 | value_fn=lambda data, _: cast(float, data), 186 | ), 187 | WeatherSensorEntityDescription( 188 | key="cloudCeiling", 189 | name="Cloud Ceiling", 190 | icon="mdi:clouds", 191 | state_class=SensorStateClass.MEASUREMENT, 192 | device_class=SensorDeviceClass.DISTANCE, 193 | unit_fn=lambda metric: UnitOfLength.METERS if metric else UnitOfLength.FEET, 194 | value_fn=lambda data, _: cast(int, data) or 0, 195 | ), 196 | WeatherSensorEntityDescription( 197 | key="pressureTendencyTrend", 198 | name="Pressure Tendency Trend", 199 | icon="mdi:gauge", 200 | value_fn=lambda data, _: cast(str, data), 201 | ), 202 | WeatherSensorEntityDescription( 203 | key="cloudCoverPhrase", 204 | name="Cloud Cover Phrase", 205 | icon="mdi:clouds", 206 | value_fn=lambda data, _: cast(str, data), 207 | ), 208 | WeatherSensorEntityDescription( 209 | key="latitude", 210 | name="Latitude", 211 | icon="mdi:latitude", 212 | value_fn=lambda data, _: cast(float, data), 213 | ), 214 | WeatherSensorEntityDescription( 215 | key="longitude", 216 | name="Longitude", 217 | icon="mdi:longitude", 218 | value_fn=lambda data, _: cast(float, data), 219 | ), 220 | ] 221 | -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/ar.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "قطرة ندى", 3 | "temperatureFeelsLike": "درجة الحرارة - تبدو وكأنها", 4 | "temperatureHeatIndex": "مؤشر الحرارة", 5 | "relativeHumidity": "الرطوبة النسبية", 6 | "validTimeLocal": "وقت المراقبة المحلية", 7 | "precip1Hour": "هطول - آخر ساعة", 8 | "precip6Hour": "هطول الأمطار - آخر 6 ساعات", 9 | "precip24Hour": "هطول الأمطار - آخر 24 ساعة", 10 | "pressureAltimeter": "ضغط", 11 | "temperature": "درجة حرارة", 12 | "uvIndex": "مؤشر الأشعة فوق البنفسجية", 13 | "temperatureWindChill": "هواء بارد", 14 | "visibility": "الرؤية", 15 | "windDirectionCardinal": "اتجاه الرياح - الكاردينال", 16 | "windGust": "عاصفة الرياح", 17 | "windSpeed": "سرعة الرياح", 18 | "windDirection": "اتجاه الرياح - درجات", 19 | "narrative": "ملخص الطقس", 20 | "qpfSnow": "كمية الثلج", 21 | "daypart": { 22 | "precipChance": "احتمالية هطول الأمطار", 23 | "qpf": "كمية الهطول", 24 | "temperature": "توقعات درجة الحرارة", 25 | "windSpeed": "متوسط ​​الرياح" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/az.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Çiy nöqtəsi", 3 | "temperatureFeelsLike": "Temperatur - Hiss olunur", 4 | "temperatureHeatIndex": "İstilik indeksi", 5 | "relativeHumidity": "Nisbi Rütubət", 6 | "validTimeLocal": "Yerli Müşahidə Vaxtı", 7 | "precip1Hour": "Yağış - Son saat", 8 | "precip6Hour": "Yağıntı - Son 6 saat", 9 | "precip24Hour": "Yağış - Son 24 saat", 10 | "pressureAltimeter": "Təzyiq", 11 | "temperature": "Temperatur", 12 | "uvIndex": "UV indeksi", 13 | "temperatureWindChill": "Külək Soyuq", 14 | "visibility": "Görünüş", 15 | "windDirectionCardinal": "Küləyin istiqaməti - Kardinal", 16 | "windGust": "Güclü Külək", 17 | "windSpeed": "Külək sürəti", 18 | "windDirection": "Küləyin istiqaməti - dərəcə", 19 | "narrative": "Hava xülasəsi", 20 | "qpfSnow": "Qar miqdarı", 21 | "daypart": { 22 | "precipChance": "Yağış ehtimalı", 23 | "qpf": "Yağıntının miqdarı", 24 | "temperature": "Proqnoz Temperatur", 25 | "windSpeed": "Orta Külək" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/bg.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Точка на оросяване", 3 | "temperatureFeelsLike": "Температура - Усеща се", 4 | "temperatureHeatIndex": "Топлинен индекс", 5 | "relativeHumidity": "Относителна влажност", 6 | "validTimeLocal": "Местно време за наблюдение", 7 | "precip1Hour": "Валеж - последния час", 8 | "precip6Hour": "Валеж - последните 6 часа", 9 | "precip24Hour": "Валежи - последните 24 часа", 10 | "pressureAltimeter": "налягане", 11 | "temperature": "температура", 12 | "uvIndex": "UV индекс", 13 | "temperatureWindChill": "Wind Chill", 14 | "visibility": "Видимост", 15 | "windDirectionCardinal": "Посока на вятъра - Кардинал", 16 | "windGust": "Пориви на вятъра", 17 | "windSpeed": "Скоростта на вятъра", 18 | "windDirection": "Посока на вятъра - градуси", 19 | "narrative": "Обобщение на времето", 20 | "qpfSnow": "Количество сняг", 21 | "daypart": { 22 | "precipChance": "Вероятност за валежи", 23 | "qpf": "Количество на валежите", 24 | "temperature": "Прогнозна температура", 25 | "windSpeed": "Среден вятър" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/bn.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "শিশির বিন্দু", 3 | "temperatureFeelsLike": "তাপমাত্রা - ভালো লাগে", 4 | "temperatureHeatIndex": "তাপ সূচক", 5 | "relativeHumidity": "আপেক্ষিক আদ্রতা", 6 | "validTimeLocal": "স্থানীয় পর্যবেক্ষণ সময়", 7 | "precip1Hour": "বৃষ্টিপাত - শেষ ঘন্টা", 8 | "precip6Hour": "বৃষ্টিপাত - শেষ 6 ঘন্টা", 9 | "precip24Hour": "বৃষ্টিপাত - শেষ 24 ঘন্টা", 10 | "pressureAltimeter": "চাপ", 11 | "temperature": "তাপমাত্রা", 12 | "uvIndex": "এই UV সূচক", 13 | "temperatureWindChill": "বাতাস বইছে", 14 | "visibility": "দৃশ্যমানতা", 15 | "windDirectionCardinal": "বাতাসের দিক - কার্ডিনাল", 16 | "windGust": "আমি আজ খুশি", 17 | "windSpeed": "বাতাসের গতি", 18 | "windDirection": "বাতাসের দিক - ডিগ্রী", 19 | "narrative": "আবহাওয়ার সারাংশ", 20 | "qpfSnow": "তুষার পরিমাণ", 21 | "daypart": { 22 | "precipChance": "বৃষ্টিপাতের সম্ভাবনা", 23 | "qpf": "বৃষ্টিপাতের পরিমাণ", 24 | "temperature": "পূর্বাভাস তাপমাত্রা", 25 | "windSpeed": "গড় বাতাস" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/bs.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Tačka rose", 3 | "temperatureFeelsLike": "Temperatura - Osjećaj kao", 4 | "temperatureHeatIndex": "Indeks topline", 5 | "relativeHumidity": "Relativna vlažnost", 6 | "validTimeLocal": "Vrijeme lokalnog posmatranja", 7 | "precip1Hour": "Padavine - Zadnji sat", 8 | "precip6Hour": "Padavine - Zadnjih 6 sati", 9 | "precip24Hour": "Padavine - zadnja 24 sata", 10 | "pressureAltimeter": "Pritisak", 11 | "temperature": "Temperatura", 12 | "uvIndex": "UV indeks", 13 | "temperatureWindChill": "Hladan vjetar", 14 | "visibility": "Vidljivost", 15 | "windDirectionCardinal": "Smjer vjetra - kardinalni", 16 | "windGust": "Wind Gust", 17 | "windSpeed": "Brzina vjetra", 18 | "windDirection": "Smjer vjetra - stepeni", 19 | "narrative": "Weather Summary", 20 | "qpfSnow": "Količina snijega", 21 | "daypart": { 22 | "precipChance": "Vjerojatnost padavina", 23 | "qpf": "Količina padavina", 24 | "temperature": "Prognoza temperature", 25 | "windSpeed": "Average Wind" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/ca.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Punt de rosada", 3 | "temperatureFeelsLike": "Temperatura - Se sent com", 4 | "temperatureHeatIndex": "Índex de calor", 5 | "relativeHumidity": "Humitat relativa", 6 | "validTimeLocal": "Hora d'observació local", 7 | "precip1Hour": "Precipitació - Última hora", 8 | "precip6Hour": "Precipitació - Últimes 6 hores", 9 | "precip24Hour": "Precipitació - Últimes 24 hores", 10 | "pressureAltimeter": "Pressió", 11 | "temperature": "Temperatura", 12 | "uvIndex": "Índex UV", 13 | "temperatureWindChill": "Fred del vent", 14 | "visibility": "Visibilitat", 15 | "windDirectionCardinal": "Direcció del vent - Cardinal", 16 | "windGust": "Ratxa de vent", 17 | "windSpeed": "Velocitat del vent", 18 | "windDirection": "Direcció del vent - graus", 19 | "narrative": "Resum del temps", 20 | "qpfSnow": "Quantitat de neu", 21 | "daypart": { 22 | "precipChance": "Probabilitat de precipitació", 23 | "qpf": "Quantitat de precipitació", 24 | "temperature": "Previsió de temperatura", 25 | "windSpeed": "Vent mitjà" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/cs.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Rosný bod", 3 | "temperatureFeelsLike": "Teplota - pocit", 4 | "temperatureHeatIndex": "Tepelný index", 5 | "relativeHumidity": "Relativní vlhkost", 6 | "validTimeLocal": "Místní čas pozorování", 7 | "precip1Hour": "Srážky - poslední hodina", 8 | "precip6Hour": "Srážky - posledních 6 hodin", 9 | "precip24Hour": "Srážky – posledních 24 hodin", 10 | "pressureAltimeter": "Tlak", 11 | "temperature": "Teplota", 12 | "uvIndex": "Uv index", 13 | "temperatureWindChill": "Wind Chill", 14 | "visibility": "Viditelnost", 15 | "windDirectionCardinal": "Směr větru - Kardinální", 16 | "windGust": "Závan větru", 17 | "windSpeed": "Rychlost větru", 18 | "windDirection": "Směr větru - stupně", 19 | "narrative": "Shrnutí počasí", 20 | "qpfSnow": "Množství sněhu", 21 | "daypart": { 22 | "precipChance": "Pravděpodobnost srážek", 23 | "qpf": "Množství srážek", 24 | "temperature": "Předpověď teploty", 25 | "windSpeed": "Průměrný vítr" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/da.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Dugpunkt", 3 | "temperatureFeelsLike": "Temperatur - føles som", 4 | "temperatureHeatIndex": "Varmeindeks", 5 | "relativeHumidity": "Relativ luftfugtighed", 6 | "validTimeLocal": "Lokal observationstid", 7 | "precip1Hour": "Nedbør - Sidste time", 8 | "precip6Hour": "Nedbør - Sidste 6 timer", 9 | "precip24Hour": "Nedbør - Sidste 24 timer", 10 | "pressureAltimeter": "Tryk", 11 | "temperature": "Temperatur", 12 | "uvIndex": "UV-indeks", 13 | "temperatureWindChill": "Vind Chill", 14 | "visibility": "Sigtbarhed", 15 | "windDirectionCardinal": "Vindretning - kardinal", 16 | "windGust": "Vindstød", 17 | "windSpeed": "Vindhastighed", 18 | "windDirection": "Vindretning - grader", 19 | "narrative": "Vejroversigt", 20 | "qpfSnow": "Snemængde", 21 | "daypart": { 22 | "precipChance": "Sandsynlighed for nedbør", 23 | "qpf": "Nedbørsmængde", 24 | "temperature": "Prognostiseret temperatur", 25 | "windSpeed": "Gennemsnitlig vind" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/de.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Taupunkt", 3 | "temperatureFeelsLike": "Temperatur – Gefühlt", 4 | "temperatureHeatIndex": "Hitzeindex", 5 | "relativeHumidity": "Relative Luftfeuchtigkeit", 6 | "validTimeLocal": "Lokale Beobachtungszeit", 7 | "precip1Hour": "Niederschlag - Letzte Stunde", 8 | "precip6Hour": "Niederschlag - Letzte 6 Stunden", 9 | "precip24Hour": "Niederschlag – Letzte 24 Stunden", 10 | "pressureAltimeter": "Druck", 11 | "temperature": "Temperatur", 12 | "uvIndex": "UV-Index", 13 | "temperatureWindChill": "Windkälte", 14 | "visibility": "Sichtweite", 15 | "windDirectionCardinal": "Windrichtung – Kardinal", 16 | "windGust": "Windböe", 17 | "windSpeed": "Windgeschwindigkeit", 18 | "windDirection": "Windrichtung – Grad", 19 | "narrative": "Wetterzusammenfassung", 20 | "qpfSnow": "Schneemenge", 21 | "daypart": { 22 | "precipChance": "Niederschlagswahrscheinlichkeit", 23 | "qpf": "Niederschlagsmenge", 24 | "temperature": "Vorhersage der Temperatur", 25 | "windSpeed": "Durchschnittlicher Wind" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/el.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Σημείο δρόσου", 3 | "temperatureFeelsLike": "Θερμοκρασία - Αισθάνεται σαν", 4 | "temperatureHeatIndex": "Δείκτης θερμότητας", 5 | "relativeHumidity": "Σχετική υγρασία", 6 | "validTimeLocal": "Τοπική ώρα παρατήρησης", 7 | "precip1Hour": "Υετός - Τελευταία ώρα", 8 | "precip6Hour": "Υετός - Τελευταίες 6 ώρες", 9 | "precip24Hour": "Υετός - Τελευταίο 24ωρο", 10 | "pressureAltimeter": "Πίεση", 11 | "temperature": "Θερμοκρασία", 12 | "uvIndex": "Δείκτης UV", 13 | "temperatureWindChill": "Δροσιά", 14 | "visibility": "Ορατότητα", 15 | "windDirectionCardinal": "Κατεύθυνση Ανέμου - Καρδινάλιος", 16 | "windGust": "Ριπή ανέμου", 17 | "windSpeed": "ΤΑΧΥΤΗΤΑ ΑΝΕΜΟΥ", 18 | "windDirection": "Διεύθυνση ανέμου - Μοίρες", 19 | "narrative": "Περίληψη καιρού", 20 | "qpfSnow": "Ποσότητα χιονιού", 21 | "daypart": { 22 | "precipChance": "Πιθανότητα βροχόπτωσης", 23 | "qpf": "Ποσότητα βροχοπτώσεων", 24 | "temperature": "Προβλεπόμενη Θερμοκρασία", 25 | "windSpeed": "Μέσος Άνεμος" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Dewpoint", 3 | "temperatureFeelsLike": "Temperature - Feels Like", 4 | "temperatureHeatIndex": "Heat Index", 5 | "relativeHumidity": "Relative Humidity", 6 | "validTimeLocal": "Local Observation Time", 7 | "precip1Hour": "Precipitation - Last hour", 8 | "precip6Hour": "Precipitation - Last 6 hours", 9 | "precip24Hour": "Precipitation - Last 24 hours", 10 | "pressureAltimeter": "Pressure", 11 | "temperature": "Temperature", 12 | "uvIndex": "UV Index", 13 | "temperatureWindChill": "Wind Chill", 14 | "visibility": "Visibility", 15 | "windDirectionCardinal": "Wind Direction - Cardinal", 16 | "windGust": "Wind Gust", 17 | "windSpeed": "Wind Speed", 18 | "windDirection": "Wind Direction - Degrees", 19 | "narrative": "Weather Summary", 20 | "qpfSnow": "Snow Amount", 21 | "daypart": { 22 | "precipChance": "Precipitation Probability", 23 | "qpf": "Precipitation Amount", 24 | "temperature": "Forecast Temperature", 25 | "windSpeed": "Average Wind" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/es.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Punto de rocío", 3 | "temperatureFeelsLike": "Temperatura - Se siente como", 4 | "temperatureHeatIndex": "Índice de calor", 5 | "relativeHumidity": "Humedad relativa", 6 | "validTimeLocal": "Hora de observación local", 7 | "precip1Hour": "Precipitación - Última hora", 8 | "precip6Hour": "Precipitación - Últimas 6 horas", 9 | "precip24Hour": "Precipitación - Últimas 24 horas", 10 | "pressureAltimeter": "Presión", 11 | "temperature": "Temperatura", 12 | "uvIndex": "Índice UV", 13 | "temperatureWindChill": "Escalofríos", 14 | "visibility": "Visibilidad", 15 | "windDirectionCardinal": "Dirección del viento - Cardinal", 16 | "windGust": "Ráfaga de viento", 17 | "windSpeed": "Velocidad del viento", 18 | "windDirection": "Dirección del viento - Grados", 19 | "narrative": "Resumen del tiempo", 20 | "qpfSnow": "Cantidad de nieve", 21 | "daypart": { 22 | "precipChance": "Probabilidad de precipitación", 23 | "qpf": "Cantidad de precipitación", 24 | "temperature": "Pronóstico de temperatura", 25 | "windSpeed": "Viento medio" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/et.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Kastepunkt", 3 | "temperatureFeelsLike": "Temperatuur – tundub nagu", 4 | "temperatureHeatIndex": "Soojusindeks", 5 | "relativeHumidity": "Suhteline niiskus", 6 | "validTimeLocal": "Kohalik vaatlusaeg", 7 | "precip1Hour": "Sademed – viimane tund", 8 | "precip6Hour": "Sademed – viimased 6 tundi", 9 | "precip24Hour": "Sademed – viimase 24 tunni jooksul", 10 | "pressureAltimeter": "Surve", 11 | "temperature": "Temperatuur", 12 | "uvIndex": "UV-indeks", 13 | "temperatureWindChill": "Tuulekülm", 14 | "visibility": "Nähtavus", 15 | "windDirectionCardinal": "Tuule suund - Cardinal", 16 | "windGust": "Tuule puhangud", 17 | "windSpeed": "Tuule kiirus", 18 | "windDirection": "Tuule suund - kraadi", 19 | "narrative": "Ilma kokkuvõte", 20 | "qpfSnow": "Lume kogus", 21 | "daypart": { 22 | "precipChance": "Sademete tõenäosus", 23 | "qpf": "Sademete hulk", 24 | "temperature": "Prognoos temperatuur", 25 | "windSpeed": "Keskmine tuul" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/fa.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "نقطه شبنم", 3 | "temperatureFeelsLike": "دما - احساس می شود", 4 | "temperatureHeatIndex": "شاخص گرما", 5 | "relativeHumidity": "رطوبت نسبی", 6 | "validTimeLocal": "زمان مشاهده محلی", 7 | "precip1Hour": "بارش - ساعت گذشته", 8 | "precip6Hour": "بارش - 6 ساعت گذشته", 9 | "precip24Hour": "بارش - 24 ساعت گذشته", 10 | "pressureAltimeter": "فشار", 11 | "temperature": "درجه حرارت", 12 | "uvIndex": "شاخص اشعه ماوراء بنفش", 13 | "temperatureWindChill": "باد سرد", 14 | "visibility": "دید", 15 | "windDirectionCardinal": "جهت باد - کاردینال", 16 | "windGust": "وزش باد", 17 | "windSpeed": "سرعت باد", 18 | "windDirection": "جهت باد - درجه", 19 | "narrative": "خلاصه آب و هوا", 20 | "qpfSnow": "مقدار برف", 21 | "daypart": { 22 | "precipChance": "احتمال بارش", 23 | "qpf": "مقدار بارندگی", 24 | "temperature": "پیش بینی دما", 25 | "windSpeed": "باد متوسط" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/fi.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Kastepiste", 3 | "temperatureFeelsLike": "Lämpötila - Tuntuu", 4 | "temperatureHeatIndex": "Lämpöindeksi", 5 | "relativeHumidity": "Suhteellinen kosteus", 6 | "validTimeLocal": "Paikallinen havaintoaika", 7 | "precip1Hour": "Sademäärä - Viimeinen tunti", 8 | "precip6Hour": "Sademäärä - Viimeiset 6 tuntia", 9 | "precip24Hour": "Sademäärä - Viimeiset 24 tuntia", 10 | "pressureAltimeter": "Paine", 11 | "temperature": "Lämpötila", 12 | "uvIndex": "UV-indeksi", 13 | "temperatureWindChill": "Tuulen jäähdytys", 14 | "visibility": "Näkyvyys", 15 | "windDirectionCardinal": "Tuulen suunta - Cardinal", 16 | "windGust": "Tuulenpuuska", 17 | "windSpeed": "Tuulen nopeus", 18 | "windDirection": "Tuulen suunta - astetta", 19 | "narrative": "Sää yhteenveto", 20 | "qpfSnow": "Lumen määrä", 21 | "daypart": { 22 | "precipChance": "Sateen todennäköisyys", 23 | "qpf": "Sademäärä", 24 | "temperature": "Ennuste lämpötila", 25 | "windSpeed": "Keskimääräinen tuuli" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/fr.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Point de rosée", 3 | "temperatureFeelsLike": "Température - Ressenti", 4 | "temperatureHeatIndex": "Indice de chaleur", 5 | "relativeHumidity": "Humidité relative", 6 | "validTimeLocal": "Heure d'observation locale", 7 | "precip1Hour": "Précipitations - Dernière heure", 8 | "precip6Hour": "Précipitations - 6 dernières heures", 9 | "precip24Hour": "Précipitations - Dernières 24 heures", 10 | "pressureAltimeter": "Pression", 11 | "temperature": "Température", 12 | "uvIndex": "L'indice UV", 13 | "temperatureWindChill": "Refroidissement éolien", 14 | "visibility": "Visibilité", 15 | "windDirectionCardinal": "Direction du vent - Cardinal", 16 | "windGust": "Rafale de vent", 17 | "windSpeed": "Vitesse du vent", 18 | "windDirection": "Direction du vent - Degrés", 19 | "narrative": "Résumé météo", 20 | "qpfSnow": "Quantité de neige", 21 | "daypart": { 22 | "precipChance": "Probabilité de précipitation", 23 | "qpf": "Quantité de précipitations", 24 | "temperature": "Température prévue", 25 | "windSpeed": "Vent moyen" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/gu.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "ઝાકળ બિંદુ", 3 | "temperatureFeelsLike": "તાપમાન - જેવું લાગે છે", 4 | "temperatureHeatIndex": "હીટ ઇન્ડેક્સ", 5 | "relativeHumidity": "સંબંધિત ભેજનું પ્રમાણ", 6 | "validTimeLocal": "સ્થાનિક અવલોકન સમય", 7 | "precip1Hour": "વરસાદ - છેલ્લો કલાક", 8 | "precip6Hour": "વરસાદ - છેલ્લા 6 કલાક", 9 | "precip24Hour": "વરસાદ - છેલ્લા 24 કલાક", 10 | "pressureAltimeter": "દબાણ", 11 | "temperature": "તાપમાન", 12 | "uvIndex": "યુવી ઇન્ડેક્સ", 13 | "temperatureWindChill": "વિન્ડ ચિલ", 14 | "visibility": "દૃશ્યતા", 15 | "windDirectionCardinal": "પવનની દિશા - કાર્ડિનલ", 16 | "windGust": "પવન ગસ્ટ", 17 | "windSpeed": "પવનની ઝડપ", 18 | "windDirection": "પવનની દિશા - ડિગ્રી", 19 | "narrative": "હવામાન સારાંશ", 20 | "qpfSnow": "સ્નો જથ્થો", 21 | "daypart": { 22 | "precipChance": "વરસાદની સંભાવના", 23 | "qpf": "વરસાદની માત્રા", 24 | "temperature": "આગાહી તાપમાન", 25 | "windSpeed": "સરેરાશ પવન" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/he.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "נקודת טל", 3 | "temperatureFeelsLike": "טמפרטורה - מרגיש כמו", 4 | "temperatureHeatIndex": "מד חום", 5 | "relativeHumidity": "לחות יחסית", 6 | "validTimeLocal": "זמן תצפית מקומי", 7 | "precip1Hour": "משקעים - שעה אחרונה", 8 | "precip6Hour": "משקעים - 6 שעות אחרונות", 9 | "precip24Hour": "משקעים - 24 שעות אחרונות", 10 | "pressureAltimeter": "לַחַץ", 11 | "temperature": "טֶמפֶּרָטוּרָה", 12 | "uvIndex": "אינדקס UV", 13 | "temperatureWindChill": "צינת רוח", 14 | "visibility": "רְאוּת", 15 | "windDirectionCardinal": "כיוון הרוח - קרדינל", 16 | "windGust": "משב רוח", 17 | "windSpeed": "מהירות הרוח", 18 | "windDirection": "כיוון הרוח - מעלות", 19 | "narrative": "סיכום מזג האוויר", 20 | "qpfSnow": "כמות השלג", 21 | "daypart": { 22 | "precipChance": "הסתברות משקעים", 23 | "qpf": "כמות המשקעים", 24 | "temperature": "טמפרטורה תחזית", 25 | "windSpeed": "רוח ממוצעת" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/hi.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "ओसांक", 3 | "temperatureFeelsLike": "तापमान - लगता है", 4 | "temperatureHeatIndex": "ताप सूचकांक", 5 | "relativeHumidity": "सापेक्षिक आर्द्रता", 6 | "validTimeLocal": "स्थानीय अवलोकन समय", 7 | "precip1Hour": "वर्षण - अंतिम घंटा", 8 | "precip6Hour": "वर्षा - पिछले 6 घंटे", 9 | "precip24Hour": "वर्षा - पिछले 24 घंटे", 10 | "pressureAltimeter": "दबाव", 11 | "temperature": "तापमान", 12 | "uvIndex": "यूवी सूचकांक", 13 | "temperatureWindChill": "शीतल पवन", 14 | "visibility": "दृश्यता", 15 | "windDirectionCardinal": "हवा की दिशा - कार्डिनल", 16 | "windGust": "हवा का झौंका", 17 | "windSpeed": "हवा की गति", 18 | "windDirection": "हवा की दिशा - डिग्री", 19 | "narrative": "मौसम सारांश", 20 | "qpfSnow": "हिम राशि", 21 | "daypart": { 22 | "precipChance": "वर्षा की संभावना", 23 | "qpf": "वर्षा की मात्रा", 24 | "temperature": "पूर्वानुमान तापमान", 25 | "windSpeed": "औसत हवा" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/hr.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Temperatura kondenzacije", 3 | "temperatureFeelsLike": "Temperatura - osjeća se kao", 4 | "temperatureHeatIndex": "Indeks topline", 5 | "relativeHumidity": "Relativna vlažnost", 6 | "validTimeLocal": "Lokalno vrijeme promatranja", 7 | "precip1Hour": "Oborina - Zadnji sat", 8 | "precip6Hour": "Oborina - Zadnjih 6 sati", 9 | "precip24Hour": "Oborina - zadnja 24 sata", 10 | "pressureAltimeter": "Pritisak", 11 | "temperature": "Temperatura", 12 | "uvIndex": "UV indeks", 13 | "temperatureWindChill": "Hlađenje vjetra", 14 | "visibility": "Vidljivost", 15 | "windDirectionCardinal": "Smjer vjetra - kardinal", 16 | "windGust": "Udar vjetra", 17 | "windSpeed": "Brzina vjetra", 18 | "windDirection": "Smjer vjetra - stupnjevi", 19 | "narrative": "Sažetak vremena", 20 | "qpfSnow": "Količina snijega", 21 | "daypart": { 22 | "precipChance": "Vjerojatnost padalina", 23 | "qpf": "Količina padalina", 24 | "temperature": "Prognozirana temperatura", 25 | "windSpeed": "Prosječni vjetar" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/hu.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Harmatpont", 3 | "temperatureFeelsLike": "Hőmérséklet - Olyan érzés", 4 | "temperatureHeatIndex": "Hő index", 5 | "relativeHumidity": "Relatív páratartalom", 6 | "validTimeLocal": "Helyi megfigyelési idő", 7 | "precip1Hour": "Csapadék – utolsó óra", 8 | "precip6Hour": "Csapadék – utolsó 6 óra", 9 | "precip24Hour": "Csapadék – elmúlt 24 óra", 10 | "pressureAltimeter": "Nyomás", 11 | "temperature": "Hőfok", 12 | "uvIndex": "UV mutató", 13 | "temperatureWindChill": "Szélhűtés", 14 | "visibility": "Láthatóság", 15 | "windDirectionCardinal": "Szélirány - Cardinal", 16 | "windGust": "Széllökés", 17 | "windSpeed": "Szélsebesség", 18 | "windDirection": "szélirány - fok", 19 | "narrative": "Időjárás összefoglaló", 20 | "qpfSnow": "Hó mennyisége", 21 | "daypart": { 22 | "precipChance": "Csapadék valószínűsége", 23 | "qpf": "Csapadék mennyisége", 24 | "temperature": "Előrejelzési hőmérséklet", 25 | "windSpeed": "Átlagos szél" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/in.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Titik embun", 3 | "temperatureFeelsLike": "Suhu - Terasa Seperti", 4 | "temperatureHeatIndex": "Indeks panas", 5 | "relativeHumidity": "Kelembaban relatif", 6 | "validTimeLocal": "Waktu Pengamatan Lokal", 7 | "precip1Hour": "Curah hujan - Jam terakhir", 8 | "precip6Hour": "Curah hujan - 6 jam terakhir", 9 | "precip24Hour": "Curah hujan - 24 jam terakhir", 10 | "pressureAltimeter": "Tekanan", 11 | "temperature": "Suhu", 12 | "uvIndex": "Indeks uv", 13 | "temperatureWindChill": "Angin dingin", 14 | "visibility": "Visibilitas", 15 | "windDirectionCardinal": "Arah Angin - Kardinal", 16 | "windGust": "Angin Hembusan", 17 | "windSpeed": "Kecepatan angin", 18 | "windDirection": "Arah Angin - Derajat", 19 | "narrative": "Ringkasan Cuaca", 20 | "qpfSnow": "Jumlah Salju", 21 | "daypart": { 22 | "precipChance": "Probabilitas Curah Hujan", 23 | "qpf": "Jumlah Curah Hujan", 24 | "temperature": "Prakiraan Suhu", 25 | "windSpeed": "Angin Rata-Rata" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/is.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Daggarmark", 3 | "temperatureFeelsLike": "Hitastig - líður eins og", 4 | "temperatureHeatIndex": "Hitavísitala", 5 | "relativeHumidity": "Hlutfallslegur raki", 6 | "validTimeLocal": "Staðbundinn athugunartími", 7 | "precip1Hour": "Úrkoma - Síðasti klukkutími", 8 | "precip6Hour": "Úrkoma - Síðustu 6 klst", 9 | "precip24Hour": "Úrkoma - Síðasti 24 klst", 10 | "pressureAltimeter": "Þrýstingur", 11 | "temperature": "Hitastig", 12 | "uvIndex": "UV vísitala", 13 | "temperatureWindChill": "Vindkæling", 14 | "visibility": "Skyggni", 15 | "windDirectionCardinal": "Vindátt - Cardinal", 16 | "windGust": "Vindhviða", 17 | "windSpeed": "Vindhraði", 18 | "windDirection": "Vindátt - gráður", 19 | "narrative": "Veður samantekt", 20 | "qpfSnow": "Snjómagn", 21 | "daypart": { 22 | "precipChance": "Úrkomulíkur", 23 | "qpf": "Úrkomumagn", 24 | "temperature": "Spá um hitastig", 25 | "windSpeed": "Meðalvindur" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/it.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Punto di rugiada", 3 | "temperatureFeelsLike": "Temperatura - Sembra", 4 | "temperatureHeatIndex": "Indice di calore", 5 | "relativeHumidity": "Umidità relativa", 6 | "validTimeLocal": "Tempo di osservazione locale", 7 | "precip1Hour": "Precipitazioni - Ultima ora", 8 | "precip6Hour": "Precipitazioni - Ultime 6 ore", 9 | "precip24Hour": "Precipitazioni - Ultime 24 ore", 10 | "pressureAltimeter": "Pressione", 11 | "temperature": "Temperatura", 12 | "uvIndex": "Indice UV", 13 | "temperatureWindChill": "Vento gelido", 14 | "visibility": "Visibilità", 15 | "windDirectionCardinal": "Direzione del vento - Cardinale", 16 | "windGust": "Raffica di vento", 17 | "windSpeed": "Velocità del vento", 18 | "windDirection": "Direzione del vento - Gradi", 19 | "narrative": "Riepilogo meteo", 20 | "qpfSnow": "Quantità di neve", 21 | "daypart": { 22 | "precipChance": "Probabilità di precipitazioni", 23 | "qpf": "Quantità di precipitazioni", 24 | "temperature": "Temperatura prevista", 25 | "windSpeed": "Vento medio" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/iw.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "נקודת טל", 3 | "temperatureFeelsLike": "טמפרטורה - מרגיש כמו", 4 | "temperatureHeatIndex": "מד חום", 5 | "relativeHumidity": "לחות יחסית", 6 | "validTimeLocal": "זמן תצפית מקומי", 7 | "precip1Hour": "משקעים - שעה אחרונה", 8 | "precip6Hour": "משקעים - 6 שעות אחרונות", 9 | "precip24Hour": "משקעים - 24 שעות אחרונות", 10 | "pressureAltimeter": "לַחַץ", 11 | "temperature": "טֶמפֶּרָטוּרָה", 12 | "uvIndex": "אינדקס UV", 13 | "temperatureWindChill": "צינת רוח", 14 | "visibility": "רְאוּת", 15 | "windDirectionCardinal": "כיוון הרוח - קרדינל", 16 | "windGust": "משב רוח", 17 | "windSpeed": "מהירות הרוח", 18 | "windDirection": "כיוון הרוח - מעלות", 19 | "narrative": "סיכום מזג האוויר", 20 | "qpfSnow": "כמות השלג", 21 | "daypart": { 22 | "precipChance": "הסתברות משקעים", 23 | "qpf": "כמות המשקעים", 24 | "temperature": "טמפרטורה תחזית", 25 | "windSpeed": "רוח ממוצעת" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/ja.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "露点", 3 | "temperatureFeelsLike": "温度 - 感じます", 4 | "temperatureHeatIndex": "暑さ指数", 5 | "relativeHumidity": "相対湿度", 6 | "validTimeLocal": "現地観察時間", 7 | "precip1Hour": "降水量 - 過去 1 時間", 8 | "precip6Hour": "降水量 - 過去 6 時間", 9 | "precip24Hour": "降水量 - 過去 24 時間", 10 | "pressureAltimeter": "プレッシャー", 11 | "temperature": "温度", 12 | "uvIndex": "UV指数", 13 | "temperatureWindChill": "風の寒さ", 14 | "visibility": "可視性", 15 | "windDirectionCardinal": "風向 - カーディナル", 16 | "windGust": "突風", 17 | "windSpeed": "風速", 18 | "windDirection": "風向 - 度", 19 | "narrative": "天気の概要", 20 | "qpfSnow": "積雪量", 21 | "daypart": { 22 | "precipChance": "降水確率", 23 | "qpf": "降水量", 24 | "temperature": "予想気温", 25 | "windSpeed": "平均的な風" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/jv.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Titik embun", 3 | "temperatureFeelsLike": "Suhu - Rasane Kaya", 4 | "temperatureHeatIndex": "Indeks Panas", 5 | "relativeHumidity": "Kelembapan Relatif", 6 | "validTimeLocal": "Wektu Observasi Lokal", 7 | "precip1Hour": "Udan - Jam pungkasan", 8 | "precip6Hour": "Precipitation - Suwene 6 jam", 9 | "precip24Hour": "Presipitasi - 24 jam pungkasan", 10 | "pressureAltimeter": "Tekanan", 11 | "temperature": "Suhu", 12 | "uvIndex": "Indeks UV", 13 | "temperatureWindChill": "Angin Dingin", 14 | "visibility": "Visibilitas", 15 | "windDirectionCardinal": "Arah Angin - Kardinal", 16 | "windGust": "Angin Angin", 17 | "windSpeed": "Kacepetan Angin", 18 | "windDirection": "Arah Angin - Derajat", 19 | "narrative": "Ringkesan Cuaca", 20 | "qpfSnow": "Jumlah Salju", 21 | "daypart": { 22 | "precipChance": "Probabilitas udan", 23 | "qpf": "Jumlah udan", 24 | "temperature": "Prakiraan Suhu", 25 | "windSpeed": "Angin Rata-rata" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/ka.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Ნამის წერტილი", 3 | "temperatureFeelsLike": "ტემპერატურა - იგრძნობა", 4 | "temperatureHeatIndex": "სითბოს ინდექსი", 5 | "relativeHumidity": "Ფარდობითი ტენიანობა", 6 | "validTimeLocal": "ადგილობრივი დაკვირვების დრო", 7 | "precip1Hour": "ნალექები - ბოლო საათი", 8 | "precip6Hour": "ნალექები - ბოლო 6 საათი", 9 | "precip24Hour": "ნალექები - ბოლო 24 საათი", 10 | "pressureAltimeter": "წნევა", 11 | "temperature": "ტემპერატურა", 12 | "uvIndex": "UV ინდექსი", 13 | "temperatureWindChill": "ქარის შემცივნება", 14 | "visibility": "ხილვადობა", 15 | "windDirectionCardinal": "ქარის მიმართულება - კარდინალი", 16 | "windGust": "ქარის ნაკადი", 17 | "windSpeed": "ქარის სიჩქარე", 18 | "windDirection": "ქარის მიმართულება - გრადუსი", 19 | "narrative": "ამინდის შეჯამება", 20 | "qpfSnow": "თოვლის რაოდენობა", 21 | "daypart": { 22 | "precipChance": "ნალექის ალბათობა", 23 | "qpf": "ნალექების რაოდენობა", 24 | "temperature": "საპროგნოზო ტემპერატურა", 25 | "windSpeed": "საშუალო ქარი" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/kk.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Шық нүктесі", 3 | "temperatureFeelsLike": "Температура - ұнайды", 4 | "temperatureHeatIndex": "Жылу индексі", 5 | "relativeHumidity": "Салыстырмалы ылғалдылық", 6 | "validTimeLocal": "Жергілікті бақылау уақыты", 7 | "precip1Hour": "Жауын-шашын - Соңғы сағат", 8 | "precip6Hour": "Жауын-шашын - Соңғы 6 сағат", 9 | "precip24Hour": "Жауын-шашын - Соңғы 24 сағат", 10 | "pressureAltimeter": "Қысым", 11 | "temperature": "Температура", 12 | "uvIndex": "УК индексі", 13 | "temperatureWindChill": "Салқын жел", 14 | "visibility": "Көріну", 15 | "windDirectionCardinal": "Жел бағыты - кардинал", 16 | "windGust": "Желдің екпіні", 17 | "windSpeed": "Жел жылдамдығы", 18 | "windDirection": "Жел бағыты - градус", 19 | "narrative": "Ауа райы туралы қорытынды", 20 | "qpfSnow": "Қар мөлшері", 21 | "daypart": { 22 | "precipChance": "Жауын-шашын ықтималдығы", 23 | "qpf": "Жауын-шашын мөлшері", 24 | "temperature": "Температураны болжау", 25 | "windSpeed": "Орташа жел" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/kn.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "ಡ್ಯೂ ಪಾಯಿಂಟ್", 3 | "temperatureFeelsLike": "ತಾಪಮಾನ - ಅನಿಸುತ್ತದೆ", 4 | "temperatureHeatIndex": "ಶಾಖ ಸೂಚ್ಯಂಕ", 5 | "relativeHumidity": "ಸಾಪೇಕ್ಷ ಆರ್ದ್ರತೆ", 6 | "validTimeLocal": "ಸ್ಥಳೀಯ ವೀಕ್ಷಣಾ ಸಮಯ", 7 | "precip1Hour": "ಮಳೆ - ಕೊನೆಯ ಗಂಟೆ", 8 | "precip6Hour": "ಮಳೆ - ಕೊನೆಯ 6 ಗಂಟೆಗಳು", 9 | "precip24Hour": "ಮಳೆ - ಕಳೆದ 24 ಗಂಟೆಗಳು", 10 | "pressureAltimeter": "ಒತ್ತಡ", 11 | "temperature": "ತಾಪಮಾನ", 12 | "uvIndex": "ಯುವಿ ಸೂಚ್ಯಂಕ", 13 | "temperatureWindChill": "ಗಾಳಿ ಚಿಲ್", 14 | "visibility": "ಗೋಚರತೆ", 15 | "windDirectionCardinal": "ಗಾಳಿಯ ದಿಕ್ಕು - ಕಾರ್ಡಿನಲ್", 16 | "windGust": "ಗಾಳಿ ಗಾಳಿ", 17 | "windSpeed": "ಗಾಳಿಯ ವೇಗ", 18 | "windDirection": "ಗಾಳಿಯ ದಿಕ್ಕು - ಡಿಗ್ರಿ", 19 | "narrative": "ಹವಾಮಾನ ಸಾರಾಂಶ", 20 | "qpfSnow": "ಹಿಮದ ಪ್ರಮಾಣ", 21 | "daypart": { 22 | "precipChance": "ಮಳೆಯ ಸಂಭವನೀಯತೆ", 23 | "qpf": "ಮಳೆಯ ಪ್ರಮಾಣ", 24 | "temperature": "ಮುನ್ಸೂಚನೆ ತಾಪಮಾನ", 25 | "windSpeed": "ಸರಾಸರಿ ಗಾಳಿ" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/ko.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "이슬점", 3 | "temperatureFeelsLike": "온도 - 체감", 4 | "temperatureHeatIndex": "열 지수", 5 | "relativeHumidity": "상대 습도", 6 | "validTimeLocal": "현지 관찰 시간", 7 | "precip1Hour": "강수량 - 지난 1시간", 8 | "precip6Hour": "강수량 - 지난 6시간", 9 | "precip24Hour": "강수량 - 지난 24시간", 10 | "pressureAltimeter": "압력", 11 | "temperature": "온도", 12 | "uvIndex": "자외선 지수", 13 | "temperatureWindChill": "차가운 바람", 14 | "visibility": "시계", 15 | "windDirectionCardinal": "풍향 - 추기경", 16 | "windGust": "돌풍", 17 | "windSpeed": "바람 속도", 18 | "windDirection": "풍향 - 도", 19 | "narrative": "날씨 요약", 20 | "qpfSnow": "적설량", 21 | "daypart": { 22 | "precipChance": "강수 확률", 23 | "qpf": "강수량", 24 | "temperature": "예측 온도", 25 | "windSpeed": "평균 바람" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/lt.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Rasos taškas", 3 | "temperatureFeelsLike": "Temperatūra – jaučiasi", 4 | "temperatureHeatIndex": "Šilumos indeksas", 5 | "relativeHumidity": "Santykinė drėgmė", 6 | "validTimeLocal": "Vietinis stebėjimo laikas", 7 | "precip1Hour": "Krituliai – Paskutinė valanda", 8 | "precip6Hour": "Krituliai – Paskutinės 6 valandos", 9 | "precip24Hour": "Krituliai – paskutinės 24 valandos", 10 | "pressureAltimeter": "Slėgis", 11 | "temperature": "Temperatūra", 12 | "uvIndex": "UV indeksas", 13 | "temperatureWindChill": "Vėjo atšalimas", 14 | "visibility": "Matomumas", 15 | "windDirectionCardinal": "Vėjo kryptis – kardinolas", 16 | "windGust": "Vėjo gūsis", 17 | "windSpeed": "Vėjo greitis", 18 | "windDirection": "Vėjo kryptis – laipsniai", 19 | "narrative": "Orų santrauka", 20 | "qpfSnow": "Sniego kiekis", 21 | "daypart": { 22 | "precipChance": "Kritulių tikimybė", 23 | "qpf": "Kritulių kiekis", 24 | "temperature": "Temperatūros prognozė", 25 | "windSpeed": "Vidutinis vėjas" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/lv.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Kušanas temperatūra", 3 | "temperatureFeelsLike": "Temperatūra - šķiet", 4 | "temperatureHeatIndex": "Siltuma indekss", 5 | "relativeHumidity": "Relatīvais mitrums", 6 | "validTimeLocal": "Vietējais novērošanas laiks", 7 | "precip1Hour": "Nokrišņi - Pēdējā stunda", 8 | "precip6Hour": "Nokrišņi - pēdējās 6 stundas", 9 | "precip24Hour": "Nokrišņi - pēdējās 24 stundas", 10 | "pressureAltimeter": "Spiediens", 11 | "temperature": "Temperatūra", 12 | "uvIndex": "UV indekss", 13 | "temperatureWindChill": "Vēja vēsums", 14 | "visibility": "Redzamība", 15 | "windDirectionCardinal": "Vēja virziens - kardināls", 16 | "windGust": "Vēja brāzmas", 17 | "windSpeed": "Vēja ātrums", 18 | "windDirection": "Vēja virziens - grādi", 19 | "narrative": "Laikapstākļu kopsavilkums", 20 | "qpfSnow": "Sniega daudzums", 21 | "daypart": { 22 | "precipChance": "Nokrišņu varbūtība", 23 | "qpf": "Nokrišņu daudzums", 24 | "temperature": "Temperatūras prognoze", 25 | "windSpeed": "Vidējais vējš" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/mk.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Точка на роса", 3 | "temperatureFeelsLike": "Температура - се чувствува како", 4 | "temperatureHeatIndex": "Индекс на топлина", 5 | "relativeHumidity": "Релативна влажност", 6 | "validTimeLocal": "Локално време на набљудување", 7 | "precip1Hour": "Врнежи - Последен час", 8 | "precip6Hour": "Врнежи - последните 6 часа", 9 | "precip24Hour": "Врнежи - последните 24 часа", 10 | "pressureAltimeter": "Притисок", 11 | "temperature": "Температура", 12 | "uvIndex": "УВ индекс", 13 | "temperatureWindChill": "Заладување на ветерот", 14 | "visibility": "Видливост", 15 | "windDirectionCardinal": "Насока на ветерот - кардинал", 16 | "windGust": "Ветер налет", 17 | "windSpeed": "Брзина на ветерот", 18 | "windDirection": "Насока на ветерот - Степени", 19 | "narrative": "Временски преглед", 20 | "qpfSnow": "Количина на снег", 21 | "daypart": { 22 | "precipChance": "Веројатност за врнежи", 23 | "qpf": "Количина на врнежи", 24 | "temperature": "Прогноза на температура", 25 | "windSpeed": "Просечен ветер" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/mn.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Шүүдэр цэг", 3 | "temperatureFeelsLike": "Температур - Мэдрэмж байна", 4 | "temperatureHeatIndex": "Дулааны индекс", 5 | "relativeHumidity": "Харьцангуй чийгшил", 6 | "validTimeLocal": "Орон нутгийн ажиглалтын цаг", 7 | "precip1Hour": "Хур тунадас - Сүүлийн цаг", 8 | "precip6Hour": "Хур тунадас - Сүүлийн 6 цаг", 9 | "precip24Hour": "Хур тунадас - Сүүлийн 24 цаг", 10 | "pressureAltimeter": "Даралт", 11 | "temperature": "Температур", 12 | "uvIndex": "Хэт ягаан туяаны индекс", 13 | "temperatureWindChill": "Салхины хүйтэн", 14 | "visibility": "Харагдац", 15 | "windDirectionCardinal": "Салхины чиглэл - Кардинал", 16 | "windGust": "Салхины шуурга", 17 | "windSpeed": "Салхины хурд", 18 | "windDirection": "Салхины чиглэл - градус", 19 | "narrative": "Цаг агаарын тойм", 20 | "qpfSnow": "Цасны хэмжээ", 21 | "daypart": { 22 | "precipChance": "Хур тунадасны магадлал", 23 | "qpf": "Хур тунадасны хэмжээ", 24 | "temperature": "Температурын урьдчилсан мэдээ", 25 | "windSpeed": "Дундаж салхи" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/ms.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Titik embun", 3 | "temperatureFeelsLike": "Suhu - Terasa Seperti", 4 | "temperatureHeatIndex": "Indeks Haba", 5 | "relativeHumidity": "Kelembapan Relatif", 6 | "validTimeLocal": "Waktu Pemerhatian Tempatan", 7 | "precip1Hour": "Kerpasan - Sejam terakhir", 8 | "precip6Hour": "Kerpasan - 6 jam terakhir", 9 | "precip24Hour": "Kerpasan - 24 jam terakhir", 10 | "pressureAltimeter": "Tekanan", 11 | "temperature": "Suhu", 12 | "uvIndex": "Indeks UV", 13 | "temperatureWindChill": "Sejuk Angin", 14 | "visibility": "Keterlihatan", 15 | "windDirectionCardinal": "Arah Angin - Kardinal", 16 | "windGust": "Tiupan Angin", 17 | "windSpeed": "Kelajuan angin", 18 | "windDirection": "Arah Angin - Darjah", 19 | "narrative": "Ringkasan Cuaca", 20 | "qpfSnow": "Jumlah Salji", 21 | "daypart": { 22 | "precipChance": "Kebarangkalian Kerpasan", 23 | "qpf": "Jumlah Kerpasan", 24 | "temperature": "Suhu Ramalan", 25 | "windSpeed": "Angin Purata" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/nl.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Dauwpunt", 3 | "temperatureFeelsLike": "Temperatuur - voelt aan als", 4 | "temperatureHeatIndex": "Warmte-index", 5 | "relativeHumidity": "Relatieve vochtigheid", 6 | "validTimeLocal": "Lokale observatietijd", 7 | "precip1Hour": "Neerslag - Laatste uur", 8 | "precip6Hour": "Neerslag - Laatste 6 uur", 9 | "precip24Hour": "Neerslag - Laatste 24 uur", 10 | "pressureAltimeter": "Druk", 11 | "temperature": "Temperatuur", 12 | "uvIndex": "UV-index", 13 | "temperatureWindChill": "Gevoelstemperatuur", 14 | "visibility": "Zichtbaarheid", 15 | "windDirectionCardinal": "Windrichting - Kardinaal", 16 | "windGust": "Windvlaag", 17 | "windSpeed": "Windsnelheid", 18 | "windDirection": "Windrichting - Graden", 19 | "narrative": "Samenvatting van het weer", 20 | "qpfSnow": "Sneeuw hoeveelheid", 21 | "daypart": { 22 | "precipChance": "Kans op neerslag", 23 | "qpf": "Hoeveelheid neerslag", 24 | "temperature": "Verwachte temperatuur", 25 | "windSpeed": "Gemiddelde wind" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/no.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Duggpunkt", 3 | "temperatureFeelsLike": "Temperatur - føles som", 4 | "temperatureHeatIndex": "Varmeindeks", 5 | "relativeHumidity": "Relativ fuktighet", 6 | "validTimeLocal": "Lokal observasjonstid", 7 | "precip1Hour": "Nedbør - Siste time", 8 | "precip6Hour": "Nedbør - Siste 6 timer", 9 | "precip24Hour": "Nedbør - Siste 24 timer", 10 | "pressureAltimeter": "Press", 11 | "temperature": "Temperatur", 12 | "uvIndex": "UV-indeks", 13 | "temperatureWindChill": "Vindavkjøling", 14 | "visibility": "Synlighet", 15 | "windDirectionCardinal": "Vindretning - kardinal", 16 | "windGust": "Vindkast", 17 | "windSpeed": "Vindfart", 18 | "windDirection": "Vindretning - grader", 19 | "narrative": "Væroppsummering", 20 | "qpfSnow": "Snømengde", 21 | "daypart": { 22 | "precipChance": "Nedbørsannsynlighet", 23 | "qpf": "Nedbørsmengde", 24 | "temperature": "Varsel temperatur", 25 | "windSpeed": "Gjennomsnittlig vind" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/pl.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Punkt rosy", 3 | "temperatureFeelsLike": "Temperatura — odczuwalna", 4 | "temperatureHeatIndex": "Indeks ciepła", 5 | "relativeHumidity": "Wilgotność względna", 6 | "validTimeLocal": "Lokalny czas obserwacji", 7 | "precip1Hour": "Opady — Ostatnia godzina", 8 | "precip6Hour": "Opady - Ostatnie 6 godzin", 9 | "precip24Hour": "Opady — ostatnie 24 godziny", 10 | "pressureAltimeter": "Ciśnienie", 11 | "temperature": "Temperatura", 12 | "uvIndex": "Indeks UV", 13 | "temperatureWindChill": "Chłód wiatru", 14 | "visibility": "Widoczność", 15 | "windDirectionCardinal": "Kierunek wiatru - Kardynał", 16 | "windGust": "Podmuch wiatru", 17 | "windSpeed": "Prędkość wiatru", 18 | "windDirection": "Kierunek wiatru — stopnie", 19 | "narrative": "Podsumowanie pogody", 20 | "qpfSnow": "Ilość śniegu", 21 | "daypart": { 22 | "precipChance": "Prawdopodobieństwo opadów", 23 | "qpf": "Ilość opadów", 24 | "temperature": "Prognoza temperatury", 25 | "windSpeed": "Średni wiatr" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/pt.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Ponto de condensação da água", 3 | "temperatureFeelsLike": "Temperatura - Parece", 4 | "temperatureHeatIndex": "Índice de calor", 5 | "relativeHumidity": "Humidade relativa", 6 | "validTimeLocal": "Horário de observação local", 7 | "precip1Hour": "Precipitação - última hora", 8 | "precip6Hour": "Precipitação - últimas 6 horas", 9 | "precip24Hour": "Precipitação - Últimas 24 horas", 10 | "pressureAltimeter": "Pressão", 11 | "temperature": "Temperatura", 12 | "uvIndex": "Índice UV", 13 | "temperatureWindChill": "Resfriamento do Vento", 14 | "visibility": "Visibilidade", 15 | "windDirectionCardinal": "Direção do Vento - Cardeal", 16 | "windGust": "Rajada de vento", 17 | "windSpeed": "Velocidade do vento", 18 | "windDirection": "Direção do Vento - Graus", 19 | "narrative": "Resumo do tempo", 20 | "qpfSnow": "quantidade de neve", 21 | "daypart": { 22 | "precipChance": "Probabilidade de Precipitação", 23 | "qpf": "Quantidade de precipitação", 24 | "temperature": "Temperatura prevista", 25 | "windSpeed": "Vento médio" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/ro.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Punct de condensare", 3 | "temperatureFeelsLike": "Temperatura - Se simte ca", 4 | "temperatureHeatIndex": "Index de caldura", 5 | "relativeHumidity": "Umiditate relativă", 6 | "validTimeLocal": "Ora locală de observare", 7 | "precip1Hour": "Precipitații - Ultima oră", 8 | "precip6Hour": "Precipitații - Ultimele 6 ore", 9 | "precip24Hour": "Precipitații - Ultimele 24 de ore", 10 | "pressureAltimeter": "Presiune", 11 | "temperature": "Temperatura", 12 | "uvIndex": "Index UV", 13 | "temperatureWindChill": "Răcirea vântului", 14 | "visibility": "Vizibilitate", 15 | "windDirectionCardinal": "Direcția vântului - Cardinal", 16 | "windGust": "Rafala de vant", 17 | "windSpeed": "Viteza vântului", 18 | "windDirection": "Direcția vântului - grade", 19 | "narrative": "Rezumatul vremii", 20 | "qpfSnow": "Cantitatea de zăpadă", 21 | "daypart": { 22 | "precipChance": "Probabilitatea precipitațiilor", 23 | "qpf": "Cantitatea de precipitații", 24 | "temperature": "Temperatura prognozată", 25 | "windSpeed": "Vânt mediu" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/ru.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Точка росы", 3 | "temperatureFeelsLike": "Температура - По ощущениям", 4 | "temperatureHeatIndex": "Индекс тепла", 5 | "relativeHumidity": "Относительная влажность", 6 | "validTimeLocal": "Местное время наблюдения", 7 | "precip1Hour": "Осадки - Последний час", 8 | "precip6Hour": "Осадки - последние 6 часов", 9 | "precip24Hour": "Осадки - последние 24 часа", 10 | "pressureAltimeter": "Давление", 11 | "temperature": "Температура", 12 | "uvIndex": "УФ-индекс", 13 | "temperatureWindChill": "Холодный ветер", 14 | "visibility": "Видимость", 15 | "windDirectionCardinal": "Направление ветра - кардинальное", 16 | "windGust": "Порыв ветра", 17 | "windSpeed": "Скорость ветра", 18 | "windDirection": "Направление ветра - градусы", 19 | "narrative": "Сводка погоды", 20 | "qpfSnow": "Количество снега", 21 | "daypart": { 22 | "precipChance": "Вероятность осадков", 23 | "qpf": "Количество осадков", 24 | "temperature": "Прогноз температуры", 25 | "windSpeed": "Средний ветер" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/si.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "පිනි පොයින්ට්", 3 | "temperatureFeelsLike": "උෂ්ණත්වය - දැනෙනවා", 4 | "temperatureHeatIndex": "තාප දර්ශකය", 5 | "relativeHumidity": "සාපේක්ෂ ආර්ද්රතාව", 6 | "validTimeLocal": "දේශීය නිරීක්ෂණ කාලය", 7 | "precip1Hour": "වර්ෂාපතනය - අවසන් පැය", 8 | "precip6Hour": "වර්ෂාපතනය - අවසන් පැය 6", 9 | "precip24Hour": "වර්ෂාපතනය - පසුගිය පැය 24", 10 | "pressureAltimeter": "පීඩනය", 11 | "temperature": "උෂ්ණත්වය", 12 | "uvIndex": "UV දර්ශකය", 13 | "temperatureWindChill": "හුළං මිරිස්", 14 | "visibility": "දෘශ්‍යතාව", 15 | "windDirectionCardinal": "සුළං දිශාව - කාදිනල්", 16 | "windGust": "සුළං රළ", 17 | "windSpeed": "සුළං වේගය", 18 | "windDirection": "සුළං දිශාව - අංශක", 19 | "narrative": "කාලගුණ සාරාංශය", 20 | "qpfSnow": "හිම ප්රමාණය", 21 | "daypart": { 22 | "precipChance": "වර්ෂාපතන සම්භාවිතාව", 23 | "qpf": "වර්ෂාපතන ප්රමාණය", 24 | "temperature": "පුරෝකථන උෂ්ණත්වය", 25 | "windSpeed": "සාමාන්ය සුළං" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/sk.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Rosný bod", 3 | "temperatureFeelsLike": "Teplota - pocit", 4 | "temperatureHeatIndex": "Tepelný index", 5 | "relativeHumidity": "Relatívna vlhkosť", 6 | "validTimeLocal": "Miestny čas pozorovania", 7 | "precip1Hour": "Zrážky – posledná hodina", 8 | "precip6Hour": "Zrážky - posledných 6 hodín", 9 | "precip24Hour": "Zrážky - posledných 24 hodín", 10 | "pressureAltimeter": "Tlak", 11 | "temperature": "Teplota", 12 | "uvIndex": "UV index", 13 | "temperatureWindChill": "Wind Chill", 14 | "visibility": "Viditeľnosť", 15 | "windDirectionCardinal": "Smer vetra - kardinál", 16 | "windGust": "Náraz vetra", 17 | "windSpeed": "Rýchlosť vetra", 18 | "windDirection": "Smer vetra - Stupne", 19 | "narrative": "Súhrn počasia", 20 | "qpfSnow": "Množstvo snehu", 21 | "daypart": { 22 | "precipChance": "Pravdepodobnosť zrážok", 23 | "qpf": "Množstvo zrážok", 24 | "temperature": "Predpoveď teploty", 25 | "windSpeed": "Priemerný vietor" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/sl.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Točka rosišča", 3 | "temperatureFeelsLike": "Temperatura - po občutku", 4 | "temperatureHeatIndex": "Toplotni indeks", 5 | "relativeHumidity": "Relativna vlažnost", 6 | "validTimeLocal": "Lokalni čas opazovanja", 7 | "precip1Hour": "Padavine - zadnja ura", 8 | "precip6Hour": "Padavine - zadnjih 6 ur", 9 | "precip24Hour": "Padavine - zadnjih 24 ur", 10 | "pressureAltimeter": "Pritisk", 11 | "temperature": "Temperatura", 12 | "uvIndex": "UV indeks", 13 | "temperatureWindChill": "Wind Chill", 14 | "visibility": "Vidnost", 15 | "windDirectionCardinal": "Smer vetra - kardinal", 16 | "windGust": "Sunek vetra", 17 | "windSpeed": "Hitrost vetra", 18 | "windDirection": "Smer vetra - stopinje", 19 | "narrative": "Vremenski povzetek", 20 | "qpfSnow": "Količina snega", 21 | "daypart": { 22 | "precipChance": "Verjetnost padavin", 23 | "qpf": "Količina padavin", 24 | "temperature": "Napoved temperature", 25 | "windSpeed": "Povprečni veter" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/sq.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Pika e vesës", 3 | "temperatureFeelsLike": "Temperatura - Ndihet si", 4 | "temperatureHeatIndex": "Indeksi i nxehtësisë", 5 | "relativeHumidity": "Lageshtia relative", 6 | "validTimeLocal": "Koha lokale e vëzhgimit", 7 | "precip1Hour": "Reshjet - Ora e fundit", 8 | "precip6Hour": "Reshjet - 6 orët e fundit", 9 | "precip24Hour": "Reshjet - 24 orët e fundit", 10 | "pressureAltimeter": "Presioni", 11 | "temperature": "Temperatura", 12 | "uvIndex": "Indeksi UV", 13 | "temperatureWindChill": "Ftohja e erës", 14 | "visibility": "Dukshmëria", 15 | "windDirectionCardinal": "Drejtimi i erës - Kardinal", 16 | "windGust": "Shpërthim i erës", 17 | "windSpeed": "Shpejtesia e eres", 18 | "windDirection": "Drejtimi i erës - gradë", 19 | "narrative": "Përmbledhja e motit", 20 | "qpfSnow": "Sasia e borës", 21 | "daypart": { 22 | "precipChance": "Probabiliteti i reshjeve", 23 | "qpf": "Sasia e reshjeve", 24 | "temperature": "Temperatura e parashikuar", 25 | "windSpeed": "Era mesatare" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/sr.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Тачка росе", 3 | "temperatureFeelsLike": "Температура - Осећа се као", 4 | "temperatureHeatIndex": "Топлотни индекс", 5 | "relativeHumidity": "Релативна влажност", 6 | "validTimeLocal": "Локално време посматрања", 7 | "precip1Hour": "Падавине - Последњи сат", 8 | "precip6Hour": "Падавине - Последњиһ 6 сати", 9 | "precip24Hour": "Падавине – последња 24 сата", 10 | "pressureAltimeter": "Притисак", 11 | "temperature": "Температура", 12 | "uvIndex": "УВ индек", 13 | "temperatureWindChill": "Винд Цһилл", 14 | "visibility": "Видљивост", 15 | "windDirectionCardinal": "Смер ветра - кардинални", 16 | "windGust": "Удари ветра", 17 | "windSpeed": "Брзина ветра", 18 | "windDirection": "Смер ветра - степени", 19 | "narrative": "Веатһер Суммари", 20 | "qpfSnow": "Количина снега", 21 | "daypart": { 22 | "precipChance": "Вероватноћа падавина", 23 | "qpf": "Количина падавина", 24 | "temperature": "Прогноза температуре", 25 | "windSpeed": "Авераге Винд" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/sv.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Daggpunkt", 3 | "temperatureFeelsLike": "Temperatur - känns som", 4 | "temperatureHeatIndex": "Värmeindex", 5 | "relativeHumidity": "Relativ luftfuktighet", 6 | "validTimeLocal": "Lokal observationstid", 7 | "precip1Hour": "Nederbörd - Sista timmen", 8 | "precip6Hour": "Nederbörd - Senaste 6 timmarna", 9 | "precip24Hour": "Nederbörd - Senaste 24 timmarna", 10 | "pressureAltimeter": "Tryck", 11 | "temperature": "Temperatur", 12 | "uvIndex": "UV-index", 13 | "temperatureWindChill": "Vindens kyleffekt", 14 | "visibility": "Synlighet", 15 | "windDirectionCardinal": "Vindriktning - Kardinal", 16 | "windGust": "Vindby", 17 | "windSpeed": "Vindhastighet", 18 | "windDirection": "Vindriktning - grader", 19 | "narrative": "Vädersammanfattning", 20 | "qpfSnow": "Mängd snö", 21 | "daypart": { 22 | "precipChance": "Sannolikhet för nederbörd", 23 | "qpf": "Nederbördsmängd", 24 | "temperature": "Prognos temperatur", 25 | "windSpeed": "Medelvind" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/sw.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Sehemu ya umande", 3 | "temperatureFeelsLike": "Joto - Hisia Kama", 4 | "temperatureHeatIndex": "Kiashiria cha joto", 5 | "relativeHumidity": "Unyevu wa Jamaa", 6 | "validTimeLocal": "Saa za Uangalizi wa Karibu", 7 | "precip1Hour": "Mvua - Saa ya mwisho", 8 | "precip6Hour": "Mvua - Saa 6 zilizopita", 9 | "precip24Hour": "Mvua - Saa 24 zilizopita", 10 | "pressureAltimeter": "Shinikizo", 11 | "temperature": "Halijoto", 12 | "uvIndex": "Kiashiria cha UV", 13 | "temperatureWindChill": "Upepo wa Upepo", 14 | "visibility": "Mwonekano", 15 | "windDirectionCardinal": "Mwelekeo wa Upepo - Kardinali", 16 | "windGust": "Gust ya Upepo", 17 | "windSpeed": "Kasi ya Upepo", 18 | "windDirection": "Mwelekeo wa Upepo - Digrii", 19 | "narrative": "Muhtasari wa Hali ya Hewa", 20 | "qpfSnow": "Kiasi cha theluji", 21 | "daypart": { 22 | "precipChance": "Uwezekano wa Kunyesha", 23 | "qpf": "Kiasi cha Mvua", 24 | "temperature": "Utabiri wa Halijoto", 25 | "windSpeed": "Upepo Wastani" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/ta.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "பனிப்புள்ளி", 3 | "temperatureFeelsLike": "வெப்பநிலை - போல் உணர்கிறேன்", 4 | "temperatureHeatIndex": "வெப்ப குறியீடு", 5 | "relativeHumidity": "ஒப்பு ஈரப்பதம்", 6 | "validTimeLocal": "உள்ளூர் கண்காணிப்பு நேரம்", 7 | "precip1Hour": "மழைப்பொழிவு - கடைசி மணிநேரம்", 8 | "precip6Hour": "மழைப்பொழிவு - கடந்த 6 மணிநேரம்", 9 | "precip24Hour": "மழைப்பொழிவு - கடந்த 24 மணிநேரம்", 10 | "pressureAltimeter": "அழுத்தம்", 11 | "temperature": "வெப்ப நிலை", 12 | "uvIndex": "UV குறியீடு", 13 | "temperatureWindChill": "குளிர் காற்று", 14 | "visibility": "தெரிவுநிலை", 15 | "windDirectionCardinal": "காற்றின் திசை - கார்டினல்", 16 | "windGust": "காற்றுவீச்சு", 17 | "windSpeed": "காற்றின் வேகம்", 18 | "windDirection": "காற்றின் திசை - டிகிரி", 19 | "narrative": "வானிலை சுருக்கம்", 20 | "qpfSnow": "பனி அளவு", 21 | "daypart": { 22 | "precipChance": "மழைப்பொழிவு நிகழ்தகவு", 23 | "qpf": "மழை அளவு", 24 | "temperature": "முன்னறிவிப்பு வெப்பநிலை", 25 | "windSpeed": "சராசரி காற்று" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/te.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "మంచు బిందువు", 3 | "temperatureFeelsLike": "ఉష్ణోగ్రత - అనిపిస్తుంది", 4 | "temperatureHeatIndex": "ఉష్ణ సూచిక", 5 | "relativeHumidity": "సాపేక్ష ఆర్ద్రత", 6 | "validTimeLocal": "స్థానిక పరిశీలన సమయం", 7 | "precip1Hour": "అవపాతం - చివరి గంట", 8 | "precip6Hour": "అవపాతం - చివరి 6 గంటలు", 9 | "precip24Hour": "అవపాతం - చివరి 24 గంటలు", 10 | "pressureAltimeter": "ఒత్తిడి", 11 | "temperature": "ఉష్ణోగ్రత", 12 | "uvIndex": "UV సూచిక", 13 | "temperatureWindChill": "చల్ల గాలి", 14 | "visibility": "దృశ్యమానత", 15 | "windDirectionCardinal": "గాలి దిశ - కార్డినల్", 16 | "windGust": "విండ్ గస్ట్", 17 | "windSpeed": "గాలి వేగం", 18 | "windDirection": "గాలి దిశ - డిగ్రీలు", 19 | "narrative": "వాతావరణ సారాంశం", 20 | "qpfSnow": "మంచు మొత్తం", 21 | "daypart": { 22 | "precipChance": "అవపాతం సంభావ్యత", 23 | "qpf": "అవపాతం మొత్తం", 24 | "temperature": "సూచన ఉష్ణోగ్రత", 25 | "windSpeed": "సగటు గాలి" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/tg.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Нуқтаи шабнам", 3 | "temperatureFeelsLike": "Ҳарорат - Ҳис мекунад", 4 | "temperatureHeatIndex": "Индекси гармӣ", 5 | "relativeHumidity": "Рутубати нисбӣ", 6 | "validTimeLocal": "Вақти мушоҳидаи маҳаллӣ", 7 | "precip1Hour": "Боришот - Соатҳои охир", 8 | "precip6Hour": "Боришот - 6 соати охир", 9 | "precip24Hour": "Боришот - 24 соати охир", 10 | "pressureAltimeter": "Фишор", 11 | "temperature": "Ҳарорат", 12 | "uvIndex": "Индекси ултрабунафш", 13 | "temperatureWindChill": "Хунукии шамол", 14 | "visibility": "Намоиш", 15 | "windDirectionCardinal": "Самти шамол - Кардинал", 16 | "windGust": "Шамоли шамол", 17 | "windSpeed": "Суръати шамол", 18 | "windDirection": "Самти шамол - Дараҷаҳо", 19 | "narrative": "Хулосаи обу ҳаво", 20 | "qpfSnow": "Миқдори барф", 21 | "daypart": { 22 | "precipChance": "Эҳтимолияти боришот", 23 | "qpf": "Микдори боришот", 24 | "temperature": "Ҳарорати пешгӯӣ", 25 | "windSpeed": "Боди миёна" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/th.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "จุดน้ำค้าง", 3 | "temperatureFeelsLike": "อุณหภูมิ - รู้สึกเหมือน", 4 | "temperatureHeatIndex": "ดัชนีความร้อน", 5 | "relativeHumidity": "ความชื้นสัมพัทธ์", 6 | "validTimeLocal": "เวลาสังเกตการณ์ในท้องถิ่น", 7 | "precip1Hour": "หยาดน้ำฟ้า - ชั่วโมงที่แล้ว", 8 | "precip6Hour": "ปริมาณน้ำฝน - 6 ชั่วโมงที่ผ่านมา", 9 | "precip24Hour": "ปริมาณน้ำฝน - 24 ชั่วโมงที่ผ่านมา", 10 | "pressureAltimeter": "ความดัน", 11 | "temperature": "อุณหภูมิ", 12 | "uvIndex": "ดัชนีรังสียูวี", 13 | "temperatureWindChill": "ลมหนาว", 14 | "visibility": "ทัศนวิสัย", 15 | "windDirectionCardinal": "ทิศทางลม - พระคาร์ดินัล", 16 | "windGust": "ลมกระโชก", 17 | "windSpeed": "ความเร็วลม", 18 | "windDirection": "ทิศทางลม - องศา", 19 | "narrative": "สรุปสภาพอากาศ", 20 | "qpfSnow": "ปริมาณหิมะ", 21 | "daypart": { 22 | "precipChance": "ความน่าจะเป็นของฝน", 23 | "qpf": "ปริมาณน้ำฝน", 24 | "temperature": "อุณหภูมิพยากรณ์", 25 | "windSpeed": "ลมปานกลาง" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/tk.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Dewpoint", 3 | "temperatureFeelsLike": "Temperatura - ýaly duýulýar", 4 | "temperatureHeatIndex": "Atylylyk görkezijisi", 5 | "relativeHumidity": "Otnositel çyglylyk", 6 | "validTimeLocal": "Localerli syn etmegiň wagty", 7 | "precip1Hour": "Ygalyň ýagmagy - Soňky sagat", 8 | "precip6Hour": "Ygalyň ýagmagy - Soňky 6 sagat", 9 | "precip24Hour": "Ygalyň ýagmagy - Soňky 24 sagat", 10 | "pressureAltimeter": "Basyş", 11 | "temperature": "Temperatura", 12 | "uvIndex": "UV görkezijisi", 13 | "temperatureWindChill": "Windel sowuklygy", 14 | "visibility": "Görünmek", 15 | "windDirectionCardinal": "Windeliň ugry - Kardinal", 16 | "windGust": "Windel öwüsýär", 17 | "windSpeed": "Windeliň tizligi", 18 | "windDirection": "Windeliň ugry - derejeler", 19 | "narrative": "Howanyň gysgaça mazmuny", 20 | "qpfSnow": "Gar mukdary", 21 | "daypart": { 22 | "precipChance": "Ygalyň ähtimallygy", 23 | "qpf": "Ygalyň mukdary", 24 | "temperature": "Çaklama temperaturasy", 25 | "windSpeed": "Ortaça ýel" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/tl.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Dewpoint", 3 | "temperatureFeelsLike": "Temperatura - Pakiramdam", 4 | "temperatureHeatIndex": "Index ng init", 5 | "relativeHumidity": "Kamag-anak na Humidity", 6 | "validTimeLocal": "Oras ng Lokal na Pagmamasid", 7 | "precip1Hour": "Precipitation - Huling oras", 8 | "precip6Hour": "Precipitation - Huling 6 na oras", 9 | "precip24Hour": "Precipitation - Huling 24 na oras", 10 | "pressureAltimeter": "Presyon", 11 | "temperature": "Temperatura", 12 | "uvIndex": "UV index", 13 | "temperatureWindChill": "Malamig na hangin", 14 | "visibility": "Visibility", 15 | "windDirectionCardinal": "Direksyon ng Hangin - Cardinal", 16 | "windGust": "Bugso ng hangin", 17 | "windSpeed": "Bilis ng hangin", 18 | "windDirection": "Direksyon ng Hangin - Degrees", 19 | "narrative": "Buod ng Panahon", 20 | "qpfSnow": "Halaga ng Niyebe", 21 | "daypart": { 22 | "precipChance": "Probability ng Precipitation", 23 | "qpf": "Halaga ng Pag-ulan", 24 | "temperature": "Pagtataya ng Temperatura", 25 | "windSpeed": "Average na Hangin" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/tr.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "çiğ noktası", 3 | "temperatureFeelsLike": "Sıcaklık - Gibi Hissediyor", 4 | "temperatureHeatIndex": "Isı İndeksi", 5 | "relativeHumidity": "Bağıl nem", 6 | "validTimeLocal": "Yerel Gözlem Süresi", 7 | "precip1Hour": "Yağış - Son saat", 8 | "precip6Hour": "Yağış - Son 6 saat", 9 | "precip24Hour": "Yağış - Son 24 saat", 10 | "pressureAltimeter": "Basınç", 11 | "temperature": "Sıcaklık", 12 | "uvIndex": "UV Endeksi", 13 | "temperatureWindChill": "rüzgar soğuğu", 14 | "visibility": "görünürlük", 15 | "windDirectionCardinal": "Rüzgar Yönü - Kardinal", 16 | "windGust": "Sert Rüzgar", 17 | "windSpeed": "Rüzgar hızı", 18 | "windDirection": "Rüzgar Yönü - Dereceler", 19 | "narrative": "Hava Durumu Özeti", 20 | "qpfSnow": "Kar Miktarı", 21 | "daypart": { 22 | "precipChance": "Yağış Olasılığı", 23 | "qpf": "Yağış Miktarı", 24 | "temperature": "Tahmini Sıcaklık", 25 | "windSpeed": "Ortalama Rüzgar" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/uk.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Точка роси", 3 | "temperatureFeelsLike": "Температура - за відчуттями", 4 | "temperatureHeatIndex": "Індекс тепла", 5 | "relativeHumidity": "Відносна вологість", 6 | "validTimeLocal": "Місцевий час спостереження", 7 | "precip1Hour": "Опади - Остання година", 8 | "precip6Hour": "Опади - Останні 6 годин", 9 | "precip24Hour": "Опади - Останні 24 години", 10 | "pressureAltimeter": "Тиск", 11 | "temperature": "Температура", 12 | "uvIndex": "УФ-індекс", 13 | "temperatureWindChill": "Вітер холодний", 14 | "visibility": "Видимість", 15 | "windDirectionCardinal": "Напрямок вітру - кардинал", 16 | "windGust": "Порив вітру", 17 | "windSpeed": "Швидкість вітру", 18 | "windDirection": "Напрямок вітру - градуси", 19 | "narrative": "Зведення про погоду", 20 | "qpfSnow": "Кількість снігу", 21 | "daypart": { 22 | "precipChance": "Імовірність опадів", 23 | "qpf": "Кількість опадів", 24 | "temperature": "Прогноз температури", 25 | "windSpeed": "Середній вітер" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/ur.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "اوس کا وقت", 3 | "temperatureFeelsLike": "درجہ حرارت - ایسا محسوس ہوتا ہے۔", 4 | "temperatureHeatIndex": "ہیٹ انڈیکس", 5 | "relativeHumidity": "رشتہ دار نمی", 6 | "validTimeLocal": "مقامی مشاہدے کا وقت", 7 | "precip1Hour": "بارش - آخری گھنٹہ", 8 | "precip6Hour": "بارش - آخری 6 گھنٹے", 9 | "precip24Hour": "بارش - آخری 24 گھنٹے", 10 | "pressureAltimeter": "دباؤ", 11 | "temperature": "درجہ حرارت", 12 | "uvIndex": "یووی انڈیکس", 13 | "temperatureWindChill": "یخ بستہ ہوا", 14 | "visibility": "مرئیت", 15 | "windDirectionCardinal": "ہوا کی سمت - کارڈنل", 16 | "windGust": "ہوا کا جھونکا", 17 | "windSpeed": "ہوا کی رفتار", 18 | "windDirection": "ہوا کی سمت - ڈگری", 19 | "narrative": "موسم کا خلاصہ", 20 | "qpfSnow": "برف کی مقدار", 21 | "daypart": { 22 | "precipChance": "بارش کا امکان", 23 | "qpf": "بارش کی مقدار", 24 | "temperature": "درجہ حرارت کی پیشن گوئی", 25 | "windSpeed": "اوسط ہوا" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/uz.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "Shudring nuqtasi", 3 | "temperatureFeelsLike": "Harorat - O'zini his qiladi", 4 | "temperatureHeatIndex": "Issiqlik indeksi", 5 | "relativeHumidity": "Nisbiy namlik", 6 | "validTimeLocal": "Mahalliy kuzatuv vaqti", 7 | "precip1Hour": "Yog'ingarchilik - oxirgi soat", 8 | "precip6Hour": "Yog'ingarchilik - Oxirgi 6 soat", 9 | "precip24Hour": "Yog'ingarchilik - Oxirgi 24 soat", 10 | "pressureAltimeter": "Bosim", 11 | "temperature": "Harorat", 12 | "uvIndex": "UV indeksi", 13 | "temperatureWindChill": "Shamol sovuq", 14 | "visibility": "Ko'rinish", 15 | "windDirectionCardinal": "Shamol yo'nalishi - Kardinal", 16 | "windGust": "Shamol shamoli", 17 | "windSpeed": "Shamol tezligi", 18 | "windDirection": "Shamol yo'nalishi - daraja", 19 | "narrative": "Ob-havo haqida xulosa", 20 | "qpfSnow": "Qor miqdori", 21 | "daypart": { 22 | "precipChance": "Yog'ingarchilik ehtimoli", 23 | "qpf": "Yog'ingarchilik miqdori", 24 | "temperature": "Prognozli harorat", 25 | "windSpeed": "Oʻrtacha shamol" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/vi.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "điểm sương", 3 | "temperatureFeelsLike": "Nhiệt độ - Cảm thấy thích", 4 | "temperatureHeatIndex": "Chỉ số nhiệt", 5 | "relativeHumidity": "Độ ẩm tương đối", 6 | "validTimeLocal": "Thời gian quan sát địa phương", 7 | "precip1Hour": "Lượng mưa - Giờ trước", 8 | "precip6Hour": "Lượng mưa - 6 giờ qua", 9 | "precip24Hour": "Lượng mưa - 24 giờ qua", 10 | "pressureAltimeter": "Áp lực", 11 | "temperature": "Nhiệt độ", 12 | "uvIndex": "Chỉ số UV", 13 | "temperatureWindChill": "gió lạnh", 14 | "visibility": "Hiển thị", 15 | "windDirectionCardinal": "Hướng Gió - Hồng Y", 16 | "windGust": "Cơn gió mạnh", 17 | "windSpeed": "Tốc độ gió", 18 | "windDirection": "Hướng gió - Độ", 19 | "narrative": "Tóm tắt thời tiết", 20 | "qpfSnow": "Lượng tuyết", 21 | "daypart": { 22 | "precipChance": "Xác suất lượng mưa", 23 | "qpf": "Lượng mưa", 24 | "temperature": "Dự báo nhiệt độ", 25 | "windSpeed": "Gió trung bình" 26 | } 27 | } -------------------------------------------------------------------------------- /custom_components/weatherdotcom/weather_translations/zh.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperatureDewPoint": "露点", 3 | "temperatureFeelsLike": "温度 - 感觉", 4 | "temperatureHeatIndex": "热度指数", 5 | "relativeHumidity": "相对湿度", 6 | "validTimeLocal": "当地观测时间", 7 | "precip1Hour": "降水 - 最后一小时", 8 | "precip6Hour": "降水 - 过去 6 小时", 9 | "precip24Hour": "降水 - 过去 24 小时", 10 | "pressureAltimeter": "压力", 11 | "temperature": "温度", 12 | "uvIndex": "紫外线指数", 13 | "temperatureWindChill": "风寒", 14 | "visibility": "能见度", 15 | "windDirectionCardinal": "风向 - 红衣主教", 16 | "windGust": "阵风", 17 | "windSpeed": "风速", 18 | "windDirection": "风向 - 度", 19 | "narrative": "天气摘要", 20 | "qpfSnow": "雪量", 21 | "daypart": { 22 | "precipChance": "降水概率", 23 | "qpf": "降水量", 24 | "temperature": "预报温度", 25 | "windSpeed": "平均风" 26 | } 27 | } -------------------------------------------------------------------------------- /hacs.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Weather.com", 3 | "render_readme": true, 4 | "hide_default_branch": false 5 | } --------------------------------------------------------------------------------