Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
weather_interface
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Porter Libby
weather_interface
Commits
904e71b1
Commit
904e71b1
authored
2 years ago
by
Porter Libby
Browse files
Options
Downloads
Patches
Plain Diff
fix leading whitespace
parent
a38ea521
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
collect
+4
-4
4 additions, 4 deletions
collect
with
4 additions
and
4 deletions
collect
+
4
−
4
View file @
904e71b1
...
...
@@ -2,7 +2,7 @@
output1
=
data/history-weather.csv
output2
=
data/current-weather.csv
if
!
test
-f
"
$output1
"
;
then
echo
"timestamp,
barometric,
insideTemp,
insideHum,
outsideTemp,
outsideHum,
windSpeed2m"
>
$output1
echo
"timestamp,barometric,insideTemp,insideHum,outsideTemp,outsideHum,windSpeed2m"
>
$output1
echo
"Created"
fi
...
...
@@ -31,8 +31,8 @@ forecast=${forecast#*= }
commaSpace
=
", "
# Append new data to weather history
echo
"
${
timestamp
}
,
${
baro
}
,
${
insideTemp
}
,
${
insideHum
}
,
${
outsideTemp
}
,
${
outsideHum
}
,
${
windSpeed2m
}
"
>>
$output1
echo
"
${
timestamp
}
,
${
baro
}
,
${
insideTemp
}
,
${
insideHum
}
,
${
outsideTemp
}
,
${
outsideHum
}
,
${
windSpeed2m
}
"
>>
$output1
# Update current weather (only one row of data)
echo
"
Record Time, Barometric Pressure, I
nside
Temp,
I
nside
Hum
idity, O
utside
Temp,
O
utside
Hum
idity, W
ind
Speed
(avg), W
ind
Dir
ection, F
orecast"
>
$output2
echo
"
${
timestamp
}
,
${
baro
}
,
${
insideTemp
}
,
${
insideHum
}
,
${
outsideTemp
}
,
${
outsideHum
}
,
${
windSpeed2m
}
,
${
windDir
}
,
${
forecast
}
"
>>
$output2
echo
"
timestamp,barometric,i
nsideTemp,
i
nsideHum
,o
utsideTemp,
o
utsideHum
,w
indSpeed
2m,w
indDir
,f
orecast"
>
$output2
echo
"
${
timestamp
}
,
${
baro
}
,
${
insideTemp
}
,
${
insideHum
}
,
${
outsideTemp
}
,
${
outsideHum
}
,
${
windSpeed2m
}
,
${
windDir
}
,
${
forecast
}
"
>>
$output2
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment