Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
MessdatenSilo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lennard Kloock
MessdatenSilo
Commits
2c2c66fa
Commit
2c2c66fa
authored
3 years ago
by
Lennard
Browse files
Options
Downloads
Patches
Plain Diff
Various cleanups
parent
22d4f258
No related branches found
Tags
Tags containing commit
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
.github/workflows/convert.yml
+0
-2
0 additions, 2 deletions
.github/workflows/convert.yml
config.json
+4
-4
4 additions, 4 deletions
config.json
main.py
+1
-1
1 addition, 1 deletion
main.py
pull.bash
+1
-1
1 addition, 1 deletion
pull.bash
push.bash
+1
-2
1 addition, 2 deletions
push.bash
with
7 additions
and
10 deletions
.github/workflows/convert.yml
+
0
−
2
View file @
2c2c66fa
...
...
@@ -25,8 +25,6 @@ jobs:
run
:
|
python3 convert.py
cd out && zip ../data.zip ./* && cd -
ls .
ls ..
-
name
:
release
uses
:
actions/create-release@v1
id
:
create_release
...
...
This diff is collapsed.
Click to expand it.
config.json
+
4
−
4
View file @
2c2c66fa
...
...
@@ -4,17 +4,17 @@
"when"
:
"h"
,
"interval"
:
25
,
"filename"
:
"data"
,
"levels"
:
[
"INFO"
,
"
WARNING
"
]
"levels"
:
[
"INFO"
,
"
INFO
"
]
},
"InfoLogger"
:
{
"backupCount"
:
10
,
"maxBytes"
:
1000000
,
"filename"
:
"log"
,
"levels"
:
[
"INFO"
,
"
INFO
"
]
"levels"
:
[
"INFO"
,
"
WARNING
"
]
},
"Data"
:
{
"factors"
:
[
1
,
1
,
1
,
1
],
"delta_time"
:
6
0
,
"smoothing"
:
tru
e
"delta_time"
:
3
0
,
"smoothing"
:
fals
e
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
main.py
+
1
−
1
View file @
2c2c66fa
...
...
@@ -73,7 +73,7 @@ def get_offset() -> np.ndarray:
# file didn't contain any data
continue
difference
=
datetime
.
datetime
.
now
()
-
datetime
.
datetime
.
strptime
(
lines
[
-
1
].
split
(
"
,
"
)[
0
],
"
%Y-%m-%d %H:%M:%S
"
)
if
difference
>
datetime
.
timedelta
(
seconds
=
60
*
10
):
if
difference
>
datetime
.
timedelta
(
seconds
=
60
*
5
):
logger
.
warning
(
f
"
Time difference between last logged value and current time is very large:
{
difference
.
total_seconds
()
:
.
0
f
}
s.
"
)
...
...
This diff is collapsed.
Click to expand it.
pull.bash
+
1
−
1
View file @
2c2c66fa
This diff is collapsed.
Click to expand it.
push.bash
+
1
−
2
View file @
2c2c66fa
...
...
@@ -4,4 +4,3 @@ git add .
git commit
-m
"New data"
&&
git push
--force
echo
""
python3 main.py
\ No newline at end of file
rm
data/data
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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