Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung |
wetter:boltek:stormforce_xr_c7 [09.01.2017 18:15. ] – [Server erneut manuell starten] django | wetter:boltek:stormforce_xr_c7 [31.10.2023 18:40. ] (aktuell) – Externe Bearbeitung 127.0.0.1 |
---|
{{ :wetter:boltek:boltek-ld250.png?direct&600 |Bild: Boltec LD-250 Blitzdedector}} | {{ :wetter:boltek:boltek-ld250.png?direct&600 |Bild: Boltec LD-250 Blitzdedector}} |
| |
{{ :wetter:boltek:boltek-ld250-antenne.png?direct&100|Bild: Empfangsantenne des Boltec LD-250 Blitzdedectors}} Die Installation des Blitzdedectors **[[http://www.boltek.com/product/ld250-lightning-detector/|LD-250]]** gestaltet sich relativ einfach. Es muss lediglich die Antenne (**schwarzer 4-eckiger Block**) an geeigneter Stelle montiert und die richtige Seite gen Norden ausgerichtet werden. | {{ :wetter:boltek:boltek-ld250-antenne.png?direct&100|Bild: Empfangsantenne des Boltec LD-250 Blitzdedectors}} Die Installation des Blitzdedectors **[[https://www.boltek.com/product/ld250-lightning-detector/|LD-250]]** gestaltet sich relativ einfach. Es muss lediglich die Antenne (**schwarzer 4-eckiger Block**) an geeigneter Stelle montiert und die richtige Seite gen Norden ausgerichtet werden. |
Zum Verbinden der Antenne mit dem LD-250 nimmt man am besten ein abgeschirmtes Netzwerkkabel und nicht da der Lieferung beiligendem ungeschirmten Kabels. | Zum Verbinden der Antenne mit dem LD-250 nimmt man am besten ein abgeschirmtes Netzwerkkabel und nicht da der Lieferung beiligendem ungeschirmten Kabels. |
| |
| |
===== USB/RS.232-Adapter ===== | ===== USB/RS.232-Adapter ===== |
Die Verbindung zwischen dem Boltec LD-250 und dem Server erfolgt mittels eines freien Anschlusses des 4-port USB/UART-Adapter **[[http://www.digitus.info/de/produkte/computer-accessories-and-components/computer-accessories/serial-and-parallel-adapter/da-70159/|DIGITUS USB 2.0 zu 4xRS232 Kabel]]**. | Die Verbindung zwischen dem Boltec LD-250 und dem Server erfolgt mittels eines freien Anschlusses des 4-port USB/UART-Adapter **[[https://www.digitus.info/de/produkte/computer-accessories-and-components/computer-accessories/serial-and-parallel-adapter/da-70159/|DIGITUS USB 2.0 zu 4xRS232 Kabel]]**. |
| |
Mit Hilfe der installierten **usbutiuls** können Details zum USB_Adapter abgefragt werden. | Mit Hilfe der installierten **usbutiuls** können Details zum USB_Adapter abgefragt werden. |
Build Host : worker1.bsys.centos.org | Build Host : worker1.bsys.centos.org |
Relocations : (not relocatable) | Relocations : (not relocatable) |
Packager : CentOS BuildSystem <http://bugs.centos.org> | Packager : CentOS BuildSystem <https://bugs.centos.org> |
Vendor : CentOS | Vendor : CentOS |
URL : http://www.linux-usb.org/ | URL : https://www.linux-usb.org/ |
Summary : Linux USB utilities | Summary : Linux USB utilities |
Description : | Description : |
Packager : Fedora Project | Packager : Fedora Project |
Vendor : Fedora Project | Vendor : Fedora Project |
URL : http://www.intra2net.com/de/produkte/opensource/ftdi/ | URL : https://www.intra2net.com/de/produkte/opensource/ftdi/ |
Summary : Library to program and control the FTDI USB controller | Summary : Library to program and control the FTDI USB controller |
Description : | Description : |
Dann nächstes holen wir uns die aktuelle Stormforce von der **[[https://sourceforge.net/projects/stormforce/|Projektseite]]** bei https://sourceforge.net. | Dann nächstes holen wir uns die aktuelle Stormforce von der **[[https://sourceforge.net/projects/stormforce/|Projektseite]]** bei https://sourceforge.net. |
# cd /usr/local/src/packages | # cd /usr/local/src/packages |
wget http://stormforce.googlecode.com/files/stormforce-0.5.4.tar.bz2 | wget https://stormforce.googlecode.com/files/stormforce-0.5.4.tar.bz2 |
===== Software ===== | ===== Software ===== |
==== GitHub ==== | ==== GitHub ==== |
<code>StormForce XR (XMLRPC) - Release v0.5.0 on 15/03/2014 | <code>StormForce XR (XMLRPC) - Release v0.5.0 on 15/03/2014 |
===================================================== | ===================================================== |
Link: http://code.google.com/p/stormforce/ | Link: https://code.google.com/p/stormforce/ |
| |
For license and copyright, please see the LICENSE file. | For license and copyright, please see the LICENSE file. |
Microsoft Windows | Microsoft Windows |
^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^ |
Install Python 2.7 (http://www.python.org/ftp/python/2.7.3/python-2.7.3.msi), pySerial (http://pypi.python.org/packages/any/p/pyserial/pyserial-2.5.win32.exe), pygame (http://pygame.org/ftp/pygame-1.9.1.win32-py2.7.msi), psycopg2 (http://www.stickpeople.com/projects/python/win-psycopg/psycopg2-2.4.5.win32-py2.7-pg9.1.3-release.exe), twisted (http://pypi.python.org/packages/2.7/T/Twisted/Twisted-12.0.0.win32-py2.7.msi), numpy (http://sourceforge.net/projects/numpy/files/NumPy/1.6.1/numpy-1.6.1-win32-superpack-python2.7.exe/download), and matplotlib (http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.0/matplotlib-1.1.0.win32-py2.7.exe/download). | Install Python 2.7 (https://www.python.org/ftp/python/2.7.3/python-2.7.3.msi), pySerial (https://pypi.python.org/packages/any/p/pyserial/pyserial-2.5.win32.exe), pygame (https://pygame.org/ftp/pygame-1.9.1.win32-py2.7.msi), psycopg2 (https://www.stickpeople.com/projects/python/win-psycopg/psycopg2-2.4.5.win32-py2.7-pg9.1.3-release.exe), twisted (https://pypi.python.org/packages/2.7/T/Twisted/Twisted-12.0.0.win32-py2.7.msi), numpy (https://sourceforge.net/projects/numpy/files/NumPy/1.6.1/numpy-1.6.1-win32-superpack-python2.7.exe/download), and matplotlib (https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.0/matplotlib-1.1.0.win32-py2.7.exe/download). |
| |
| |
Please note that the psycopg2 package is not a official build, have a look on the website for more information: http://www.stickpeople.com/projects/python/win-psycopg/ | Please note that the psycopg2 package is not a official build, have a look on the website for more information: https://www.stickpeople.com/projects/python/win-psycopg/ |
| |
*** Remember that you only need certain packages installed depending on which component of StormForce XR you want to use. **** | *** Remember that you only need certain packages installed depending on which component of StormForce XR you want to use. **** |
| |
===== Pakete (nach)installieren ===== | ===== Pakete (nach)installieren ===== |
Für den reibungslosen Betrieb von [[https://github.com/knaggsy2000/stormforce-xr|Stormforce-XR]] für unseren Blitzdedector **[[http://www.boltek.com/product/ld250-lightning-detector/|LD-250]]** benötigen wir noch ein paar Python Programme. Python selbst wurde bereits bei der Installation unseres Servers mitinstalliert, da dies ja unter anderem für das Paketverwaltungsprogramm **YUM** benötigt wird. | Für den reibungslosen Betrieb von [[https://github.com/knaggsy2000/stormforce-xr|Stormforce-XR]] für unseren Blitzdedector **[[https://www.boltek.com/product/ld250-lightning-detector/|LD-250]]** benötigen wir noch ein paar Python Programme. Python selbst wurde bereits bei der Installation unseres Servers mitinstalliert, da dies ja unter anderem für das Paketverwaltungsprogramm **YUM** benötigt wird. |
# yum info python | # yum info python |
| |
From repo : anaconda | From repo : anaconda |
Summary : An interpreted, interactive, object-oriented programming language | Summary : An interpreted, interactive, object-oriented programming language |
URL : http://www.python.org/ | URL : https://www.python.org/ |
License : Python | License : Python |
Description : Python is an interpreted, interactive, object-oriented programming | Description : Python is an interpreted, interactive, object-oriented programming |
</code> | </code> |
| |
| ==== Server ==== |
Gemäß der **//README//** aus dem aktuellen **//stormforce-xr//** Paket installieren wir nun für die Server-Komponente von Stormforce-XR die benötigten Pakete nach. | Gemäß der **//README//** aus dem aktuellen **//stormforce-xr//** Paket installieren wir nun für die Server-Komponente von Stormforce-XR die benötigten Pakete nach. |
# yum install python-twisted-core python-twisted-web pyserial python-psycopg2 | # yum install python-twisted-core python-twisted-web pyserial python-psycopg2 |
| |
| ==== Client ==== |
| Für den Stormforce-XR Client wir das Python Paket **pygame** benötigt. Leider gibt es weder im originalen CentOS Repository, noch im Repository **EPEL** ein passendes RPM. Abhilfe schafft hier das **Nux Dextop Repository**, welches wir nun kurzer Hand in unser System einbinden werden. |
| |
| Zunächst importieren wir den PGP-Key mit dem die Pakete des **Nux Dextop Repositories** signiert wurden. |
| # rpm --import https://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro |
| |
| Anschliessend binden wir das **Nux Dextop Repo** auf unserem Server ein. |
| # yum -y install epel-release && rpm -Uvh https://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm |
| |
| Zu guter Letzt installieren wir das Python Paket **pygame**. |
| # yum install pygame -y |
| |
| |
===== PostgreSQL-Datenbank ===== | ===== PostgreSQL-Datenbank ===== |
<Setting TRACStormWidth="30"/> | <Setting TRACStormWidth="30"/> |
<Setting TRACUpdateTime="2"/> | <Setting TRACUpdateTime="2"/> |
<Setting StrikeCopyright="Lightning Data (CC BY-NC-SA 3.0) http://wetterstation-pliening.info - Django"/> | <Setting StrikeCopyright="Lightning Data (CC BY-NC-SA 3.0) https://wetterstation-pliening.info - Django"/> |
<Setting DebugMode="False"/> | <Setting DebugMode="False"/> |
</SXRServer> | </SXRServer> |
</pre></html> | </pre></html> |
| |
| ==== Client ==== |
| === erster manueller Start === |
| Nachdem unser **stormforce-xr Server** installiert und konfiguriert ist und erfolgreich läuft, können wir nun das erste mal den Stormforce-XR-Client starten. Hierzu öffnen wir, nachdem wir uns an der laufenden X-Session angemeldet haben, ein Shell-Fenster, wechseln in das Installationsverzeichnis und starten den Client mit ''python sxr_server.py''. |
| $ cd /usr/local/src/stormforce-xr |
| $ python sxr_server.py |
| |
http://li.nux.ro/download/nux/dextop/el7/x86_64//pygame-1.9.1-15.el7.nux.x86_64.rpm | <html><pre class="code"> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 19:12:45.766556</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>Main</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>__init__()</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(130, 213, 49"><b>Info </b></font><font style="color: rgb(0, 0, 0)"><b>- Displaying license for DanLog...</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 19:12:45.772555</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>Main</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>__init__()</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(130, 213, 49"><b>Info </b></font><font style="color: rgb(0, 0, 0)"><b>- |
| ######################################################################### |
| # Copyright/License Notice (BSD License) # |
| ######################################################################### |
| ######################################################################### |
| # Copyright (c) 2012-2014, Daniel Knaggs # |
| # All rights reserved. # |
| # # |
| # Redistribution and use in source and binary forms, with or without # |
| # modification, are permitted provided that the following conditions # |
| # are met: - # |
| # # |
| # * Redistributions of source code must retain the above copyright # |
| # notice, this list of conditions and the following disclaimer. # |
| # # |
| # * Redistributions in binary form must reproduce the above copyright # |
| # notice, this list of conditions and the following disclaimer in # |
| # the documentation and/or other materials provided with the # |
| # distribution. # |
| # # |
| # * Neither the name of the author nor the names of its contributors # |
| # may be used to endorse or promote products derived from this # |
| # software without specific prior written permission. # |
| # # |
| # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # |
| # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # |
| # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # |
| # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # |
| # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # |
| # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # |
| # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # |
| # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # |
| # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # |
| # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # |
| # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # |
| ######################################################################### |
| </b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 19:12:45.773321</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>Main</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>__init__()</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(130, 213, 49"><b>Info </b></font><font style="color: rgb(0, 0, 0)"><b>- DanLog has been initialised.</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 19:12:45.774004</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>Main</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>info()</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(130, 213, 49"><b>Info </b></font><font style="color: rgb(0, 0, 0)"><b>- Prepearing...</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 19:12:45.813491</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXRClient</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>__init__()</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(130, 213, 49"><b>Info </b></font><font style="color: rgb(0, 0, 0)"><b>- Displaying license for DanLog...</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 19:12:45.814349</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXRClient</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>__init__()</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(130, 213, 49"><b>Info </b></font><font style="color: rgb(0, 0, 0)"><b>- </b></font> |
| ######################################################################### |
| # Copyright/License Notice (BSD License) # |
| ######################################################################### |
| ######################################################################### |
| # Copyright (c) 2012-2014, Daniel Knaggs # |
| # All rights reserved. # |
| # # |
| # Redistribution and use in source and binary forms, with or without # |
| # modification, are permitted provided that the following conditions # |
| # are met: - # |
| # # |
| # * Redistributions of source code must retain the above copyright # |
| # notice, this list of conditions and the following disclaimer. # |
| # # |
| # * Redistributions in binary form must reproduce the above copyright # |
| # notice, this list of conditions and the following disclaimer in # |
| # the documentation and/or other materials provided with the # |
| # distribution. # |
| # # |
| # * Neither the name of the author nor the names of its contributors # |
| # may be used to endorse or promote products derived from this # |
| # software without specific prior written permission. # |
| # # |
| # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # |
| # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # |
| # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # |
| # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # |
| # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # |
| # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # |
| # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # |
| # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # |
| # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # |
| # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # |
| # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # |
| ######################################################################### |
| |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 19:12:45.815258</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXRClient</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>__init__()</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(130, 213, 49"><b>Info </b></font><font style="color: rgb(0, 0, 0)"><b>- DanLog has been initialised.</b></font> |
| |
| ######################################################################### |
| # Copyright/License Notice (Modified BSD License) # |
| ######################################################################### |
| ######################################################################### |
| # Copyright (c) 2008-2012, 2014, Daniel Knaggs - 2E0DPK/M6DPK # |
| # All rights reserved. # |
| # # |
| # Redistribution and use in source and binary forms, with or without # |
| # modification, are permitted provided that the following conditions # |
| # are met: - # |
| # # |
| # * Redistributions of source code must retain the above copyright # |
| # notice, this list of conditions and the following disclaimer. # |
| # # |
| # * Redistributions in binary form must reproduce the above copyright # |
| # notice, this list of conditions and the following disclaimer in # |
| # the documentation and/or other materials provided with the # |
| # distribution. # |
| # # |
| # * Neither the name of the author nor the names of its contributors # |
| # may be used to endorse or promote products derived from this # |
| # software without specific prior written permission. # |
| # # |
| # * This Software is not to be used for safety purposes. # |
| # # |
| # * You agree and abide the Disclaimer for your Boltek products. # |
| # # |
| # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # |
| # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # |
| # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # |
| # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # |
| # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # |
| # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # |
| # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # |
| # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # |
| # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # |
| # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # |
| # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # |
| ######################################################################### |
| |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 19:12:45.816056</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXRClient</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>__init__()</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(130, 213, 49"><b>Info </b></font><font style="color: rgb(0, 0, 0)"><b>- </b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 19:12:45.816672</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXRClient</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>__init__()</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(130, 213, 49"><b>Info </b></font><font style="color: rgb(0, 0, 0)"><b>- StormForce XR - Client</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 19:12:45.817369</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXRClient</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>__init__()</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(130, 213, 49"><b>Info </b></font><font style="color: rgb(0, 0, 0)"><b>- ======================</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 19:12:45.818004</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXRClient</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>__init__()</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(130, 213, 49"><b>Info </b></font><font style="color: rgb(0, 0, 0)"><b>- Checking settings...</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 19:12:45.818641</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXRClient</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>__init__()</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(252, 233, 79"><b>Warn </b></font><font style="color: rgb(0, 0, 0)"><b>- The XML settings file doesn't exist, create one...</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 19:12:45.820399</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXRClient</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>__init__()</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(130, 213, 49"><b>Info </b></font><font style="color: rgb(0, 0, 0)"><b>- The XML settings file has been created using the default settings. Please edit it and restart the SXR client once you're happy with the settings.</b></font> |
| </pre></html> |
| |
| === Client Konfigurationsdatei bearbeiten === |
| Das Programm hat uns freundlich daraufhin gewiesen, dass wir nun noch die **Client-XML**-Konfigurationsdatei //**/usr/local/src/stormforce-xr/sxrclient-settings.xml**// bearbeiten müssen. |
| |
| # vim /usr/local/src/stormforce-xr/sxrclient-settings.xml |
| <file xml /usr/local/src/stormforce-xr/sxrclient-settings.xml><?xml version="1.0" ?> |
| <SXRClient> |
| <Setting StormForceXRServer="http://127.0.0.1:7397/xmlrpc/"/> |
| <Setting DemoMode="False"/> |
| <Setting StrikeShape="1"/> |
| <Setting ShowCrosshair="True"/> |
| <Setting ShowRangeCircles="False"/> |
| <Setting UpdatePeriodCapture="15.0"/> |
| <Setting UpdatePeriodCurrentTime="1.0"/> |
| <Setting UpdatePeriodEFM100="5.0"/> |
| <Setting UpdatePeriodGraphs="60.0"/> |
| <Setting UpdatePeriodLD250="2.0"/> |
| <Setting UpdatePeriodStrikes="15.0"/> |
| <Setting DebugMode="False"/> |
| </SXRClient> |
| </file> |
| |
| Starten wir nun erneut unseren Client wird uns der erste Startbildschirm des StormForce XR Clients präsentiert. |
| |
| {{ :wetter:boltek:stormforce-rx-client-01.png?direct&800 |Bild: Stormforce-XR Client}} |
| |
| |
| Mit der Taste "**Q**" können wir das Programm wieder beenden. |
| |
| |
| === Startscript für Programmstart === |
| Für den Programmstart des Client erstellen wir uns erst einmal ein rudimentäres Shellscript, mit Hilfe dessen wir den Client später starten können. |
| |
| # vim /usr/local/bin/stormforce.sh |
| <file bash /usr/local/bin/stormforce.sh>#!/bin/sh |
| # Django : 2012-05-03 |
| # Schellscript zum vereinfachten Starten des StormForce Clients |
| |
| cd /usr/local/src/stormforce-xr |
| python sxr_client.py |
| </file> |
| |
| Zum Starten statten wir das Script nun noch mit den **x**-Dateirechten aus. |
| # chmod +x /usr/local/bin/stormforce.sh |
| |
| === Starter anlegen === |
| Zum Starten von Stormforce legen wir uns am Desktop einen entsprechenden Starter an. Das Icon => {{:ws:stormforce.png}} Legen wir am besten unter **/usr/share/pixmaps/** ab. |
| |
| * **Typ** : Anwendung |
| * **Name** : StormForce XR |
| * **Befehl** : /usr/local/bin/stormforce.sh |
| * **Kommentar** : Visualisierung des Boltek LD-250 mit StormForce XR |
| |
| === Kartenhintergrund === |
| Einen passenden Kartenhintergrund können wir uns entweder über das [[https://www.openstreetmap.org|freie Kartenprojekt von Openstreetmap]], bei den [[https://earthobservatory.nasa.gov/Features/BlueMarble/|Blue Marble Satellitenbilder der NASA]], oder |
| mit Hilfe des [[https://www.primap.com/de/index.html|MapCreator 2.0 von primap]] erstellen. Genau in der Reihenfolge bin ich vorgegangen, bei letzterem bin ich dann auf Grund er schnellen, einfachen und guten Ergebnisse hängen geblieben. |
| |
| {{ :ws:blitzkarte_mit_ort_und_namen.png?400 }} |
| |
| Die Karte hat eine Größe von 600 x 600 Pixel, mit dem Standort in der Bildmitte. Die Karte selbst hat dabei eine Ausdehnung (Radius um den Standort) von 300 Meilen bzw. ca. 480 Kilometer. |
| |
| Unsere eigene neue Karte speichern wir dann als **//map-300.png//** im Verzeichnis **//png//** ab. |
| # ll /usr/local/src/stormforce/png/ |
| -rw-r--r-- 1 root root 362544 28. Sep 11:36 map-300.png |
| |
| {{ :wetter:boltek:stormforce-rx-client-02.png?direct&800 |Bild: Stromforce-XR mit individuellem Kartenhintergrund}} |
| |
| === storm2web.sh === |
| Zum Kopieren unserer, von Stormforce alle 10 Sekunden akutalisierten, Bildschirmhardcopy auf unseren Webserver, legen wir ein kleines Shellscript an: |
| # vim /usr/local/bin/storm2web.sh |
| |
| <file bash /usr/local/bin/storm2web.sh>#!/bin/sh |
| # Script zum "Hochladen" der Strormforce-Bilder auf den Webserver der NSS |
| # zur Weiterleitung an den virtuellen Host "Webcam" |
| # (c) Michael Nausch |
| # Version 0.01: 2008-12-29 |
| # 0.02: 2009-11-07 |
| # 0.03: 2012-05-04 |
| # 0.04: 2013-02-16 |
| # 0.05: 2014-01-06 |
| # 0.06: 2017-01-09 |
| |
| QUELLE="/usr/local/src/stormforce-xr/capture/stormforce-xr.png" |
| ZIEL="10.0.0.20:/usr/local/var/wview/img/" |
| QUELLE2="/tmp/stormforce_small.png" |
| |
| convert -geometry 280x183 $QUELLE $QUELLE2 |
| rsync -av $QUELLE $ZIEL"stormforce_2.png" |
| rsync -av $QUELLE2 $ZIEL"stormforce_small.png" |
| </file> |
| |
# yum install python-pyglet | Anschliessend versehen wir unser kleines shell-script noch mit dem **"X"-Rechten**. |
| # chmod +x /usr/local/bin/storm2web.sh |
| |
| In der **crontab** unseres Wetterusers hinterlegen wir nun eine Konfigurationszeile, damit das Script einmal pro Minute ausgeführt werden kann. |
| $ crontab -e |
| |
| <code># Django : 2017-01-09 - Alle 60 Sekunden das Stormforce-Bild auf den Webserver kopieren |
| */1 * * * * /usr/local/bin/storm2web.sh</code> |
| |
| ====== Links ====== |
| * **[[wetter:start|Zurück zum Kapitel >>Wetterbeobachtung und -datenerfassung bei der Wetterstation Pliening<<]]** |
| * **[[wiki:start|Zurück zu >>Projekte und Themenkapitel<<]]** |
| * **[[https://dokuwiki.nausch.org/doku.php/|Zurück zur Startseite]]** |
| |
| |
| |