Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-apps-tempmon
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-apps-tempmon
Commits
4101eb07
Commit
4101eb07
authored
Sep 26, 2016
by
Mikhail Karpenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turn fan on during start to set the driver to a known state
parent
9f23898a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
3 deletions
+15
-3
README.md
README.md
+2
-0
SCP apps-tempmon to target.launch
...p/.externalToolBuilders/SCP apps-tempmon to target.launch
+8
-0
Makefile
src/Makefile
+3
-3
tempmon.py
src/tempmon.py
+2
-0
No files found.
README.md
0 → 100644
View file @
4101eb07
# elphel-apps-tempmon
Temperature monitoring script
eclipse_project_setup/.externalToolBuilders/SCP apps-tempmon to target.launch
0 → 100644
View file @
4101eb07
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration
type=
"org.eclipse.ui.externaltools.ProgramBuilderLaunchConfigurationType"
>
<booleanAttribute
key=
"org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND"
value=
"false"
/>
<stringAttribute
key=
"org.eclipse.ui.externaltools.ATTR_LOCATION"
value=
"${workspace_loc:/elphel-apps-tempmon/run_bitbake.sh}"
/>
<stringAttribute
key=
"org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS"
value=
"full,incremental,"
/>
<stringAttribute
key=
"org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS"
value=
"apps-tempmon -c target_scp -f"
/>
<booleanAttribute
key=
"org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED"
value=
"true"
/>
</launchConfiguration>
src/Makefile
View file @
4101eb07
...
...
@@ -2,14 +2,14 @@ PROGS =
PHPCLI
=
CONFIGS
=
SRCS
=
imgsrv
.py
OBJS
=
SRCS
=
tempmon
.py
OBJS
=
INSTALL
=
install
INSTMODE
=
0755
INSTDOCS
=
0644
OWN
=
-o
root
-g
root
OWN
=
-o
root
-g
root
CFLAGS
=
...
...
src/tempmon.py
View file @
4101eb07
...
...
@@ -224,6 +224,8 @@ if __name__ == "__main__":
out_path_pref
=
""
tm
=
temp_monitor
(
ctrl_path_pref
,
ctrl_fn
,
hwmon_path_pref
,
hwmon_fn
,
out_path_pref
,
out_fn
)
if
tm
.
check_files
():
# unconditionally turn the fan on to set the driver to a known state
tm
.
fan_ctrl
(
"on"
)
tm
.
monitor
()
else
:
sys
.
exit
(
1
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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