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
130df6b6
Commit
130df6b6
authored
Jun 09, 2024
by
Weiser
Browse files
asdf
parent
fcb311bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/weather/currentData.js
View file @
130df6b6
...
...
@@ -93,7 +93,7 @@ const Currentdata = (props) => {
<
label
>
Last
Updated
<
/label
>
<
br
/>
<
input
type
=
"
checkbox
"
id
=
"
temp
"
className
=
"
checkBoxFilter
"
/>
<
label
for
=
"
temp
"
>
Temp
C
<
/label
>
<
label
for
=
"
temp
"
>
Temp
<
/label
>
<
br
/>
<
input
type
=
"
checkbox
"
id
=
"
id_day
"
className
=
"
checkBoxFilter
"
/>
<
label
for
=
"
id_day
"
>
ID
Day
<
/label
>
...
...
@@ -344,7 +344,7 @@ const Currentdata = (props) => {
filterArray
.
push
(
"
last_updated
"
);
}
if
(
temp
)
{
if
(
units
==
world
)
{
if
(
units
==
"
world
"
)
{
filterArray
.
push
(
"
temp_c
"
);
}
else
{
filterArray
.
push
(
"
temp_f
"
);
...
...
@@ -364,7 +364,7 @@ const Currentdata = (props) => {
filterArray
.
push
(
"
condition_code
"
);
}
if
(
wind
)
{
if
(
units
==
world
)
{
if
(
units
==
"
world
"
)
{
filterArray
.
push
(
"
wind_kph
"
);
}
else
{
filterArray
.
push
(
"
wind_mph
"
);
...
...
@@ -377,14 +377,14 @@ const Currentdata = (props) => {
filterArray
.
push
(
"
wind_dir
"
);
}
if
(
pressure
)
{
if
(
units
==
world
)
{
if
(
units
==
"
world
"
)
{
filterArray
.
push
(
"
temp_mb
"
);
}
else
{
filterArray
.
push
(
"
pressure_in
"
);
}
}
if
(
precip
)
{
if
(
units
==
world
)
{
if
(
units
==
"
world
"
)
{
filterArray
.
push
(
"
temp_mm
"
);
}
else
{
filterArray
.
push
(
"
precip_in
"
);
...
...
@@ -397,35 +397,35 @@ const Currentdata = (props) => {
filterArray
.
push
(
"
cloud
"
);
}
if
(
feelslike
)
{
if
(
units
==
world
)
{
if
(
units
==
"
world
"
)
{
filterArray
.
push
(
"
feelslike_c
"
);
}
else
{
filterArray
.
push
(
"
feelslike_f
"
);
}
}
if
(
windchill
)
{
if
(
units
==
world
)
{
if
(
units
==
"
world
"
)
{
filterArray
.
push
(
"
windchill_c
"
);
}
else
{
filterArray
.
push
(
"
windchill_f
"
);
}
}
if
(
heatindex
)
{
if
(
units
==
world
)
{
if
(
units
==
"
world
"
)
{
filterArray
.
push
(
"
heatindex_c
"
);
}
else
{
filterArray
.
push
(
"
heatindex_f
"
);
}
}
if
(
dewpoint
)
{
if
(
units
==
world
)
{
if
(
units
==
"
world
"
)
{
filterArray
.
push
(
"
dewpoint_c
"
);
}
else
{
filterArray
.
push
(
"
dewpoint_f
"
);
}
}
if
(
vis
)
{
if
(
units
==
world
)
{
if
(
units
==
"
world
"
)
{
filterArray
.
push
(
"
vis_miles
"
);
}
else
{
filterArray
.
push
(
"
vis_miles
"
);
...
...
@@ -435,7 +435,7 @@ const Currentdata = (props) => {
filterArray
.
push
(
"
uv
"
);
}
if
(
gust
)
{
if
(
units
==
world
)
{
if
(
units
==
"
world
"
)
{
filterArray
.
push
(
"
gust_kph
"
);
}
else
{
filterArray
.
push
(
"
gust_mph
"
);
...
...
frontend/src/components/weather/weatherForecastData.js
View file @
130df6b6
...
...
@@ -188,11 +188,6 @@ const WeatherForecastData = (props) => {
<
input
type
=
"
checkbox
"
id
=
"
hour_is_day
"
class
=
"
checkBoxFilter
"
/>
<
label
for
=
"
hour_is_day
"
>
Hour
Is
Day
<
/label
>
<
br
/>
<
input
type
=
"
checkbox
"
id
=
"
hour_condition_text
"
class
=
"
checkBoxFilter
"
/>
<
input
type
=
"
checkbox
"
id
=
"
hour_wind
"
class
=
"
checkBoxFilter
"
/>
<
label
for
=
"
hour_wind
"
>
Hour
Wind
<
/label
>
<
br
/>
...
...
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