-
-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into testing
- Loading branch information
Showing
5 changed files
with
50 additions
and
43 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,29 @@ | ||
diff -ur usr/share/jupiter-fan-control/fancontrol.py usr/share/jupiter-fan-control/fancontrol.py | ||
--- usr/share/jupiter-fan-control/fancontrol.py 2022-12-23 13:14:48.861887067 -0800 | ||
+++ usr/share/jupiter-fan-control/fancontrol.py 2022-12-23 00:42:03.223412367 -0800 | ||
@@ -1,4 +1,4 @@ | ||
-#!/usr/bin/python -u | ||
+#!/usr/bin/python3 -u | ||
"""jupiter-fan-controller""" | ||
import signal | ||
import os | ||
diff -ur usr/share/jupiter-fan-control/PID.py usr/share/jupiter-fan-control/PID.py | ||
--- usr/share/jupiter-fan-control/PID.py 2022-12-23 13:14:48.861887067 -0800 | ||
+++ usr/share/jupiter-fan-control/PID.py 2022-12-23 00:42:03.222412347 -0800 | ||
diff --git a/usr/lib/systemd/system/jupiter-fan-control.service b/usr/lib/systemd/system/jupiter-fan-control.service | ||
index e3e9e34..cff45a7 100644 | ||
--- a/usr/lib/systemd/system/jupiter-fan-control.service | ||
+++ b/usr/lib/systemd/system/jupiter-fan-control.service | ||
@@ -4,8 +4,8 @@ Description=Jupiter fan control | ||
[Service] | ||
Type=simple | ||
|
||
-ExecStart=/usr/share/jupiter-fan-control/fancontrol.py --run | ||
-ExecStopPost=/usr/share/jupiter-fan-control/fancontrol.py --stop | ||
+ExecStart=/usr/libexec/jupiter-fan-control/fancontrol.py --run | ||
+ExecStopPost=/usr/libexec/jupiter-fan-control/fancontrol.py --stop | ||
|
||
# disable buffering so STDOUT and STDERR show up immediately in logs | ||
Environment=PYTHONUNBUFFERED=1 | ||
diff --git a/usr/share/jupiter-fan-control/PID.py b/usr/share/jupiter-fan-control/PID.py | ||
index d52123e..c5786ff 100644 | ||
--- a/usr/share/jupiter-fan-control/PID.py | ||
+++ b/usr/share/jupiter-fan-control/PID.py | ||
@@ -1,4 +1,4 @@ | ||
-#!/usr/bin/python | ||
+#!/usr/bin/python3 | ||
# | ||
# This file is part of IvPID. | ||
# Copyright (C) 2015 Ivmech Mechatronics Ltd. <[email protected]> | ||
@@ -64,7 +64,7 @@ | ||
@@ -64,7 +64,7 @@ class PID: | ||
"""Calculates PID value for given reference feedback | ||
|
||
.. math:: | ||
|
@@ -25,3 +32,13 @@ diff -ur usr/share/jupiter-fan-control/PID.py usr/share/jupiter-fan-control/PID. | |
|
||
.. figure:: images/pid_1.png | ||
:align: center | ||
diff --git a/usr/share/jupiter-fan-control/fancontrol.py b/usr/share/jupiter-fan-control/fancontrol.py | ||
index 5829d5e..c797954 100755 | ||
--- a/usr/share/jupiter-fan-control/fancontrol.py | ||
+++ b/usr/share/jupiter-fan-control/fancontrol.py | ||
@@ -1,4 +1,4 @@ | ||
-#!/usr/bin/python -u | ||
+#!/usr/bin/python3 -u | ||
"""jupiter-fan-controller""" | ||
import signal | ||
import os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters