Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Karakas
SWP_SS24_Wetterdaten_sammeln
Commits
b6199d74
Commit
b6199d74
authored
Jun 09, 2024
by
Weiser
Browse files
sdfg
parent
67fe26a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/weather/currentData.js
View file @
b6199d74
...
...
@@ -367,9 +367,10 @@ const Currentdata = (props) => {
}
if
(
wind
)
{
if
(
units
==
world
){
filterArray
.
push
(
"
wind_mph
"
);
}
filterArray
.
push
(
"
wind_kph
"
);
filterArray
.
push
(
"
wind_kph
"
);
}
else
{
filterArray
.
push
(
"
wind_mph
"
);
}
}
if
(
wind_degree
)
{
filterArray
.
push
(
"
wind_degree
"
);
...
...
@@ -380,14 +381,17 @@ const Currentdata = (props) => {
if
(
pressure
)
{
if
(
units
==
world
){
filterArray
.
push
(
"
temp_mb
"
);
}
}
else
{
filterArray
.
push
(
"
pressure_in
"
);
}
}
if
(
precip
)
{
if
(
units
==
world
){
if
(
precip
)
{
if
(
units
==
world
){
filterArray
.
push
(
"
temp_mm
"
);
}
}
else
{
filterArray
.
push
(
"
precip_in
"
);
}
}
if
(
humidity
)
{
filterArray
.
push
(
"
humidity
"
);
}
...
...
@@ -397,32 +401,37 @@ const Currentdata = (props) => {
if
(
feelslike
)
{
if
(
units
==
world
){
filterArray
.
push
(
"
feelslike_c
"
);
}
}
else
{
filterArray
.
push
(
"
feelslike_f
"
);
}
}
if
(
windchill
)
{
if
(
units
==
world
){
filterArray
.
push
(
"
windchill_c
"
);
}
}
else
{
filterArray
.
push
(
"
windchill_f
"
);
}
}
if
(
heatindex
)
{
if
(
units
==
world
){
filterArray
.
push
(
"
heatindex_c
"
);
}
}
else
{
filterArray
.
push
(
"
heatindex_f
"
);
}
}
if
(
dewpoint
)
{
if
(
units
==
world
){
filterArray
.
push
(
"
dewpoint_c
"
);
}
}
else
{
filterArray
.
push
(
"
dewpoint_f
"
);
}
}
if
(
vis
)
{
if
(
units
==
world
){
filterArray
.
push
(
"
vis_miles
"
);
}
}
else
{
filterArray
.
push
(
"
vis_miles
"
);
}
}
if
(
uv
)
{
filterArray
.
push
(
"
uv
"
);
...
...
@@ -430,8 +439,9 @@ const Currentdata = (props) => {
if
(
gust
)
{
if
(
units
==
world
){
filterArray
.
push
(
"
gust_kph
"
);
}
}
else
{
filterArray
.
push
(
"
gust_mph
"
);
}
}
if
(
air_quality_co
)
{
filterArray
.
push
(
"
air_quality_co
"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment