Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
temperature-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
th
temperature-daemon
Commits
66fd254e
Commit
66fd254e
authored
6 years ago
by
Johannes Walcher
Browse files
Options
Downloads
Patches
Plain Diff
whitespace fixes
parent
4043ce7d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
plugins/mail.py
+1
-1
1 addition, 1 deletion
plugins/mail.py
plugins/warnings.py
+11
-11
11 additions, 11 deletions
plugins/warnings.py
with
12 additions
and
12 deletions
plugins/mail.py
+
1
−
1
View file @
66fd254e
...
...
@@ -142,7 +142,7 @@ Temperator"""
temperatures
=
"
{name1}:{temp1}
\n
{name2}:{temp2}
"
.
format
(
**
kwargs
)
reason
=
"
Differenztemperatur: {tempdiff}
"
.
format
(
**
kwargs
)
elif
source
==
"
singlehot
"
:
temperatures
=
"
{name}:{temp}
"
.
format
(
**
kwargs
)
temperatures
=
"
{name}:{temp}
"
.
format
(
**
kwargs
)
reason
=
"
Einzeltemperatur zu hoch
"
alltemperatures
=
'
\n
'
.
join
([
...
...
This diff is collapsed.
Click to expand it.
plugins/warnings.py
+
11
−
11
View file @
66fd254e
...
...
@@ -108,23 +108,23 @@ class PluginWarning:
stattype
=
"
temperature-floor_ceil_diff
"
,
stattime
=
now
,
statval
=
tempdiff
)
print
(
"
floor: min {:05.2f} max {:05.2f} avg {:05.2f} var {:05.2f}
"
.
format
(
floor_min
,
floor_max
,
floor_avg
,
floor_var
))
floor_min
,
floor_max
,
floor_avg
,
floor_var
))
print
(
"
ceil: min {:05.2f} max {:05.2f} avg {:05.2f} var {:05.2f}
"
.
format
(
ceil_min
,
ceil_max
,
ceil_avg
,
ceil_var
))
ceil_min
,
ceil_max
,
ceil_avg
,
ceil_var
))
# Here comes the warning magic
if
ceil_max
>
int
(
self
.
warning_conf
[
'
min_ceiling_warning
'
]):
if
tempdiff
>
int
(
self
.
warning_conf
[
'
floor_ceiling_diff
'
]):
await
self
.
monitor
.
call_plugin
(
"
temperature_warning
"
,
source
=
"
tempdiff
"
,
name1
=
"
floor
"
,
name2
=
"
ceiling
"
,
temp1
=
floor_avg
,
temp2
=
ceil_avg
,
tempdiff
=
tempdiff
)
source
=
"
tempdiff
"
,
name1
=
"
floor
"
,
name2
=
"
ceiling
"
,
temp1
=
floor_avg
,
temp2
=
ceil_avg
,
tempdiff
=
tempdiff
)
if
ceil_avg
>
int
(
self
.
warning_conf
[
'
ceiling_warning_level
'
]):
await
self
.
monitor
.
call_plugin
(
"
temperature_warning
"
,
source
=
"
singlehot
"
,
name
=
"
ceiling
"
,
temp
=
ceil_avg
)
source
=
"
singlehot
"
,
name
=
"
ceiling
"
,
temp
=
ceil_avg
)
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