diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 000000000..7091e0c89 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 8978d23db..481db9dd1 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,7 +3,4 @@ - - \ No newline at end of file diff --git a/.idea/shelf/Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm_[Changes]/Img_2.jpeg b/.idea/shelf/Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm_[Changes]/Img_2.jpeg new file mode 100644 index 000000000..0eb3eae5a Binary files /dev/null and b/.idea/shelf/Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm_[Changes]/Img_2.jpeg differ diff --git a/.idea/shelf/Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm_[Changes]/img_1.jpeg b/.idea/shelf/Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm_[Changes]/img_1.jpeg new file mode 100644 index 000000000..57511e2ef Binary files /dev/null and b/.idea/shelf/Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm_[Changes]/img_1.jpeg differ diff --git a/.idea/shelf/Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm_[Changes]/img_3.jpeg b/.idea/shelf/Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm_[Changes]/img_3.jpeg new file mode 100644 index 000000000..55eee697a Binary files /dev/null and b/.idea/shelf/Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm_[Changes]/img_3.jpeg differ diff --git a/.idea/shelf/Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm_[Changes]/img_4.jpeg b/.idea/shelf/Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm_[Changes]/img_4.jpeg new file mode 100644 index 000000000..4c1ff7059 Binary files /dev/null and b/.idea/shelf/Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm_[Changes]/img_4.jpeg differ diff --git a/.idea/shelf/Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm_[Changes]/img_5.jpeg b/.idea/shelf/Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm_[Changes]/img_5.jpeg new file mode 100644 index 000000000..5f23540c6 Binary files /dev/null and b/.idea/shelf/Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm_[Changes]/img_5.jpeg differ diff --git a/.idea/shelf/Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm_[Changes]/img_6.jpeg b/.idea/shelf/Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm_[Changes]/img_6.jpeg new file mode 100644 index 000000000..215210e1e Binary files /dev/null and b/.idea/shelf/Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm_[Changes]/img_6.jpeg differ diff --git a/.idea/shelf/Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm_[Changes]/shelved.patch b/.idea/shelf/Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm_[Changes]/shelved.patch new file mode 100644 index 000000000..a105633db --- /dev/null +++ b/.idea/shelf/Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm_[Changes]/shelved.patch @@ -0,0 +1,29 @@ +Index: README.md +IDEA additional info: +Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP +<+> # WeatherMaster \r\n \r\n\"\"\r\n\r\nWeatherMaster is developed with pure HTML, CSS, JavaScript, and Java. Designed to mimic the look and feel of a native Android app.\r\n\r\n\r\n# \uD83D\uDC41️ Preview\r\n\r\n
\r\n\"App\r\n\"App\r\n\"App\r\n\"App\r\n\"App\r\n \r\n
\r\n\r\n
\r\n\r\n\r\n# \uD83D\uDCF2 Download\r\n\r\n

\r\n \"GitHub\"\r\n

