Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung |
wetter:boltek:stormforce_xr_c7 [09.01.2017 14:13. ] – [PostgreSQL-Datenbank] 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 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 ===== |
stormforce_xr=> \q | stormforce_xr=> \q |
| |
| ===== Stormforce-XR ===== |
| ==== Server ==== |
| === erster manueller Start === |
| Nun ist es an der Zeit, **stormforce-xr** das erste mal zu starten. Als erstes starten wir mal den Server-Part der Anwendung an: |
| $ cd /usr/local/src/stormforce-xr |
| $ python sxr_server.py |
| |
| <html><pre class="code"> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 15:22:48.324777</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 15:22:48.347137</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 15:22:48.347895</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 15:22:48.348570</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 15:22:48.352613</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</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 15:22:48.353421</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</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 15:22:48.354181</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</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 15:22:48.355190</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</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 15:22:48.355930</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</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 - Server</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 15:22:48.356533</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</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 15:22:48.357138</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</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 15:22:48.357820</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</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 15:22:48.360512</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</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 server once you're happy with the settings.</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 15:22:48.361206</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(204, 0, 0">Fatal </font><font style="color: rgb(0, 0, 0)"><b>- global name 'exitProgram' is not defined</b></font> |
| </pre></html> |
| |
| === Server Konfigurationsdatei bearbeiten === |
| Wie uns das Programm freundlich mitteilte, müssen wir nun noch die **Server-XML**-Konfigurationsdatei //**/usr/local/src/stormforce-xr/sxrserver-settings.xml**// bearbeiten. |
| |
| # vim /usr/local/src/stormforce-xr/sxrserver-settings.xml |
| <file xml /usr/local/src/stormforce-xr/sxrserver-settings.xml><?xml version="1.0" ?> |
| <SXRServer> |
| <Setting ServerPort="7397"/> |
| <Setting LD250Port="/dev/ttyUSB2"/> |
| <Setting LD250Speed="9600"/> |
| <Setting LD250Bits="8"/> |
| <Setting LD250Parity="N"/> |
| <Setting LD250StopBits="1"/> |
| <Setting LD250Squelch="14"/> |
| <Setting LD250UseUncorrectedStrikes="False"/> |
| <Setting EFM100Port=""/> |
| <Setting EFM100Speed="9600"/> |
| <Setting EFM100Bits="8"/> |
| <Setting EFM100Parity="N"/> |
| <Setting EFM100StopBits="1"/> |
| <Setting PostgreSQLServer="localhost"/> |
| <Setting PostgreSQLDatabase="stormforce_xr"/> |
| <Setting PostgreSQLUsername="stormforce_user"/> |
| <Setting PostgreSQLPassword="Danny_Knaggs_is_a_geek"/> |
| <Setting CloseDistance="15"/> |
| <Setting TRACDetectionMethod="0"/> |
| <Setting TRACSensitivity="10"/> |
| <Setting TRACStormWidth="30"/> |
| <Setting TRACUpdateTime="2"/> |
| <Setting StrikeCopyright="Lightning Data (CC BY-NC-SA 3.0) https://wetterstation-pliening.info - Django"/> |
| <Setting DebugMode="False"/> |
| </SXRServer> |
| </file> |
| |
| === Server erneut manuell starten === |
| Nachdem wir nun die Stormforce-XR konfigurationsdatei erstellt haben, werden wir nun erneut den Daemon manuell starten um zu sehen, ob alles glatt gelaufen ist oder ob noch Fehler in der Konfiguration und/oder Installation vorhanden sind. |
| $ cd /usr/local/src/stormforce-xr |
| $ python sxr_server.py |
| |
| <html><pre class="code"> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:19.913909</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 16:25:19.936960</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 16:25:19.937706</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 16:25:19.938639</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>- DanLog has been initialised.</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:19.943155</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</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 16:25:19.944122</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</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 16:25:19.945046</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</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 16:25:19.945867</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>main()</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 16:25:19.946473</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>main()</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 - Server</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:19.947078</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>main()</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 16:25:19.947668</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>main()</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 16:25:19.948295</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>main()</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>- Read XML settings...</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:19.953875</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>main()</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>- Setting up database...</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:19.144698</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>Database</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 16:25:19.145704</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>Database</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... |
| ######################################################################### |
| # 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 16:25:19.973263</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>Database</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 16:25:19.980658</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>updateDatabase()</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>- TABLE: tblElectricFieldStrength</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:19.998964</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>updateDatabase()</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>- TABLE: tblServerDetails</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:20.090966</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>updateDatabase()</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>- TABLE: tblStrikeCounter</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:20.199443</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>updateDatabase()</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>- TABLE: tblStrikes</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:20.210034</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>updateDatabase()</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>- TABLE: tblSystem</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:20.217261</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>updateDatabase()</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>- TABLE: tblTRACDetails</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:20.226340</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>updateDatabase()</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>- TABLE: tblTRACGrid</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:20.369600</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>updateDatabase()</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>- TABLE: tblTRACHeader</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:20.383665</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>updateDatabase()</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>- TABLE: tblTRACStatus</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:20.508222</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>updateDatabase()</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>- TABLE: tblTRACStorms</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:20.608400</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>updateDatabase()</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>- TABLE: tblUnitStatus</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:20.709360</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>updateDatabase()</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>- VIEW: vwStrikesPersistence</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:20.717083</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>updateDatabase()</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>- VIEW: vwStrikesSummaryByMinute</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:20.725341</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>updateDatabase()</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>- VIEW: vwTRACPersistence</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:20.733775</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>updateDatabase()</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>- VIEW: vwTRACStrikesPeak</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:20.742286</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>updateDatabase()</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>- VIEW: vwUnitStatus</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:20.767233</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>updateDatabase()</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>- INDEX: tblElectricFieldStrength_DateTimeOfMeasurement</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:20.770518</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>updateDatabase()</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>- INDEX: tblStrikes_X_Y</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:20.772368</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>updateDatabase()</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>- INDEX: tblStrikes_DateTimeOfStrike</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:20.774208</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>updateDatabase()</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>- INDEX: tblTRACDetails_HeaderID</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:20.775993</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>updateDatabase()</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>- INDEX: tblTRACGrid_X_Y</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:20.777699</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>updateDatabase()</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>- FUNCTION: fnTRAC</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:20.792696</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>main()</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>- Connecting to LD-250...</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:20.792696</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>LD250</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 16:25:20.794416</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>LD250</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 16:25:20.795337</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>LD250</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 16:25:20.796149</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>LD250</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>- Initialising LD-250...</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:20.814863</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>LD250</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>setupUnit()</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>- Setting squelch...</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:20.844966</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>main()</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>- Starting cron...</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:20.846114</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>SXR</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>main()</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>- Configuring server...</b></font> |
| <font style="color: rgb(69, 71, 67)"><b>09/01/2017 16:25:20.846951</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>Database</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 16:25:20.847869</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>Database</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 16:25:20.916951</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>TRAC</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 16:25:20.926951</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(150, 110, 146)"><b>TRAC</b></font><font style="color: rgb(0, 0, 0)">/</font><font style="color: rgb(42, 181, 181)"><b>run()</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>- TRAC has detected 0 storms.</b></font> |
| </pre></html> |
| |
| Auf einer zweiten Konsole fragen wir die offenen Ports ab, de nun von den einzelnen Daemon gehalten werden. |
| # netstat -tulpen |
| <code>Active Internet connections (only servers) |
| Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name |
| tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 21398 1423/sshd |
| tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 26 86650 15472/postgres |
| tcp 0 0 0.0.0.0:7397 0.0.0.0:* LISTEN 1000 124203 21457/python |
| </code> |
| |
| Der Port **7397** wird von dem Python Programm**stormforce-xr** gehalten. Der postgresql-Datenbanl-server selbst lauscht auf Port **5432** auf **localhost**. |
| |
| === systemd service files === |
| Da wir den Stormforce-XR Server später nicht manuell starten wollen, sondern über den Systemd-Daemon **systemd** benötgen wir noch eine passende Service-Datei. Diese legen wir uns nun im Verzeichnis //**/etc/systemd/system/**// an. |
| # vim /etc/systemd/system/stormforce-xr.service |
| |
| <file bash /etc/systemd/system/stormforce-xr.service>[Unit] |
| Description=Stormforce XR Server Daemo |
| After=postgresql.service |
| |
| [Service] |
| ExecStart=/usr/bin/python /usr/local/src/stormforce-xr/sxr_server.py |
| #Restart=on-abort |
| |
| [Install] |
| WantedBy=multi-user.target</file> |
| |
| Damit der Stormforce-XR Daemon die Konfigurationsdatei lesen und die Backup-Datei anlegen kann, müssen wir das Ser ver-script unserer umgebung anpassen. Unser Stormforce-XR Installationsverzeichnis lautet //**/usr/local/src/stormforce-xr/**//. Diesen Pfad hinterlegen wir nun im Startscript des Servers. In Zeile __**665**__ finden wir den Eintrag ''self.XML_SETTINGS_FILE = "sxrserver-settings.xml"''; Diesen erweitern wir nun um das vollständige Verzeichnis **/usr/local/src/stormforce-xr/**. Die Zeile lautet also nunmehr. ''self.XML_SETTINGS_FILE = "/usr/local/src/stormforce-xr/sxrserver-settings.xml"'' |
| # vim /usr/local/src/stormforce-xr/sxr_server.py |
| |
| <code>... |
| |
| self.XML_SETTINGS_FILE = "/usr/local/src/stormforce-xr/sxrserver-settings.xml" |
| |
| ...</code> |
| |
| Nun können wir unseren Stormforce-Xr Daemon mit Hilfe von systemd starten. |
| # systemctl start stormforce-xr.service |
| |
| Damit der Deamon beim Neustart des Servers gleich mitgestartet wird, enablen wir noch den Autostart von stormforce-xr. |
| # systemctl enable stormforce-xr.service |
| |
| Created symlink from /etc/systemd/system/multi-user.target.wants/stormforce-xr.service to /etc/systemd/system/stormforce-xr.service. |
| |
| Den Serverstatus können wir wie gewohnt abfragen. |
| # systemctl status stormforce-xr.service |
| |
| <html><pre class="code"> |
| <font style="color: rgb(0, 255, 0)"><b>● </b></font><font style="color: rgb(0, 0, 0)">stormforce-xr.service - Stormforce XR Server Daemo |
| Loaded: loaded (/etc/systemd/system/stormforce-xr.service; disabled; vendor preset: disabled) |
| Active: <font style="color: rgb(0, 255, 0)"><b>active (running) </b></font><font style="color: rgb(0, 0, 0)"> since Mon 2017-01-09 18:52:46 CET; 5s ago |
| Main PID: 22791 (python) |
| CGroup: /system.slice/stormforce-xr.service |
| └─22791 /usr/bin/python /usr/local/src/stormforce-xr/sxr_server.py |
| |
| Jan 09 18:52:48 vml000127.dmz.nausch.org python[22791]: # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # |
| Jan 09 18:52:48 vml000127.dmz.nausch.org python[22791]: # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # |
| Jan 09 18:52:48 vml000127.dmz.nausch.org python[22791]: # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # |
| Jan 09 18:52:48 vml000127.dmz.nausch.org python[22791]: # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # |
| Jan 09 18:52:48 vml000127.dmz.nausch.org python[22791]: # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # |
| Jan 09 18:52:48 vml000127.dmz.nausch.org python[22791]: # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # |
| Jan 09 18:52:48 vml000127.dmz.nausch.org python[22791]: ######################################################################### |
| Jan 09 18:52:48 vml000127.dmz.nausch.org python[22791]: |
| Jan 09 18:52:48 vml000127.dmz.nausch.org python[22791]: 09/01/2017 18:52:48.157567/XRXMLRPCFunctions/__init__()/Info - DanLog has been initialised. |
| Jan 09 18:52:48 vml000127.dmz.nausch.org python[22791]: 09/01/2017 18:52:48.158415/SXR/main()/Info - Starting server...</font> |
| </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 |
| |
| <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" |
| |
http://li.nux.ro/download/nux/dextop/el7/x86_64//pygame-1.9.1-15.el7.nux.x86_64.rpm | 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]]** |
| |
| |
| |