updated pandoc templates
This commit is contained in:
@@ -22,9 +22,9 @@
|
||||
<body>
|
||||
<header id="title-block-header">
|
||||
<nav id="TOC">
|
||||
<a href="https://www.meezenest.nl/mees/"><img alt="Logo" src="./images/mees_logo.svg" height="70"></a>
|
||||
<ul>
|
||||
<li><a href="#">Menu</a>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#">Index</a>
|
||||
<ul>
|
||||
<li><a href="#why-do-you-need-a-weather-station"
|
||||
id="toc-why-do-you-need-a-weather-station">Why do you need a
|
||||
@@ -55,13 +55,24 @@
|
||||
<li><a href="#license" id="toc-license">License</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<li>
|
||||
<a href="./weather_station.pdf">PDF version</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://git.meezenest.nl/">Git repo</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://meezenest.nl/mees/">Back</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<a href="https://www.meezenest.nl/mees/"><img alt="Logo" src="./images/mees_logo.svg" height="70"></a>
|
||||
</nav>
|
||||
<h1 class="title">Weather station</h1>
|
||||
<p class="subtitle">with ModBus RTU interface</p>
|
||||
<p class="author">M.T. Konstapel</p>
|
||||
<p class="date">2024-01-15</p>
|
||||
<p><a href="https://meezenest.nl/mees/"><i>Back ↗</i></a></p>
|
||||
<p><a href="./weather_station.pdf"><i>PDF version</i></a></p>
|
||||
</header>
|
||||
<main>
|
||||
<article>
|
||||
@@ -579,7 +590,7 @@ import minimalmodbus
|
||||
# port name, slave address (in decimal)
|
||||
instrument = minimalmodbus.Instrument('/dev/ttyUSB1', 14)
|
||||
|
||||
# Register number, number of decimals, function code
|
||||
# register number, number of decimals, function code
|
||||
wind_direction = instrument.read_register(1, 0, 4)
|
||||
print(wind_direction)</code></pre>
|
||||
<h3 id="input-registers">Input registers</h3>
|
||||
@@ -669,10 +680,33 @@ APRS weather reports. But of course we use SI units.</p>
|
||||
<td>Temperature (two’s complement)</td>
|
||||
<td>degrees Celcius * 100</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td>30014</td>
|
||||
<td>Status bits</td>
|
||||
<td>see table below</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p><sup>NOTE</sup> Register 30013 holds the backup temperature reading
|
||||
from the pressure sensor.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr class="header">
|
||||
<th>Status bits</th>
|
||||
<th>Description</th>
|
||||
<th>logic 0</th>
|
||||
<th>logic 1</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="odd">
|
||||
<td>0</td>
|
||||
<td>Heater status</td>
|
||||
<td>heater off</td>
|
||||
<td>heater on</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>The ModBus registers are 16 bit wide. For better precision, some
|
||||
units are scaled by a factor of 10 or 100. This way, values with up to
|
||||
two decimal points can be stored as 16 bit integer values. Just divide
|
||||
|
Reference in New Issue
Block a user