1.6.6 Updated
No files matched your search
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Encoding">
|
||||
<file url="file://$PROJECT_DIR$/app/src/main/assets/pages/forecastPage.html" charset="UTF-8" />
|
||||
</component>
|
||||
</project>
|
||||
@@ -3,7 +3,4 @@
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||
</component>
|
||||
<component name="ProjectType">
|
||||
<option name="id" value="Android" />
|
||||
</component>
|
||||
</project>
|
||||
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 39 KiB |
|
After Width: | Height: | Size: 59 KiB |
|
After Width: | Height: | Size: 47 KiB |
|
After Width: | Height: | Size: 43 KiB |
|
After Width: | Height: | Size: 51 KiB |
@@ -0,0 +1,29 @@
|
||||
Index: README.md
|
||||
IDEA additional info:
|
||||
Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP
|
||||
<+> # WeatherMaster \r\n \r\n<img src=\"https://github.com/PranshulGG/WeatherMaster/blob/master/app/src/main/assets/weather-icons/02d.svg?short_path=21e6bd2\" alt=\"\" width=\"150px\">\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<div > \r\n<img alt=\"App image\" src=\"screenshots/1.png\" width=\"30%\" style=\"border-radius: 10px;\">\r\n<img alt=\"App image\" src=\"screenshots/2.png\" width=\"30%\">\r\n<img alt=\"App image\" src=\"screenshots/3.png\" width=\"30%\">\r\n<img alt=\"App image\" src=\"screenshots/4.png\" width=\"30%\">\r\n<img alt=\"App image\" src=\"screenshots/5.png\" width=\"30%\">\r\n \r\n</div>\r\n\r\n<br>\r\n\r\n\r\n# \uD83D\uDCF2 Download\r\n\r\n<p align=\"left\">\r\n <a href=\"https://github.com/PranshulGG/WeatherMaster/releases\"><img alt=\"GitHub\" src=\"https://github.com/PranshulGG/CalcMaster-A-Calculator-App/blob/master/previewed/badge_github.png\" height=\"120\"/></a>\r\n</p>\r\n\r\n\r\n# ✨ Features:\r\n\r\n - <strong>Native Android Experience: </stronge>Enjoy a user interface and interaction that closely resemble a native Android Weather app.\r\n \r\n - <strong>Material Design: </stronge>The app is built using Material Web Components, ensuring a clean, consistent, and visually appealing design.\r\n\r\n - <strong>Customization Options: </stronge>Enjoy a ton of customization options. Adjust themes, Units.\r\n \r\n - <strong>Responsive Design: </stronge>WeatherMaster is fully responsive for all mobile devices.\r\n \r\n - <strong>User-Friendly Interface: </stronge>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 - <strong>HTML & CSS: </stronge> For the basic structure and styling of the app.\r\n \r\n - <strong>JavaScript: </stronge>To handle the app's logic and interactivity.\r\n\r\n - <strong>Weather data: </stronge> Using <a href=\"https://openweathermap.org/\">OpenWeatherMap</a> to fetch weather and <a href=\"https://ipgeolocation.io/\">ipgeolocation.io</a> for Moonset and Moonrise timings\r\n\r\n - <strong>Java: </stronge>Mainly used for JavaScript interface and permissions, allowing the app to run on Android devices.\r\n \r\n - <strong>Material Web Components: </stronge>Utilized to create a consistent and attractive Material Design look and feel.\r\n\r\n - <strong>Weather icons</strong>: <a href=\"https://gitlab.com/bignutty/google-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<br>\r\n<br>\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<br>\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<br>\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
|
||||
|
||||
<div >
|
||||
-<img alt="App image" src="screenshots/1.png" width="30%" style="border-radius: 10px;">
|
||||
-<img alt="App image" src="screenshots/2.png" width="30%">
|
||||
-<img alt="App image" src="screenshots/3.png" width="30%">
|
||||
-<img alt="App image" src="screenshots/4.png" width="30%">
|
||||
-<img alt="App image" src="screenshots/5.png" width="30%">
|
||||
+<img alt="App image" src="screenshots/img_1.jpeg" width="30%" style="border-radius: 10px;">
|
||||
+<img alt="App image" src="screenshots/Img_2.jpeg" width="30%">
|
||||
+<img alt="App image" src="screenshots/img_3.jpeg" width="30%">
|
||||
+<img alt="App image" src="screenshots/img_4.jpeg" width="30%">
|
||||
+<img alt="App image" src="screenshots/img_5.jpeg" width="30%">
|
||||
+<img alt="App image" src="screenshots/img_6.jpeg" width="30%">
|
||||
+
|
||||
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
<changelist name="Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm_[Changes]" date="1720854808110" recycled="false" toDelete="true">
|
||||
<option name="PATH" value="$PROJECT_DIR$/.idea/shelf/Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm_[Changes]/shelved.patch" />
|
||||
<option name="DESCRIPTION" value="Uncommitted changes before Update at 13-07-2024 12:43 pm [Changes]" />
|
||||
<binary>
|
||||
<option name="BEFORE_PATH" value="screenshots/3.png" />
|
||||
<option name="AFTER_PATH" />
|
||||
<option name="SHELVED_PATH" />
|
||||
</binary>
|
||||
<binary>
|
||||
<option name="BEFORE_PATH" />
|
||||
<option name="AFTER_PATH" value="screenshots/img_1.jpeg" />
|
||||
<option name="SHELVED_PATH" value="$PROJECT_DIR$/.idea/shelf/Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm_[Changes]/img_1.jpeg" />
|
||||
</binary>
|
||||
<binary>
|
||||
<option name="BEFORE_PATH" value="screenshots/4.png" />
|
||||
<option name="AFTER_PATH" />
|
||||
<option name="SHELVED_PATH" />
|
||||
</binary>
|
||||
<binary>
|
||||
<option name="BEFORE_PATH" />
|
||||
<option name="AFTER_PATH" value="screenshots/img_4.jpeg" />
|
||||
<option name="SHELVED_PATH" value="$PROJECT_DIR$/.idea/shelf/Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm_[Changes]/img_4.jpeg" />
|
||||
</binary>
|
||||
<binary>
|
||||
<option name="BEFORE_PATH" value="screenshots/5.png" />
|
||||
<option name="AFTER_PATH" />
|
||||
<option name="SHELVED_PATH" />
|
||||
</binary>
|
||||
<binary>
|
||||
<option name="BEFORE_PATH" value="screenshots/1.png" />
|
||||
<option name="AFTER_PATH" />
|
||||
<option name="SHELVED_PATH" />
|
||||
</binary>
|
||||
<binary>
|
||||
<option name="BEFORE_PATH" />
|
||||
<option name="AFTER_PATH" value="screenshots/img_3.jpeg" />
|
||||
<option name="SHELVED_PATH" value="$PROJECT_DIR$/.idea/shelf/Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm_[Changes]/img_3.jpeg" />
|
||||
</binary>
|
||||
<binary>
|
||||
<option name="BEFORE_PATH" />
|
||||
<option name="AFTER_PATH" value="screenshots/img_6.jpeg" />
|
||||
<option name="SHELVED_PATH" value="$PROJECT_DIR$/.idea/shelf/Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm_[Changes]/img_6.jpeg" />
|
||||
</binary>
|
||||
<binary>
|
||||
<option name="BEFORE_PATH" />
|
||||
<option name="AFTER_PATH" value="screenshots/img_5.jpeg" />
|
||||
<option name="SHELVED_PATH" value="$PROJECT_DIR$/.idea/shelf/Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm_[Changes]/img_5.jpeg" />
|
||||
</binary>
|
||||
<binary>
|
||||
<option name="BEFORE_PATH" value="screenshots/2.png" />
|
||||
<option name="AFTER_PATH" />
|
||||
<option name="SHELVED_PATH" />
|
||||
</binary>
|
||||
<binary>
|
||||
<option name="BEFORE_PATH" />
|
||||
<option name="AFTER_PATH" value="screenshots/Img_2.jpeg" />
|
||||
<option name="SHELVED_PATH" value="$PROJECT_DIR$/.idea/shelf/Uncommitted_changes_before_Update_at_13-07-2024_12_43_pm_[Changes]/Img_2.jpeg" />
|
||||
</binary>
|
||||
</changelist>
|
||||
@@ -0,0 +1,674 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
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.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
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 <https://www.gnu.org/licenses/>.
|
||||
|
||||
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:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
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
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
||||
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
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||
@@ -0,0 +1,131 @@
|
||||
# 🌦️ WeatherMaster
|
||||
|
||||
<img src="https://github.com/PranshulGG/WeatherMaster/blob/master/preview/partly_cloudy_day.svg" alt="" width="150px">
|
||||
|
||||
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)`
|
||||
|
||||

|
||||
|
||||
# 👁️ Screenshots
|
||||
|
||||
> [!NOTE]
|
||||
> **Screenshots may differ from the current version.**
|
||||
|
||||
<div align="center">
|
||||
<img src="preview/current.png" width="320">
|
||||
<img src="preview/24hr.png" width="320">
|
||||
<img src="preview/radar_condi.png" width="320">
|
||||
<img src="preview/uv_aqi.png" width="320">
|
||||
<img src="preview/forecast_page.png" width="320">
|
||||
<img src="preview/gov_alerts.png" width="320">
|
||||
<img src="preview/settings.png" width="320">
|
||||
<img src="preview/radar_page.png" width="320">
|
||||
<img src="preview/condi_forecast.png" width="320">
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<br>
|
||||
|
||||
# 📲 Download
|
||||
|
||||
<table style="width: 100%; border-collapse: collapse;">
|
||||
<tr>
|
||||
<td style="text-align: center;"> <a href="https://github.com/PranshulGG/WeatherMaster/releases"><img alt="GitHub" src="https://censorship.no/img/github-badge.png" height="120"/></a></td>
|
||||
<td style="text-align: center;"> <a href="https://apt.izzysoft.de/fdroid/index/apk/com.example.weathermaster"><img alt="GitHub" src="preview/download_Btn.png" height="120"/></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
# ✨ 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:
|
||||
|
||||
- 📱<strong>Native Android Experience: </stronge>Enjoy a user interface and interaction that closely resemble a native Android Weather app.
|
||||
|
||||
- 🎨<strong>Material Design: </stronge>The app is built using Material Web Components, ensuring a clean, consistent, and visually appealing design.
|
||||
|
||||
- ⚙️<strong>Customization Options: </stronge>Enjoy a ton of customization options. Adjust themes, Units.
|
||||
|
||||
- 📐<strong>Responsive Design: </stronge>WeatherMaster is fully responsive for all mobile devices.
|
||||
|
||||
- 🧩<strong>User-Friendly Interface: </stronge>The app's interface is designed to be straightforward and user-friendly.
|
||||
|
||||
|
||||
# 🛠️ Built With:
|
||||
|
||||
- <strong>HTML & CSS: </stronge> For the basic structure and styling of the app.
|
||||
|
||||
- <strong>JavaScript: </stronge>To handle the app's logic and interactivity.
|
||||
|
||||
- <strong>Java: </stronge>Mainly used for JavaScript interface and permissions, allowing the app to run on Android devices.
|
||||
|
||||
- <strong>Material Web Components: </stronge>Utilized to create a consistent and attractive Material Design look and feel.
|
||||
|
||||
- <strong>Weather icons</strong>: <a href="https://gitlab.com/bignutty/google-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 :)
|
||||
<br>
|
||||
<br>
|
||||
|
||||
> [!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.
|
||||
<br>
|
||||
|
||||
# Contact
|
||||
For any questions or feedback, feel free to open an issue on GitHub or contact pranshul.devmain@gmail.com
|
||||
|
||||
<br>
|
||||
|
||||
# License
|
||||
This project is licensed under the GPL-3.0 license. See the `LICENSE` file for details.
|
||||
|
||||
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
],
|
||||
|
||||
@@ -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">
|
||||
<activity
|
||||
android:name=".SettingsActivity"
|
||||
@@ -109,11 +113,19 @@
|
||||
android:exported="true"
|
||||
android:theme="@style/conditionMainPage"
|
||||
/>
|
||||
<<<<<<< HEAD
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:theme="@style/app_theme"
|
||||
android:screenOrientation="portrait"
|
||||
android:exported="true" >
|
||||
=======
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:theme="@style/app_theme"
|
||||
android:screenOrientation="portrait"
|
||||
android:exported="true" >
|
||||
>>>>>>> 1fe5d703ff20ab7a83c669b8fdc662e822488967
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
|
||||
@@ -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
|
||||
];
|
||||
@@ -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 {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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) {
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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(`<span style="text-transform: capitalize;">${getWeatherLabelInLangNoAnim(HourWeatherCode, 1, localStorage.getItem('AppLanguageCode'))}</span>`, 2000, 3, 'none', ' ', 'no-up')
|
||||
ShowSnack(`<span style="text-transform: capitalize;">${getWeatherLabelInLang(HourWeatherCode, 1, localStorage.getItem('AppLanguageCode'))}</span>`, 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 = `<md-icon icon-outlined style="font-size: 18px;">hourglass_top</md-icon> ${daylightHours} hrs ${daylightMinutes} mins ${getTranslationByLang(localStorage.getItem('AppLanguageCode'), 'day_length')} <space></space> <md-icon icon-outlined id="arrow_up_toggle">keyboard_arrow_down</md-icon>`
|
||||
|
||||
|
||||
|
||||
@@ -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 = `
|
||||
<li style="padding-bottom: 5px;">${willRain}</li>
|
||||
<li style="padding-bottom: 5px;">Expect a high of ${maxTemp}° ☀️. As the sun sets 🌅, temperatures will drop to a cozy ${minTemp}°. A lovely evening awaits! 🌙</li>
|
||||
<li >${precipitationMessage}</li>
|
||||
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 = `<li>${weatherSummary}</li>`
|
||||
document.getElementById('day_tips').innerHTML = `<li>${weatherTips}</li>`
|
||||
document.getElementById('summeryDay').innerHTML = `<li>${weatherReport}</li>`
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -34,6 +34,8 @@
|
||||
|
||||
// });
|
||||
|
||||
// removed menu
|
||||
|
||||
|
||||
// border-change
|
||||
|
||||
|
||||
@@ -199,14 +199,7 @@
|
||||
<p id="temp_insight" class="insights_p">Cooling expected over the next 3 days</p>
|
||||
</div>
|
||||
|
||||
<div class="cloths insights_item">
|
||||
<div class="icon_container_cloths" style="position: relative;">
|
||||
<md-icon icon-filled style="z-index: 1; font-size: 20px;">hourglass_top</md-icon>
|
||||
<div style="position: absolute;">
|
||||
<md-circular-progress id="day_value" style="--md-circular-progress-active-indicator-width: 7; opacity: 0.7;"></md-circular-progress></div>
|
||||
</div>
|
||||
<p id="day_length_text" class="insights_p">Cooling expected over the next 3 days</p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="holder_scroll_indi">
|
||||
@@ -453,10 +446,6 @@
|
||||
<div class="all_air_quality" style="border-radius: 10px 10px 5px 5px; margin-bottom: 5px; overflow: hidden;">
|
||||
<div class="sun_text">
|
||||
<p data-translate="air_quality">Air Quality</p>
|
||||
<space></space>
|
||||
<div class="air_text air_text_value_aqi">
|
||||
<p id="aqi-level-value">33</p>
|
||||
</div>
|
||||
<div class="air_text">
|
||||
<p id="aqi-level">Error</p>
|
||||
</div>
|
||||
@@ -522,6 +511,10 @@
|
||||
<div class="all_air_quality ripple_btn_low" style="border-radius: 5px 5px 10px 10px; margin-top: 0px;" onclick="sendThemeToAndroid('openUVcondition')">
|
||||
<div class="sun_text">
|
||||
<p data-translate="uv_index">UV Index</p>
|
||||
<space></space>
|
||||
<div class="air_text air_text_value_aqi">
|
||||
<p id="aqi-level-value">33</p>
|
||||
</div>
|
||||
<div class="air_text">
|
||||
<p id="uv-index"></p>
|
||||
</div>
|
||||
@@ -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', () =>{
|
||||
<script src="modules/sun-tracker.js"></script>
|
||||
<script src="app/app.js"></script>
|
||||
<script src="app/bg_animations.js"></script>
|
||||
<script src="app/day_summary.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ const WidgetsPressure = {
|
||||
|
||||
const WidgetsWindDirections = {
|
||||
|
||||
SouthArrow: '<svg viewBox="0 0 176.0 176.0" xmlns="http://www.w3.org/2000/svg"> <g> <clip-path d="M88,0L88,0A88,88 0,0 1,176 88L176,88A88,88 0,0 1,88 176L88,176A88,88 0,0 1,0 88L0,88A88,88 0,0 1,88 0z" /> <path fill="var(--Surface)" d="M88,0L88,0A88,88 0,0 1,176 88L176,88A88,88 0,0 1,88 176L88,176A88,88 0,0 1,0 88L0,88A88,88 0,0 1,88 0z" /> <path fill="var(--Secondary-Container)" d="M108.04,151.24C99.97,168.05 76.03,168.05 67.96,151.24L27.21,66.3C18.79,48.75 35.4,29.63 53.96,35.5L81.29,44.15C85.66,45.54 90.34,45.54 94.71,44.15L122.04,35.5C140.6,29.63 157.21,48.75 148.79,66.3L108.04,151.24Z" /> </g> </svg>',
|
||||
NorthArrow: '<svg viewBox="0 0 176.0 176.0" xmlns="http://www.w3.org/2000/svg"> <g> <clip-path d="M88,0L88,0A88,88 0,0 1,176 88L176,88A88,88 0,0 1,88 176L88,176A88,88 0,0 1,0 88L0,88A88,88 0,0 1,88 0z" /> <path fill="var(--Surface)" d="M88,0L88,0A88,88 0,0 1,176 88L176,88A88,88 0,0 1,88 176L88,176A88,88 0,0 1,0 88L0,88A88,88 0,0 1,88 0z" /> <path fill="var(--Secondary-Container)" d="M108.04,151.24C99.97,168.05 76.03,168.05 67.96,151.24L27.21,66.3C18.79,48.75 35.4,29.63 53.96,35.5L81.29,44.15C85.66,45.54 90.34,45.54 94.71,44.15L122.04,35.5C140.6,29.63 157.21,48.75 148.79,66.3L108.04,151.24Z" /> </g> </svg>',
|
||||
|
||||
EastArrow: '<svg viewBox="0 0 176.0 176.0" xmlns="http://www.w3.org/2000/svg"> <g> <clip-path d="M88,0L88,0A88,88 0,0 1,176 88L176,88A88,88 0,0 1,88 176L88,176A88,88 0,0 1,0 88L0,88A88,88 0,0 1,88 0z" /> <path fill="var(--Surface)" d="M88,0L88,0A88,88 0,0 1,176 88L176,88A88,88 0,0 1,88 176L88,176A88,88 0,0 1,0 88L0,88A88,88 0,0 1,88 0z" /> <path fill="var(--Secondary-Container)" d="M24.76,108.04C7.95,99.97 7.95,76.03 24.76,67.96L109.7,27.21C127.25,18.79 146.38,35.4 140.5,53.96L131.85,81.29C130.46,85.66 130.46,90.34 131.85,94.71L140.5,122.04C146.38,140.6 127.25,157.21 109.7,148.79L24.76,108.04Z" /> </g> </svg>',
|
||||
|
||||
@@ -40,7 +40,7 @@ const WidgetsWindDirections = {
|
||||
|
||||
NorthWestArrow: '<svg viewBox="0 0 176.0 176.0" xmlns="http://www.w3.org/2000/svg"> <g> <clip-path d="M88,0L88,0A88,88 0,0 1,176 88L176,88A88,88 0,0 1,88 176L88,176A88,88 0,0 1,0 88L0,88A88,88 0,0 1,88 0z" /> <path fill="var(--Surface)" d="M88,0L88,0A88,88 0,0 1,176 88L176,88A88,88 0,0 1,88 176L88,176A88,88 0,0 1,0 88L0,88A88,88 0,0 1,88 0z" /> <path fill="var(--Secondary-Container)" d="M145.66,116.32C151.84,133.91 134.91,150.84 117.32,144.66L28.44,113.41C10.08,106.96 8.3,81.69 25.58,72.72L51.03,59.51C55.09,57.4 58.4,54.09 60.51,50.03L73.72,24.58C82.69,7.3 107.96,9.08 114.41,27.44L145.66,116.32Z" /> </g> </svg>',
|
||||
|
||||
NorthArrow: '<svg viewBox="0 0 176.0 176.0" xmlns="http://www.w3.org/2000/svg"> <g> <clip-path d="M88,0L88,0A88,88 0,0 1,176 88L176,88A88,88 0,0 1,88 176L88,176A88,88 0,0 1,0 88L0,88A88,88 0,0 1,88 0z" /> <path fill="var(--Surface)" d="M88,0L88,0A88,88 0,0 1,176 88L176,88A88,88 0,0 1,88 176L88,176A88,88 0,0 1,0 88L0,88A88,88 0,0 1,88 0z" /> <path fill="var(--Secondary-Container)" d="M67.96,26.95C76.03,10.13 99.97,10.13 108.04,26.95L148.79,111.89C157.21,129.43 140.6,148.56 122.04,142.68L94.71,134.03C90.34,132.65 85.66,132.65 81.29,134.03L53.96,142.68C35.4,148.56 18.79,129.43 27.21,111.89L67.96,26.95Z" /> </g> </svg>',
|
||||
SouthArrow: '<svg viewBox="0 0 176.0 176.0" xmlns="http://www.w3.org/2000/svg"> <g> <clip-path d="M88,0L88,0A88,88 0,0 1,176 88L176,88A88,88 0,0 1,88 176L88,176A88,88 0,0 1,0 88L0,88A88,88 0,0 1,88 0z" /> <path fill="var(--Surface)" d="M88,0L88,0A88,88 0,0 1,176 88L176,88A88,88 0,0 1,88 176L88,176A88,88 0,0 1,0 88L0,88A88,88 0,0 1,88 0z" /> <path fill="var(--Secondary-Container)" d="M67.96,26.95C76.03,10.13 99.97,10.13 108.04,26.95L148.79,111.89C157.21,129.43 140.6,148.56 122.04,142.68L94.71,134.03C90.34,132.65 85.66,132.65 81.29,134.03L53.96,142.68C35.4,148.56 18.79,129.43 27.21,111.89L67.96,26.95Z" /> </g> </svg>',
|
||||
|
||||
SouthWestArrow: '<svg viewBox="0 0 176.0 176.0" xmlns="http://www.w3.org/2000/svg"> <g> <clip-path d="M88,0L88,0A88,88 0,0 1,176 88L176,88A88,88 0,0 1,88 176L88,176A88,88 0,0 1,0 88L0,88A88,88 0,0 1,88 0z" /> <path fill="var(--Surface)" d="M88,0L88,0A88,88 0,0 1,176 88L176,88A88,88 0,0 1,88 176L88,176A88,88 0,0 1,0 88L0,88A88,88 0,0 1,88 0z" /> <path fill="var(--Secondary-Container)" d="M118.33,31.88C135.93,25.7 152.85,42.62 146.67,60.22L115.42,149.1C108.97,167.46 83.7,169.24 74.73,151.96L61.52,126.51C59.41,122.45 56.1,119.14 52.04,117.03L26.59,103.82C9.31,94.85 11.09,69.58 29.46,63.13L118.33,31.88Z" /> </g> </svg>',
|
||||
|
||||
|
||||
@@ -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');
|
||||
|
||||
}
|
||||
@@ -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';
|
||||
}
|
||||
@@ -161,7 +161,7 @@
|
||||
|
||||
<div class="app_label_about_name" style="position: relative;">
|
||||
<p>WeatherMaster</p>
|
||||
<span>1.6.6 (W)</span>
|
||||
<span>1.6.4 (W)</span>
|
||||
<img src="../froggie/50d.png" alt="" style="width: 100%; position: absolute; opacity: 0.4; bottom:30px;" >
|
||||
|
||||
<md-elevated-button trailing-icon style="margin-top: 15px;" id="checkUpdatesBtn" ><span data-translate="latest_version">Latest version</span> <md-icon icon-outlined slot="icon" style="font-size: 20px;">refresh</md-icon></md-elevated-button>
|
||||
@@ -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`;
|
||||
|
||||
|
||||
@@ -184,7 +184,7 @@
|
||||
<md-ripple></md-ripple>
|
||||
</label>
|
||||
|
||||
<label class="language_item">
|
||||
<label class="language_item" disabled>
|
||||
<input name="app_language_radios" value="Português" lang="pt" onclick="updateImgAreas()" type="radio">
|
||||
<img_area>
|
||||
<i class="fas fi-pt"></i>
|
||||
|
||||
@@ -1,388 +1 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" data-theme="dark">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
|
||||
<title>MoonPhases</title>
|
||||
<link rel="stylesheet" href="../ui-files/font-usage.css">
|
||||
<link rel="stylesheet" href="../ui-files/variables.css">
|
||||
<link rel="stylesheet" href="../components/components.css">
|
||||
<link rel="stylesheet" href="../components/modal-ver.css">
|
||||
<link rel="stylesheet" href="../ripple-files/ripple.css">
|
||||
<link rel="stylesheet" href="moonphaseUi.css">
|
||||
<script src="../app/apiKeysRotation.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="moon_activity">
|
||||
|
||||
<div class="moon_activity_header">
|
||||
<button class="ripple-icon-btn regular" ontouchstart="playEffect(this)" ontouchend="playEffect2(this)"
|
||||
onclick="sendThemeToAndroid('GoBack')" style="--ripple-unbounded: white">
|
||||
<span class="ripple-effect-icon"></span>
|
||||
<span icon-outlined style="font-size: 24px !important; color: white;">arrow_back</span>
|
||||
</button>
|
||||
|
||||
<p style="color: white;">Moon phases</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="moon_Phase_content">
|
||||
|
||||
<div class="moon_phase_current_data">
|
||||
|
||||
<div class="moon_phase_img_text_current">
|
||||
<moonPhase>
|
||||
<moonPhaseProgress>
|
||||
|
||||
</moonPhaseProgress>
|
||||
</moonPhase>
|
||||
<p id="currentMoonPhase_name"></p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="moon_phase_current_text_data">
|
||||
|
||||
<div class="moon_phase_current_text_data_item">
|
||||
<span>Illumination:</span>
|
||||
<p id="IlluminationText"></p>
|
||||
</div>
|
||||
|
||||
<div class="moon_phase_current_text_data_item">
|
||||
<span>Moonrise:</span>
|
||||
<p id="MoonriseText"></p>
|
||||
</div>
|
||||
|
||||
<div class="moon_phase_current_text_data_item">
|
||||
<span>Moonset:</span>
|
||||
<p id="MoonsetText"></p>
|
||||
</div>
|
||||
|
||||
<div class="moon_phase_current_text_data_item">
|
||||
<span>Next phase:</span>
|
||||
<p id="NextphaseText"></p>
|
||||
</div>
|
||||
|
||||
<div class="moon_phase_current_text_data_item">
|
||||
<span>Next phase in:</span>
|
||||
<p id="NextphaseinText"></p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<moonPhasetitle>
|
||||
Moon phase forecast
|
||||
</moonPhasetitle>
|
||||
|
||||
<div class="moonPhase_forecast" id="moonPhase_forecast">
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="moonphase_loader">
|
||||
<md-circular-progress indeterminate style="margin-bottom: 100px;"></md-circular-progress>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
function sendThemeToAndroid(theme) {
|
||||
|
||||
AndroidInterface.updateStatusBarColor(theme);
|
||||
};
|
||||
|
||||
const latDif = localStorage.getItem('currentLat');
|
||||
const longDif = localStorage.getItem('currentLong');
|
||||
|
||||
|
||||
let currentKeyMoonIndex = 0;
|
||||
|
||||
Fetchmoonphases(latDif, longDif)
|
||||
|
||||
function switchApiKey() {
|
||||
currentKeyMoonIndex = (currentKeyMoonIndex + 1) % apiKeysVisual.length;
|
||||
Fetchmoonphases(latDif, longDif)
|
||||
}
|
||||
|
||||
function Fetchmoonphases(lat, long) {
|
||||
const apiKey = apiKeysVisual[currentKeyMoonIndex];
|
||||
|
||||
fetch(`https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/${lat},${long}?unitGroup=metric&include=days&key=${apiKey}&contentType=json`)
|
||||
.then(response => {
|
||||
if (!response.ok) {
|
||||
switchApiKey();
|
||||
throw new Error('API limit reached or error occurred');
|
||||
}
|
||||
return response.json();
|
||||
})
|
||||
.then(data => {
|
||||
|
||||
|
||||
|
||||
|
||||
const moon_phase_img = document.getElementById('current_phase_img');
|
||||
const moonPhaseText = document.getElementById('currentMoonPhase_name');
|
||||
const moonPhase = data.days[0].moonphase;
|
||||
const moonPhase_forecast = document.getElementById('moonPhase_forecast')
|
||||
|
||||
let phaseName = '';
|
||||
let phaseImg = '';
|
||||
let daysLeft = 0;
|
||||
let nextPhaseName = '';
|
||||
|
||||
|
||||
|
||||
|
||||
if (moonPhase === 0) {
|
||||
phaseName = 'New Moon';
|
||||
phaseImg = '../moon_phases/moon_new.svg';
|
||||
daysLeft = Math.round((0.25 - moonPhase) * 29.53);
|
||||
nextPhaseName = 'Waxing Crescent';
|
||||
|
||||
} else if (moonPhase > 0 && moonPhase < 0.25) {
|
||||
phaseName = 'Waxing Crescent';
|
||||
phaseImg = '../moon_phases/moon_waxing_crescent.svg';
|
||||
daysLeft = Math.round((0.25 - moonPhase) * 29.53);
|
||||
nextPhaseName = 'First Quarter';
|
||||
|
||||
} else if (moonPhase === 0.25) {
|
||||
phaseName = 'First Quarter';
|
||||
phaseImg = '../moon_phases/moon_first_quarter.svg';
|
||||
daysLeft = Math.round((0.5 - moonPhase) * 29.53);
|
||||
nextPhaseName = 'Waxing Gibbous';
|
||||
|
||||
} else if (moonPhase > 0.25 && moonPhase < 0.5) {
|
||||
phaseName = 'Waxing Gibbous';
|
||||
phaseImg = '../moon_phases/moon_waxing_gibbous.svg';
|
||||
daysLeft = Math.round((0.5 - moonPhase) * 29.53);
|
||||
nextPhaseName = 'Full Moon';
|
||||
|
||||
|
||||
} else if (moonPhase === 0.5) {
|
||||
phaseName = 'Full Moon';
|
||||
phaseImg = '../moon_phases/moon_full.svg';
|
||||
daysLeft = Math.round((0.75 - moonPhase) * 29.53);
|
||||
nextPhaseName = 'Waning Gibbous';
|
||||
|
||||
} else if (moonPhase > 0.5 && moonPhase < 0.75) {
|
||||
phaseName = 'Waning Gibbous';
|
||||
phaseImg = '../moon_phases/moon_waning_gibbous.svg';
|
||||
daysLeft = Math.round((0.75 - moonPhase) * 29.53);
|
||||
nextPhaseName = 'Last Quarter';
|
||||
|
||||
|
||||
} else if (moonPhase === 0.75) {
|
||||
phaseName = 'Last Quarter';
|
||||
phaseImg = '../moon_phases/moon_last_quarter.svg';
|
||||
daysLeft = Math.round((1 - moonPhase) * 29.53);
|
||||
nextPhaseName = 'Waning Crescent';
|
||||
|
||||
} else if (moonPhase > 0.75 && moonPhase < 1) {
|
||||
phaseName = 'Waning Crescent';
|
||||
phaseImg = '../moon_phases/moon_waning_crescent.svg';
|
||||
daysLeft = Math.round((1 - moonPhase) * 29.53);
|
||||
nextPhaseName = 'New Moon';
|
||||
|
||||
|
||||
}
|
||||
moonPhaseText.textContent = phaseName
|
||||
document.getElementById('NextphaseText').innerHTML = nextPhaseName;
|
||||
|
||||
if (daysLeft > 1) {
|
||||
document.getElementById('NextphaseinText').innerHTML = `${daysLeft} days`;
|
||||
} else {
|
||||
document.getElementById('NextphaseinText').innerHTML = `${daysLeft} day`;
|
||||
}
|
||||
|
||||
const formatDate = (dateStr) => {
|
||||
const options = { day: 'numeric', month: 'long' };
|
||||
const date = new Date(dateStr);
|
||||
return date.toLocaleDateString('en-US', options);
|
||||
|
||||
|
||||
};
|
||||
|
||||
const currentDateMoonPhase = Math.floor(new Date().getTime() / 1000);
|
||||
|
||||
|
||||
|
||||
fetch(`https://api.farmsense.net/v1/moonphases/?d=${currentDateMoonPhase}`)
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
const MoonIllumination = Math.round(data[0].Illumination * 100)
|
||||
|
||||
|
||||
document.getElementById('IlluminationText').innerHTML = `${MoonIllumination}%`
|
||||
|
||||
const moonPhaseProgress = document.querySelector('moonPhaseProgress');
|
||||
|
||||
if (MoonIllumination >= 50) {
|
||||
moonPhaseProgress.style.width = `${MoonIllumination}%`;
|
||||
moonPhaseProgress.style.right = '0';
|
||||
moonPhaseProgress.style.left = 'auto';
|
||||
} else {
|
||||
moonPhaseProgress.style.width = `${MoonIllumination}%`;
|
||||
moonPhaseProgress.style.left = '0';
|
||||
moonPhaseProgress.style.right = 'auto';
|
||||
}
|
||||
|
||||
|
||||
})
|
||||
.catch(error => {
|
||||
console.error('Error fetching data:', error);
|
||||
});
|
||||
|
||||
|
||||
const startDate = data.days[1].datetime;
|
||||
const endDate = data.days[data.days.length - 1].datetime;
|
||||
|
||||
|
||||
document.querySelector('moonPhasetitle').innerHTML = `Moon phases from ${formatDate(startDate)} to ${formatDate(endDate)}`
|
||||
|
||||
moonPhase_forecast.innerHTML = '';
|
||||
|
||||
for (let i = 1; i < data.days.length; i++) {
|
||||
const day = data.days[i];
|
||||
const phase = day.moonphase;
|
||||
const phasePercentage = Math.round(phase * 100);
|
||||
let phaseForecastName = '';
|
||||
let phaseForecastImg = '';
|
||||
|
||||
if (phase === 0) {
|
||||
phaseForecastName = 'New Moon';
|
||||
phaseForecastImg = '../moon_phases/moon_new.svg';
|
||||
} else if (phase > 0 && phase < 0.25) {
|
||||
phaseForecastName = 'Waxing Crescent';
|
||||
phaseForecastImg = '../moon_phases/moon_waxing_crescent.svg';
|
||||
} else if (phase === 0.25) {
|
||||
phaseForecastName = 'First Quarter';
|
||||
phaseForecastImg = '../moon_phases/moon_first_quarter.svg';
|
||||
} else if (phase > 0.25 && phase < 0.5) {
|
||||
phaseForecastName = 'Waxing Gibbous';
|
||||
phaseForecastImg = '../moon_phases/moon_waxing_gibbous.svg';
|
||||
} else if (phase === 0.5) {
|
||||
phaseForecastName = 'Full Moon';
|
||||
phaseForecastImg = '../moon_phases/moon_full.svg';
|
||||
} else if (phase > 0.5 && phase < 0.75) {
|
||||
phaseForecastName = 'Waning Gibbous';
|
||||
phaseForecastImg = '../moon_phases/moon_waning_gibbous.svg';
|
||||
} else if (phase === 0.75) {
|
||||
phaseForecastName = 'Last Quarter';
|
||||
phaseForecastImg = '../moon_phases/moon_last_quarter.svg';
|
||||
} else if (phase > 0.75 && phase < 1) {
|
||||
phaseForecastName = 'Waning Crescent';
|
||||
phaseForecastImg = '../moon_phases/moon_waning_crescent.svg';
|
||||
}
|
||||
|
||||
|
||||
const forecastItem = document.createElement('div');
|
||||
const forecastDate = document.createElement('span');
|
||||
const forecastImg = document.createElement('img');
|
||||
const forecastName = document.createElement('p');
|
||||
|
||||
forecastImg.src = phaseForecastImg;
|
||||
forecastName.textContent = phaseForecastName ;
|
||||
forecastDate.textContent = formatDate(day.datetime);
|
||||
forecastItem.appendChild(forecastDate);
|
||||
|
||||
forecastItem.appendChild(forecastImg);
|
||||
forecastItem.appendChild(forecastName);
|
||||
moonPhase_forecast.appendChild(forecastItem);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// set/rise
|
||||
|
||||
|
||||
let currentAstronomyKeyIndex = 0;
|
||||
fetchAstronomyData(latDif, longDif)
|
||||
|
||||
function switchAstronomyApiKey() {
|
||||
currentAstronomyKeyIndex = (currentAstronomyKeyIndex + 1) % astronomyApiKeys.length;
|
||||
}
|
||||
|
||||
function fetchAstronomyData(lat, long) {
|
||||
const apiKey = astronomyApiKeys[currentAstronomyKeyIndex];
|
||||
|
||||
fetch(`https://api.ipgeolocation.io/astronomy?apiKey=${apiKey}&lat=${lat}&long=${long}`)
|
||||
.then(response => {
|
||||
if (!response.ok) {
|
||||
switchAstronomyApiKey();
|
||||
throw new Error('API limit reached or error occurred');
|
||||
}
|
||||
return response.json();
|
||||
})
|
||||
.then(data => {
|
||||
const moonRise = data.moonrise;
|
||||
const moonSet = data.moonset;
|
||||
|
||||
const moonRiseAmPm = convertToAmPm(moonRise);
|
||||
const moonSetAmPm = convertToAmPm(moonSet);
|
||||
|
||||
|
||||
document.getElementById('MoonriseText').innerHTML = moonRiseAmPm;
|
||||
document.getElementById('MoonsetText').innerHTML = moonSetAmPm;
|
||||
|
||||
})
|
||||
.catch(error => {
|
||||
console.error(error);
|
||||
// Retry the request with the new key after switching
|
||||
fetchAstronomyData(lat, long);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function convertToAmPm(time) {
|
||||
let [hour, minute] = time.split(':');
|
||||
hour = parseInt(hour);
|
||||
const ampm = hour >= 12 ? 'PM' : 'AM';
|
||||
hour = hour % 12;
|
||||
hour = hour ? hour : 12;
|
||||
return `${hour}:${minute} ${ampm}`;
|
||||
}
|
||||
|
||||
|
||||
setTimeout(()=>{
|
||||
document.querySelector('.moonphase_loader').style.opacity = '0';
|
||||
}, 3000);
|
||||
|
||||
setTimeout(()=>{
|
||||
document.querySelector('.moonphase_loader').hidden = true;;
|
||||
}, 3200);
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script src="../components-script.js/components.js"></script>
|
||||
<script src="../ripple-files/icon-ripple.js"></script>
|
||||
<script src="../modules/ripple_acc.js"></script>
|
||||
<script src="../bundle.js"></script>
|
||||
<script type="module" src="../index.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<!-- Moon page -->
|
||||
@@ -3,7 +3,11 @@
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<<<<<<< HEAD
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
|
||||
=======
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
>>>>>>> 1fe5d703ff20ab7a83c669b8fdc662e822488967
|
||||
<title>Alert page</title>
|
||||
<link rel="stylesheet" href="../ui-files/font-usage.css">
|
||||
<link rel="stylesheet" href="../ui-files/variables.css">
|
||||
@@ -11,7 +15,10 @@
|
||||
<link rel="stylesheet" href="../components/modal-ver.css">
|
||||
<link rel="stylesheet" href="../ripple-files/ripple.css">
|
||||
<link rel="stylesheet" href="../components/segment-btns.css">
|
||||
<<<<<<< HEAD
|
||||
<script src="../langs/langs.js"></script>
|
||||
=======
|
||||
>>>>>>> 1fe5d703ff20ab7a83c669b8fdc662e822488967
|
||||
|
||||
<style>
|
||||
|
||||
@@ -204,8 +211,12 @@ body {
|
||||
<span icon-outlined style="font-size: 24px !important;">arrow_back</span>
|
||||
</button>
|
||||
|
||||
<<<<<<< HEAD
|
||||
<p data-translate="weather_alerts">Weather alert</p>
|
||||
|
||||
=======
|
||||
<p>Weather alert</p>
|
||||
>>>>>>> 1fe5d703ff20ab7a83c669b8fdc662e822488967
|
||||
</div>
|
||||
<div class="full-activity-content" id="Content">
|
||||
|
||||
@@ -350,7 +361,11 @@ body {
|
||||
|
||||
setTimeout(() => {
|
||||
document.querySelector('.alert_loader').hidden = true;
|
||||
<<<<<<< HEAD
|
||||
}, 2000);
|
||||
=======
|
||||
}, 3000);
|
||||
>>>>>>> 1fe5d703ff20ab7a83c669b8fdc662e822488967
|
||||
|
||||
|
||||
setTimeout(()=>{
|
||||
@@ -358,12 +373,15 @@ body {
|
||||
console.log(senderDivHeight);
|
||||
document.getElementById('alert_info_div').style.paddingBottom = `calc(30px + ${senderDivHeight}px)`
|
||||
}, 1000);
|
||||
<<<<<<< HEAD
|
||||
|
||||
const AppLanguageCodeValue = localStorage.getItem('AppLanguageCode');
|
||||
if(AppLanguageCodeValue){
|
||||
applyTranslations(AppLanguageCodeValue);
|
||||
|
||||
}
|
||||
=======
|
||||
>>>>>>> 1fe5d703ff20ab7a83c669b8fdc662e822488967
|
||||
</script>
|
||||
|
||||
<script src="../components-script.js/components.js"></script>
|
||||
@@ -375,4 +393,8 @@ body {
|
||||
<script type="module" src="../index.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<<<<<<< HEAD
|
||||
</html>
|
||||
=======
|
||||
</html>
|
||||
>>>>>>> 1fe5d703ff20ab7a83c669b8fdc662e822488967
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Humidity Forecast</title>
|
||||
<link rel="stylesheet" href="../../ui-files/font-usage.css">
|
||||
<link rel="stylesheet" href="../../ui-files/variables.css">
|
||||
@@ -118,4 +118,4 @@ AndroidInterface.updateStatusBarColor(theme);
|
||||
<script src="../../modules/ripple_acc.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
@@ -92,7 +92,7 @@
|
||||
if (SelectedWindUnit === 'mile') {
|
||||
WindSpeedForecast = Math.round(data.wind_speed_10m[index] / 1.60934) + '';
|
||||
} else if (SelectedWindUnit === 'M/s') {
|
||||
WindSpeedForecast = (data.wind_speed_10m[index] / 3.6).toFixed(2) + '';
|
||||
WindSpeedForecast = (data.wind_speed_10m[index] / 3.6).toFixed(2) + ' m/s';
|
||||
} else {
|
||||
WindSpeedForecast = Math.round(data.wind_speed_10m[index]) + '';
|
||||
}
|
||||
|
||||
@@ -285,12 +285,6 @@ const AppLanguageCodeValue = localStorage.getItem('AppLanguageCode');
|
||||
|
||||
const timeFormat = localStorage.getItem('selectedTimeMode');
|
||||
|
||||
function darkModeTileLayer(urlTemplate) {
|
||||
const filterStyle = 'invert(100%) hue-rotate(180deg) brightness(0.6) contrast(90%)';
|
||||
|
||||
return window.L.tileLayer(urlTemplate, {
|
||||
}).addTo(map).getContainer().style.filter = filterStyle;
|
||||
}
|
||||
|
||||
function loadMapRainView() {
|
||||
const latDif = localStorage.getItem('currentLat');
|
||||
@@ -303,9 +297,11 @@ const AppLanguageCodeValue = localStorage.getItem('AppLanguageCode');
|
||||
minZoom: 2
|
||||
});
|
||||
|
||||
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);
|
||||
|
||||
@@ -315,7 +311,7 @@ const AppLanguageCodeValue = localStorage.getItem('AppLanguageCode');
|
||||
var isPlaying = false;
|
||||
|
||||
function loadRadarLayer(path) {
|
||||
var radarUrl = `https://tilecache.rainviewer.com${path}/256/{z}/{x}/{y}/5/1_1.png`;
|
||||
var radarUrl = `https://tilecache.rainviewer.com${path}/256/{z}/{x}/{y}/2/1_1.png`;
|
||||
|
||||
if (radarLayer) {
|
||||
map.removeLayer(radarLayer);
|
||||
@@ -327,7 +323,6 @@ const AppLanguageCodeValue = localStorage.getItem('AppLanguageCode');
|
||||
}
|
||||
|
||||
|
||||
|
||||
fetch('https://api.rainviewer.com/public/weather-maps.json')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
@@ -361,10 +356,10 @@ const AppLanguageCodeValue = localStorage.getItem('AppLanguageCode');
|
||||
autoplayBtn.onclick = function () {
|
||||
if (isPlaying) {
|
||||
stopAutoplay();
|
||||
|
||||
document.getElementById('changeMapTypeToggle').hidden = false;
|
||||
} else {
|
||||
startAutoplay();
|
||||
|
||||
document.getElementById('changeMapTypeToggle').hidden = true;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -440,6 +435,12 @@ const AppLanguageCodeValue = localStorage.getItem('AppLanguageCode');
|
||||
|
||||
AndroidInterface.updateStatusBarColor(theme);
|
||||
};
|
||||
|
||||
|
||||
if(sendThemeToAndroidColor){
|
||||
console.error('Color not found!')
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
@@ -452,4 +453,4 @@ const AppLanguageCodeValue = localStorage.getItem('AppLanguageCode');
|
||||
<script type="module" src="../index.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
@@ -98,6 +98,9 @@
|
||||
<md-menu-item menu-type class="mainTempItem" value="OpenWeatherMap">
|
||||
<div slot="headline">OpenWeatherMap</div>
|
||||
</md-menu-item>
|
||||
<md-menu-item menu-type class="mainTempItem" value="Met_norway">
|
||||
<div slot="headline">Met-norway</div>
|
||||
</md-menu-item>
|
||||
</md-menu>
|
||||
|
||||
<md-list-item margin id="apiKeyEnterInputTile">
|
||||
@@ -122,18 +125,6 @@
|
||||
<md-switch slot="end" selected id="useAnimationBackground"></md-switch>
|
||||
</md-list-item>
|
||||
|
||||
<md-list-item>
|
||||
<md-icon icon-filled slot="start">font_download</md-icon>
|
||||
<div slot="headline">Use system font</div>
|
||||
<md-switch slot="end" id="useSysFontSwitch"></md-switch>
|
||||
</md-list-item>
|
||||
|
||||
<md-list-item>
|
||||
<md-icon icon-filled slot="start">toast</md-icon>
|
||||
<div slot="headline">Hide the 'New update available' toast after 5 seconds</div>
|
||||
<md-switch slot="end" id="HideNewUpdateToastSwitch"></md-switch>
|
||||
</md-list-item>
|
||||
|
||||
<md-list-item margin type="button" id="usage-popover-anchor">
|
||||
<md-icon icon-filled slot="start">home_pin</md-icon>
|
||||
<div slot="headline" data-translate="home_location">Home location</div>
|
||||
@@ -296,13 +287,14 @@
|
||||
<div slot="headline">Rainviewer</div>
|
||||
<md-icon icon-filled slot="end">open_in_new</md-icon>
|
||||
</md-list-item>
|
||||
<md-list-item margin href="https://www.openstreetmap.org/">
|
||||
<div slot="headline">OpenStreetMap</div>
|
||||
<md-list-item margin href="https://carto.com/">
|
||||
<div slot="headline">Carto</div>
|
||||
<md-icon icon-filled slot="end">open_in_new</md-icon>
|
||||
</md-list-item>
|
||||
</md-list>
|
||||
|
||||
|
||||
|
||||
<p style="margin-top: 110px;"></p>
|
||||
|
||||
|
||||
@@ -841,49 +833,6 @@ if(!localStorage.getItem('DefaultLocation')){
|
||||
});
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------------
|
||||
|
||||
|
||||
const useSysFontSwitch = document.getElementById('useSysFontSwitch');
|
||||
|
||||
useSysFontSwitch.addEventListener('change', ()=>{
|
||||
localStorage.setItem('useSysFont', useSysFontSwitch.selected)
|
||||
|
||||
if(useSysFontSwitch.selected){
|
||||
document.documentElement.setAttribute('sys-font', 'true');
|
||||
} else{
|
||||
document.documentElement.setAttribute('sys-font', 'false');
|
||||
}
|
||||
});
|
||||
|
||||
const useSysFont = localStorage.getItem('useSysFont');
|
||||
|
||||
if(useSysFont === 'true'){
|
||||
useSysFontSwitch.selected = true;
|
||||
} else{
|
||||
useSysFontSwitch.selected = false;
|
||||
|
||||
}
|
||||
|
||||
// ---------------------------------------------------
|
||||
|
||||
const HideNewUpdateToastSwitch = document.getElementById('HideNewUpdateToastSwitch');
|
||||
|
||||
HideNewUpdateToastSwitch.addEventListener('change', ()=>{
|
||||
localStorage.setItem('HideNewUpdateToast', HideNewUpdateToastSwitch.selected)
|
||||
|
||||
});
|
||||
|
||||
const HideNewUpdateToast = localStorage.getItem('HideNewUpdateToast');
|
||||
|
||||
if(HideNewUpdateToast === 'true'){
|
||||
HideNewUpdateToastSwitch.selected = true;
|
||||
} else{
|
||||
HideNewUpdateToastSwitch.selected = false;
|
||||
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<script src="../components-script.js/components.js"></script>
|
||||
@@ -895,4 +844,4 @@ if(HideNewUpdateToast === 'true'){
|
||||
<script type="module" src="../index.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
@@ -172,8 +172,6 @@ touch_search{
|
||||
padding-top: 10px;
|
||||
padding-right: 15px;
|
||||
z-index: 1;
|
||||
position: relative;
|
||||
|
||||
}
|
||||
|
||||
.current .left_current_weather now{
|
||||
@@ -1036,7 +1034,14 @@ suggest-space{
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@media screen and (min-width: 600px){
|
||||
.not_made_for_pc{
|
||||
display: flex;
|
||||
}
|
||||
#updated-div{
|
||||
margin-bottom: 90px;
|
||||
}
|
||||
}
|
||||
|
||||
.froggie img{
|
||||
width: 120%;
|
||||
|
||||
@@ -10,17 +10,6 @@
|
||||
|
||||
}
|
||||
|
||||
[sys-font="true"]{
|
||||
--google-normal: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
|
||||
--google-thin: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
|
||||
--google-light: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
|
||||
--google-mid: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
|
||||
--poppins: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
|
||||
--outfit: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
|
||||
--outfit-mid: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
|
||||
}
|
||||
|
||||
|
||||
:root {
|
||||
--md-sys-color-primary: var(--Primary);
|
||||
--md-sys-color-on-primary: var(--On-Primary);
|
||||
|
||||
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 35 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 14 KiB |
@@ -32,6 +32,7 @@ import androidx.appcompat.app.AlertDialog;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.core.app.ActivityCompat;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
|
||||
|
||||
|
||||
public class MainActivity extends AppCompatActivity {
|
||||
|
||||
@@ -208,7 +208,6 @@ public class SettingsActivity extends AppCompatActivity {
|
||||
url.startsWith("https://app-privacy-policy-generator.nisrulz.com/") ||
|
||||
url.startsWith("https://github.com/PranshulGG/WeatherMaster") ||
|
||||
url.startsWith("mailto:pranshul.devmain@gmail.com")||
|
||||
url.startsWith("https://www.openstreetmap.org/") ||
|
||||
url.startsWith("https://ko-fi.com/pranshulgg")||
|
||||
url.startsWith("https://leafletjs.com/")||
|
||||
url.startsWith("https://www.rainviewer.com/")||
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
android:height="108dp"
|
||||
android:viewportWidth="48"
|
||||
android:viewportHeight="48">
|
||||
<group android:scaleX="0.46"
|
||||
android:scaleY="0.46"
|
||||
android:translateX="12.96"
|
||||
android:translateY="12.96">
|
||||
<group android:scaleX="0.44"
|
||||
android:scaleY="0.44"
|
||||
android:translateX="13.44"
|
||||
android:translateY="13.44">
|
||||
<path
|
||||
android:pathData="M33.994,7.163a8.013,8.013 0,0 1,7.45 7.451,8.012 8.012,0 0,0 1.958,4.725 8.013,8.013 0,0 1,0 10.537,8.012 8.012,0 0,0 -1.957,4.726 8.013,8.013 0,0 1,-7.451 7.45,8.012 8.012,0 0,0 -4.726,1.958 8.012,8.012 0,0 1,-10.537 0,8.012 8.012,0 0,0 -4.725,-1.957 8.013,8.013 0,0 1,-7.45 -7.451,8.012 8.012,0 0,0 -1.958,-4.726 8.013,8.013 0,0 1,0 -10.537,8.013 8.013,0 0,0 1.957,-4.725 8.013,8.013 0,0 1,7.451 -7.45,8.013 8.013,0 0,0 4.726,-1.958 8.012,8.012 0,0 1,10.537 0,8.013 8.013,0 0,0 4.725,1.957Z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
android:height="108dp"
|
||||
android:viewportWidth="49.999"
|
||||
android:viewportHeight="40.002">
|
||||
<group android:scaleX="0.46"
|
||||
android:scaleY="0.36802575"
|
||||
android:translateX="13.49973"
|
||||
android:translateY="12.640117">
|
||||
<group android:scaleX="0.44"
|
||||
android:scaleY="0.35202464"
|
||||
android:translateX="13.99972"
|
||||
android:translateY="12.9601555">
|
||||
<path
|
||||
android:pathData="M42.789,22.915c-0.001,-0.012 -3.32,-0.571 -6.539,1.71c1.312,-2.281 3.094,-3.812 6.123,-4.122C40.964,15.336 36.258,11.531 30.642,11.531c-4.432,0 -8.305,2.373 -10.435,5.913c2.729,0.119 5.606,2.18 7.405,4.506c-1.703,-1.318 -3.835,-2.111 -6.156,-2.111c-0.84,0 -1.652,0.115 -2.432,0.31c-0.002,-0.022 -0.009,-0.042 -0.011,-0.065c-0.008,0.024 -0.018,0.047 -0.025,0.072c-4.372,1.103 -7.614,5.05 -7.614,9.765c0,5.566 4.514,10.081 10.082,10.081h19.939c4.752,0 8.604,-3.853 8.604,-8.604C50,27.119 46.876,23.581 42.789,22.915z"
|
||||
android:fillColor="#363636"/>
|
||||
|
||||
@@ -3,5 +3,4 @@
|
||||
<background android:drawable="@color/ic_launcher_background"/>
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
|
||||
<monochrome android:drawable="@drawable/ic_launcher_mono_foreground"/>
|
||||
|
||||
</adaptive-icon>
|
||||
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 802 B After Width: | Height: | Size: 774 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 7.5 KiB |
|
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.5 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 10 KiB |
@@ -1,4 +1,4 @@
|
||||
#Sat Oct 05 12:01:54 IST 2024
|
||||
#Thu Jun 13 19:16:38 IST 2024
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
|
||||
|
||||
|
After Width: | Height: | Size: 596 KiB |
|
After Width: | Height: | Size: 458 KiB |
|
After Width: | Height: | Size: 629 KiB |
|
After Width: | Height: | Size: 11 KiB |
@@ -0,0 +1,19 @@
|
||||
<svg width="811" height="236" viewBox="0 0 811 236" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g filter="url(#filter0_d_33_3626)">
|
||||
<rect width="791" height="216" rx="36" fill="white" shape-rendering="crispEdges"/>
|
||||
<rect x="6" y="6" width="779" height="204" rx="30" stroke="#811818" stroke-width="12" shape-rendering="crispEdges"/>
|
||||
<path d="M83.6932 83.5483V70.3636H145.812V83.5483H122.656V146H106.849V83.5483H83.6932ZM149.857 146V89.2727H165.109V99.1705H165.7C166.734 95.6496 168.47 92.9905 170.908 91.1932C173.345 89.3712 176.152 88.4602 179.328 88.4602C180.116 88.4602 180.965 88.5095 181.876 88.608C182.787 88.7064 183.588 88.8419 184.277 89.0142V102.974C183.538 102.753 182.517 102.556 181.212 102.384C179.907 102.211 178.713 102.125 177.629 102.125C175.315 102.125 173.247 102.63 171.425 103.639C169.627 104.624 168.199 106.003 167.141 107.776C166.107 109.548 165.589 111.592 165.589 113.906V146H149.857ZM206.962 147.071C203.343 147.071 200.118 146.443 197.286 145.188C194.455 143.907 192.214 142.024 190.565 139.537C188.94 137.026 188.127 133.899 188.127 130.156C188.127 127.005 188.706 124.358 189.863 122.216C191.02 120.074 192.596 118.35 194.59 117.045C196.585 115.741 198.85 114.756 201.386 114.091C203.946 113.426 206.63 112.958 209.437 112.688C212.736 112.343 215.395 112.023 217.414 111.727C219.433 111.407 220.898 110.939 221.809 110.324C222.72 109.708 223.175 108.797 223.175 107.591V107.369C223.175 105.03 222.437 103.221 220.96 101.94C219.507 100.66 217.439 100.02 214.755 100.02C211.924 100.02 209.671 100.648 207.996 101.903C206.322 103.134 205.214 104.686 204.673 106.557L190.121 105.375C190.86 101.928 192.313 98.9489 194.479 96.4375C196.646 93.9015 199.441 91.9564 202.863 90.6023C206.31 89.2235 210.299 88.5341 214.829 88.5341C217.98 88.5341 220.996 88.9034 223.877 89.642C226.782 90.3807 229.355 91.5256 231.596 93.0767C233.861 94.6278 235.646 96.6222 236.951 99.0597C238.256 101.473 238.908 104.366 238.908 107.739V146H223.988V138.134H223.545C222.634 139.906 221.415 141.47 219.888 142.824C218.362 144.153 216.528 145.2 214.386 145.963C212.244 146.702 209.769 147.071 206.962 147.071ZM211.468 136.213C213.782 136.213 215.826 135.758 217.599 134.847C219.371 133.911 220.763 132.655 221.772 131.08C222.781 129.504 223.286 127.719 223.286 125.724V119.705C222.794 120.025 222.117 120.32 221.255 120.591C220.418 120.837 219.47 121.071 218.411 121.293C217.353 121.49 216.294 121.674 215.235 121.847C214.176 121.994 213.216 122.13 212.354 122.253C210.508 122.524 208.895 122.955 207.516 123.545C206.138 124.136 205.067 124.937 204.303 125.946C203.54 126.931 203.158 128.162 203.158 129.639C203.158 131.781 203.934 133.419 205.485 134.551C207.061 135.659 209.055 136.213 211.468 136.213ZM266.847 113.205V146H251.114V89.2727H266.109V99.2812H266.773C268.029 95.982 270.134 93.3722 273.089 91.4517C276.043 89.5066 279.626 88.5341 283.836 88.5341C287.775 88.5341 291.21 89.3958 294.14 91.1193C297.07 92.8428 299.347 95.3049 300.972 98.5057C302.597 101.682 303.41 105.473 303.41 109.881V146H287.677V112.688C287.701 109.216 286.815 106.508 285.018 104.562C283.22 102.593 280.746 101.608 277.594 101.608C275.477 101.608 273.606 102.063 271.981 102.974C270.38 103.885 269.125 105.215 268.214 106.963C267.327 108.687 266.872 110.767 266.847 113.205ZM363.009 105.449L348.605 106.335C348.359 105.104 347.83 103.996 347.017 103.011C346.205 102.002 345.134 101.202 343.804 100.611C342.499 99.9953 340.936 99.6875 339.114 99.6875C336.676 99.6875 334.62 100.205 332.946 101.239C331.272 102.248 330.435 103.602 330.435 105.301C330.435 106.655 330.976 107.8 332.06 108.736C333.143 109.671 335.002 110.422 337.636 110.989L347.903 113.057C353.419 114.189 357.53 116.011 360.239 118.523C362.947 121.034 364.301 124.333 364.301 128.42C364.301 132.138 363.205 135.401 361.014 138.207C358.848 141.014 355.868 143.205 352.077 144.781C348.31 146.332 343.964 147.108 339.04 147.108C331.53 147.108 325.547 145.545 321.091 142.418C316.659 139.266 314.062 134.982 313.298 129.565L328.773 128.753C329.241 131.043 330.373 132.791 332.17 133.997C333.968 135.179 336.27 135.77 339.077 135.77C341.834 135.77 344.05 135.241 345.724 134.182C347.423 133.098 348.285 131.707 348.31 130.009C348.285 128.58 347.682 127.411 346.5 126.5C345.318 125.564 343.496 124.85 341.034 124.358L331.21 122.401C325.67 121.293 321.546 119.372 318.838 116.639C316.154 113.906 314.812 110.422 314.812 106.188C314.812 102.544 315.797 99.4044 317.767 96.7699C319.761 94.1354 322.556 92.1042 326.151 90.6761C329.77 89.2481 334.005 88.5341 338.855 88.5341C346.02 88.5341 351.658 90.0483 355.77 93.0767C359.906 96.1051 362.319 100.229 363.009 105.449ZM389.941 70.3636V146H374.208V70.3636H389.941ZM418.72 147.071C415.101 147.071 411.875 146.443 409.044 145.188C406.213 143.907 403.972 142.024 402.322 139.537C400.697 137.026 399.885 133.899 399.885 130.156C399.885 127.005 400.464 124.358 401.621 122.216C402.778 120.074 404.354 118.35 406.348 117.045C408.342 115.741 410.607 114.756 413.143 114.091C415.704 113.426 418.388 112.958 421.195 112.688C424.494 112.343 427.153 112.023 429.172 111.727C431.191 111.407 432.656 110.939 433.567 110.324C434.478 109.708 434.933 108.797 434.933 107.591V107.369C434.933 105.03 434.195 103.221 432.717 101.94C431.265 100.66 429.196 100.02 426.513 100.02C423.681 100.02 421.429 100.648 419.754 101.903C418.08 103.134 416.972 104.686 416.43 Line truncated
|
||||
<path d="M680.6 106.1C680.362 105.486 680.005 104.926 679.55 104.45L654.55 79.45C654.084 78.9838 653.53 78.614 652.921 78.3617C652.312 78.1094 651.659 77.9796 651 77.9796C649.668 77.9796 648.392 78.5085 647.45 79.45C646.984 79.9162 646.614 80.4697 646.362 81.0788C646.109 81.6879 645.98 82.3407 645.98 83C645.98 84.3315 646.508 85.6085 647.45 86.55L663.95 103H626C624.674 103 623.402 103.527 622.464 104.464C621.527 105.402 621 106.674 621 108C621 109.326 621.527 110.598 622.464 111.536C623.402 112.473 624.674 113 626 113H663.95L647.45 129.45C646.981 129.915 646.609 130.468 646.356 131.077C646.102 131.686 645.971 132.34 645.971 133C645.971 133.66 646.102 134.314 646.356 134.923C646.609 135.532 646.981 136.085 647.45 136.55C647.915 137.019 648.468 137.391 649.077 137.644C649.686 137.898 650.34 138.029 651 138.029C651.66 138.029 652.314 137.898 652.923 137.644C653.532 137.391 654.085 137.019 654.55 136.55L679.55 111.55C680.005 111.074 680.362 110.514 680.6 109.9C681.1 108.683 681.1 107.317 680.6 106.1Z" fill="#441616"/>
|
||||
</g>
|
||||
<defs>
|
||||
<filter id="filter0_d_33_3626" x="0" y="0" width="811" height="236" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
||||
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
||||
<feOffset dx="20" dy="20"/>
|
||||
<feComposite in2="hardAlpha" operator="out"/>
|
||||
<feColorMatrix type="matrix" values="0 0 0 0 0.516667 0 0 0 0 0.24983 0 0 0 0 0.0839583 0 0 0 1 0"/>
|
||||
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_33_3626"/>
|
||||
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_33_3626" result="shape"/>
|
||||
</filter>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 9.8 KiB |
|
After Width: | Height: | Size: 517 KiB |
|
After Width: | Height: | Size: 576 KiB |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none"><g clip-path="url(#a)"><path fill="url(#b)" d="M33.994 7.163a8.013 8.013 0 0 1 7.45 7.451 8.012 8.012 0 0 0 1.958 4.725 8.013 8.013 0 0 1 0 10.537 8.012 8.012 0 0 0-1.957 4.726 8.013 8.013 0 0 1-7.451 7.45 8.012 8.012 0 0 0-4.726 1.958 8.012 8.012 0 0 1-10.537 0 8.012 8.012 0 0 0-4.725-1.957 8.013 8.013 0 0 1-7.45-7.451 8.012 8.012 0 0 0-1.958-4.726 8.013 8.013 0 0 1 0-10.537 8.013 8.013 0 0 0 1.957-4.725 8.013 8.013 0 0 1 7.451-7.45 8.013 8.013 0 0 0 4.726-1.958 8.012 8.012 0 0 1 10.537 0 8.013 8.013 0 0 0 4.725 1.957Z"/><path fill="url(#c)" fill-opacity=".95" fill-rule="evenodd" d="M47 32c0 7.317-5.715 13.324-13 13.946V46H14v-.002c-4.97 0-9-3.959-9-8.842 0-4.883 4.03-8.841 9-8.841 1.725 0 3.337.476 4.706 1.303C19.856 23.021 25.706 18 32.75 18 40.62 18 47 24.268 47 32Z" clip-rule="evenodd"/></g><defs><radialGradient id="b" cx="0" cy="0" r="1" gradientTransform="rotate(54.961 -5.095 15.306) scale(21.1418 21.1309)" gradientUnits="userSpaceOnUse"><stop offset=".016" stop-color="#FFBB29"/><stop offset=".359" stop-color="#FCB224"/><stop offset=".967" stop-color="#E47100"/></radialGradient><linearGradient id="c" x1="33" x2="20.059" y1="48.8" y2="26.888" gradientUnits="userSpaceOnUse"><stop offset=".078" stop-color="#A0A0A0"/><stop offset=".349" stop-color="#CCC"/><stop offset="1" stop-color="#fff"/></linearGradient><clipPath id="a"><path fill="#fff" d="M0 0h48v48H0z"/></clipPath></defs></svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 607 KiB |
|
After Width: | Height: | Size: 565 KiB |
|
After Width: | Height: | Size: 528 KiB |
|
After Width: | Height: | Size: 1.4 MiB |
|
After Width: | Height: | Size: 581 KiB |
@@ -11,7 +11,7 @@
|
||||
"type": "SINGLE",
|
||||
"filters": [],
|
||||
"attributes": [],
|
||||
"versionCode": 55,
|
||||
"versionCode": 56,
|
||||
"versionName": "1.6.4 (W)",
|
||||
"outputFile": "app-release.apk"
|
||||
}
|
||||
|
||||
@@ -13,5 +13,5 @@ dependencyResolutionManagement {
|
||||
}
|
||||
}
|
||||
|
||||
rootProject.name = "Weather Master"
|
||||
rootProject.name = "WeatherMaster"
|
||||
include ':app'
|
||||