\r\n\r\n\r\n# ✨ Features:\r\n\r\n - Native Android Experience: Enjoy a user interface and interaction that closely resemble a native Android Weather app.\r\n \r\n - Material Design: The app is built using Material Web Components, ensuring a clean, consistent, and visually appealing design.\r\n\r\n - Customization Options: Enjoy a ton of customization options. Adjust themes, Units.\r\n \r\n - Responsive Design: WeatherMaster is fully responsive for all mobile devices.\r\n \r\n - User-Friendly Interface: The app's interface is designed to be straightforward and user-friendly.\r\n\r\n\r\n# \uD83D\uDEE0️ Built With:\r\n\r\n - HTML & CSS: For the basic structure and styling of the app.\r\n \r\n - JavaScript: To handle the app's logic and interactivity.\r\n\r\n - Weather data: Using OpenWeatherMap to fetch weather and ipgeolocation.io for Moonset and Moonrise timings\r\n\r\n - Java: Mainly used for JavaScript interface and permissions, allowing the app to run on Android devices.\r\n \r\n - Material Web Components: Utilized to create a consistent and attractive Material Design look and feel.\r\n\r\n - Weather icons: Google weather icons\r\n\r\n # \uD83D\uDCDD Todos:\r\n \r\n - ⬛ Make it lightweight\r\n - ⬛ Notification alerts\r\n - ⬛ A feature that allows you to add multiple locations\r\n - ⬛ More detailed weather\r\n - ✅ Change app colors according to the weather\r\n \r\n
\r\n
\r\n\r\n> [!NOTE]\r\n> The app is designed to run on Android devices and does not support web browsers. Attempting to open the app in a browser will not work.\r\n\r\n
\r\n\r\n\r\n# Contact\r\nFor any questions or feedback, feel free to open an issue on GitHub or contact pranshul.devmain@gmail.com\r\n\r\n
\r\n\r\n# License\r\nThis project is licensed under the MIT License. See the `LICENSE` file for details.\r\n\r\n\r\n\r\n\r\n\r\n +Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP +<+>UTF-8 +=================================================================== +diff --git a/README.md b/README.md +--- a/README.md (revision dbb4fc4d3912cc1ed4676def82edb8120a7814a4) ++++ b/README.md (date 1720854695916) +@@ -8,11 +8,13 @@ + # 👁️ Preview + +
+-App image +-App image +-App image +-App image +-App image ++App image ++App image ++App image ++App image ++App image ++App image ++ + +
+ diff --git a/.idea/shelf/Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm__Changes_.xml b/.idea/shelf/Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm__Changes_.xml new file mode 100644 index 000000000..871031f3a --- /dev/null +++ b/.idea/shelf/Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm__Changes_.xml @@ -0,0 +1,59 @@ + + \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 000000000..f288702d2 --- /dev/null +++ b/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/README.md b/README.md new file mode 100644 index 000000000..0584d5986 --- /dev/null +++ b/README.md @@ -0,0 +1,131 @@ + # 🌦️ WeatherMaster + + + +WeatherMaster is developed with pure HTML, CSS, JavaScript, and Java. Designed to mimic the look and feel of a native Android app. + +`(Last updated on 10-08-2024 at 9:34 AM UTC)` + +![app_thumbnail](preview/thumbnail.png) + +# 👁️ Screenshots + +> [!NOTE] +> **Screenshots may differ from the current version.** + +
+ + + + + + + + + + +
+ + + +
+ +# 📲 Download + + + + + + +
GitHub GitHub
+ +# ✨ Features: + +- 🌤️ **Current Weather:** Get real-time updates on weather conditions in your area. +- 📢 **Government Weather Alerts:** Receive official alerts and warnings to stay safe. +- ⏳ **24-Hour Forecast:** Plan your short-term activities with accurate forecasts for the next two days. +- 📅 **14-Day Forecast:** View detailed weather predictions for the upcoming week. +- 🌙 **Moon Phases:** Track the phases of the moon and plan accordingly. +- 🌑 **Moonrise & Moonset:** Know the exact times for moonrise and moonset each day. +- 🌅 **Sunrise & Sunset:** Stay informed about sunrise and sunset times to optimize your day. +- 📏 **Day Length:** Check how long the daylight lasts each day. +- 📝 **Day Description:** Get a brief summary of the day’s weather conditions. +- 🌧️ **Rain Bar:** See a visual representation of expected rainfall. +- 👁️ **Visibility:** Monitor how far you can see clearly based on weather conditions. +- 💧 **Humidity:** Check the current humidity levels to stay comfortable. +- 🧭 **Pressure:** Track atmospheric pressure to understand weather changes. +- 🌬️ **Wind Direction & Speed:** Stay aware of wind patterns and strength. +- ❄️ **Snow Amount:** Know the expected snowfall for winter planning. +- ☁️ **Cloudiness:** See how much of the sky is covered by clouds. +- 🌡️ **Min-Max Temperature:** View the range of temperatures for the day. +- 🌬️ **Feels Like Temperature:** Understand how the temperature feels based on wind and humidity. +- 🌧️ **Precipitation Type & Area Coverage:** Get details on what kind of precipitation is expected and its coverage area. +- 🌞 **UV Index:** Stay protected from harmful UV rays with UV index updates. +- 🌿 **Air Quality:** Monitor air quality to stay informed about pollution levels. +- 🗺️ **Live Map:** Access a real-time map to track weather conditions in different areas. +- 📍 **Location Picker:** Easily select and view weather information for different locations. +- ⭐ **Save Favorite Locations:** Save your preferred locations for quick access to their weather updates. +- 👗 **Clothing Recommendations:** Get suggestions on what to wear based on the current weather conditions. + + +# 🌞 Weather providers: +- [**open-meteo**](https://open-meteo.com) +- [**WeatherApi**](https://www.weatherapi.com/) +- [**OpenWeatherMap**](https://openweathermap.org/api) +- [**accuweather**](https://www.accuweather.com/) + +# ⚙️ Other: + + - 📱Native Android Experience: Enjoy a user interface and interaction that closely resemble a native Android Weather app. + + - 🎨Material Design: The app is built using Material Web Components, ensuring a clean, consistent, and visually appealing design. + + - ⚙️Customization Options: Enjoy a ton of customization options. Adjust themes, Units. + + - 📐Responsive Design: WeatherMaster is fully responsive for all mobile devices. + + - 🧩User-Friendly Interface: The app's interface is designed to be straightforward and user-friendly. + + +# 🛠️ Built With: + + - HTML & CSS: For the basic structure and styling of the app. + + - JavaScript: To handle the app's logic and interactivity. + + - Java: Mainly used for JavaScript interface and permissions, allowing the app to run on Android devices. + + - Material Web Components: Utilized to create a consistent and attractive Material Design look and feel. + + - Weather icons:
Google weather icons + + # 📝 Todos: + + - ✅ Adding cache to reduce api requests + - ✅ Translations + - ⬛ Widgets / Notifications (under construction) + - ✅ Make it lightweight + - ✅ Allows you to add multiple locations + - ✅ Customization + - ✅ More detailed weather + - ✅ Live weather map + - ✅ Pick locations using map + - ✅ Change app colors according to the weather + - Any user suggestions :) +
+
+ +> [!NOTE] +> The app is designed to run on Android devices and does not support web browsers. Attempting to open the app in a browser will not work. +
+ +# Contact +For any questions or feedback, feel free to open an issue on GitHub or contact pranshul.devmain@gmail.com + +
+ +# License +This project is licensed under the GPL-3.0 license. See the `LICENSE` file for details. + + + diff --git a/app/build.gradle b/app/build.gradle index e4a317999..037f16aee 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -10,9 +10,8 @@ android { applicationId "com.example.weathermaster" minSdk 22 targetSdk 33 - versionCode 58 - versionName "1.6.6 (W)" - + versionCode 55 + versionName "1.6.4 (W)" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } @@ -33,11 +32,13 @@ android { } } -dependencies { + +dependencies { implementation 'androidx.appcompat:appcompat:1.7.0' implementation 'com.google.android.material:material:1.12.0' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' + implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0' testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.2.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1' diff --git a/app/release/output-metadata.json b/app/release/output-metadata.json index 95fbd161b..b9f8e2ff5 100644 --- a/app/release/output-metadata.json +++ b/app/release/output-metadata.json @@ -11,8 +11,8 @@ "type": "SINGLE", "filters": [], "attributes": [], - "versionCode": 57, - "versionName": "1.6.5 (W)", + "versionCode": 58, + "versionName": "1.6.6 (W)", "outputFile": "app-release.apk" } ], diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index d4fba8488..5438ad5f8 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -17,7 +17,11 @@ android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" +<<<<<<< HEAD android:theme="@style/Theme.WeatherMaster" +======= + android:theme="@style/Base.Theme.WeatherMaster" +>>>>>>> 1fe5d703ff20ab7a83c669b8fdc662e822488967 tools:targetApi="31"> +<<<<<<< HEAD +======= + +>>>>>>> 1fe5d703ff20ab7a83c669b8fdc662e822488967 diff --git a/app/src/main/assets/app/apiKeysRotation.js b/app/src/main/assets/app/apiKeysRotation.js index 51e244230..f747cd262 100644 --- a/app/src/main/assets/app/apiKeysRotation.js +++ b/app/src/main/assets/app/apiKeysRotation.js @@ -1,4 +1,5 @@ const apiKeysDaily = [ +<<<<<<< HEAD 'd94bcd435b62a031771c35633f9f310a', '3b833dcd6aac36124a8a30e182224427', 'dd1571a8ad3fd44555e8a5d66db01929', @@ -11,11 +12,15 @@ const apiKeysDaily = [ 'b02af426a3fad0d92d3e0b32f9324cf0', '392345e23d1613d56dad9cba63084b9c', '6841e5450643e5d4ff59981dbf58944e' +======= +KEY +>>>>>>> 1fe5d703ff20ab7a83c669b8fdc662e822488967 ]; const apiKeysAlerts = [ +<<<<<<< HEAD 'd94bcd435b62a031771c35633f9f310a', '3b833dcd6aac36124a8a30e182224427', 'dd1571a8ad3fd44555e8a5d66db01929', @@ -41,10 +46,18 @@ const apiKeysCityName = [ '02fc5e51bae44471b936ef635e465558', 'f1330ff150844fe885c8bed5f40ca593', '9261e72fd39d421bbdad506b1d1611ab' +======= +KEY +]; + +const apiKeysCityName = [ +KEY +>>>>>>> 1fe5d703ff20ab7a83c669b8fdc662e822488967 ]; const apiKeysGeo = [ +<<<<<<< HEAD '7147cfac7299479da122684c73d9b80a', '09713ffe266c4dfa99b98157dfd148f9', '66f9ad95f6704259a376949eaa659e62', @@ -66,10 +79,18 @@ const apiKeysVisual = [ '2U6VP2EF5WD6ZXEAA7V5G6H7R', '7VXHK5K23FZAZEA8QGGPYM6NE', '8DADTJ5YHGASWH7QFBNVXVUMD' +======= +KEY +]; + +const apiKeysVisual = [ +KEY +>>>>>>> 1fe5d703ff20ab7a83c669b8fdc662e822488967 ]; const astronomyApiKeys = [ +<<<<<<< HEAD '63a7210d2b104646a1099d5ba223d221', '4c502232671d48699afaf3b2741db4a4', '3dba64be2889483880c8534a81b5287e', @@ -79,4 +100,7 @@ const apiKeysVisual = [ '033158c54bf547a58ec44e6b7f5dc1f2', '8e982325202c43ab8ff4e2434af4b2bc', '5862f00bef2a49dbb8d96579e4d2bbee' +======= +KEY +>>>>>>> 1fe5d703ff20ab7a83c669b8fdc662e822488967 ]; diff --git a/app/src/main/assets/app/app.js b/app/src/main/assets/app/app.js index e417ef9a5..59bf994da 100644 --- a/app/src/main/assets/app/app.js +++ b/app/src/main/assets/app/app.js @@ -593,24 +593,18 @@ function Toast(toastText, time){ var map; -function darkModeTileLayer(urlTemplate) { - const filterStyle = 'invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%)'; - - return window.L.tileLayer(urlTemplate, { - }).addTo(map).getContainer().style.filter = filterStyle; -} - function RenderSearhMap() { const latDif = localStorage.getItem('currentLat'); const longDif = localStorage.getItem('currentLong'); map = window.L.map('map', { center: [latDif, longDif], - zoom: 8, + zoom: 13, zoomControl: false + }); - darkModeTileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png'); + window.L.tileLayer('https://{s}.basemaps.cartocdn.com/rastertiles/dark_all/{z}/{x}/{y}.png', {}).addTo(map); var marker = window.L.marker([latDif, longDif]).addTo(map); @@ -621,11 +615,12 @@ function RenderSearhMap() { marker.setLatLng([lat, lon]); window.history.back(); - document.getElementById('search-container').style.opacity = '0'; + document.getElementById('search-container').style.opacity = '0' - setTimeout(() => { - window.history.back(); - }, 500); + setTimeout(() => { + window.history.back(); + + }, 500); DecodeWeather(lat, lon); @@ -666,7 +661,7 @@ function checkNoInternet(){ document.addEventListener('DOMContentLoaded', async function() { - const currentVersion = 'v1.6.6'; + const currentVersion = 'v1.6.4'; const githubRepo = 'PranshulGG/WeatherMaster'; const releasesUrl = `https://api.github.com/repos/${githubRepo}/releases/latest`; @@ -682,15 +677,7 @@ function checkNoInternet(){ if (latestVersion !== currentVersion) { - if(localStorage.getItem('HideNewUpdateToast') === 'true'){ - document.querySelector('.new_ver_download').hidden = false; - - setTimeout(()=>{ - document.querySelector('.new_ver_download').hidden = true; - }, 5000); - } else{ - document.querySelector('.new_ver_download').hidden = false; - } + document.querySelector('.new_ver_download').hidden = false; } else { diff --git a/app/src/main/assets/app/bg_animations.js b/app/src/main/assets/app/bg_animations.js index d693d34d7..0da1774ab 100644 --- a/app/src/main/assets/app/bg_animations.js +++ b/app/src/main/assets/app/bg_animations.js @@ -1,4 +1,9 @@ +function createClearSkyDay(){ + +} + + function createRain() { const canvas = document.getElementById('bg_animation_rain'); const ctx = canvas.getContext('2d'); @@ -66,14 +71,9 @@ function createRain() { ctx.clearRect(0, 0, canvas.width, canvas.height); } - let animationRunning = false; - - function startAnimationRain(){ - if (!animationRunning) { - animationRunning = true; + function startAnimationRain(){ createRaindrops(100); animate(); - } } return { clearCanvas, startAnimationRain }; @@ -184,18 +184,12 @@ function createThunder() { animationFrameId = requestAnimationFrame(animate); } - let animationRunning = false; - - - function startAnimation(){ - if (!animationRunning) { - animationRunning = true; + function startAnimation(){ setup(); animationFrameId = requestAnimationFrame(animate); intervalId = setInterval(function() { createLightning(); }, interval); -} } function clearCanvas() { cancelAnimationFrame(animationFrameId); @@ -282,14 +276,9 @@ function createClouds() { initClouds(); }); - let animationRunning = false; - - function startAnimation() { - if (!animationRunning) { - animationRunning = true; - initClouds(); - animateClouds(); - } + function startAnimation(){ + initClouds(); + animateClouds(); } function clearCanvas() { cancelAnimationFrame(animationFrameId); @@ -378,19 +367,11 @@ function createStars() { initStars(); }); - let animationRunning = false; - - - function startAnimation(){ - if (!animationRunning) { - animationRunning = true; - + function startAnimation(){ adjustCanvasSize(); initStars(); animationFrameId = requestAnimationFrame(animateStars); -} } - function clearCanvas() { cancelAnimationFrame(animationFrameId); starsArray = []; @@ -475,15 +456,9 @@ function createFog() { initClouds(); }); - let animationRunning = false; - - function startAnimation(){ - if (!animationRunning) { - animationRunning = true; - + function startAnimation(){ initClouds(); animateClouds(); - } } function clearCanvas() { cancelAnimationFrame(animationFrameId); @@ -570,15 +545,10 @@ function createSnow() { initSnowflakes(); }); - let animationRunning = false; - - function startAnimation(){ - if (!animationRunning) { - animationRunning = true; + function startAnimation(){ adjustCanvasSize(); initSnowflakes(); animateSnowflakes(); - } } function clearCanvas() { diff --git a/app/src/main/assets/app/fetch.js b/app/src/main/assets/app/fetch.js index 99f4229bf..1862cd65d 100644 --- a/app/src/main/assets/app/fetch.js +++ b/app/src/main/assets/app/fetch.js @@ -5,7 +5,7 @@ function getCountryName(code) { async function DecodeWeather(lat, lon) { - const apiKey = 'J8HTH6P4YTGO'; + const apiKey = KEY_API; const url = `https://api.timezonedb.com/v2.1/get-time-zone?key=${apiKey}&format=json&by=position&lat=${lat}&lng=${lon}`; try { @@ -34,7 +34,7 @@ showLoader(); localStorage.setItem('currentLong', lon) localStorage.setItem('currentLat', lat) - fetch(`https://api.open-meteo.com/v1/forecast?latitude=${lat}&longitude=${lon}¤t=temperature_2m,is_day,apparent_temperature,pressure_msl,relative_humidity_2m,precipitation,weather_code,cloud_cover,wind_speed_10m,wind_direction_10m,wind_gusts_10m&hourly=wind_speed_10m,wind_direction_10m,relative_humidity_2m,pressure_msl,cloud_cover,temperature_2m,dew_point_2m,apparent_temperature,precipitation_probability,precipitation,weather_code,visibility,uv_index&daily=weather_code,temperature_2m_max,temperature_2m_min,sunrise,sunset,daylight_duration,uv_index_max,precipitation_sum,daylight_duration,precipitation_probability_max,precipitation_hours,wind_speed_10m_max,wind_gusts_10m_max&timezone=${timezone}&forecast_days=14&forecast_hours=24`) + fetch(`https://api.open-meteo.com/v1/forecast?latitude=${lat}&longitude=${lon}¤t=temperature_2m,is_day,apparent_temperature,pressure_msl,relative_humidity_2m,precipitation,weather_code,cloud_cover,wind_speed_10m,wind_direction_10m,wind_gusts_10m&hourly=wind_speed_10m,wind_direction_10m,relative_humidity_2m,pressure_msl,cloud_cover,temperature_2m,dew_point_2m,apparent_temperature,precipitation_probability,precipitation,weather_code,visibility,uv_index,soil_temperature_6m,soil_moisture&daily=weather_code,temperature_2m_max,temperature_2m_min,sunrise,sunset,daylight_duration,uv_index_max,precipitation_sum,daylight_duration,precipitation_probability_max,precipitation_hours,wind_speed_10m_max,wind_gusts_10m_max&timezone=${timezone}&forecast_days=14&forecast_hours=24`) .then(response => response.json()) .then(data => { @@ -213,4 +213,4 @@ function saveCache(lat, lon, timezone) { }); } - \ No newline at end of file + diff --git a/app/src/main/assets/app/navigate.js b/app/src/main/assets/app/navigate.js index c9f1366a8..7d9759bd3 100644 --- a/app/src/main/assets/app/navigate.js +++ b/app/src/main/assets/app/navigate.js @@ -10,15 +10,10 @@ window.transitionToPage = function(href) { window.location.href = href }, 500); - - + // delay from 2000ms to 500ms } - - - - document.addEventListener('DOMContentLoaded', function(event) { document.querySelector('body').style.opacity = '1'; diff --git a/app/src/main/assets/app/renderWeather.js b/app/src/main/assets/app/renderWeather.js index 12e30aa7f..e2d9a123d 100644 --- a/app/src/main/assets/app/renderWeather.js +++ b/app/src/main/assets/app/renderWeather.js @@ -23,29 +23,6 @@ function HourlyWeather(data) { const sunsetTimes = data.daily.sunset.map(time => new Date(time).getTime()); - const weatherCodeGroups = { - "0": [0], - "1-3": [1, 2, 3], - "45-48": [45, 48], - "51-55": [51, 53, 55], - "56-57": [56, 57], - "61-65": [61, 63, 65], - "66-67": [66, 67], - "71-75": [71, 73, 75], - "77": [77], - "80-82": [80, 81, 82], - "85-86": [85, 86], - "95": [95], - "96-99": [96, 99] - }; - - let groupCounts = {}; - - Object.keys(weatherCodeGroups).forEach(group => { - groupCounts[group] = 0; - }); - - data.hourly.time.forEach((time, index) => { @@ -172,7 +149,7 @@ function HourlyWeather(data) { ` forecastItem.addEventListener('click', ()=>{ - ShowSnack(`${getWeatherLabelInLangNoAnim(HourWeatherCode, 1, localStorage.getItem('AppLanguageCode'))}`, 2000, 3, 'none', ' ', 'no-up') + ShowSnack(`${getWeatherLabelInLang(HourWeatherCode, 1, localStorage.getItem('AppLanguageCode'))}`, 2000, 3, 'none', ' ', 'no-up') }); @@ -183,13 +160,6 @@ function HourlyWeather(data) { RainBarsContainer.append(rainMeterBarItem) forecastContainer.appendChild(forecastItem); }); - - const mostFrequentGroup = Object.keys(groupCounts).reduce((a, b) => groupCounts[a] > groupCounts[b] ? a : b); - - const selectedWeatherCode = weatherCodeGroups[mostFrequentGroup][0]; - - - ReportFromhourly(selectedWeatherCode) } @@ -264,21 +234,24 @@ function DailyWeather(dailyForecast) { dailyForecast.time.forEach((time, index) => { - const [year, month, day] = time.split('-').map(Number); - const dateObj = new Date(year, month - 1, day); - - const today = new Date(); - const isSameDay = dateObj.getFullYear() === today.getFullYear() && - dateObj.getMonth() === today.getMonth() && - dateObj.getDate() === today.getDate(); - - const weekday = isSameDay ? 'today' : dateObj.toLocaleDateString('en-US', { weekday: 'short' }).toLowerCase(); - const weekdayLang = getTranslationByLang(localStorage.getItem('AppLanguageCode'), weekday); + const [year, month, day] = time.split('-').map(Number); - const send1stDay = dailyForecast.weather_code[0] + const dateObj = new Date(year, month - 1, day, 0, 0, 0); + + + const today = new Date(); + const todayString = today.toISOString().split('T')[0]; + + + const dateObjString = dateObj.toISOString().split('T')[0]; + + const isToday = index === 0; + const weekday = isToday ? 'today' : dateObj.toLocaleDateString('en-US', { weekday: 'short' }).toLowerCase(); + + const weekdayLang = getTranslationByLang(localStorage.getItem('AppLanguageCode'), weekday); + - ReportFromdaily(send1stDay) const rainPercentage = dailyForecast.precipitation_probability_max[index]; const DailyWeatherCode = dailyForecast.weather_code[index]; @@ -340,8 +313,7 @@ function DailyWeather(dailyForecast) { const daylightMinutes = Math.floor((daylightDurationInSeconds % 3600) / 60); - document.getElementById('day_length_text').innerHTML = `${daylightHours} hrs ${daylightMinutes} mins ${getTranslationByLang(localStorage.getItem('AppLanguageCode'), 'day_length')}` - + document.getElementById('weatherComments').innerHTML = `hourglass_top ${daylightHours} hrs ${daylightMinutes} mins ${getTranslationByLang(localStorage.getItem('AppLanguageCode'), 'day_length')} keyboard_arrow_down` @@ -672,7 +644,6 @@ const percentageOfDaylight = Math.round(calculateDaylightPercentage(sunrise, sun moveSun(100) } - document.getElementById('day_value').value = (percentageOfDaylight / 100).toFixed(2) ; const temperatureCLoths = Math.round(data.temperature_2m); @@ -956,7 +927,7 @@ function UvIndex(latitude, longitude) { function MoreDetails(latSum, lonSum) { - fetch(`https://api.weatherapi.com/v1/forecast.json?key=ef2cb48d90984d828a8140518240209&q=${latSum},${lonSum}`) + fetch(`https://api.weatherapi.com/v1/forecast.json?key=KEY_API&q=${latSum},${lonSum}`) .then(response => response.json()) .then(data => { @@ -970,11 +941,10 @@ function MoreDetails(latSum, lonSum) { let willRain - if(mainData.daily_will_it_rain > 0){ - willRain = 'There is a chance of rain today! So, stay prepared just in case!' + willRain = 'rain is' } else{ - willRain = 'No rain is expected today. It’s going to be a delightful day ahead! Enjoy! 😊' + willRain = 'no rain is' } let maxTemp @@ -993,20 +963,17 @@ function MoreDetails(latSum, lonSum) { minTemp = Math.round(mainData.mintemp_c) } - let precipitationMessage; - if (mainData.totalprecip_in > 0) { - precipitationMessage = `Expect around ${Precipitation} of precipitation today 🌧️. Make sure to carry an umbrella! ☔`; - } else { - precipitationMessage = `No significant precipitation is expected today, so you can leave the umbrella at home! ☀️😊`; - } + let Precipitation; - let weatherReport = ` -
  • ${willRain}
  • -
  • Expect a high of ${maxTemp}° ☀️. As the sun sets 🌅, temperatures will drop to a cozy ${minTemp}°. A lovely evening awaits! 🌙
  • -
  • ${precipitationMessage}
  • + if (SelectedPrecipitationUnit === 'in') { + Precipitation = mainData.totalprecip_in.toFixed(2) + ' inches'; + } else { + Precipitation = inchesToMm(mainData.totalprecip_in).toFixed(1) + ' millimetres' + } - `; + const weatherSummary = `${weatherCondition} and ${willRain} expected for today. 🌡️ The daytime temperature will reach ${maxTemp}°, and it will dip to ${minTemp}° at night. 🌧️ We expect around ${Precipitation} of precipitation, with humidity levels around ${humidity}%.`; + let weatherTips = ""; const hotWeatherTips = [ @@ -1079,7 +1046,7 @@ function MoreDetails(latSum, lonSum) { weatherTips += sunnyTips[Math.floor(Math.random() * sunnyTips.length)] + " "; } else if (weatherCondition.toLowerCase().includes("snow")) { weatherTips += snowTips[Math.floor(Math.random() * snowTips.length)] + " "; - } else if (weatherCondition.toLowerCase().includes("cloudy") || weatherCondition.toLowerCase().includes("cloud") || weatherCondition.toLowerCase().includes("overcast")) { + } else if (weatherCondition.toLowerCase().includes("cloudy") || weatherCondition.toLowerCase().includes("cloud")) { weatherTips += cloudyWeatherTips[Math.floor(Math.random() * cloudyWeatherTips.length)] + " "; } else if (weatherCondition.toLowerCase().includes("fog")) { weatherTips += fogTips[Math.floor(Math.random() * fogTips.length)] + " "; @@ -1089,8 +1056,8 @@ function MoreDetails(latSum, lonSum) { weatherTips += thunderstormTips[Math.floor(Math.random() * thunderstormTips.length)] + " "; } + document.getElementById('summeryDay').innerHTML = `
  • ${weatherSummary}
  • ` document.getElementById('day_tips').innerHTML = `
  • ${weatherTips}
  • ` - document.getElementById('summeryDay').innerHTML = `
  • ${weatherReport}
  • ` @@ -1102,7 +1069,7 @@ function MoreDetails(latSum, lonSum) { } function astronomyData(latSum, lonSum) { - fetch(`https://api.weatherapi.com/v1/astronomy.json?key=ef2cb48d90984d828a8140518240209&q=${latSum},${lonSum}`) + fetch(`https://api.weatherapi.com/v1/astronomy.json?key=KEY_API&q=${latSum},${lonSum}`) .then(response => response.json()) .then(data => { @@ -1256,4 +1223,4 @@ function clickForecastItem(index){ } } }, 300); - } \ No newline at end of file + } diff --git a/app/src/main/assets/components-script.js/components.js b/app/src/main/assets/components-script.js/components.js index 77b12c388..692c8121d 100644 --- a/app/src/main/assets/components-script.js/components.js +++ b/app/src/main/assets/components-script.js/components.js @@ -34,6 +34,8 @@ // }); +// removed menu + // border-change diff --git a/app/src/main/assets/index.html b/app/src/main/assets/index.html index b7f022912..abc02bb18 100644 --- a/app/src/main/assets/index.html +++ b/app/src/main/assets/index.html @@ -199,14 +199,7 @@

    Cooling expected over the next 3 days

    -
    -
    - hourglass_top -
    -
    -
    -

    Cooling expected over the next 3 days

    -
    +
    @@ -453,10 +446,6 @@

    Air Quality

    - -
    -

    33

    -

    Error

    @@ -522,6 +511,10 @@

    UV Index

    + +
    +

    33

    +

    @@ -698,6 +691,22 @@ window.addEventListener('storage', handleStorageChangeLang); + document.addEventListener("DOMContentLoaded", function () { + const cityInput = document.getElementById("city-input"); + + + cityInput.addEventListener("input", function () { + + let inputValue = cityInput.value; + + + inputValue = inputValue.replace(/\d/g, ''); + + + cityInput.value = inputValue; + }); + }); + var currentDate = new Date(); @@ -766,7 +775,6 @@ document.getElementById('clearCityInput').addEventListener('click', () =>{ - diff --git a/app/src/main/assets/langs/langs.js b/app/src/main/assets/langs/langs.js index c367c1d4e..67dfaa16e 100644 --- a/app/src/main/assets/langs/langs.js +++ b/app/src/main/assets/langs/langs.js @@ -5,7 +5,7 @@ const translations = { "Conditions", "Fühlt sich an wie", "Sembra che", - "Sensação térmica", + "", "Hőérzet", "Чувствуется как", "Temperatura odczuwalna", @@ -22,7 +22,7 @@ const translations = { "Précipitations", "Niederschlag", "Precipitazioni", - "Precipitação", + "", "Csapadék", "Осадки", "Opady", @@ -39,7 +39,7 @@ const translations = { "Humidité", "Luftfeuchtigkeit", "Umidità", - "Umidade", + "", "Páratartalom", "Влажность", "Wilgotność", @@ -56,7 +56,7 @@ const translations = { "Vent", "Wind", "Vento", - "Vento", + "", "Szél", "Ветер", "Wiatr", @@ -73,7 +73,7 @@ const translations = { "Uv", "UV", "UV", - "UV", + "", "UV", "УФ", "UV", @@ -90,7 +90,7 @@ const translations = { "Paramètres", "Einstellungen", "Impostazioni", - "Configurações", + "", "Beállítások", "Настройки", "Ustawienia", @@ -107,7 +107,7 @@ const translations = { "À propos", "Über", "Circa", - "Sobre", + "", "Továbbiak", "О сайте", "O aplikacji", @@ -124,7 +124,7 @@ const translations = { "Aujourd'hui", "Heute", "Oggi", - "Hoje", + "", "Ma", "Сегодня", "Dzisiaj", @@ -141,7 +141,7 @@ const translations = { "Demain", "Morgen", "Domani", - "Amanhã", + "", "Holnap", "Завтра", "Jutro", @@ -158,7 +158,7 @@ const translations = { "Langue", "Sprache", "Lingua", - "Idioma", + "", "Nyelv", "Язык", "Język", @@ -192,7 +192,7 @@ const translations = { "Température", "Temperatur", "Temperatura", - "Temperatura", + "", "Hőmérséklet", "Температура", "Temperatura", @@ -209,7 +209,7 @@ const translations = { "Maintenant", "Jetzt", "Ora", - "Agora", + "", "Most", "Сейчас", "Teraz", @@ -226,7 +226,7 @@ const translations = { "Ciel dégagé", "Klarer Himmel", "Cielo sereno", - "Céu limpo", + "", "Tiszta égbolt", "Чистое небо", "Bezchmurne niebo", @@ -243,7 +243,7 @@ const translations = { "Légèrement", "Meistens klar", "Per lo più sereno", - "Predominantemente limpo", + "", "Többnyire derült", "В основном ясно", "Drobne chmury", @@ -260,7 +260,7 @@ const translations = { "Nuageux", "Teilweise bewölkt", "Parzialmente nuvoloso", - "Parcialmente nublado", + "", "Részben felhős", "Частично облачно", "Częściowe zachmurzenie", @@ -277,7 +277,7 @@ const translations = { "Couvert", "Bedeckt", "Nuvoloso", - "Nublado", + "", "Borult", "Пасмурная погода", "Zachmurzenie", @@ -294,7 +294,7 @@ const translations = { "Brouillard", "Nebel", "Nebbia", - "Neblina", + "", "Köd", "Туман", "Mgła", @@ -311,7 +311,7 @@ const translations = { "Bruine", "Nieselregen", "Pioggerella", - "Garoa", + "", "Szitálás", "Морось", "Mżawka", @@ -328,7 +328,7 @@ const translations = { "Bruine verglaçante", "Eisiger Nieselregen", "Pioggia gelata", - "Garoa gelada", + "", "Ónos eső", "Холодная морось", "Marznąca mżawka", @@ -345,7 +345,7 @@ const translations = { "Pluie légère", "Mäßiger Regen", "Pioggia moderata", - "Chuva moderada", + "", "Eső", "Умеренный дождь", "Umiarkowany deszcz", @@ -362,7 +362,7 @@ const translations = { "Forte Pluie", "Starker Regen", "Pioggia di forte intensità", - "Chuva intensa", + "", "Zápor", "Дождь сильной интенсивности", "Intensywne opady deszczu", @@ -379,7 +379,7 @@ const translations = { "Pluie verglaçante", "Gefrierregen", "Pioggia gelata", - "Chuva gelada", + "", "Ónos eső", "Ледяной дождь", "Marznący deszcz", @@ -396,7 +396,7 @@ const translations = { "Neige légère", "Leichter Schneefall", "Neve leggera", - "Neve leve", + "", "Szitáló havazás", "Небольшой снег", "Lekki śnieg", @@ -413,7 +413,7 @@ const translations = { "Neige modérée", "Mäßiger Schneefall", "Neve moderata", - "Neve moderada", + "", "Havazás", "Умеренный снег", "Opady śniegu", @@ -430,7 +430,7 @@ const translations = { "Fortes chutes de neige", "Starker Schneefall", "Neve di forte intensità", - "Neve intensa", + "", "Hózápor", "Сильный снег", "Intensywne opady śniegu", @@ -447,7 +447,7 @@ const translations = { "Gros flocons", "Schneekörner", "Granelli di neve", - "Granizo", + "", "Hódara", "Град", "Ziarnisty śnieg", @@ -464,7 +464,7 @@ const translations = { "Averses de pluie", "Regenschauer", "Piogge a catinelle", - "Pancadas de chuva", + "", "Zivatar", "Ливневые дожди", "Opady deszczu", @@ -481,7 +481,7 @@ const translations = { "Fortes averses de Pluie", "Starke Regenschauer", "Forti rovesci di pioggia", - "Pancadas de chuva intensas", + "", "Erős zivatar", "Сильные ливневые дожди", "Silne opady deszczu", @@ -498,7 +498,7 @@ const translations = { "Légères averses", "Leichte Schneeschauer", "Leggeri rovesci di neve", - "Pancadas de neve leves", + "", "Enyhe havazás", "Небольшие осадки в виде снега", "Lekkie opady śniegu", @@ -515,7 +515,7 @@ const translations = { "Fortes averses de neige", "Starke Schneeschauer", "Forti rovesci di neve", - "Pancadas de neve intensas", + "", "Erős havazás", "Сильная метель со снегом", "Śnieżyca", @@ -532,7 +532,7 @@ const translations = { "Orage", "Gewitter", "Temporale", - "Tempestade", + "", "Vihar", "Гроза", "Burze z piorunami", @@ -549,7 +549,7 @@ const translations = { "Puissant orage", "Starkes Gewitter", "Forte temporale", - "Tempestade intensa", + "", "Heves vihar", "Сильная гроза", "Gwałtowne burze", @@ -566,7 +566,7 @@ const translations = { "Sauvegarder", "Speichern", "Risparmiare", - "Salvar", + "", "Mentés", "Сохранить", "Zapisz", @@ -583,7 +583,7 @@ const translations = { "Emplacements enregistrés", "Gespeicherte Orte", "Luoghi salvati", - "Locais salvos", + "", "Mentett helyek", "Сохраненные местоположения", "Zapisane lokalizacje", @@ -600,7 +600,7 @@ const translations = { "Rechercher", "Suche", "Ricerca", - "Pesquisar", + "", "Keresés", "Поиск", "Wyszukaj", @@ -617,7 +617,7 @@ const translations = { "Bon", "Gut", "Buono", - "Bom", + "", "Jó", "Хорошо", "Dobra", @@ -634,7 +634,7 @@ const translations = { "Juste", "angemessen", "Fiera", - "Razoável", + "", "Elfogadható", "Прекрасно", "Dość dobra", @@ -651,7 +651,7 @@ const translations = { "Modéré", "Mäßig", "Moderato", - "Moderado", + "", "Közepes", "Умеренный", "Umiarkowana", @@ -668,7 +668,7 @@ const translations = { "Pauvre", "Schlecht", "Povero", - "Ruim", + "", "Rossz", "Плохо", "Zła", @@ -685,7 +685,7 @@ const translations = { "Très pauvre", "Sehr schlecht", "Molto scarso", - "Muito ruim", + "", "Nagyon rossz", "Очень плохо", "Bardzo zła", @@ -702,7 +702,7 @@ const translations = { "Pression", "Druck", "Pressione", - "Pressão", + "", "Nyomás", "Давление", "Ciśnienie", @@ -719,7 +719,7 @@ const translations = { "Jour", "Tag", "Giorno", - "Dia", + "", "Nap", "День", "Dzień", @@ -736,7 +736,7 @@ const translations = { "Jours", "Tage", "Giorni", - "Dias", + "", "Napok", "Дни", "Dni", @@ -753,7 +753,7 @@ const translations = { "Lun", "Mon", "Lun", - "Seg", + "", "Hé", "Пн", "Pon", @@ -770,7 +770,7 @@ const translations = { "Mar", "Die", "Mar", - "Ter", + "", "Ke", "Вт", "Wt", @@ -787,7 +787,7 @@ const translations = { "Mer", "Mit", "Mer", - "Qua", + "", "Sze", "Ср", "Śr", @@ -804,7 +804,7 @@ const translations = { "Jeu", "Don", "Gio", - "Qui", + "", "Csü", "Чт", "Czw", @@ -821,7 +821,7 @@ const translations = { "Ven", "Fre", "Ven", - "Sex", + "", "Pén", "Пт", "Pią", @@ -838,7 +838,7 @@ const translations = { "Sam", "Sam", "Sat", - "Sáb", + "", "Szo", "Сб", "Sob", @@ -855,7 +855,7 @@ const translations = { "Dim", "Son", "Sole", - "Dom", + "", "Vas", "Вс", "Niedz", @@ -872,7 +872,7 @@ const translations = { "Erreur", "Fehler", "Errore", - "Erro", + "", "Hiba", "Ошибка", "Błąd", @@ -889,7 +889,7 @@ const translations = { "Indice UV", "UV Index", "Indice UV", - "Índice UV", + "", "UV sugárzás", "УФ-индекс", "UV indeks", @@ -906,7 +906,7 @@ const translations = { "Nouvelle version d'application disponible!", "Neue App Version ist vefügbar!", "È disponibile la nuova versione dell'app!", - "Nova versão do app está disponível!", + "", "Új verzió elérhető!", "Новая версия приложения доступна!", "Dostepna aktualizacja!", @@ -923,7 +923,7 @@ const translations = { "Mettre à jour", "Aktualisiere", "Aggiornamento", - "Atualizar", + "", "Frissítés", "Обновление", "Aktualizacja", @@ -940,7 +940,7 @@ const translations = { "Qualité de l'air", "Luft Qualität", "Qualità dell'aria", - "Qualidade do ar", + "", "Levegőminőség", "Качество воздуха", "Jakość powietrza", @@ -957,7 +957,7 @@ const translations = { "Point", "Taupunkt", "Punto di rugiada", - "Ponto de orvalho", + "", "Harmatpont", "Точка росы", "Punkt rosy", @@ -974,7 +974,7 @@ const translations = { "Coucher du soleil", "Sonnenuntergang", "Tramonto", - "Pôr do sol", + "", "Napnyugta", "Закат", "Zachód słońca", @@ -991,7 +991,7 @@ const translations = { "Lever du soleil", "Sonnenaufgang", "Alba", - "Nascer do sol", + "", "Napkelte", "Восход солнца", "Wschód słońca", @@ -1008,7 +1008,7 @@ const translations = { "Lever de la lune", "Mondaufgang", "Sorgere della luna", - "Nascer da lua", + "", "Holdkelte", "Восход луны", "Wschód księżyca", @@ -1025,7 +1025,7 @@ const translations = { "Coucher de la lune", "Monduntergang", "Tramonto della luna", - "Pôr da lua", + "", "Holdnyugta", "Закат луны", "Zachód księżyca", @@ -1042,7 +1042,7 @@ const translations = { "Quantité", "Menge", "Importo", - "Quantidade", + "", "Mennyiség", "Количество", "Suma", @@ -1059,7 +1059,7 @@ const translations = { "Chances de précipitations", "Niederschlagswahrscheinlichkeit", "Possibilità di precipitazioni", - "Chances de precipitação", + "", "Csapadék esélye", "Вероятность осадков", "Szansa na opady", @@ -1076,7 +1076,7 @@ const translations = { "Quantité de précipitations", "Niederschlagsmenge", "Quantità di precipitazioni", - "Volume de precipitação", + "", "Csapadék", "Количество осадков", "Suma opadów", @@ -1093,7 +1093,7 @@ const translations = { "Rafale de vent", "Windböe", "Raffica di vento", - "Rajada de vento", + "", "Széllökés", "Порыв ветра", "Porywy wiatru", @@ -1110,7 +1110,7 @@ const translations = { "Vitesse du vent", "Windgeschwindigkeit", "Velocità del vento", - "Velocidade do vento", + "", "Szél", "Скорость ветра", "Prędkość wiatru", @@ -1127,7 +1127,7 @@ const translations = { "Radar en direct", "Live Radar", "Radar in tempo reale", - "Radar em tempo real", + "", "Élő radarkép", "Живой радар", "Pogoda na żywo", @@ -1144,7 +1144,7 @@ const translations = { "Visibilité", "Sichtbarkeit", "Visibilità", - "Visibilidade", + "", "Látótávolság", "Видимость", "Widzialność", @@ -1161,7 +1161,7 @@ const translations = { "Risque minimum", "Geringes Risiko", "Rischio minimo", - "Risco mínimo", + "", "Minimális kockázat", "Минимальный риск", "Znikome ryzyko", @@ -1178,7 +1178,7 @@ const translations = { "Léger risque", "Niedriges Risiko", "Basso rischio", - "Risco baixo", + "", "Alacsony kockázat", "Низкий риск", "Niskie ryzyko", @@ -1195,7 +1195,7 @@ const translations = { "Risque modéré", "Mäßiges Risiko", "Rischio moderato", - "Risco moderado", + "", "Közepes kockázat", "Умеренный риск", "Umiarkowane ryzyko", @@ -1212,7 +1212,7 @@ const translations = { "Risque important", "Hohes Risiko", "Alto rischio", - "Risco alto", + "", "Magas kockázat", "Высокий риск", "Wysokie ryzyko", @@ -1229,7 +1229,7 @@ const translations = { "Risque très important", "Sehr hohes Risiko", "Rischio molto elevato", - "Risco muito alto", + "", "Nagyon magas kockázat", "Очень высокий риск", "Bardzo wysokie ryzyko", @@ -1246,7 +1246,7 @@ const translations = { "Risque extrême", "Extrem hohes Risiko", "Rischio estremo", - "Risco extremo", + "", "Extrém kockázat", "Экстремальный риск", "Ekstremalne ryzyko", @@ -1263,7 +1263,7 @@ const translations = { "Un index UV satisfaisant, indiquant qu'il y a un léger ou pas de risque de radiation ultraviolet.", "Der UV-Index ist zufriedenstellend, d. h. es besteht kein oder nur ein geringes Risiko einer Schädigung durch ultraviolette Strahlung.", "L'indice UV è soddisfacente e indica che il rischio di danni da radiazioni ultraviolette è minimo o nullo.", - "O índice UV é satisfatório, indicando que há pouco ou nenhum risco de danos causados pela radiação ultravioleta.", + "", "Az UV-szint megfelelő, a káros sugárzás minimális vagy nincs.", "Ультрафиолетовый индекс - удовлетворительный, что говорит о незначительном или нулевом риске вреда от ультрафиолетового излучения.", "Indeks UV jest zadowalający, wskazując, że istnieje niewielkie lub żadne ryzyko szkód spowodowanych promieniowaniem ultrafioletowym.", @@ -1280,7 +1280,7 @@ const translations = { "Les conditions sont légères, indiquant qu'une exposition aux radiations aux ultraviolets aura de légères conséquences.", "Die Bedingungen sind im Allgemeinen risikoarm, was bedeutet, dass die Aussetzung gegenüber ultravioletter Strahlung eine minimale Gefahr darstellt.", "Le condizioni sono generalmente a basso rischio, il che indica che l'esposizione ai raggi ultravioletti rappresenta una minaccia minima.", - "As condições são geralmente de baixo risco, indicando que a exposição à radiação ultravioleta representa uma ameaça mínima.", + "", "Az UV-szint alacsony, az ultraibolya sugárzás nem jelent számottevő kockázatot.", "Как правило, эти заболевания относятся к категории низкого риска, что говорит о том, что воздействие ультрафиолетового излучения представляет минимальную угрозу.", "Warunki niskiego ryzyka wskazują, że narażenie na promieniowanie ultrafioletowe stanowi minimalne zagrożenie.", @@ -1297,7 +1297,7 @@ const translations = { "Niveau d'exposition léger avec risques minimum, acceptable pour la plupart des personnes.", "Niedriges Expositionsniveau mit minimalem Risiko einer Schädigung durch UV-Strahlung, für die meisten Menschen geeignet.", "Livello di esposizione basso con rischio minimo di danni da radiazioni UV, adatto alla maggior parte delle persone.", - "Nível de exposição baixo com risco mínimo de danos causados pela radiação ultravioleta, adequado para a maioria das pessoas.", + "", "Az UV- szint alacsony, a napégés kockázata minimális, a legtöbb ember számára elfogadható.", "Низкий уровень облучения с минимальным риском вреда от УФ-излучения, подходит для большинства людей.", "Niski poziom ekspozycji z minimalnym ryzykiem szkód spowodowanych promieniowaniem UV, odpowiedni dla większości ludzi.", @@ -1314,7 +1314,7 @@ const translations = { "Risque modéré de brûlures causées par une exposition au soleil non protégée, mesures protectrices recommandées.", "Mäßiges Risiko von Schäden durch ungeschützte Sonneneinstrahlung, Schutzmaßnahmen empfohlen.", "Rischio moderato di danni da esposizione solare non protetta, si raccomandano misure di protezione.", - "Risco moderado de danos causados pela exposição ao sol, medidas de proteção são recomendadas.", + "", "A napégés kockázata közepes, a megelőzés ajánlott.", "Умеренный риск вреда от незащищенного воздействия солнца, рекомендуются защитные меры.", "Umiarkowane ryzyko szkód spowodowanych ekspozycją na słońce bez ochrony, zalecane środki ochronne.", @@ -1331,7 +1331,7 @@ const translations = { "Risque important de brûlures causées par une exposition au soleil non protégée, mesures protectrices requises.", "Hohes Risiko von Schäden durch ungeschützte Sonneneinstrahlung, Schutzmaßnahmen erforderlich.", "Alto rischio di danni da esposizione solare non protetta, sono necessarie misure di protezione.", - "Risco alto de danos causados pela exposição ao sol, medidas de proteção são necessárias.", + "", "A napégés kockázata magas, a megelőzés szükséges.", "Высокий риск вреда от незащищенного воздействия солнца, требуются защитные меры.", "Wysokie ryzyko szkód spowodowanych ekspozycją na słońce bez ochrony, wymagane środki ochronne.", @@ -1348,7 +1348,7 @@ const translations = { "Risque très important de brûlures causées par une exposition au soleil non protégée, précautions supplémentaires requises.", "Sehr hohes Risiko von Schäden durch ungeschützte Sonneneinstrahlung, zusätzliche Vorsichtsmaßnahmen erforderlich.", "Rischio molto elevato di danni dovuti all'esposizione al sole non protetta, sono necessarie ulteriori precauzioni.", - "Risco muito alto de danos causados pela exposição ao sol, precauções extras são necessárias.", + "", "A napégés kockázata nagyon magas, szigorú elővigyázatosság szükséges.", "Очень высокий риск вреда от незащищенного воздействия солнца, требуются дополнительные меры предосторожности.", "Bardzo wysokie ryzyko szkód spowodowanych ekspozycją na słońce bez ochrony, wymagane dodatkowe środki ostrożności.", @@ -1365,7 +1365,7 @@ const translations = { "Risque extrême brûlures causées par une exposition au soleil non protégée, protection complète nécessaire.", "Extremes Risiko von Schäden durch ungeschützte Sonneneinstrahlung, vollständiger Schutz erforderlich.", "Rischio estremo di danni da esposizione solare non protetta, è necessaria una protezione totale.", - "Risco extremo de danos causados pela exposição ao sol, proteção completa é necessária.", + "", "A napégés kockázata extrém, könnyű, kevés testrészt fedetlenül hagyó ruha viselete szükséges.", "Крайне высок риск вреда от незащищенного пребывания на солнце, необходима полная защита.", "Ekstremalne ryzyko szkód spowodowanych ekspozycją na słońce bez ochrony, konieczna pełna ochrona.", @@ -1382,7 +1382,7 @@ const translations = { "La qualité de l’air est jugée satisfaisante et la pollution atmosphérique pose peu ou pas de risque.", "Die Luftqualität wird als zufriedenstellend angesehen, und die Luftverschmutzung stellt nur ein geringes oder gar kein Risiko dar.", "La qualità dell'aria è considerata soddisfacente e l'inquinamento atmosferico presenta rischi minimi o nulli.", - "Qualidade do ar é considerada satisfatória, e a poluição do ar oferece pouco ou nenhum risco.", + "", "A levegőminőség kielégítő, a légszennyezettség jelentéktelen.", "Качество воздуха считается удовлетворительным, а загрязнение воздуха не представляет практически никакого риска.", "Jakość powietrza zadowalająca, a zanieczyszczenie powietrza stanowi niewielkie lub żadne zagrożenie.", @@ -1399,7 +1399,7 @@ const translations = { "La qualité de l’air est acceptable; toutefois, pour certains polluants, il peut y avoir un problème de santé modéré pour un très petit nombre de personnes qui sont exceptionnellement sensibles à la pollution atmosphérique.", "Die Luftqualität ist akzeptabel; allerdings können einige Schadstoffe bei einer sehr kleinen Zahl von Menschen, die ungewöhnlich empfindlich auf Luftverschmutzung reagieren, ein mäßiges Gesundheitsrisiko darstellen.", "La qualità dell'aria è accettabile; tuttavia, per alcuni inquinanti può esserci un moderato problema di salute per un numero molto ristretto di persone insolitamente sensibili all'inquinamento atmosferico.", - "Qualidade do ar é aceitável; entretanto, talvez haja uma preocupação de saúde moderada para um pequeno número de pessoas que costumam ser sensíveis à poluição do ar devido a alguns poluentes.", + "", "A levegőminőség elfogadható; habár némely szemnyezőanyag közepes egészségügyi kockázatot jelenthet a kölünlegesen érzékeny csoportok számára.", "Качество воздуха является приемлемым, однако некоторые загрязнители могут вызывать умеренное беспокойство за здоровье очень небольшого числа людей, необычайно чувствительных к загрязнению воздуха.", "Jakość powietrza jest akceptowalna; jednak w przypadku niektórych zanieczyszczeń mogą występować umiarkowane obawy o zdrowie u bardzo małej liczby osób, które są wyjątkowo wrażliwe na zanieczyszczenie powietrza.", @@ -1416,7 +1416,7 @@ const translations = { "Les membres de groupes sensibles peuvent subir des effets sur la santé. Le grand public n’est pas susceptible d’être touché.", "Bei Mitgliedern empfindlicher Gruppen können gesundheitliche Auswirkungen auftreten. Die allgemeine Öffentlichkeit wird wahrscheinlich nicht betroffen sein.", "I membri di gruppi sensibili possono subire effetti sulla salute. È improbabile che il pubblico in generale subisca effetti.", - "Membros de grupos de pessoas mais sensíveis talvez sintam efeitos na saúde. É provável que a população geral não seja afetada.", + "", "Az érzékeny csoportok egészségügyi tüneteket tapasztalhatnak. A legtöbb emberre általában nincs hatással.", "Представители чувствительных групп могут испытать воздействие на здоровье. На широкую общественность воздействие маловероятно.", "Członkowie wrażliwych grup mogą odczuwać skutki zdrowotne. Nie jest prawdopodobne, aby miało to wpływ na ogół społeczeństwa.", @@ -1433,7 +1433,7 @@ const translations = { "Tout le monde peut commencer à ressentir des effets sur la santé; les membres de groupes sensibles peuvent éprouver des effets plus graves sur la santé.", "Bei allen Menschen können erste gesundheitliche Auswirkungen auftreten; bei Angehörigen empfindlicher Gruppen können schwerwiegendere gesundheitliche Auswirkungen auftreten.", "Tutti possono iniziare a subire effetti sulla salute; i membri di gruppi sensibili possono subire effetti più gravi sulla salute.", - "É provável que todos comecem a sentir efeitos na saúde; membros de pessoas mais sensíveis talvez sintam efeitos mais sérios na saúde.", + "", "A legtöbb embernél tünetek jelenhetnek meg; az érzékeny csoportok súlyos tüneteket tapasztalhatnak.", "Каждый человек может начать испытывать последствия для здоровья; представители чувствительных групп могут испытывать более серьезные последствия для здоровья.", "Wszyscy mogą zacząć odczuwać skutki zdrowotne; członkowie wrażliwych grup mogą odczuwać poważniejsze skutki zdrowotne.", @@ -1450,7 +1450,7 @@ const translations = { "Avertissements sanitaires concernant les situations d’urgence. L’ensemble de la population est plus susceptible d’être touchée.", "Gesundheitswarnungen vor Notlagen. Die Wahrscheinlichkeit, dass die gesamte Bevölkerung betroffen ist, ist größer.", "Avvisi sanitari di condizioni di emergenza. L'intera popolazione ha maggiori probabilità di essere colpita.", - "Avisos de saúde por condições emergenciais. É provável que toda a população seja afetada.", + "", "Egészségügyi vészhelyzeti riasztás. A legtöbb ember valószínűleg érintett.", "Предупреждения о чрезвычайных ситуациях. С большей вероятностью пострадает все население.", "Ostrzeżenia zdrowotne o stanach zagrożenia. Istnieje większe prawdopodobieństwo, że wpłynie to na całą populację.", @@ -1467,7 +1467,7 @@ const translations = { "Supportable", "Unterstützung", "Supporto", - "Suporte", + "", "Támogatás", "Поддержка", "Wsparcie", @@ -1484,7 +1484,7 @@ const translations = { "Notification de conditions", "Wetter Benachrichtigungen", "Notifiche meteo", - "Notificações de clima", + "", "Időjárás értesítés", "Уведомления о погоде", "Powiadomienia pogodowe", @@ -1501,7 +1501,7 @@ const translations = { "Emplacement du domicile", "Heimatort", "Posizione di casa", - "Local de residência", + "", "Otthon megadása", "Расположение дома", "Główna lokalizacja", @@ -1518,7 +1518,7 @@ const translations = { "Vous devez enregistrer cet endroit pour les montrer dans le menu", "Sie müssen Orte speichern, die im Menü angezeigt werden sollen", "È necessario salvare le posizioni da visualizzare nel menu", - "Você precisa salvar as localizações para mostrá-las no menu", + "", "Ahhoz, hogy a menüben megjelenjen, helyeket kell elmenteni", "Вам нужно сохранить местоположения, чтобы они отображались в меню", "Zapisz lokalizacje do wyświetlenia w menu", @@ -1535,7 +1535,7 @@ const translations = { "Unité de Température", "Temperatur Einheit", "Unità di temperatura", - "Unidade da temperatura", + "", "Hőmérséklet mértékegysége", "Единица измерения температуры", "Jednostka temperatury", @@ -1552,7 +1552,7 @@ const translations = { "Unité de Vent", "Wind Einheit", "Unità vento", - "Unidade do vento", + "", "Szélerősség mértékegysége", "Единица измерения ветра", "Jednostka wiatru", @@ -1569,7 +1569,7 @@ const translations = { "Unité de Visibilité", "Sichtbarkeit Einheit", "Unità di visibilità", - "Unidade da visibilidade", + "", "Látóhatár mértékegysége", "Единица измерения видимости", "Jednostka widzialności", @@ -1586,7 +1586,7 @@ const translations = { "Unité de Précipitations", "Niederschlag Einheit", "Unità di precipitazione", - "Unidade da precipitação", + "", "Csapadék mértékegysége", "Единица измерения осадков", "Jednostka opadów", @@ -1603,7 +1603,7 @@ const translations = { "Unité de Pression", "Druck Einheit", "Unità di pressione", - "Unidade da pressão", + "", "Nyomás mértékegysége", "Единица измерения давления", "Jednostka ciśnienia", @@ -1620,7 +1620,7 @@ const translations = { "Langue de l'application", "App Sprache", "Lingua dell'app", - "Idioma do app", + "", "Alkalmazás nyelve", "Язык приложения", "Język aplikacji", @@ -1637,7 +1637,7 @@ const translations = { "Plus", "Zusätzlich", "Ulteriori", - "Adicional", + "", "Továbbiak", "Дополнительно", "Dodatkowe", @@ -1654,7 +1654,7 @@ const translations = { "A propos de MaîtreMétéo", "Über WheatherMaster", "Informazioni su WeatherMaster", - "Sobre o WeatherMaster", + "", "A WeatherMaster névjegye", "О WeatherMaster", "O WeatherMaster", @@ -1671,7 +1671,7 @@ const translations = { "Informations provenant de", "Daten bereitgestellt von", "Dati forniti da", - "Dados oferecidos por", + "", "Adatszolgáltató", "Данные предоставлены", "Dostawca danych", @@ -1688,7 +1688,7 @@ const translations = { "Carte", "Karte", "Mappa", - "Mapa", + "", "Térkép", "Карта", "Mapy", @@ -1705,7 +1705,7 @@ const translations = { "Licences tierces", "Lizenzen von Dritten", "Licenze di terze parti", - "Licenças de terceiros", + "", "Harmadik fél licencei", "Лицензии третьих сторон", "Licencje stron trzecich", @@ -1722,7 +1722,7 @@ const translations = { "Vie privée & Politique", "Datenschutz & Politik", "Privacy e politica", - "Política e privacidade", + "", "Adatvédelmi irányelvek", "Конфиденциальность и политика", "Polityka prywatności", @@ -1739,7 +1739,7 @@ const translations = { "Termes & Conditions", "Bedingungen & Konditionen", "Termini e condizioni", - "Termos e condições", + "", "Felhasználási feltételek", "Условия и положения", "Warunki użytkowania", @@ -1756,7 +1756,7 @@ const translations = { "Dernière version", "Neueste Version", "Ultima versione", - "Última versão", + "", "Legújabb verzió", "Последняя версия", "Najnowsza wersja", @@ -1773,7 +1773,7 @@ const translations = { "Version de l’application", "App Version", "Versione dell'app", - "Versão do app", + "", "Alkalmazás verziója", "Версия приложения", "Wersja aplikacji", @@ -1790,7 +1790,7 @@ const translations = { "Afficher le code source", "Quellcode anzeigen", "Visualizza il codice sorgente", - "Ver o código-fonte", + "", "Forráskód megtekintése", "Посмотреть исходный код", "Zobacz kod źródłowy", @@ -1807,7 +1807,7 @@ const translations = { "Prévision", "Vorhersage", "Previsioni", - "Previsão", + "", "Előrejelzés", "Прогноз", "Prognoza", @@ -1824,7 +1824,7 @@ const translations = { "Plus", "Mehr", "Di più", - "Mais", + "", "Több", "Подробнее", "Więcej", @@ -1841,7 +1841,7 @@ const translations = { "Quantité du jour", "Heutige Menge", "Importo odierno", - "Quantidade de hoje", + "", "Napi csapadék", "Сегодняшнее количество", "Dzisiejsza suma", @@ -1858,7 +1858,7 @@ const translations = { "Précipitation par heures", "Niederschlagsstunden", "Ore di precipitazione", - "Horas de precipitação", + "", "Csapadék időtartama", "Часы выпадения осадков", "Godziny opadów", @@ -1875,7 +1875,7 @@ const translations = { "Suivant", "Nächste", "Avanti", - "Próximo", + "", "Következő", "Следующий", "Następne", @@ -1892,7 +1892,7 @@ const translations = { "Nébulosité", "Bewölkung", "Nuvolosità", - "Nebulosidade", + "", "Felhőzet", "Облачность", "Zachmurzenie", @@ -1909,7 +1909,7 @@ const translations = { "Alertes météo", "Wetter Warnungen", "Allerte meteo", - "Alertas climáticos", + "", "Időjárási riasztás", "Предупреждения о погоде", "Ostrzeżenia pogodowe", @@ -1926,7 +1926,7 @@ const translations = { "Appuyez pour voir plus...", "Tippen Sie, um mehr zu sehen...", "Toccare per vedere di più...", - "Toque para ver mais", + "", "Koppintson a továbbiakhoz", "Нажмите, чтобы увидеть больше...", "Zobacz więcej", @@ -1943,7 +1943,7 @@ const translations = { "Météo", "Wetter", "Tempo atmosferico", - "Escolha um local", + "", "Időjárás", "Погода", "Pogoda", @@ -1960,7 +1960,7 @@ const translations = { "En savoir plus sur l’application", "Mehr über die App erfahren", "Scopri di più sull'app", - "Temperatura principal", + "", "Tobb információ az alkalmazásról", "Узнать о приложении", "Dowiedz się więcej o aplikacji", @@ -1977,7 +1977,7 @@ const translations = { "Traduire cette application", "Übersetzen Sie diese App", "Traduci questa app", - "Localização atual", + "", "Az alkalmazás lefordítása", "Перевести это приложение", "Przetłumacz tę aplikację", @@ -1994,7 +1994,7 @@ const translations = { "Rejoignez le projet POEditor pour aider", "Werden Sie Teil des POEditor-Projekts und helfen Sie mit", "Unisciti al progetto POEditor per aiutare", - "Ajude juntando-se ao projeto do POEditor", + "", "Csatlakozzon a POEditor projekthez, hogy segíthessen", "Присоединяйтесь к проекту POEditor, чтобы помочь", "Dołącz do projektu POEditor, aby pomóc", @@ -2011,7 +2011,7 @@ const translations = { "Barre de notification", "Benachrichtigungsleiste", "Barra delle notifiche", - "Barra de notificações", + "", "Értesítési sáv", "Панель уведомлений", "Pasek powiadomień", @@ -2028,7 +2028,7 @@ const translations = { "Afficher les informations météorologiques dans la barre de notification", "Wetterinformationen in der Benachrichtigungsleiste anzeigen", "Mostra le informazioni meteo nella barra delle notifiche", - "Mostrar informações do clima na barra de notificações", + "", "Jelenítse meg az időjárási adatokat az értesítési sávon", "Показать информацию о погоде на панели уведомлений", "Pokaż informacje o pogodzie na pasku powiadomień", @@ -2045,7 +2045,7 @@ const translations = { "Mise à jour, à l’instant", "Aktualisiert, gerade eben", "Aggiornato, proprio ora", - "Atualizado, agora mesmo", + "", "Éppen most frissítve", "Обновлено только что", "Zaktualizowano przed chwilą", @@ -2062,7 +2062,7 @@ const translations = { "durée du jour", "Tageslänge", "lunghezza del giorno", - "tamanho do dia", + "", "Nappali órák", "продолжительность дня", "długość dnia", @@ -2079,7 +2079,7 @@ const translations = { "Ne manquez pas le lever du soleil ! Il se produira dans 40 minutes ou moins.", "Verpassen Sie nicht den Sonnenaufgang! Er wird in 40 Minuten oder weniger da sein.", "Non perdetevi l'alba! Accadrà tra 40 minuti o meno.", - "Não perca o nascer do sol! Ele vai acontecer em 40 minutos ou menos.", + "", "Ne hagyja ki a napkeltét! Legfeljebb 40 percen belül bekövetkezik.", "Не пропустите восход солнца! Он произойдет через 40 минут или меньше.", "Nie przegap wschodu słońca! Nastąpi za 40 minut lub mniej.", @@ -2096,7 +2096,7 @@ const translations = { "Ne manquez pas le coucher du soleil ! Il se produira dans 40 minutes ou moins.", "Verpassen Sie nicht den Sonnenuntergang! Er findet in 40 Minuten oder weniger statt.", "Non perdetevi il tramonto! Accadrà tra 40 minuti o meno.", - "Não perca o pôr do sol! Ele vai acontecer em 40 minutos ou menos.", + "", "Ne hagyja ki a naplementét! Legfeljebb 40 percen belül bekövetkezik.", "Не пропустите закат! Он произойдет через 40 минут или меньше.", "Nie przegap zachodu słońca! Nastąpi za 40 minut lub mniej.", @@ -2113,7 +2113,7 @@ const translations = { "Précipitations par heures", "Stündlicher Niederschlag", "Precipitazioni orarie", - "Precipitação por hora", + "", "Óránkénti csapadék", "Почасовые осадки", "Opady godzinowe", @@ -2130,7 +2130,7 @@ const translations = { "Direction", "Richtung", "Direzione", - "Direção", + "", "Irány", "Направление", "Kierunek", @@ -2147,7 +2147,7 @@ const translations = { "Calme", "Ruhig", "Calma", - "Calmo", + "", "Nyugodt", "Спокойствие", "Cisza", @@ -2164,7 +2164,7 @@ const translations = { "Air léger", "Leichte Luft", "Aria leggera", - "Ar leve", + "", "Enyhe fuvallat", "Легкий воздух", "Lekki wietrzyk", @@ -2181,7 +2181,7 @@ const translations = { "Vent léger", "Leichte Brise", "brezza leggera", - "Brisa leve", + "", "Enyhe szellő", "Легкий ветерок", "Lekka bryza", @@ -2198,7 +2198,7 @@ const translations = { "Vent doux", "Sanfte Brise", "Brezza leggera", - "Brisa suave", + "", "Enyhe szellő", "Легкий ветерок", "Łagodna bryza", @@ -2215,7 +2215,7 @@ const translations = { "Vent modéré", "Mäßige Brise", "Brezza moderata", - "Brisa moderada", + "", "Mérsékelt szellő", "Умеренный ветер", "Umiarkowana bryza", @@ -2232,7 +2232,7 @@ const translations = { "Vent frais", "Frische Brise", "Brezza fresca", - "Brisa fresca", + "", "Friss szellő", "Свежий ветерок", "Świeża bryza", @@ -2249,7 +2249,7 @@ const translations = { "Vent Fort", "Starke Brise", "Brezza forte", - "Brisa forte", + "", "Erős szellő", "Сильный ветер", "Silna bryza", @@ -2266,7 +2266,7 @@ const translations = { "Grand Vent", "Starker Wind", "Vento forte", - "Vento forte", + "", "Erős szél", "Сильный ветер", "Silny wiatr", @@ -2283,7 +2283,7 @@ const translations = { "Coup de vent", "Sturm", "Burrasca", - "Vendaval", + "", "Szélvihar", "Гейл", "Nawałnica", @@ -2300,7 +2300,7 @@ const translations = { "Fort coup de vent", "Starker Sturm", "Forte burrasca", - "Vendaval forte", + "", "Erős szélvihar", "Сильный штормовой ветер", "Silna nawałnica", @@ -2317,7 +2317,7 @@ const translations = { "Orage", "Sturm", "Tempesta", - "Tempestade", + "", "Vihar", "Шторм", "Wichura", @@ -2334,7 +2334,7 @@ const translations = { "Violent orage", "Heftiger Sturm", "Tempesta violenta", - "Tempestade violenta", + "", "Heves vihar", "Сильный шторм", "Gwałtowna wichura", @@ -2351,7 +2351,7 @@ const translations = { "Ouragan", "Hurrikan", "Uragano", - "Furacão", + "", "Hurrikán", "Ураган", "Huragan", @@ -2368,7 +2368,7 @@ const translations = { "Réchauffement attendu au cours des prochains jours.", "In den nächsten Tagen wird mit Erwärmung gerechnet.", "Nei prossimi giorni è previsto un riscaldamento.", - "É esperado um aquecimento durante os próximos dias.", + "", "Felmelegedés várható a következő napokban.", "В ближайшие дни ожидается потепление.", "Oczekiwane ocieplenie w ciągu najbliższych kilku dni.", @@ -2385,7 +2385,7 @@ const translations = { "On dirait qu'il va faire plus chaud cette semaine!", "Die Temperaturen werden bald steigen, machen Sie sich auf Hitze gefasst!", "Le temperature saliranno presto, preparatevi al caldo!", - "As temperaturas irão subir em breve, prepare-se para um pouco de calor!", + "", "A hőmérséklet hamarosan emelkedni fog, készüljön a melegre!", "Температура скоро повысится, приготовьтесь к жаре!", "Temperatury wkrótce wzrosną, przygotuj się na upały!", @@ -2402,7 +2402,7 @@ const translations = { "Il va faire plus chaud cette semaine.", "Es scheint, als würde es diese Woche wärmer werden.", "Sembra che questa settimana farà più caldo.", - "Parece que vai ficar mais quente essa semana.", + "", "Előre láthatóan a hét folyamán melegszik az időjárás.", "Похоже, на этой неделе станет теплее.", "Wygląda na to, że w tym tygodniu zrobi się cieplej.", @@ -2419,7 +2419,7 @@ const translations = { "Préparez-vous pour un temps plus chaud à venir.", "Bereiten Sie sich auf das bevorstehende wärmere Wetter vor.", "Preparatevi al clima più caldo che ci aspetta.", - "Prepare-se para um clima mais quente pela frente.", + "", "Felmelegedés várható.", "Готовьтесь к более теплой погоде.", "Przygotuj się na cieplejszą pogodę.", @@ -2436,7 +2436,7 @@ const translations = { "Refroidissement prévu au cours des prochains jours.", "In den nächsten Tagen wird mit einer Abkühlung gerechnet.", "Nei prossimi giorni è previsto un raffreddamento.", - "É esperado um resfriamento durante os próximos dias.", + "", "Lehűlés várható a következő néhány nap folyamán.", "В ближайшие дни ожидается похолодание.", "Ochłodzenie spodziewane w ciągu najbliższych kilku dni.", @@ -2453,7 +2453,7 @@ const translations = { "Les températures vont bientôt chuter, restez au chaud!", "Die Temperaturen fallen bald, bleiben Sie warm!", "Le temperature scenderanno presto, restate al caldo!", - "As temperaturas vão cair em breve, mantenha-se aquecido!", + "", "A hőmérséklet hamarosan leesik, tartsa magát melegen!", "Температура скоро понизится, оставайтесь в тепле!", "Temperatury wkrótce spadną, ubierz się ciepło!", @@ -2470,7 +2470,7 @@ const translations = { "Il va faire plus frais dans les prochains jours.", "In den nächsten Tagen wird es kühler.", "Nei prossimi giorni farà più fresco.", - "Vai ficar mais gelado nos próximos dias.", + "", "Lehűlés várható a következő napokban.", "В ближайшие дни станет прохладнее.", "W najbliższych dniach będzie coraz chłodniej.", @@ -2487,7 +2487,7 @@ const translations = { "Attendez-vous à une brise fraîche au cours des prochains jours.", "In den nächsten Tagen ist mit einer kühlen Brise zu rechnen.", "Nei prossimi giorni è prevista una brezza fredda.", - "Espere uma brisa fria durante os próximos dias.", + "", "Hűvös szellő várható a követkető napokban.", "В ближайшие дни ожидается прохладный ветер.", "Spodziewaj się chłodnej bryzy w ciągu najbliższych dni.", @@ -2504,7 +2504,7 @@ const translations = { "Températures stables prévues pour les prochains jours.", "In den nächsten Tagen werden stabile Temperaturen erwartet.", "Nei prossimi giorni sono previste temperature stabili.", - "Temperaturas estáveis são esperadas nos próximos dias.", + "", "Stabil hőmérséklet várható a következő néhány nap folyamán.", "В ближайшие дни ожидается стабильная температура.", "Stabilna temperatura, stabilna pogoda.", @@ -2521,7 +2521,7 @@ const translations = { "Pas de grands changements de température à l’avenir, temps stable.", "Keine großen Temperaturschwankungen voraus, stabiles Wetter.", "Non sono previsti grandi sbalzi di temperatura, tempo stabile.", - "Sem grandes mudanças de temperatura pela frente, clima estável.", + "", "Nincs nagy előre látható változás, stabil az időjárás.", "Никаких существенных изменений температуры не предвидится, погода стабильная.", "Bez większych zmian temperatury, stabilna pogoda.", @@ -2538,7 +2538,7 @@ const translations = { "Les températures sont stables pour l’instant.", "Die Temperaturen bleiben vorerst stabil.", "Per ora le temperature sono stabili.", - "As temperaturas estão se mantendo constantes por enquanto.", + "", "Egyelőre stabil a hőmérséklet.", "На данный момент температура держится стабильной.", "Na razie temperatury utrzymują się na stałym poziomie.", @@ -2555,7 +2555,7 @@ const translations = { "Attendez-vous à un temps stable sans grand changement.", "Erwarten Sie stabiles Wetter ohne große Veränderungen.", "Ci si aspetta un meteo stabile, senza grandi cambiamenti.", - "Espere um clima estável sem muitas alterações.", + "", "Stabil időjárás, változásokra nem kell számítani.", "Ожидается стабильная погода без существенных изменений.", "Spodziewaj się stabilnej pogody bez większych zmian.", @@ -2572,7 +2572,7 @@ const translations = { "❄️ Températures glaciales ! Portez un manteau lourd, des gants, un chapeau et un foulard pour rester au chaud.", "❄️ Gefriertemperaturen! Tragen Sie einen dicken Mantel, Handschuhe, eine Mütze und einen Schal, um warm zu bleiben.", "❄️ Temperature gelide! Indossa un cappotto pesante, guanti, un cappello e una sciarpa per stare al caldo.", - "❄️ Temperaturas congelantes! Use um casaco pesado, luvas, um gorro, e um cachecol para manter-se aquecido.", + "", "❄️ Fagypont alatti hőmérséklet! Viseljen vastag kabátot, kesztyűt, sapkát és sálat.", "❄️ Мороз! Наденьте теплое пальто, перчатки, шапку и шарф, чтобы согреться.", "❄️ Silny mróz. Noś ciepły płaszcz, rękawiczki, czapkę i szalik, aby się ogrzać.", @@ -2589,7 +2589,7 @@ const translations = { "🧥 Très froid ! Portez un manteau épais, un chapeau et des gants pour vous garder au chaud.", "🧥 Sehr kalt! Tragen Sie einen dicken Mantel, eine Mütze und Handschuhe, um sich warm zu halten.", "🧥 Fa molto freddo! Indossa un cappotto spesso, un cappello e dei guanti per stare al caldo.", - "🧥 Muito frio! Use um casaco grosso, um gorro, e luvas para manter-se aquecido.", + "", "🧥 Nagy hideg! Viseljen vastag kabátot, sapkát és kesztyűt.", "🧥 Очень холодно! Наденьте толстое пальто, шапку и перчатки, чтобы согреться.", "🧥 Bardzo zimno! Noś gruby płaszcz, czapkę i rękawiczki aby się ogrzać.", @@ -2606,7 +2606,7 @@ const translations = { "🧣 Temps froid. Un manteau et un pull vous garderont à l’aise.", "🧣 Kaltes Wetter. Ein Mantel und ein Pullover sorgen für Komfort.", "🧣 Clima freddo. Un cappotto e un maglione ti terranno a tuo agio.", - "🧣 Clima frio. Um casaco e um suéter vão manter você confortável.", + "", "🧣 Hideg időjárás. Egy kabát és egy pulóver kényelmesen melegen tartja.", "🧣 Холодная погода. Пальто и свитер обеспечат вам комфорт.", "🧣 Mroźna pogoda. Płaszcz i sweter zapewnią ci komfort.", @@ -2623,7 +2623,7 @@ const translations = { "🧥 Températures fraîches. Portez une veste légère et des manches longues.", "🧥 Kühle Temperaturen. Tragen Sie eine leichte Jacke und lange Ärmel.", "🧥 Temperature fresche. Indossa una giacca leggera e maniche lunghe.", - "🧥 Temperaturas frias. Use uma jaqueta leve e mangas longas.", + "", "🧥 Alacsony hőmérséklet. Viseljen könnyű dzsekit és hosszú ujjút.", "🧥 Прохладная погода. Наденьте легкую куртку и одежду с длинными рукавами.", "🧥 Niskie temperatury. Noś kurtkę i długie rękawy.", @@ -2640,7 +2640,7 @@ const translations = { "🌤️ Temps doux. Une veste légère ou un pull devrait suffire.", "🌤️ Mildes Wetter. Eine leichte Jacke oder ein Pullover sollten ausreichen.", "🌤️ Clima mite. Una giacca leggera o un maglione dovrebbero essere sufficienti.", - "🌤️ Clima ameno. Uma jaqueta leve ou um suéter deve ser o suficiente.", + "", "🌤️ Enyhe idő. Könnyű dzseki vagy pulóver elegendő.", "🌤️ Мягкая погода. Легкой куртки или свитера будет достаточно.", "🌤️ Łagodna pogoda. Lekka kurtka lub sweter powinny wystarczyć.", @@ -2657,7 +2657,7 @@ const translations = { "👕 Journée chaude. Un t-shirt et un jean ou un pantalon conviennent.", "👕 Warmer Tag. Ein T-Shirt und Jeans oder Hosen reichen aus.", "👕 Giornata calda. Sono adatti una maglietta e jeans o pantaloni.", - "👕 Dia quente. Uma camiseta e jeans ou calças são adequados.", + "", "👕 Meleg nap. Egy póló és farmer nadrág megfelelő.", "👕 Теплый день. Подойдет футболка и джинсы или брюки.", "👕 Ciepły dzień. Odpowiedni będzie t-shirt i dżinsy lub spodnie.", @@ -2674,7 +2674,7 @@ const translations = { "☀️ Chaud ! Optez pour un t-shirt et un pantalon léger ou un short.", "☀️ Heiß! Entscheiden Sie sich für ein T-Shirt und eine leichte Hose oder Shorts.", "☀️ Caldo! Opta per una maglietta e pantaloni leggeri o pantaloncini.", - "☀️ Quente! Opte por uma camiseta e calças leves ou shorts.", + "", "☀️ Hőség! Viseljen jól szellőző ruhát.", "☀️ Жарко! Выбирайте футболку и легкие брюки или шорты.", "☀️ Gorąco! Wybierz t-shirt i lekkie spodnie lub szorty.", @@ -2691,7 +2691,7 @@ const translations = { "🌞 Très chaud. Portez des vêtements légers et respirants et restez hydraté.", "🌞 Sehr heiß. Tragen Sie leichte, atmungsaktive Kleidung und trinken Sie ausreichend.", "🌞 Molto caldo. Indossa abiti leggeri e traspiranti e mantieniti idratato.", - "🌞 Muito quente. Use roupas leves e finas e mantenha-se hidratado.", + "", "🌞 Nagy hőseg. Viseljen könnyű, jól szellőző ruhát, és fogyasszon elegendő folyadékot.", "🌞 Очень жарко. Носите легкую, дышащую одежду и пейте много воды.", "🌞 Bardzo gorąco. Nosić lekką, oddychającą odzież, pij wodę.", @@ -2708,7 +2708,7 @@ const translations = { "🔥 Chaleur extrême ! Portez des vêtements très légers, restez hydraté et évitez l’exposition directe au soleil.", "🔥 Extreme Hitze! Tragen Sie sehr leichte Kleidung, trinken Sie ausreichend und vermeiden Sie direkte Sonneneinstrahlung.", "🔥 Caldo estremo! Indossa abiti molto leggeri, mantieniti idratato ed evita l'esposizione diretta al sole.", - "🔥 Calor extremo! Use roupas leves, mantenha-se hidratado, e evite exposição direta ao sol.", + "", "🔥 Extrém hőség! Viseljen jól szellőző ruhát, fogyasszon sok vizet és kerülje a közvetlen napsugárzást.", "🔥 Экстремальная жара! Носите очень легкую одежду, пейте много воды и избегайте прямого воздействия солнца.", "🔥 Ekstremalny upał! Noś bardzo lekką odzież, pij wodę i unikaj bezpośredniej ekspozycji na słońce.", @@ -2725,7 +2725,7 @@ const translations = { "⚠️ Dangereusement chaud ! Portez le minimum de vêtements, restez à l’intérieur si possible et buvez beaucoup d’eau.", "⚠️ Gefährlich heiß! Tragen Sie nur minimale Kleidung, bleiben Sie wenn möglich drinnen und trinken Sie viel Wasser.", "⚠️ Pericolosamente caldo! Indossate indumenti minimi, restate in casa se possibile e bevete molta acqua.", - "⚠️ Perigosamente quente! Use poucas roupas, fique dentro de casa se possível, e beba bastante água.", + "", "⚠️ Veszélyes forróság! Viseljen jól szellőző ruhát, amennyiben lehetséges, maradjon árnyékban és fogyasszon sok vizet.", "⚠️ Опасно жарко! Надевайте минимум одежды, по возможности оставайтесь в помещении и пейте много воды.", "⚠️ Niebezpiecznie gorąco! Nosić minimalną odzież, zostań w domu, jeśli to możliwe, i pij dużo wody.", @@ -2742,7 +2742,7 @@ const translations = { "🚨 Alerte chaleur extrême ! Portez le minimum de vêtements, restez à l’intérieur et buvez beaucoup d’eau pour rester en sécurité.", "🚨 Warnung vor extremer Hitze! Tragen Sie nur minimale Kleidung, bleiben Sie drinnen und trinken Sie viel Wasser, um sicher zu sein.", "🚨 Allerta caldo estremo! Indossate indumenti minimi, restate in casa e bevete molta acqua per restare al sicuro.", - "🚨 Alerta de calor extremo! Use poucas roupas, fique dentro de casa, e beba bastante água para se manter seguro.", + "", "🚨Extrém hőségriadó! Viseljen jól szellőző ruhát, maradjon árnyékban és fogyasszon sok vizet.", "🚨 Внимание, экстремальная жара! Надевайте минимум одежды, оставайтесь в помещении и пейте много воды, чтобы оставаться в безопасности.", "🚨 Alarm ekstremalny upał! Noś minimalną odzież, pozostań w domu i pij dużo wody, aby zachować bezpieczeństwo.", @@ -2759,7 +2759,7 @@ const translations = { "Emplacement actuel", "Aktueller Standort", "Posizione attuale", - "Localização atual", + "", "Jelenlegi hely", "Текущее местоположение", "Bieżąca lokalizacja", @@ -2776,7 +2776,7 @@ const translations = { "Température principal", "Aktueller Standort", "Temperatura principale", - "Temperatura principal", + "", "Átlag hőmérséklet", "Основная температура", "Temperatura", @@ -2793,7 +2793,7 @@ const translations = { "Sélectionnez un emplacement", "Wählen Sie einen Standort", "Scegli una posizione", - "Escolha um local", + "", "Válasszon egy helyet", "Выберите место", "Wybierz lokalizację", @@ -2810,7 +2810,7 @@ const translations = { "Une erreur est survenue!", "Ein Fehler ist aufgetreten!", "Si è verificato un errore!", - "Ocorreu um erro!", + "", "Hiba történt!", "Произошла ошибка!", "Wystąpił błąd!", @@ -2827,7 +2827,7 @@ const translations = { "Vérifiez votre connexion internet et réessayez.", "Überprüfen Sie Ihre Internetverbindung und versuchen Sie es erneut.", "Controlla la tua connessione Internet e riprova.", - "Verifique a sua ligação à Internet e tente novamente.", + "", "Ellenőrize az internetkapcsolatot és próbálja újra.", "Проверьте подключение к Интернету и повторите попытку.", "Sprawdź połączenie internetowe i spróbuj ponownie.", @@ -2844,7 +2844,7 @@ const translations = { "Il pourrait y avoir une erreur d'API.", "Möglicherweise liegt ein API-Fehler vor.", "Potrebbe esserci un errore API.", - "Pode haver um erro de API.", + "", "API hiba történt.", "Возможно, произошла ошибка API.", "Wystąpił błąd API.", @@ -2928,7 +2928,6 @@ const langMap = { 'ja': 13, 'uk': 14, - }; function getTranslationByLang(langCode, key) { diff --git a/app/src/main/assets/modules/pixel-components.js b/app/src/main/assets/modules/pixel-components.js index 2ccbfdac8..29de0adcc 100644 --- a/app/src/main/assets/modules/pixel-components.js +++ b/app/src/main/assets/modules/pixel-components.js @@ -32,7 +32,7 @@ const WidgetsPressure = { const WidgetsWindDirections = { - SouthArrow: ' ', + NorthArrow: ' ', EastArrow: ' ', @@ -40,7 +40,7 @@ const WidgetsWindDirections = { NorthWestArrow: ' ', - NorthArrow: ' ', + SouthArrow: ' ', SouthWestArrow: ' ', diff --git a/app/src/main/assets/modules/ripple_acc.js b/app/src/main/assets/modules/ripple_acc.js index 17b601ddc..dcc5d5fe3 100644 --- a/app/src/main/assets/modules/ripple_acc.js +++ b/app/src/main/assets/modules/ripple_acc.js @@ -44,11 +44,3 @@ document.addEventListener('DOMContentLoaded', function () { }); }); -const useSysFont = localStorage.getItem('useSysFont'); - -if(useSysFont === 'true'){ - document.documentElement.setAttribute('sys-font', 'true'); -} else{ - document.documentElement.setAttribute('sys-font', 'false'); - -} \ No newline at end of file diff --git a/app/src/main/assets/modules/units.js b/app/src/main/assets/modules/units.js index 3b1d5e12c..f93d4a494 100644 --- a/app/src/main/assets/modules/units.js +++ b/app/src/main/assets/modules/units.js @@ -1150,189 +1150,3 @@ function GetWeatherIconNight(iconCode) { -// weather label no animation - - - -function GetWeatherLabelNoAnim(iconCode, isDay) { - - - if (isDay === 1) { - if (iconCode === 0) { - - return 'clear_sky' - - } else if (iconCode === 1) { - - return 'mostly_clear' - - } else if (iconCode === 2) { - - return 'partly_cloudy' - - } else if (iconCode === 3) { - - return 'overcast' - - } else if (iconCode === 45 || iconCode === 48) { - - return 'fog' - - } else if (iconCode === 51 || iconCode === 53 || iconCode === 55) { - - return 'drizzle' - - } else if (iconCode === 56 || iconCode === 57) { - - return 'freezing_drizzle' - - } else if (iconCode === 61 || iconCode === 63) { - - return 'moderate_rain' - - } else if (iconCode === 65) { - - return 'heavy_intensity_rain' - - } else if (iconCode === 66 || iconCode === 67) { - - return 'freezing_rain' - - } else if (iconCode === 71) { - - return 'slight_snow' - - } else if (iconCode === 73) { - - return 'moderate_snow' - - } else if (iconCode === 75) { - - return 'heavy_intensity_snow' - - } else if (iconCode === 77) { - - return 'snow_grains' - - } else if (iconCode === 80 || iconCode === 81) { - - return 'rain_showers' - - } else if (iconCode === 82) { - - return 'heavy_rain_showers' - - } else if (iconCode === 85) { - - return 'slight_snow_showers' - - } else if (iconCode === 86) { - - return 'heavy_snow_showers' - - } else if (iconCode === 95) { - - return 'thunderstorm' - - } else if (iconCode === 96 || iconCode === 99) { - - return 'strong_thunderstorm' - - } - } else { - if (iconCode === 0) { - - return 'clear_sky' - - } else if (iconCode === 1) { - - return 'mostly_clear' - - } else if (iconCode === 2) { - - return 'partly_cloudy' - - } else if (iconCode === 3) { - - return 'overcast' - - } else if (iconCode === 45 || iconCode === 48) { - - return 'fog' - - } else if (iconCode === 51 || iconCode === 53 || iconCode === 55) { - - return 'drizzle' - - } else if (iconCode === 56 || iconCode === 57) { - - return 'freezing_drizzle' - - } else if (iconCode === 61 || iconCode === 63) { - - return 'moderate_rain' - - } else if (iconCode === 65) { - - return 'heavy_intensity_rain' - - } else if (iconCode === 66 || iconCode === 67) { - - return 'freezing_rain' - - } else if (iconCode === 71) { - - return 'slight_snow' - - } else if (iconCode === 73) { - - return 'moderate_snow' - - } else if (iconCode === 75) { - - return 'heavy_intensity_snow' - - } else if (iconCode === 77) { - - return 'snow_grains' - - } else if (iconCode === 80 || iconCode === 81) { - - return 'rain_showers' - - } else if (iconCode === 82) { - - return 'heavy_rain_showers' - - } else if (iconCode === 85) { - - return 'slight_snow_showers' - - } else if (iconCode === 86) { - - return 'heavy_snow_showers' - - } else if (iconCode === 95) { - - return 'thunderstorm' - - } else if (iconCode === 96 || iconCode === 99) { - - return 'strong_thunderstorm' - - } - } - - - - - return '' -} - -function getWeatherLabelInLangNoAnim(iconCode, isDay, langCode) { - const translationKey = GetWeatherLabelNoAnim(iconCode, isDay); - - const translatedLabel = getTranslationByLang(langCode, translationKey); - - return translatedLabel || 'Unknown weather'; -} \ No newline at end of file diff --git a/app/src/main/assets/pages/AboutPage.html b/app/src/main/assets/pages/AboutPage.html index 590750e26..c96f87bf8 100644 --- a/app/src/main/assets/pages/AboutPage.html +++ b/app/src/main/assets/pages/AboutPage.html @@ -161,7 +161,7 @@

    WeatherMaster

    - 1.6.6 (W) + 1.6.4 (W) Latest version refresh @@ -280,7 +280,7 @@ AndroidInterface.updateStatusBarColor(theme); document.getElementById('checkUpdatesBtn').addEventListener('click', async function() { - const currentVersion = 'v1.6.6'; + const currentVersion = 'v1.6.4'; const githubRepo = 'PranshulGG/WeatherMaster'; const releasesUrl = `https://api.github.com/repos/${githubRepo}/releases/latest`; diff --git a/app/src/main/assets/pages/LanguagesPage.html b/app/src/main/assets/pages/LanguagesPage.html index 6874f9262..de42a3e88 100644 --- a/app/src/main/assets/pages/LanguagesPage.html +++ b/app/src/main/assets/pages/LanguagesPage.html @@ -184,7 +184,7 @@ -