Files
AI-on-the-edge-device-docs/outdated--Migrate-Old-Config-To-New-Config/index.html
2023-01-29 10:18:12 +00:00

369 lines
19 KiB
HTML

<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><link rel="canonical" href="https://jomjol.github.io/AI-on-the-edge-device-docs/outdated--Migrate-Old-Config-To-New-Config/" />
<link rel="shortcut icon" href="../img/favicon.ico" />
<title>Migration from water-meter „old“ to water-meter “AI-on-the-edge-device” - AI on the Edge Device</title>
<link rel="stylesheet" href="../css/theme.css" />
<link rel="stylesheet" href="../css/theme_extra.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/github.min.css" />
<script>
// Current page data
var mkdocs_page_name = "Migration from water-meter \u201eold\u201c to water-meter \u201cAI-on-the-edge-device\u201d";
var mkdocs_page_input_path = "outdated--Migrate-Old-Config-To-New-Config.md";
var mkdocs_page_url = "/AI-on-the-edge-device-docs/outdated--Migrate-Old-Config-To-New-Config/";
</script>
<script src="../js/jquery-3.6.0.min.js" defer></script>
<!--[if lt IE 9]>
<script src="../js/html5shiv.min.js"></script>
<![endif]-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</head>
<body class="wy-body-for-nav" role="document">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
<div class="wy-side-scroll">
<div class="wy-side-nav-search">
<img src=https://jomjol.github.io/AI-on-the-edge-device-docs//img/logo.png>
<a href=".." class="icon icon-home"> AI on the Edge Device
</a><div role="search">
<form id ="rtd-search-form" class="wy-form" action="../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" title="Type search term here" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption"><span class="caption-text">Getting Started</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="..">Welcome</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../Installation/">Installation</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../initial-setup/">Initial Setup</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../Hardware-Compatibility/">Hardware Compatibility</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../Best-Practice/">Best Practice</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../FAQs/">Frequently Asked Questions</a>
</li>
</ul>
<p class="caption"><span class="caption-text">External Links</span></p>
<ul>
<li class="toctree-l1"><a class="" href="https://github.com/jomjol/AI-on-the-edge-device/releases">Releases</a>
</li>
<li class="toctree-l1"><a class="" href="https://jomjol.github.io/AI-on-the-edge-device/index.html">Web Installer/Console</a>
</li>
<li class="toctree-l1"><a class="" href="https://github.com/jomjol/AI-on-the-edge-device/issues">Place an Issue</a>
</li>
<li class="toctree-l1"><a class="" href="https://github.com/jomjol/AI-on-the-edge-device/discussions">Join a Discussion</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Configuration</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../ROI-Configuration/">ROI (Region of Interest)</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../Choosing-the-Model/">Model Selection</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../Neural-Network-Types/">Neural Network Types</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../ota/">Over-The-Air (OTA) Update</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Advanced</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../Integration-Home-Assistant/">Integration into Home Assistant</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../External-LED/">External LED</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../rolling-installation/">Living on the Edge</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../Configuration-Parameter-Details/">Configuration Parameter Details</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../Configuration/">Configuration</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../Watermeter-specific-analog---digital-transition/">Analog/Digital Transition on Watermeters</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../collect-new-images/">Collect images to improve the models</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../Learn-models-with-your-own-images/">Learn a model with your own images</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../Correction%20Algorithm/">Correction Algorithm</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../Additional-Information/">Additional Information</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../New-Releases-Notification/">Notification about new Releases</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Troubleshooting</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../Error-Codes/">Error Codes</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../Error-Debugging/">Error Debugging</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../Frequent-Reboots/">Frequent Reboots</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../Demo-Mode/">Demo Mode</a>
</li>
</ul>
<p class="caption"><span class="caption-text">API's</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../REST-API/">REST API</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../MQTT-API/">MQTT API</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../Influx-DB/">Influx DB</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Development</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../Build-Instructions/">Build the Project</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../Upload-files-by-script/">Scripted File Upload</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../Testing/">Testing</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../Release-creation/">Preparing for Release</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Old Pages (no longer maintained)</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../outdated--Integrated-Functions/">Integrated Functions</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../outdated--Gasmeter-Log-Downloader/">Gasmeter Log-Downloader</a>
</li>
<li class="toctree-l1 current"><a class="reference internal current" href="./">Migration from water-meter „old“ to water-meter “AI-on-the-edge-device”</a>
<ul class="current">
<li class="toctree-l2"><a class="reference internal" href="#1-follow-the-installation-guide-to-flash-the-esp32cam-and-prepare-a-sd-card-with-the-content-of-the-master">1. Follow the installation guide to flash the ESP32CAM and prepare a SD-Card with the content of the master</a>
</li>
<li class="toctree-l2"><a class="reference internal" href="#2-save-the-following-files-from-the-old-docker-system-on-your-pc">2. Save the following files from the old Docker system on your PC:</a>
</li>
<li class="toctree-l2"><a class="reference internal" href="#3-copy-reference-points-1-3-onto-the-new-water-meter-system-directory-config">3. Copy Reference Points 1-3 onto the new water-meter system (Directory /config)</a>
</li>
<li class="toctree-l2"><a class="reference internal" href="#4-open-new-configini-file">4. Open new config.ini File:</a>
<ul>
<li class="toctree-l3"><a class="reference internal" href="#old">Old:</a>
</li>
<li class="toctree-l3"><a class="reference internal" href="#new">New:</a>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#5-insert-the-old-digit-values-into-the-new-configini-file-eg">5. Insert the old Digit Values into the new Config.ini File, e.g.:</a>
<ul>
<li class="toctree-l3"><a class="reference internal" href="#old_1">Old:</a>
</li>
<li class="toctree-l3"><a class="reference internal" href="#new_1">New:</a>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#6-make-sure-that-you-have-the-same-quality-and-size-settings-as-in-your-old-configini">6. Make sure that you have the same quality and size settings as in your old Config.ini</a>
<ul>
<li class="toctree-l3"><a class="reference internal" href="#old_2">Old:</a>
</li>
<li class="toctree-l3"><a class="reference internal" href="#new_2">New:</a>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#7-repeat-the-same-for-the-analog-section">7. Repeat the same for the analog section</a>
</li>
<li class="toctree-l2"><a class="reference internal" href="#8-insert-your-ssid-and-password-into-the-new-wlanini-file">8. Insert your SSID and Password into the new wlan.ini File</a>
</li>
<li class="toctree-l2"><a class="reference internal" href="#9-compare-and-edit-consistencycheck-section-with-new-postprocessing-section">9. Compare and edit [ConsistencyCheck] Section with new [PostProcessing] Section</a>
</li>
<li class="toctree-l2"><a class="reference internal" href="#10-save-new-configini-file-in-the-new-system">10. Save new config.ini File in the new System.</a>
</li>
<li class="toctree-l2"><a class="reference internal" href="#11-restart-the-system">11. Restart the system.</a>
</li>
<li class="toctree-l2"><a class="reference internal" href="#12-after-the-first-start-set-manually-the-prevalue-in-the-new-system">12. After the first start set manually the PreValue in the new system</a>
</li>
</ul>
</li>
</ul>
<p class="caption"><span class="caption-text">Asorted Pages</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../Graphical-Configuration/">Graphical Configuration</a>
</li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="Mobile navigation menu">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="..">AI on the Edge Device</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content"><div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href=".." class="icon icon-home" alt="Docs"></a> &raquo;</li>
<li>Old Pages (no longer maintained) &raquo;</li>
<li>Migration from water-meter „old“ to water-meter “AI-on-the-edge-device”</li>
<li class="wy-breadcrumbs-aside">
<a href="https://github.com/jomjol/AI-on-the-edge-device-docs/edit/main/docs/outdated--Migrate-Old-Config-To-New-Config.md" class="icon icon-github"> Edit on GitHub</a>
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div class="section" itemprop="articleBody">
<h1 id="migration-from-water-meter-old-to-water-meter-ai-on-the-edge-device">Migration from water-meter „old“ to water-meter “AI-on-the-edge-device”</h1>
<div class="admonition warning">
<p class="admonition-title">Warning</p>
<p>This page no longer is maintained!</p>
</div>
<p>There are only some few steps necessary to migrate your old system to the new one.</p>
<p>Please follow the following steps:</p>
<h4 id="1-follow-the-installation-guide-to-flash-the-esp32cam-and-prepare-a-sd-card-with-the-content-of-the-master">1. Follow the installation guide to flash the ESP32CAM and prepare a SD-Card with the content of the master</h4>
<h4 id="2-save-the-following-files-from-the-old-docker-system-on-your-pc">2. Save the following files from the old Docker system on your PC:</h4>
<ul>
<li>Reference Points 1-3 (only 2 needed)</li>
<li><code>Config.ini</code></li>
</ul>
<h4 id="3-copy-reference-points-1-3-onto-the-new-water-meter-system-directory-config">3. Copy Reference Points 1-3 onto the new water-meter system (Directory <code>/config</code>)</h4>
<p><strong>Please note only two Reference Points are supported in the new system.</strong></p>
<h4 id="4-open-new-configini-file">4. Open new <code>config.ini</code> File:</h4>
<p>Insert from the old <code>Config.ini</code> file <code>[alignment]</code> and <code>[alignment.ref0]</code> and <code>[alignment.ref1]</code> section the two Ref x and y position and the <code>initial_rotation_angle= 123</code>into the new <code>Config.ini</code> File, e.g.:</p>
<h6 id="old">Old:</h6>
<pre><code>[alignment.ref0]
image=./config/RB01_65x65.jpg
pos_x=28
pos_y=63
[alignment.ref1]
image=./config/RB02_50x35.jpg
pos_x=497
pos_y=127
[alignment]
initial_rotation_angle=180
</code></pre>
<h6 id="new">New:</h6>
<pre><code>[Alignment]
InitalRotate=180
/config/RB01_65x65.jpg 28, 63
/config/RB02_50x35.jpg 497, 127
SearchFieldX = 20
SearchFieldY = 20
</code></pre>
<h4 id="5-insert-the-old-digit-values-into-the-new-configini-file-eg">5. Insert the old Digit Values into the new <code>Config.ini</code> File, e.g.:</h4>
<h6 id="old_1">Old:</h6>
<pre><code>[Digital_Digit.ziffer1]
pos_x=265
pos_y=117
dx=28
dy=51
[Digital_Digit.ziffer2]
pos_x=310
pos_y=117
dx=28
dy=51
[Digital_Digit.ziffer3]
pos_x=354
pos_y=117
dx=28
dy=51
[Digital_Digit.ziffer4]
pos_x=399
pos_y=117
dx=28
dy=51
[Digital_Digit.ziffer5]
pos_x=445
pos_y=115
dx=28
dy=51
</code></pre>
<h6 id="new_1">New:</h6>
<pre><code>[Digits]
Model=/config/dig0630s3.tflite
;LogImageLocation = /log/digit
ModelInputSize 20, 32
digit1, 265, 117, 28, 51
digit2, 310, 117, 28, 51
digit3, 354, 117, 28, 51
digit4, 399, 117, 28, 51
digit5, 445, 115, 28, 51
</code></pre>
<h4 id="6-make-sure-that-you-have-the-same-quality-and-size-settings-as-in-your-old-configini">6. Make sure that you have the same quality and size settings as in your old <code>Config.ini</code></h4>
<p>In the old configuration this was coded in the html-string for the image source:</p>
<h6 id="old_2">Old:</h6>
<pre><code>URLImageSource=http://IP-ADRESS/capture_with_flashlight?quality=5&amp;size=VGA
</code></pre>
<p>Default was Quality=5 and VGA.</p>
<h6 id="new_2">New:</h6>
<pre><code>ImageQuality = 5
ImageSize = VGA
</code></pre>
<h4 id="7-repeat-the-same-for-the-analog-section">7. Repeat the same for the analog section</h4>
<h4 id="8-insert-your-ssid-and-password-into-the-new-wlanini-file">8. Insert your SSID and Password into the new wlan.ini File</h4>
<h4 id="9-compare-and-edit-consistencycheck-section-with-new-postprocessing-section">9. Compare and edit [ConsistencyCheck] Section with new [PostProcessing] Section</h4>
<h4 id="10-save-new-configini-file-in-the-new-system">10. Save new config.ini File in the new System.</h4>
<h4 id="11-restart-the-system">11. Restart the system.</h4>
<h4 id="12-after-the-first-start-set-manually-the-prevalue-in-the-new-system">12. After the first start set manually the PreValue in the new system</h4>
</div>
</div><footer>
<div class="rst-footer-buttons" role="navigation" aria-label="Footer Navigation">
<a href="../outdated--Gasmeter-Log-Downloader/" class="btn btn-neutral float-left" title="Gasmeter Log-Downloader"><span class="icon icon-circle-arrow-left"></span> Previous</a>
<a href="../Graphical-Configuration/" class="btn btn-neutral float-right" title="Graphical Configuration">Next <span class="icon icon-circle-arrow-right"></span></a>
</div>
<hr/>
<div role="contentinfo">
<!-- Copyright etc -->
</div>
Built with <a href="https://www.mkdocs.org/">MkDocs</a> using a <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<div class="rst-versions" role="note" aria-label="Versions">
<span class="rst-current-version" data-toggle="rst-current-version">
<span>
<a href="https://github.com/jomjol/AI-on-the-edge-device-docs" class="fa fa-github" style="color: #fcfcfc"> GitHub</a>
</span>
<span><a href="../outdated--Gasmeter-Log-Downloader/" style="color: #fcfcfc">&laquo; Previous</a></span>
<span><a href="../Graphical-Configuration/" style="color: #fcfcfc">Next &raquo;</a></span>
</span>
</div>
<script>var base_url = '..';</script>
<script src="../js/theme_extra.js" defer></script>
<script src="../js/theme.js" defer></script>
<script src="../search/main.js" defer></script>
<script defer>
window.onload = function () {
SphinxRtdTheme.Navigation.enable(true);
};
</script>
</body>
</html>