added how to get the temperature of the rpi3
authorJean-Philippe Orsini <orsinije@fr.ibm.com>
Mon, 2 Jan 2017 13:01:35 +0000 (14:01 +0100)
committerJean-Philippe Orsini <orsinije@fr.ibm.com>
Mon, 2 Jan 2017 13:01:35 +0000 (14:01 +0100)
src/tricks/index.adoc
src/tricks/raspberry_pi3_temperature.adoc [new file with mode: 0644]
www/tricks/index.html
www/tricks/raspberry_pi3_temperature.html [new file with mode: 0644]

index 8593979..17bed70 100644 (file)
@@ -5,8 +5,8 @@
 == Raspberry PI
 
 * link:raspberry_pi3_increase_swap_size.html[Increase swap size]
+* link:raspberry_pi3_temperature.html[How to get the temperature of the Raspberry PI3]
 
 == https://letsencrypt.org[Let's Encrypt]
 
 * link:letsencrypt_renew.html[Renew the SSL certificate]
-
diff --git a/src/tricks/raspberry_pi3_temperature.adoc b/src/tricks/raspberry_pi3_temperature.adoc
new file mode 100644 (file)
index 0000000..663bf9e
--- /dev/null
@@ -0,0 +1,8 @@
+= Raspberry PI - How to get the temperature
+:docinfo2:
+:icons: font
+
+Display the temperature of the Raspberry (Celsius):
+----
+echo `cat /sys/class/thermal/thermal_zone0/temp` / 1000 |bc
+----
index 5801a16..4ddef95 100644 (file)
@@ -4,10 +4,10 @@
 <meta charset="UTF-8">
 <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]-->
 <meta name="viewport" content="width=device-width, initial-scale=1.0">
-<meta name="generator" content="Asciidoctor 1.5.4">
+<meta name="generator" content="Asciidoctor 1.5.3">
 <title>Tricks</title>
 <link rel="stylesheet" href="./../style.css">
-<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
+<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css">
 <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
 <script src="../nav.js"></script>
 </head>
@@ -24,6 +24,9 @@
 <li>
 <p><a href="raspberry_pi3_increase_swap_size.html">Increase swap size</a></p>
 </li>
+<li>
+<p><a href="raspberry_pi3_temperature.html">How to get the temperature of the Raspberry PI3</a></p>
+</li>
 </ul>
 </div>
 </div>
@@ -43,7 +46,7 @@
 </div>
 <div id="footer">
 <div id="footer-text">
-Last updated 2016-12-22 00:27:05 UTC
+Last updated 2017-01-02 13:49:47 CET
 </div>
 </div>
 <footer>
diff --git a/www/tricks/raspberry_pi3_temperature.html b/www/tricks/raspberry_pi3_temperature.html
new file mode 100644 (file)
index 0000000..08c065f
--- /dev/null
@@ -0,0 +1,49 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+<meta charset="UTF-8">
+<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]-->
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<meta name="generator" content="Asciidoctor 1.5.3">
+<title>Raspberry PI - How to get the temperature</title>
+<link rel="stylesheet" href="./../style.css">
+<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css">
+<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
+<script src="../nav.js"></script>
+</head>
+<body class="article">
+<div id="header">
+<h1>Raspberry PI - How to get the temperature</h1>
+</div>
+<div id="content">
+<div class="paragraph">
+<p>Display the temperature of the Raspberry (Celsius):</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre>echo `cat /sys/class/thermal/thermal_zone0/temp` / 1000 |bc</pre>
+</div>
+</div>
+</div>
+<div id="footer">
+<div id="footer-text">
+Last updated 2017-01-02 14:00:01 CET
+</div>
+</div>
+<footer>
+        <ul>
+                <li><i class="fa fa-rss" aria-hidden="true"></i>
+                        Feed: <a href="https://wpitchoune.net/news/feed.xml">RSS 2.0</a>
+                </li>
+
+                <li><i class="fa fa-envelope" aria-hidden="true"></i>
+                    Email: <a href="mailto:jeanfi@gmail.com">jeanfi@gmail.com</a>
+                </li>
+
+                <li><i class="fa fa-git-square" aria-hidden="true"></i>
+                    Source repository: <a href="https://git.wpitchoune.net/gitweb">gitweb</a>
+                </li>
+        </ul>
+</footer>
+</body>
+</html>
\ No newline at end of file