From e72942f961dbd186398dae756dc44c7f4d12ad54 Mon Sep 17 00:00:00 2001 From: Akira Naru Takizawa Date: Sun, 20 Oct 2019 16:54:09 +0200 Subject: [PATCH] Moved paho to lib and switched VCS and IDE Switched from Mercurial to GIT Switched from eric6 to pyCharm --- .gitignore | 119 ++++ .hgignore | 8 - .idea/$CACHE_FILE$ | 17 + .idea/.gitignore | 2 + .../inspectionProfiles/profiles_settings.xml | 6 + .idea/misc.xml | 7 + .idea/modules.xml | 8 + .idea/revpipyload.iml | 14 + .idea/vcs.xml | 6 + data/var/lib/revpipyload/.placeholder | 2 + doc/helper.html | 84 --- doc/index-revpipyload.shared.html | 22 - doc/index.html | 55 -- doc/logsystem.html | 248 ------- doc/mqttserver.html | 212 ------ doc/picontrolserver.html | 220 ------ doc/plcsystem.html | 170 ----- doc/procimgserver.html | 207 ------ doc/proginit.html | 50 -- doc/revpipyload.html | 670 ------------------ doc/revpipyload.shared.ipaclmanager.html | 239 ------- doc/testsystem.html | 108 --- doc/xrpcserver.html | 198 ------ docs/Makefile | 20 + docs/conf.py | 174 +++++ docs/helper.rst | 7 + docs/index.rst | 20 + docs/logsystem.rst | 7 + docs/modules.rst | 17 + docs/mqttserver.rst | 7 + docs/picontrolserver.rst | 7 + docs/plcsystem.rst | 7 + docs/procimgserver.rst | 7 + docs/proginit.rst | 7 + docs/revpipyload.rst | 7 + docs/shared.rst | 22 + docs/testsystem.rst | 7 + docs/xrpcserver.rst | 7 + eric-revpipyload.api | 177 ----- eric-revpipyload.bas | 7 - revpipyload.e4p | 399 ----------- revpipyload/proginit.py | 2 +- setup.py | 4 +- 43 files changed, 507 insertions(+), 3077 deletions(-) create mode 100644 .gitignore delete mode 100644 .hgignore create mode 100644 .idea/$CACHE_FILE$ create mode 100644 .idea/.gitignore create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/revpipyload.iml create mode 100644 .idea/vcs.xml create mode 100644 data/var/lib/revpipyload/.placeholder delete mode 100644 doc/helper.html delete mode 100644 doc/index-revpipyload.shared.html delete mode 100644 doc/index.html delete mode 100644 doc/logsystem.html delete mode 100644 doc/mqttserver.html delete mode 100644 doc/picontrolserver.html delete mode 100644 doc/plcsystem.html delete mode 100644 doc/procimgserver.html delete mode 100644 doc/proginit.html delete mode 100644 doc/revpipyload.html delete mode 100644 doc/revpipyload.shared.ipaclmanager.html delete mode 100644 doc/testsystem.html delete mode 100644 doc/xrpcserver.html create mode 100644 docs/Makefile create mode 100644 docs/conf.py create mode 100644 docs/helper.rst create mode 100644 docs/index.rst create mode 100644 docs/logsystem.rst create mode 100644 docs/modules.rst create mode 100644 docs/mqttserver.rst create mode 100644 docs/picontrolserver.rst create mode 100644 docs/plcsystem.rst create mode 100644 docs/procimgserver.rst create mode 100644 docs/proginit.rst create mode 100644 docs/revpipyload.rst create mode 100644 docs/shared.rst create mode 100644 docs/testsystem.rst create mode 100644 docs/xrpcserver.rst delete mode 100644 eric-revpipyload.api delete mode 100644 eric-revpipyload.bas delete mode 100644 revpipyload.e4p diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6e62b41 --- /dev/null +++ b/.gitignore @@ -0,0 +1,119 @@ +# ---> Python +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +# lib/ +lib64/ +parts/ +sdist/ +# var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +.hypothesis/ +.pytest_cache/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +.python-version + +# celery beat schedule file +celerybeat-schedule + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +/test/ +/make.conf +/lib/ diff --git a/.hgignore b/.hgignore deleted file mode 100644 index c3f38eb..0000000 --- a/.hgignore +++ /dev/null @@ -1,8 +0,0 @@ -syntax: glob -*.tar.gz -test/* -.* -build/* -*.pyc -deb/* -demo/* diff --git a/.idea/$CACHE_FILE$ b/.idea/$CACHE_FILE$ new file mode 100644 index 0000000..3a1e22c --- /dev/null +++ b/.idea/$CACHE_FILE$ @@ -0,0 +1,17 @@ + + + + + + + + + + + Angular + + + + + + \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..5c98b42 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,2 @@ +# Default ignored files +/workspace.xml \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..7b5e3b4 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..fb59dff --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/revpipyload.iml b/.idea/revpipyload.iml new file mode 100644 index 0000000..179692b --- /dev/null +++ b/.idea/revpipyload.iml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/data/var/lib/revpipyload/.placeholder b/data/var/lib/revpipyload/.placeholder new file mode 100644 index 0000000..210567d --- /dev/null +++ b/data/var/lib/revpipyload/.placeholder @@ -0,0 +1,2 @@ +# DO NOT EDIT OR REMOVE +# This file is a simple placeholder to keep dpkg from removing this directory \ No newline at end of file diff --git a/doc/helper.html b/doc/helper.html deleted file mode 100644 index a58d308..0000000 --- a/doc/helper.html +++ /dev/null @@ -1,84 +0,0 @@ - - -helper - - - -

-helper

-

-Helperfunktionen fuer das gesamte RevPiPyLoad-System. -

-

-Global Attributes

- - -
__author__
__copyright__
__license__
-

-Classes

- - -
None
-

-Functions

- - - - - - - - - - - -
_setuprtKonfiguriert Programm fuer den RT-Scheduler.
_zeroprocimgSetzt Prozessabbild auf NULL.
refullmatchre.fullmatch wegen alter python version aus wheezy nachgebaut.
-

- -

_setuprt

-_setuprt(pid, evt_exit) -

-Konfiguriert Programm fuer den RT-Scheduler. -

-
pid
-
-PID, der angehoben werden soll -
-
-
Returns:
-
-None -
-
-
Up
-

- -

_zeroprocimg

-_zeroprocimg() -

-Setzt Prozessabbild auf NULL. -

-
Up
-

- -

refullmatch

-refullmatch(regex, string) -

-re.fullmatch wegen alter python version aus wheezy nachgebaut. -

-
regex
-
-RegEx Statement -
string
-
-Zeichenfolge gegen die getestet wird -
-
-
Returns:
-
-True, wenn komplett passt sonst False -
-
-
Up
-
- \ No newline at end of file diff --git a/doc/index-revpipyload.shared.html b/doc/index-revpipyload.shared.html deleted file mode 100644 index 9126c49..0000000 --- a/doc/index-revpipyload.shared.html +++ /dev/null @@ -1,22 +0,0 @@ - - -revpipyload.shared - - - -

-revpipyload.shared

-

-Shared modules. -

- - -

-Modules

- - - - - -
ipaclmanagerVerwaltet IP Adressen und deren ACLs.
- \ No newline at end of file diff --git a/doc/index.html b/doc/index.html deleted file mode 100644 index c6edd36..0000000 --- a/doc/index.html +++ /dev/null @@ -1,55 +0,0 @@ - - -Table of contents - - - -

-Table of contents

- - -

-Packages

- - - - - -
sharedShared modules.
- -

-Modules

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
helperHelperfunktionen fuer das gesamte RevPiPyLoad-System.
logsystemModul fuer die Verwaltung der Logdateien.
mqttserverStellt die MQTT Uebertragung fuer IoT-Zwecke bereit.
picontrolserverModul fuer die Verwaltung der PLC-Slave Funktionen.
plcsystemModul fuer die Verwaltung der PLC Funktionen.
procimgserverStellt Funktionen bereit um das Prozessabbild zu ueberwachen.
proginitMain functions of our program.
revpipyloadRevolution Pi Python PLC Loader.
testsystemTest all config files and print results.
xrpcserverXML-RPC Server anpassungen fuer Absicherung.
- \ No newline at end of file diff --git a/doc/logsystem.html b/doc/logsystem.html deleted file mode 100644 index 52d9b2d..0000000 --- a/doc/logsystem.html +++ /dev/null @@ -1,248 +0,0 @@ - - -logsystem - - - -

-logsystem

-

-Modul fuer die Verwaltung der Logdateien. -

-

-Global Attributes

- - -
__author__
__copyright__
__license__
-

-Classes

- - - - - - - - -
LogReaderErmoeglicht den Zugriff auf die Logdateien.
PipeLogwriterFile PIPE fuer das Schreiben des APP Log.
-

-Functions

- - -
None
-

- -

LogReader

-

-Ermoeglicht den Zugriff auf die Logdateien. -

- Beinhaltet Funktionen fuer den Abruf der gesamten Logdatei fuer das - RevPiPyLoad-System und die Logdatei der PLC-Anwendung. -

- -

-

-Derived from

-None -

-Class Attributes

- - -
None
-

-Class Methods

- - -
None
-

-Methods

- - - - - - - - - - - - - - -
LogReaderInstantiiert LogReader-Klasse.
closeallFuehrt close auf File Handler durch.
load_applogUebertraegt Logdaten des PLC Programms Binaer.
load_plclogUebertraegt Logdaten des Loaders Binaer.
-

-Static Methods

- - -
None
- -

-LogReader (Constructor)

-LogReader() -

-Instantiiert LogReader-Klasse. -

-

-LogReader.closeall

-closeall() -

-Fuehrt close auf File Handler durch. -

-

-LogReader.load_applog

-load_applog(start, count) -

-Uebertraegt Logdaten des PLC Programms Binaer. -

-
start
-
-Startbyte -
count
-
-Max. Byteanzahl zum uebertragen -
-
-
Returns:
-
-Binary() der Logdatei -
-
-

-LogReader.load_plclog

-load_plclog(start, count) -

-Uebertraegt Logdaten des Loaders Binaer. -

-
start
-
-Startbyte -
count
-
-Max. Byteanzahl zum uebertragen -
-
-
Returns:
-
-Binary() der Logdatei -
-
-
Up
-

- -

PipeLogwriter

-

-File PIPE fuer das Schreiben des APP Log. -

- Spezieller LogFile-Handler fuer die Ausgabe des subprocess fuer das Python - PLC Programm. Die Ausgabe kann nicht auf einen neuen FileHandler - umgeschrieben werden. Dadurch waere es nicht moeglich nach einem logrotate - die neue Datei zu verwenden. Ueber die PIPE wird dies umgangen. -

- -

-

-Derived from

-Thread -

-Class Attributes

- - -
None
-

-Class Methods

- - -
None
-

-Methods

- - - - - - - - - - - - - - - - - - - - - - - -
PipeLogwriterInstantiiert PipeLogwriter-Klasse.
__del__Close der FileHandler.
_configurefhKonfiguriert den FileHandler fuer Ausgaben der PLCAPP.
loglineSchreibt eine Zeile in die Logdatei oder stdout.
newlogfileKonfiguriert den FileHandler auf eine neue Logdatei.
runPrueft auf neue Logzeilen und schreibt diese.
stopBeendetden Thread und die FileHandler werden geschlossen.
-

-Static Methods

- - -
None
- -

-PipeLogwriter (Constructor)

-PipeLogwriter(logfilename) -

-Instantiiert PipeLogwriter-Klasse. -

-
logfilename
-
-Dateiname fuer Logdatei -
-
-

-PipeLogwriter.__del__

-__del__() -

-Close der FileHandler. -

-

-PipeLogwriter._configurefh

-_configurefh() -

-Konfiguriert den FileHandler fuer Ausgaben der PLCAPP. -

-
Returns:
-
-FileHandler-Objekt -
-
-

-PipeLogwriter.logline

-logline(message) -

-Schreibt eine Zeile in die Logdatei oder stdout. -

-
message
-
-Logzeile zum Schreiben -
-
-

-PipeLogwriter.newlogfile

-newlogfile() -

-Konfiguriert den FileHandler auf eine neue Logdatei. -

-

-PipeLogwriter.run

-run() -

-Prueft auf neue Logzeilen und schreibt diese. -

-

-PipeLogwriter.stop

-stop() -

-Beendetden Thread und die FileHandler werden geschlossen. -

-
Up
-
- \ No newline at end of file diff --git a/doc/mqttserver.html b/doc/mqttserver.html deleted file mode 100644 index 683aea1..0000000 --- a/doc/mqttserver.html +++ /dev/null @@ -1,212 +0,0 @@ - - -mqttserver - - - -

-mqttserver

-

-Stellt die MQTT Uebertragung fuer IoT-Zwecke bereit. -

-

-Global Attributes

- - -
__author__
__copyright__
__license__
-

-Classes

- - - - - -
MqttServerServer fuer die Uebertragung des Prozessabbilds per MQTT.
-

-Functions

- - -
None
-

- -

MqttServer

-

-Server fuer die Uebertragung des Prozessabbilds per MQTT. -

-

-Derived from

-Thread -

-Class Attributes

- - -
None
-

-Class Methods

- - -
None
-

-Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MqttServerInit MqttServer class.
_evt_ioSendet Daten aus Events.
_loadrevpimodioInstantiiert das RevPiModIO Modul.
_on_connectVerbindung zu MQTT Broker.
_on_disconnectWertet Verbindungsabbruch aus.
_on_messageSendet piCtory Konfiguration.
_send_pictory_confSendet piCtory Konfiguration per MQTT.
newlogfileKonfiguriert die FileHandler auf neue Logdatei.
reload_revpimodioFuehrt im naechsten Zyklus zum Reload.
runStartet die Uebertragung per MQTT.
stopStoppt die Uebertragung per MQTT.
-

-Static Methods

- - -
None
- -

-MqttServer (Constructor)

-MqttServer(basetopic, sendinterval, broker_address, port=1883, tls_set=False, username="", password=None, client_id="", send_events=False, write_outputs=False, replace_ios=None) -

-Init MqttServer class. -

-
basetopic
-
-Basis-Topic fuer Datenaustausch -
sendinterval
-
-Prozessabbild alle n Sekunden senden / 0 = aus -
broker_address
-
-Adresse des MQTT-Servers -
port
-
-Portnummer des MQTT-Servers -
tls_set
-
-TLS fuer Verbindung zum MQTT-Server verwenden -
username
-
-Optional Benutzername fuer MQTT-Server -
password
-
-Optional Password fuer MQTT-Server -
client_id
-
-MQTT ClientID, wenn leer automatisch random erzeugung -
send_events
-
-Sendet Werte bei IO Wertaenderung -
write_outputs
-
-Per MQTT auch Outputs schreiben -
replace_ios
-
-Replace IOs of RevPiModIO -
-
-

-MqttServer._evt_io

-_evt_io(name, value, requested=False) -

-Sendet Daten aus Events. -

-
name
-
-IO-Name -
value
-
-IO-Value -
requested
-
-Wenn True, wird 'got' Topic verwendet -
-
-

-MqttServer._loadrevpimodio

-_loadrevpimodio() -

-Instantiiert das RevPiModIO Modul. -

-
Returns:
-
-None or Exception -
-
-

-MqttServer._on_connect

-_on_connect(client, userdata, flags, rc) -

-Verbindung zu MQTT Broker. -

-

-MqttServer._on_disconnect

-_on_disconnect(client, userdata, rc) -

-Wertet Verbindungsabbruch aus. -

-

-MqttServer._on_message

-_on_message(client, userdata, msg) -

-Sendet piCtory Konfiguration. -

-

-MqttServer._send_pictory_conf

-_send_pictory_conf() -

-Sendet piCtory Konfiguration per MQTT. -

-

-MqttServer.newlogfile

-newlogfile() -

-Konfiguriert die FileHandler auf neue Logdatei. -

-

-MqttServer.reload_revpimodio

-reload_revpimodio() -

-Fuehrt im naechsten Zyklus zum Reload. -

-

-MqttServer.run

-run() -

-Startet die Uebertragung per MQTT. -

-

-MqttServer.stop

-stop() -

-Stoppt die Uebertragung per MQTT. -

-
Up
-
- \ No newline at end of file diff --git a/doc/picontrolserver.html b/doc/picontrolserver.html deleted file mode 100644 index 3a6243e..0000000 --- a/doc/picontrolserver.html +++ /dev/null @@ -1,220 +0,0 @@ - - -picontrolserver - - - -

-picontrolserver

-

-Modul fuer die Verwaltung der PLC-Slave Funktionen. -

-

-Global Attributes

- - -
HASH_FAIL
HASH_NULL
HASH_PICT
HASH_RPIO
__author__
__copyright__
__license__
-

-Classes

- - - - - - - - -
RevPiSlaveRevPi PLC-Server.
RevPiSlaveDevKlasse um eine RevPiModIO Verbindung zu verwalten.
-

-Functions

- - -
None
-

- -

RevPiSlave

-

-RevPi PLC-Server. -

- Diese Klasste stellt den RevPi PLC-Server zur verfuegung und akzeptiert - neue Verbindungen. Diese werden dann als RevPiSlaveDev abgebildet. -

- Ueber die angegebenen ACLs koennen Zugriffsbeschraenkungen vergeben werden. -

- -

-

-Derived from

-Thread -

-Class Attributes

- - -
None
-

-Class Methods

- - -
None
-

-Methods

- - - - - - - - - - - - - - - - - - - - - - - -
RevPiSlaveInstantiiert RevPiSlave-Klasse.
check_connectedaclPrueft bei neuen ACLs bestehende Verbindungen.
disconnect_allClose all device connection.
disconnect_replace_iosClose all device with loaded replace_ios file.
newlogfileKonfiguriert die FileHandler auf neue Logdatei.
runStartet Serverkomponente fuer die Annahme neuer Verbindungen.
stopBeendet Slaveausfuehrung.
-

-Static Methods

- - -
None
- -

-RevPiSlave (Constructor)

-RevPiSlave(ipacl, port=55234, bindip="") -

-Instantiiert RevPiSlave-Klasse. -

-
ipacl
-
-AclManager -
port
-
-Listen Port fuer plc Slaveserver -
bindip
-
-IP-Adresse an die der Dienst gebunden wird (leer=alle) -
-
-

-RevPiSlave.check_connectedacl

-check_connectedacl() -

-Prueft bei neuen ACLs bestehende Verbindungen. -

-

-RevPiSlave.disconnect_all

-disconnect_all() -

-Close all device connection. -

-

-RevPiSlave.disconnect_replace_ios

-disconnect_replace_ios() -

-Close all device with loaded replace_ios file. -

-

-RevPiSlave.newlogfile

-newlogfile() -

-Konfiguriert die FileHandler auf neue Logdatei. -

-

-RevPiSlave.run

-run() -

-Startet Serverkomponente fuer die Annahme neuer Verbindungen. -

-

-RevPiSlave.stop

-stop() -

-Beendet Slaveausfuehrung. -

-
Up
-

- -

RevPiSlaveDev

-

-Klasse um eine RevPiModIO Verbindung zu verwalten. -

- Diese Klasste stellt die Funktionen zur Verfuegung um Daten ueber das - Netzwerk mit dem Prozessabbild auszutauschen. -

- -

-

-Derived from

-Thread -

-Class Attributes

- - -
None
-

-Class Methods

- - -
None
-

-Methods

- - - - - - - - - - - -
RevPiSlaveDevInit RevPiSlaveDev-Class.
runVerarbeitet Anfragen von Remoteteilnehmer.
stopBeendet Verbindungsthread.
-

-Static Methods

- - -
None
- -

-RevPiSlaveDev (Constructor)

-RevPiSlaveDev(devcon, acl) -

-Init RevPiSlaveDev-Class. -

-
devcon
-
-Tuple der Verbindung -
deadtime
-
-Timeout der Vararbeitung -
acl
-
-Berechtigungslevel -
-
-

-RevPiSlaveDev.run

-run() -

-Verarbeitet Anfragen von Remoteteilnehmer. -

-

-RevPiSlaveDev.stop

-stop() -

-Beendet Verbindungsthread. -

-
Up
-
- \ No newline at end of file diff --git a/doc/plcsystem.html b/doc/plcsystem.html deleted file mode 100644 index 6c5cb1e..0000000 --- a/doc/plcsystem.html +++ /dev/null @@ -1,170 +0,0 @@ - - -plcsystem - - - -

-plcsystem

-

-Modul fuer die Verwaltung der PLC Funktionen. -

-

-Global Attributes

- - -
__author__
__copyright__
__license__
-

-Classes

- - - - - -
RevPiPlcVerwaltet das PLC Python Programm.
-

-Functions

- - -
None
-

- -

RevPiPlc

-

-Verwaltet das PLC Python Programm. -

- Dieser Thread startet das PLC Python Programm und ueberwacht es. Sollte es - abstuerzen kann es automatisch neu gestartet werden. Die Ausgaben des - Programms werden in eine Logdatei umgeleitet, damit der Entwickler sein - Programm analysieren und debuggen kann. -

- -

-

-Derived from

-Thread -

-Class Attributes

- - -
autoreloaddelay
-

-Class Methods

- - -
None
-

-Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
RevPiPlcInstantiiert RevPiPlc-Klasse.
__get_autoreloaddelayGetter fuer autoreloaddelay.
__set_autoreloaddelaySetter fuer autoreloaddelay.
_configureplwKonfiguriert den PipeLogwriter fuer Ausgaben der PLCAPP.
_setuppopenSetzt UID und GID fuer das PLC Programm.
_spopenStartet das PLC Programm.
newlogfileKonfiguriert die FileHandler auf neue Logdatei.
runFuehrt PLC-Programm aus und ueberwacht es.
stopBeendet PLC-Programm.
-

-Static Methods

- - -
None
- -

-RevPiPlc (Constructor)

-RevPiPlc(program, arguments, pversion) -

-Instantiiert RevPiPlc-Klasse. -

-

-RevPiPlc.__get_autoreloaddelay

-__get_autoreloaddelay() -

-Getter fuer autoreloaddelay. -

-
Returns:
-
-Delayzeit in Sekunden -
-
-

-RevPiPlc.__set_autoreloaddelay

-__set_autoreloaddelay(value) -

-Setter fuer autoreloaddelay. -

-

-RevPiPlc._configureplw

-_configureplw() -

-Konfiguriert den PipeLogwriter fuer Ausgaben der PLCAPP. -

-
Returns:
-
-PipeLogwriter() -
-
-

-RevPiPlc._setuppopen

-_setuppopen() -

-Setzt UID und GID fuer das PLC Programm. -

-

-RevPiPlc._spopen

-_spopen(lst_proc) -

-Startet das PLC Programm. -

-
lst_proc
-
-Prozessliste -
-
-
Returns:
-
-subprocess -
-
-

-RevPiPlc.newlogfile

-newlogfile() -

-Konfiguriert die FileHandler auf neue Logdatei. -

-

-RevPiPlc.run

-run() -

-Fuehrt PLC-Programm aus und ueberwacht es. -

-

-RevPiPlc.stop

-stop() -

-Beendet PLC-Programm. -

-
Up
-
- \ No newline at end of file diff --git a/doc/procimgserver.html b/doc/procimgserver.html deleted file mode 100644 index 850e8b5..0000000 --- a/doc/procimgserver.html +++ /dev/null @@ -1,207 +0,0 @@ - - -procimgserver - - - -

-procimgserver

-

-Stellt Funktionen bereit um das Prozessabbild zu ueberwachen. -

-Bei ausreichend Rechten koennen Ausgaenge auch gesetzt werden um einen -IO-Check bei Inbetriebname durchzufuehren. -

-

-Global Attributes

- - -
__author__
__copyright__
__license__
-

-Classes

- - - - - -
ProcimgServerServerkomponente fuer zusaetzliche XML-RPC Funktionen.
-

-Functions

- - -
None
-

- -

ProcimgServer

-

-Serverkomponente fuer zusaetzliche XML-RPC Funktionen. -

- Diese Klasse registriert zusaetzliche Funktionen an einem besthenden - XML-RPC-Server. Der Funktionsumfang wird erweitert um zyklisch das - Prozessabbild zu empfangen und bei ausreichend Rechten Ausgaenge zu - setzen. -

- -

-

-Derived from

-None -

-Class Attributes

- - -
None
-

-Class Methods

- - -
None
-

-Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ProcimgServerInstantiiert RevPiCheckServer()-Klasse.
__del__Clean up RevPiModIO.
devicesGeneriert Deviceliste mit Position und Namen.
iosGeneriert ein dict() der Devices und IOs.
loadrevpimodioInstantiiert das RevPiModIO Modul.
setvalueSetzt einen Wert auf dem RevPi.
startRegistriert XML Funktionen.
stopEntfernt XML-Funktionen.
valuesLiefert Prozessabbild an Client.
-

-Static Methods

- - -
None
- -

-ProcimgServer (Constructor)

-ProcimgServer(xmlserver, replace_ios=None) -

-Instantiiert RevPiCheckServer()-Klasse. -

-
xmlserver
-
-XML-RPC Server -
replace_ios
-
-Replace IOs of RevPiModIO -
-
-

-ProcimgServer.__del__

-__del__() -

-Clean up RevPiModIO. -

-

-ProcimgServer.devices

-devices() -

-Generiert Deviceliste mit Position und Namen. -

-
Returns:
-
-list() mit Tuple (pos, name) -
-
-

-ProcimgServer.ios

-ios(iotype) -

-Generiert ein dict() der Devices und IOs. -

-
iotype
-
-IO Typ inp/out -
-
-
Returns:
-
-pickled dict() -
-
-

-ProcimgServer.loadrevpimodio

-loadrevpimodio() -

-Instantiiert das RevPiModIO Modul. -

-
Returns:
-
-None or Exception -
-
-

-ProcimgServer.setvalue

-setvalue(device, io, value) -

-Setzt einen Wert auf dem RevPi. -

-
device
-
-Device Position oder Name -
io
-
-IO Name fuer neuen Wert -
value
-
-Neuer Wert -
-
-
Returns:
-
-list() [device, io, status, msg] -
-
-

-ProcimgServer.start

-start() -

-Registriert XML Funktionen. -

-
Returns:
-
-True, wenn erfolgreich -
-
-

-ProcimgServer.stop

-stop() -

-Entfernt XML-Funktionen. -

-

-ProcimgServer.values

-values() -

-Liefert Prozessabbild an Client. -

-
Returns:
-
-Binary() bytes or None -
-
-
Up
-
- \ No newline at end of file diff --git a/doc/proginit.html b/doc/proginit.html deleted file mode 100644 index c1901e6..0000000 --- a/doc/proginit.html +++ /dev/null @@ -1,50 +0,0 @@ - - -proginit - - - -

-proginit

-

-Main functions of our program. -

-

-Global Attributes

- - -
__author__
__copyright__
__license__
conf
forked
globalconffile
logapp
logger
logplc
pargs
picontrolreset
rapcatalog
startdir
-

-Classes

- - -
None
-

-Functions

- - - - - - - - -
cleanupClean up program.
configureInitialize general program functions.
-

- -

cleanup

-cleanup() -

-Clean up program. -

-
Up
-

- -

configure

-configure() -

-Initialize general program functions. -

-
Up
-
- \ No newline at end of file diff --git a/doc/revpipyload.html b/doc/revpipyload.html deleted file mode 100644 index e64899e..0000000 --- a/doc/revpipyload.html +++ /dev/null @@ -1,670 +0,0 @@ - - -revpipyload - - - -

-revpipyload

-

-Revolution Pi Python PLC Loader. -

-Webpage: https://revpimodio.org/revpipyplc/ -

-Stellt das RevPiPyLoad Programm bereit. Dieses Programm lauft als Daemon auf -dem Revolution Pi. Es stellt Funktionen bereit, die es ermoeglichen ein Python -Programm zu starten und fuehrt dessen Ausgaben in eine Logdatei. Die Logdaten -koennen am Pi selber oder ueber eine XML-RPC Schnittstelle ausgelesen werden. -

-Dieser Daemon prueft ob das Python Programm noch lauft und kann es im Fall -eines Absturzes neu starten. -

-Ueber diesen Daemon kann die gesamte piCtory Konfiguration exportiert oder -importiert, ein Dump vom Prozessabbild gezogen und das eigene Python -Programm hochgeladen werden. -

-Es kann von dem Python Programm auch eine Archivdatei herunterladen werden, -welche optional auch die piCtory Konfiguraiton beinhaltet. Damit kann man sehr -schnell auf einem Revolution Pi das Programm inkl. piCtory Konfiguration -austauschen. -

-Die Zugriffsmoeglichkeiten koennen ueber einen Konfigurationsparameter -begrenzt werden! -

-

-Global Attributes

- - -
__author__
__copyright__
__license__
__version__
min_revpimodio
-

-Classes

- - - - - -
RevPiPyLoadHauptklasse, die alle Funktionen zur Verfuegung stellt.
-

-Functions

- - -
None
-

- -

RevPiPyLoad

-

-Hauptklasse, die alle Funktionen zur Verfuegung stellt. -

- Hier wird die gesamte Konfiguraiton eingelesen und der ggf. aktivierte - XML-RPC-Server gestartet. -

- -

-

-Derived from

-None -

-Class Attributes

- - -
None
-

-Class Methods

- - -
None
-

-Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
RevPiPyLoadInstantiiert RevPiPyLoad-Klasse.
_check_mustrestart_mqttPrueft ob sich kritische Werte veraendert haben.
_check_mustrestart_plcprogramPrueft ob sich kritische Werte veraendert haben.
_check_mustrestart_plcslavePrueft ob sich kritische Werte veraendert haben.
_loadconfigLoad configuration file and setup modul.
_plcmqttKonfiguriert den MQTT-Thread fuer die Ausfuehrung.
_plcslaveErstellt den PlcSlave-Server Thread.
_plcthreadKonfiguriert den PLC-Thread fuer die Ausfuehrung.
_sigexitSignal handler to clean and exit program.
_sigloadconfigSignal handler to load configuration.
_signewlogfileSignal handler to start new logfile.
check_pictory_changedPrueft ob sich die piCtory Datei veraendert hat.
check_replace_ios_changedPrueft ob sich die replace_ios.conf Datei veraendert hat (oder del).
packappErzeugt aus dem PLC-Programm ein TAR/Zip-File.
startStart revpipyload.
stopStop revpipyload.
stop_plcmqttBeendet MQTT Sender.
stop_plcprogramBeendet PLC Programm.
stop_plcslaveBeendet PLC Slave.
stop_xmlrpcserverBeendet XML-RPC.
xml_getconfigUebertraegt die RevPiPyLoad Konfiguration.
xml_getfilelistUebertraegt die Dateiliste vom plcworkdir.
xml_getpictoryrscGibt die config.rsc Datei von piCotry zurueck.
xml_getprocimgGibt die Rohdaten aus piControl0 zurueck.
xml_mqttrunningPrueft ob MQTT Uebertragung noch lauft.
xml_mqttstartStartet die MQTT Uebertragung.
xml_mqttstopStoppt die MQTT Uebertragung.
xml_plcdownloadUebertraegt ein Archiv vom plcworkdir.
xml_plcexitcodeGibt den aktuellen exitcode vom PLC Programm zurueck.
xml_plcrunningPrueft ob das PLC Programm noch lauft.
xml_plcslaverunningPrueft ob PLC-Slave noch lauft.
xml_plcslavestartStartet den PLC Slave Server.
xml_plcslavestopStoppt den PLC Slave Server.
xml_plcstartStartet das PLC Programm.
xml_plcstopStoppt das PLC Programm.
xml_plcuploadEmpfaengt Dateien fuer das PLC Programm einzeln.
xml_plcuploadcleanLoescht das gesamte plcworkdir Verzeichnis.
xml_psstartStartet den Prozessabbildserver.
xml_psstopStoppt den Prozessabbildserver.
xml_reloadStartet RevPiPyLoad neu und verwendet neue Konfiguraiton.
xml_setconfigEmpfaengt die RevPiPyLoad Konfiguration.
xml_setpictoryrscSchreibt die config.rsc Datei von piCotry.
-

-Static Methods

- - -
None
- -

-RevPiPyLoad (Constructor)

-RevPiPyLoad() -

-Instantiiert RevPiPyLoad-Klasse. -

-

-RevPiPyLoad._check_mustrestart_mqtt

-_check_mustrestart_mqtt() -

-Prueft ob sich kritische Werte veraendert haben. -

-
Returns:
-
-True, wenn Subsystemneustart noetig ist -
-
-

-RevPiPyLoad._check_mustrestart_plcprogram

-_check_mustrestart_plcprogram() -

-Prueft ob sich kritische Werte veraendert haben. -

-
Returns:
-
-True, wenn Subsystemneustart noetig ist -
-
-

-RevPiPyLoad._check_mustrestart_plcslave

-_check_mustrestart_plcslave() -

-Prueft ob sich kritische Werte veraendert haben. -

-
Returns:
-
-True, wenn Subsystemneustart noetig ist -
-
-

-RevPiPyLoad._loadconfig

-_loadconfig() -

-Load configuration file and setup modul. -

-

-RevPiPyLoad._plcmqtt

-_plcmqtt() -

-Konfiguriert den MQTT-Thread fuer die Ausfuehrung. -

-
Returns:
-
-MQTT-Thread Object or None -
-
-

-RevPiPyLoad._plcslave

-_plcslave() -

-Erstellt den PlcSlave-Server Thread. -

-
Returns:
-
-PLC-Server-Thread Object or None -
-
-

-RevPiPyLoad._plcthread

-_plcthread() -

-Konfiguriert den PLC-Thread fuer die Ausfuehrung. -

-
Returns:
-
-PLC-Thread Object or None -
-
-

-RevPiPyLoad._sigexit

-_sigexit(signum, frame) -

-Signal handler to clean and exit program. -

-

-RevPiPyLoad._sigloadconfig

-_sigloadconfig(signum, frame) -

-Signal handler to load configuration. -

-

-RevPiPyLoad._signewlogfile

-_signewlogfile(signum, frame) -

-Signal handler to start new logfile. -

-

-RevPiPyLoad.check_pictory_changed

-check_pictory_changed() -

-Prueft ob sich die piCtory Datei veraendert hat. -

-
Returns:
-
-True, wenn veraendert wurde -
-
-

-RevPiPyLoad.check_replace_ios_changed

-check_replace_ios_changed() -

-Prueft ob sich die replace_ios.conf Datei veraendert hat (oder del). -

-
Returns:
-
-True, wenn veraendert wurde -
-
-

-RevPiPyLoad.packapp

-packapp(mode="tar", pictory=False) -

-Erzeugt aus dem PLC-Programm ein TAR/Zip-File. -

-
mode
-
-Packart 'tar' oder 'zip' -
pictory
-
-piCtory Konfiguration mit einpacken -
-
-
Returns:
-
-Dateinamen des Archivs -
-
-

-RevPiPyLoad.start

-start() -

-Start revpipyload. -

-

-RevPiPyLoad.stop

-stop() -

-Stop revpipyload. -

-

-RevPiPyLoad.stop_plcmqtt

-stop_plcmqtt() -

-Beendet MQTT Sender. -

-

-RevPiPyLoad.stop_plcprogram

-stop_plcprogram() -

-Beendet PLC Programm. -

-

-RevPiPyLoad.stop_plcslave

-stop_plcslave() -

-Beendet PLC Slave. -

-

-RevPiPyLoad.stop_xmlrpcserver

-stop_xmlrpcserver() -

-Beendet XML-RPC. -

-

-RevPiPyLoad.xml_getconfig

-xml_getconfig() -

-Uebertraegt die RevPiPyLoad Konfiguration. -

-
Returns:
-
-dict() der Konfiguration -
-
-

-RevPiPyLoad.xml_getfilelist

-xml_getfilelist() -

-Uebertraegt die Dateiliste vom plcworkdir. -

-
Returns:
-
-list() mit Dateinamen -
-
-

-RevPiPyLoad.xml_getpictoryrsc

-xml_getpictoryrsc() -

-Gibt die config.rsc Datei von piCotry zurueck. -

-
Returns:
-
-xmlrpc.client.Binary() -
-
-

-RevPiPyLoad.xml_getprocimg

-xml_getprocimg() -

-Gibt die Rohdaten aus piControl0 zurueck. -

-
Returns:
-
-xmlrpc.client.Binary() -
-
-

-RevPiPyLoad.xml_mqttrunning

-xml_mqttrunning() -

-Prueft ob MQTT Uebertragung noch lauft. -

-
Returns:
-
-True, wenn MQTT Uebertragung noch lauft -
-
-

-RevPiPyLoad.xml_mqttstart

-xml_mqttstart() -

-Startet die MQTT Uebertragung. -

-
Returns:
-
-Statuscode: - 0: erfolgreich gestartet - -1: Nicht aktiv in Konfiguration - -2: Laeuft bereits -
-
-

-RevPiPyLoad.xml_mqttstop

-xml_mqttstop() -

-Stoppt die MQTT Uebertragung. -

-
Returns:
-
-True, wenn stop erfolgreich -
-
-

-RevPiPyLoad.xml_plcdownload

-xml_plcdownload(mode="tar", pictory=False) -

-Uebertraegt ein Archiv vom plcworkdir. -

-
mode
-
-Archivart 'tar' 'zip' -
pictory
-
-piCtory Konfiguraiton mit einpacken -
-
-
Returns:
-
-Binary() mit Archivdatei -
-
-

-RevPiPyLoad.xml_plcexitcode

-xml_plcexitcode() -

-Gibt den aktuellen exitcode vom PLC Programm zurueck. -

-
Returns:
-
-int() exitcode oder: - -1 laeuft noch - -2 Datei nicht gefunden - -3 Lief nie -
-
-

-RevPiPyLoad.xml_plcrunning

-xml_plcrunning() -

-Prueft ob das PLC Programm noch lauft. -

-
Returns:
-
-True, wenn das PLC Programm noch lauft -
-
-

-RevPiPyLoad.xml_plcslaverunning

-xml_plcslaverunning() -

-Prueft ob PLC-Slave noch lauft. -

-
Returns:
-
-True, wenn PLC-Slave noch lauft -
-
-

-RevPiPyLoad.xml_plcslavestart

-xml_plcslavestart() -

-Startet den PLC Slave Server. -

-
Returns:
-
-Statuscode: - 0: erfolgreich gestartet - -1: Nicht aktiv in Konfiguration - -2: Laeuft bereits -
-
-

-RevPiPyLoad.xml_plcslavestop

-xml_plcslavestop() -

-Stoppt den PLC Slave Server. -

-
Returns:
-
-True, wenn stop erfolgreich -
-
-

-RevPiPyLoad.xml_plcstart

-xml_plcstart() -

-Startet das PLC Programm. -

-
Returns:
-
-int() Status: - -0 Erfolgreich - -1 Programm lauft noch - -2 Datei nicht gefunden -
-
-

-RevPiPyLoad.xml_plcstop

-xml_plcstop() -

-Stoppt das PLC Programm. -

-
Returns:
-
-int() Exitcode vom PLC Programm - -0 Erfolgreich - -1 PLC Programm lief nicht -
-
-

-RevPiPyLoad.xml_plcupload

-xml_plcupload(filedata, filename) -

-Empfaengt Dateien fuer das PLC Programm einzeln. -

-
filedata
-
-GZIP Binary data der datei -
filename
-
-Name inkl. Unterverzeichnis der Datei -
-
-
Returns:
-
-Ture, wenn Datei erfolgreich gespeichert wurde -
-
-

-RevPiPyLoad.xml_plcuploadclean

-xml_plcuploadclean() -

-Loescht das gesamte plcworkdir Verzeichnis. -

-
Returns:
-
-True, wenn erfolgreich -
-
-

-RevPiPyLoad.xml_psstart

-xml_psstart() -

-Startet den Prozessabbildserver. -

-
Returns:
-
-True, wenn start erfolgreich -
-
-

-RevPiPyLoad.xml_psstop

-xml_psstop() -

-Stoppt den Prozessabbildserver. -

-
Returns:
-
-True, wenn stop erfolgreich -
-
-

-RevPiPyLoad.xml_reload

-xml_reload() -

-Startet RevPiPyLoad neu und verwendet neue Konfiguraiton. -

-

-RevPiPyLoad.xml_setconfig

-xml_setconfig(dc, loadnow=False) -

-Empfaengt die RevPiPyLoad Konfiguration. -

-
Returns:
-
-True, wenn erfolgreich angewendet -
-
-

-RevPiPyLoad.xml_setpictoryrsc

-xml_setpictoryrsc(filebytes, reset=False) -

-Schreibt die config.rsc Datei von piCotry. -

-
filebytes
-
-xmlrpc.client.Binary()-Objekt -
reset
-
-Reset piControl Device -
-
-
Returns:
-
-Statuscode: - -0 Alles erfolgreich - -1 Kann JSON-Datei nicht laden - -2 piCtory Elemente in JSON-Datei nicht gefunden - -3 Konnte Konfiguraiton nicht schreiben - -4 Module in Konfiguration enthalten, die es nicht gibt - -5 Kein RAP Katalog zur Ueberpruefung gefunden - Positive Zahl ist exitcode von piControlReset -
-
-
Up
-
- \ No newline at end of file diff --git a/doc/revpipyload.shared.ipaclmanager.html b/doc/revpipyload.shared.ipaclmanager.html deleted file mode 100644 index c9253e5..0000000 --- a/doc/revpipyload.shared.ipaclmanager.html +++ /dev/null @@ -1,239 +0,0 @@ - - -revpipyload.shared.ipaclmanager - - - -

-revpipyload.shared.ipaclmanager

-

-Verwaltet IP Adressen und deren ACLs. -

-

-Global Attributes

- - -
__author__
__copyright__
__license__
__version__
-

-Classes

- - - - - -
IpAclManagerVerwaltung fuer IP Adressen und deren ACL Level.
-

-Functions

- - - - - -
refullmatchre.fullmatch wegen alter python version aus wheezy nachgebaut.
-

- -

IpAclManager

-

-Verwaltung fuer IP Adressen und deren ACL Level. -

-

-Derived from

-None -

-Class Attributes

- - -
acl
filename
regex_acl
-

-Class Methods

- - -
None
-

-Methods

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
IpAclManagerInit IpAclManager class.
__get_aclGetter fuer den rohen ACL-String.
__get_filenameGetter fuer Dateinamen.
__get_regex_aclGibt formatierten RegEx-String zurueck.
__iter__Gibt einzelne ACLs als aus.
__set_aclUebernimmt neue ACL-Liste fuer die Ausertung der Level.
get_acllevelPrueft IP gegen ACL List und gibt ACL-Wert aus.
loadaclLaed ACL String und gibt erfolg zurueck.
loadaclfileLaed ACL Definitionen aus Datei.
writeaclfileSchreibt ACL Definitionen in Datei.
-

-Static Methods

- - -
None
- -

-IpAclManager (Constructor)

-IpAclManager(minlevel, maxlevel, acl=None) -

-Init IpAclManager class. -

-
minlevel
-
-Smallest access level (min. 0) -
maxlevel
-
-Biggest access level (max. 9) -
acl
-
-ACL Liste fuer Berechtigungen als -
-
-

-IpAclManager.__get_acl

-__get_acl() -

-Getter fuer den rohen ACL-String. - return ACLs als -

-

-IpAclManager.__get_filename

-__get_filename() -

-Getter fuer Dateinamen. -

-
Returns:
-
-Filename der ACL -
-
-

-IpAclManager.__get_regex_acl

-__get_regex_acl() -

-Gibt formatierten RegEx-String zurueck. - return RegEx Code als -

-

-IpAclManager.__iter__

-__iter__() -

-Gibt einzelne ACLs als aus. -

-

-IpAclManager.__set_acl

-__set_acl(value) -

-Uebernimmt neue ACL-Liste fuer die Ausertung der Level. -

-
value
-
-Neue ACL-Liste als -
-
-

-IpAclManager.get_acllevel

-get_acllevel(ipaddress) -

-Prueft IP gegen ACL List und gibt ACL-Wert aus. -

-
ipaddress
-
-zum pruefen -
-
-
Returns:
-
- ACL Wert oder -1 wenn nicht gefunden -
-
-

-IpAclManager.loadacl

-loadacl(str_acl) -

-Laed ACL String und gibt erfolg zurueck. -

-
str_acl
-
-ACL als -
-
-
Returns:
-
-True, wenn erfolgreich uebernommen -
-
-

-IpAclManager.loadaclfile

-loadaclfile(filename) -

-Laed ACL Definitionen aus Datei. -

-
filename
-
-Dateiname fuer Definitionen -
-
-
Returns:
-
-True, wenn Laden erfolgreich war -
-
-

-IpAclManager.writeaclfile

-writeaclfile(filename=None, aclname=None) -

-Schreibt ACL Definitionen in Datei. -

-
filename
-
-Dateiname fuer Definitionen -
-
-
Returns:
-
-True, wenn Schreiben erfolgreich war -
-
-
Up
-

- -

refullmatch

-refullmatch(regex, string) -

-re.fullmatch wegen alter python version aus wheezy nachgebaut. -

-
regex
-
-RegEx Statement -
string
-
-Zeichenfolge gegen die getestet wird -
-
-
Returns:
-
-True, wenn komplett passt sonst False -
-
-
Up
-
- \ No newline at end of file diff --git a/doc/testsystem.html b/doc/testsystem.html deleted file mode 100644 index dc7a974..0000000 --- a/doc/testsystem.html +++ /dev/null @@ -1,108 +0,0 @@ - - -testsystem - - - -

-testsystem

-

-Test all config files and print results. -

-

-Global Attributes

- - -
__author__
__copyright__
__license__
newline
-

-Classes

- - - - - -
TestSystemMain class for test system of revpipyload.
-

-Functions

- - -
None
-

- -

TestSystem

-

-Main class for test system of revpipyload. -

-

-Derived from

-None -

-Class Attributes

- - -
None
-

-Class Methods

- - -
None
-

-Methods

- - - - - - - - - - - - - - -
TestSystemInit TestSystem class.
startStart test program and run tests.
test_replace_ioTest replace_io file.
test_sectionsTest config file.
-

-Static Methods

- - -
None
- -

-TestSystem (Constructor)

-TestSystem() -

-Init TestSystem class. -

-

-TestSystem.start

-start() -

-Start test program and run tests. -

-

-TestSystem.test_replace_io

-test_replace_io() -

-Test replace_io file. -

-
Returns:
-
-0 if successful testet -
-
-

-TestSystem.test_sections

-test_sections() -

-Test config file. -

-
Returns:
-
-0 if successful testet -
-
-
Up
-
- \ No newline at end of file diff --git a/doc/xrpcserver.html b/doc/xrpcserver.html deleted file mode 100644 index dd943a0..0000000 --- a/doc/xrpcserver.html +++ /dev/null @@ -1,198 +0,0 @@ - - -xrpcserver - - - -

-xrpcserver

-

-XML-RPC Server anpassungen fuer Absicherung. -

-

-Global Attributes

- - -
__author__
__copyright__
__license__
-

-Classes

- - - - - - - - -
SaveXMLRPCRequestHandlerVerwaltet die XML-Requests und prueft Berechtigungen.
SaveXMLRPCServerErstellt einen erweiterten XMLRPCServer.
-

-Functions

- - -
None
-

- -

SaveXMLRPCRequestHandler

-

-Verwaltet die XML-Requests und prueft Berechtigungen. -

-

-Derived from

-SimpleXMLRPCRequestHandler -

-Class Attributes

- - -
None
-

-Class Methods

- - -
None
-

-Methods

- - - - - -
parse_requestBerechtigungen pruefen.
-

-Static Methods

- - -
None
- -

-SaveXMLRPCRequestHandler.parse_request

-parse_request() -

-Berechtigungen pruefen. -

-
Returns:
-
-True, wenn Parsen erfolgreich war -
-
-
Up
-

- -

SaveXMLRPCServer

-

-Erstellt einen erweiterten XMLRPCServer. -

-

-Derived from

-SimpleXMLRPCServer -

-Class Attributes

- - -
None
-

-Class Methods

- - -
None
-

-Methods

- - - - - - - - - - - - - - - - - - - - -
SaveXMLRPCServerInit SaveXMLRPCServer class.
_dispatchPrueft ACL Level fuer angeforderte Methode.
is_alivePrueft ob der XML RPC Server laeuft.
register_functionOverride register_function to add acl_level.
startStartet den XML-RPC Server.
stopStoppt den XML-RPC Server.
-

-Static Methods

- - -
None
- -

-SaveXMLRPCServer (Constructor)

-SaveXMLRPCServer(addr, logRequests=True, allow_none=False, ipacl=None) -

-Init SaveXMLRPCServer class. -

-
ipacl
-
-AclManager -
-
-

-SaveXMLRPCServer._dispatch

-_dispatch(method, params) -

-Prueft ACL Level fuer angeforderte Methode. -

-
method
-
-Angeforderte Methode -
params
-
-Argumente fuer Methode -
-
-
Returns:
-
-Dispatched data -
-
-

-SaveXMLRPCServer.is_alive

-is_alive() -

-Prueft ob der XML RPC Server laeuft. -

-
Returns:
-
-True, wenn Server noch laeuft -
-
-

-SaveXMLRPCServer.register_function

-register_function(acl_level, function, name=None) -

-Override register_function to add acl_level. -

-
acl_level
-
-ACL level to call this function -
function
-
-Function to register -
name
-
-Alternative name to use -
-
-

-SaveXMLRPCServer.start

-start() -

-Startet den XML-RPC Server. -

-

-SaveXMLRPCServer.stop

-stop() -

-Stoppt den XML-RPC Server. -

-
Up
-
- \ No newline at end of file diff --git a/docs/Makefile b/docs/Makefile new file mode 100644 index 0000000..d09b27e --- /dev/null +++ b/docs/Makefile @@ -0,0 +1,20 @@ +# Minimal makefile for Sphinx documentation +# + +# You can set these variables from the command line. +SPHINXOPTS = +SPHINXBUILD = sphinx-build +SPHINXPROJ = RevPiPyLoad +SOURCEDIR = . +BUILDDIR = _build + +# Put it first so that "make" without argument is like "make help". +help: + @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) + +.PHONY: help Makefile + +# Catch-all target: route all unknown targets to Sphinx using the new +# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). +%: Makefile + @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) \ No newline at end of file diff --git a/docs/conf.py b/docs/conf.py new file mode 100644 index 0000000..4b5eee4 --- /dev/null +++ b/docs/conf.py @@ -0,0 +1,174 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# RevPiPyLoad documentation build configuration file, created by +# sphinx-quickstart on Sun Oct 20 16:27:29 2019. +# +# This file is execfile()d with the current directory set to its +# containing dir. +# +# Note that not all possible configuration values are present in this +# autogenerated file. +# +# All configuration values have a default; values that are commented out +# serve to show the default. + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +# +import os +import sys +sys.path.insert(0, os.path.abspath('../revpipyload')) + +from revpipyload import __version__ + +# -- General configuration ------------------------------------------------ + +# If your documentation needs a minimal Sphinx version, state it here. +# +# needs_sphinx = '1.0' + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom +# ones. +extensions = [ + 'sphinx.ext.autodoc', + 'sphinx.ext.todo', + 'sphinx.ext.viewcode', +] + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# The suffix(es) of source filenames. +# You can specify multiple suffix as a list of string: +# +# source_suffix = ['.rst', '.md'] +source_suffix = '.rst' + +# The master toctree document. +master_doc = 'index' + +# General information about the project. +project = 'RevPiPyLoad' +copyright = '2019, Sven Sager (NaruX)' +author = 'Sven Sager (NaruX)' + +# The version info for the project you're documenting, acts as replacement for +# |version| and |release|, also used in various other places throughout the +# built documents. +# +# The short X.Y version. +version = __version__ +# The full version, including alpha/beta/rc tags. +release = '' + +# The language for content autogenerated by Sphinx. Refer to documentation +# for a list of supported languages. +# +# This is also used if you do content translation via gettext catalogs. +# Usually you set "language" from the command line for these cases. +language = None + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +# This patterns also effect to html_static_path and html_extra_path +exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] + +# The name of the Pygments (syntax highlighting) style to use. +pygments_style = 'sphinx' + +# If true, `todo` and `todoList` produce output, else they produce nothing. +todo_include_todos = True + + +# -- Options for HTML output ---------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +# +html_theme = 'alabaster' + +# Theme options are theme-specific and customize the look and feel of a theme +# further. For a list of options available for each theme, see the +# documentation. +# +# html_theme_options = {} + +# Add any paths that contain custom static files (such as style sheets) here, +# relative to this directory. They are copied after the builtin static files, +# so a file named "default.css" will overwrite the builtin "default.css". +html_static_path = ['_static'] + +# Custom sidebar templates, must be a dictionary that maps document names +# to template names. +# +# This is required for the alabaster theme +# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars +html_sidebars = { + '**': [ + 'relations.html', # needs 'show_related': True theme option to display + 'searchbox.html', + ] +} + + +# -- Options for HTMLHelp output ------------------------------------------ + +# Output file base name for HTML help builder. +htmlhelp_basename = 'RevPiPyLoaddoc' + + +# -- Options for LaTeX output --------------------------------------------- + +latex_elements = { + # The paper size ('letterpaper' or 'a4paper'). + # + # 'papersize': 'letterpaper', + + # The font size ('10pt', '11pt' or '12pt'). + # + # 'pointsize': '10pt', + + # Additional stuff for the LaTeX preamble. + # + # 'preamble': '', + + # Latex figure (float) alignment + # + # 'figure_align': 'htbp', +} + +# Grouping the document tree into LaTeX files. List of tuples +# (source start file, target name, title, +# author, documentclass [howto, manual, or own class]). +latex_documents = [ + (master_doc, 'RevPiPyLoad.tex', 'RevPiPyLoad Documentation', + 'Sven Sager (NaruX)', 'manual'), +] + + +# -- Options for manual page output --------------------------------------- + +# One entry per manual page. List of tuples +# (source start file, name, description, authors, manual section). +man_pages = [ + (master_doc, 'revpipyload', 'RevPiPyLoad Documentation', + [author], 1) +] + + +# -- Options for Texinfo output ------------------------------------------- + +# Grouping the document tree into Texinfo files. List of tuples +# (source start file, target name, title, author, +# dir menu entry, description, category) +texinfo_documents = [ + (master_doc, 'RevPiPyLoad', 'RevPiPyLoad Documentation', + author, 'RevPiPyLoad', 'One line description of project.', + 'Miscellaneous'), +] + + + diff --git a/docs/helper.rst b/docs/helper.rst new file mode 100644 index 0000000..f282520 --- /dev/null +++ b/docs/helper.rst @@ -0,0 +1,7 @@ +helper module +============= + +.. automodule:: helper + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/index.rst b/docs/index.rst new file mode 100644 index 0000000..3dbc6c3 --- /dev/null +++ b/docs/index.rst @@ -0,0 +1,20 @@ +.. RevPiPyLoad documentation master file, created by + sphinx-quickstart on Sun Oct 20 16:27:29 2019. + You can adapt this file completely to your liking, but it should at least + contain the root `toctree` directive. + +Welcome to RevPiPyLoad's documentation! +======================================= + +.. toctree:: + :maxdepth: 2 + :caption: Contents: + + + +Indices and tables +================== + +* :ref:`genindex` +* :ref:`modindex` +* :ref:`search` diff --git a/docs/logsystem.rst b/docs/logsystem.rst new file mode 100644 index 0000000..0e605a3 --- /dev/null +++ b/docs/logsystem.rst @@ -0,0 +1,7 @@ +logsystem module +================ + +.. automodule:: logsystem + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/modules.rst b/docs/modules.rst new file mode 100644 index 0000000..0f9d1b2 --- /dev/null +++ b/docs/modules.rst @@ -0,0 +1,17 @@ +revpipyload +=========== + +.. toctree:: + :maxdepth: 4 + + helper + logsystem + mqttserver + picontrolserver + plcsystem + procimgserver + proginit + revpipyload + shared + testsystem + xrpcserver diff --git a/docs/mqttserver.rst b/docs/mqttserver.rst new file mode 100644 index 0000000..fc429de --- /dev/null +++ b/docs/mqttserver.rst @@ -0,0 +1,7 @@ +mqttserver module +================= + +.. automodule:: mqttserver + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/picontrolserver.rst b/docs/picontrolserver.rst new file mode 100644 index 0000000..b57830b --- /dev/null +++ b/docs/picontrolserver.rst @@ -0,0 +1,7 @@ +picontrolserver module +====================== + +.. automodule:: picontrolserver + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/plcsystem.rst b/docs/plcsystem.rst new file mode 100644 index 0000000..34939ca --- /dev/null +++ b/docs/plcsystem.rst @@ -0,0 +1,7 @@ +plcsystem module +================ + +.. automodule:: plcsystem + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/procimgserver.rst b/docs/procimgserver.rst new file mode 100644 index 0000000..4ea471a --- /dev/null +++ b/docs/procimgserver.rst @@ -0,0 +1,7 @@ +procimgserver module +==================== + +.. automodule:: procimgserver + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/proginit.rst b/docs/proginit.rst new file mode 100644 index 0000000..2226a87 --- /dev/null +++ b/docs/proginit.rst @@ -0,0 +1,7 @@ +proginit module +=============== + +.. automodule:: proginit + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/revpipyload.rst b/docs/revpipyload.rst new file mode 100644 index 0000000..9353e88 --- /dev/null +++ b/docs/revpipyload.rst @@ -0,0 +1,7 @@ +revpipyload module +================== + +.. automodule:: revpipyload + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/shared.rst b/docs/shared.rst new file mode 100644 index 0000000..6323fbf --- /dev/null +++ b/docs/shared.rst @@ -0,0 +1,22 @@ +shared package +============== + +Submodules +---------- + +shared\.ipaclmanager module +--------------------------- + +.. automodule:: shared.ipaclmanager + :members: + :undoc-members: + :show-inheritance: + + +Module contents +--------------- + +.. automodule:: shared + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/testsystem.rst b/docs/testsystem.rst new file mode 100644 index 0000000..79288b7 --- /dev/null +++ b/docs/testsystem.rst @@ -0,0 +1,7 @@ +testsystem module +================= + +.. automodule:: testsystem + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/xrpcserver.rst b/docs/xrpcserver.rst new file mode 100644 index 0000000..67bf1fe --- /dev/null +++ b/docs/xrpcserver.rst @@ -0,0 +1,7 @@ +xrpcserver module +================= + +.. automodule:: xrpcserver + :members: + :undoc-members: + :show-inheritance: diff --git a/eric-revpipyload.api b/eric-revpipyload.api deleted file mode 100644 index b9fa29e..0000000 --- a/eric-revpipyload.api +++ /dev/null @@ -1,177 +0,0 @@ -helper.__author__?9 -helper.__copyright__?9 -helper.__license__?9 -helper._setuprt?5(pid, evt_exit) -helper._zeroprocimg?5() -helper.refullmatch?4(regex, string) -logsystem.LogReader.closeall?4() -logsystem.LogReader.load_applog?4(start, count) -logsystem.LogReader.load_plclog?4(start, count) -logsystem.LogReader?1() -logsystem.PipeLogwriter.__del__?6() -logsystem.PipeLogwriter._configurefh?5() -logsystem.PipeLogwriter.logline?4(message) -logsystem.PipeLogwriter.newlogfile?4() -logsystem.PipeLogwriter.run?4() -logsystem.PipeLogwriter.stop?4() -logsystem.PipeLogwriter?1(logfilename) -logsystem.__author__?9 -logsystem.__copyright__?9 -logsystem.__license__?9 -mqttserver.MqttServer._evt_io?5(name, value, requested=False) -mqttserver.MqttServer._loadrevpimodio?5() -mqttserver.MqttServer._on_connect?5(client, userdata, flags, rc) -mqttserver.MqttServer._on_disconnect?5(client, userdata, rc) -mqttserver.MqttServer._on_message?5(client, userdata, msg) -mqttserver.MqttServer._send_pictory_conf?5() -mqttserver.MqttServer.newlogfile?4() -mqttserver.MqttServer.reload_revpimodio?4() -mqttserver.MqttServer.run?4() -mqttserver.MqttServer.stop?4() -mqttserver.MqttServer?1(basetopic, sendinterval, broker_address, port=1883, tls_set=False, username="", password=None, client_id="", send_events=False, write_outputs=False, replace_ios=None) -mqttserver.__author__?9 -mqttserver.__copyright__?9 -mqttserver.__license__?9 -picontrolserver.HASH_FAIL?7 -picontrolserver.HASH_NULL?7 -picontrolserver.HASH_PICT?7 -picontrolserver.HASH_RPIO?7 -picontrolserver.RevPiSlave.check_connectedacl?4() -picontrolserver.RevPiSlave.disconnect_all?4() -picontrolserver.RevPiSlave.disconnect_replace_ios?4() -picontrolserver.RevPiSlave.newlogfile?4() -picontrolserver.RevPiSlave.run?4() -picontrolserver.RevPiSlave.stop?4() -picontrolserver.RevPiSlave?1(ipacl, port=55234, bindip="") -picontrolserver.RevPiSlaveDev.run?4() -picontrolserver.RevPiSlaveDev.stop?4() -picontrolserver.RevPiSlaveDev?1(devcon, acl) -picontrolserver.__author__?9 -picontrolserver.__copyright__?9 -picontrolserver.__license__?9 -plcsystem.RevPiPlc.__get_autoreloaddelay?6() -plcsystem.RevPiPlc.__set_autoreloaddelay?6(value) -plcsystem.RevPiPlc._configureplw?5() -plcsystem.RevPiPlc._setuppopen?5() -plcsystem.RevPiPlc._spopen?5(lst_proc) -plcsystem.RevPiPlc.autoreloaddelay?7 -plcsystem.RevPiPlc.newlogfile?4() -plcsystem.RevPiPlc.run?4() -plcsystem.RevPiPlc.stop?4() -plcsystem.RevPiPlc?1(program, arguments, pversion) -plcsystem.__author__?9 -plcsystem.__copyright__?9 -plcsystem.__license__?9 -procimgserver.ProcimgServer.__del__?6() -procimgserver.ProcimgServer.devices?4() -procimgserver.ProcimgServer.ios?4(iotype) -procimgserver.ProcimgServer.loadrevpimodio?4() -procimgserver.ProcimgServer.setvalue?4(device, io, value) -procimgserver.ProcimgServer.start?4() -procimgserver.ProcimgServer.stop?4() -procimgserver.ProcimgServer.values?4() -procimgserver.ProcimgServer?1(xmlserver, replace_ios=None) -procimgserver.__author__?9 -procimgserver.__copyright__?9 -procimgserver.__license__?9 -proginit.__author__?9 -proginit.__copyright__?9 -proginit.__license__?9 -proginit.cleanup?4() -proginit.conf?7 -proginit.configure?4() -proginit.forked?7 -proginit.globalconffile?7 -proginit.logapp?7 -proginit.logger?7 -proginit.logplc?7 -proginit.pargs?7 -proginit.picontrolreset?7 -proginit.rapcatalog?7 -proginit.startdir?7 -revpipyload.RevPiPyLoad._check_mustrestart_mqtt?5() -revpipyload.RevPiPyLoad._check_mustrestart_plcprogram?5() -revpipyload.RevPiPyLoad._check_mustrestart_plcslave?5() -revpipyload.RevPiPyLoad._loadconfig?5() -revpipyload.RevPiPyLoad._plcmqtt?5() -revpipyload.RevPiPyLoad._plcslave?5() -revpipyload.RevPiPyLoad._plcthread?5() -revpipyload.RevPiPyLoad._sigexit?5(signum, frame) -revpipyload.RevPiPyLoad._sigloadconfig?5(signum, frame) -revpipyload.RevPiPyLoad._signewlogfile?5(signum, frame) -revpipyload.RevPiPyLoad.check_pictory_changed?4() -revpipyload.RevPiPyLoad.check_replace_ios_changed?4() -revpipyload.RevPiPyLoad.packapp?4(mode="tar", pictory=False) -revpipyload.RevPiPyLoad.start?4() -revpipyload.RevPiPyLoad.stop?4() -revpipyload.RevPiPyLoad.stop_plcmqtt?4() -revpipyload.RevPiPyLoad.stop_plcprogram?4() -revpipyload.RevPiPyLoad.stop_plcslave?4() -revpipyload.RevPiPyLoad.stop_xmlrpcserver?4() -revpipyload.RevPiPyLoad.xml_getconfig?4() -revpipyload.RevPiPyLoad.xml_getfilelist?4() -revpipyload.RevPiPyLoad.xml_getpictoryrsc?4() -revpipyload.RevPiPyLoad.xml_getprocimg?4() -revpipyload.RevPiPyLoad.xml_mqttrunning?4() -revpipyload.RevPiPyLoad.xml_mqttstart?4() -revpipyload.RevPiPyLoad.xml_mqttstop?4() -revpipyload.RevPiPyLoad.xml_plcdownload?4(mode="tar", pictory=False) -revpipyload.RevPiPyLoad.xml_plcexitcode?4() -revpipyload.RevPiPyLoad.xml_plcrunning?4() -revpipyload.RevPiPyLoad.xml_plcslaverunning?4() -revpipyload.RevPiPyLoad.xml_plcslavestart?4() -revpipyload.RevPiPyLoad.xml_plcslavestop?4() -revpipyload.RevPiPyLoad.xml_plcstart?4() -revpipyload.RevPiPyLoad.xml_plcstop?4() -revpipyload.RevPiPyLoad.xml_plcupload?4(filedata, filename) -revpipyload.RevPiPyLoad.xml_plcuploadclean?4() -revpipyload.RevPiPyLoad.xml_psstart?4() -revpipyload.RevPiPyLoad.xml_psstop?4() -revpipyload.RevPiPyLoad.xml_reload?4() -revpipyload.RevPiPyLoad.xml_setconfig?4(dc, loadnow=False) -revpipyload.RevPiPyLoad.xml_setpictoryrsc?4(filebytes, reset=False) -revpipyload.RevPiPyLoad?1() -revpipyload.__author__?9 -revpipyload.__copyright__?9 -revpipyload.__license__?9 -revpipyload.__version__?9 -revpipyload.min_revpimodio?7 -revpipyload.shared.__author__?9 -revpipyload.shared.__copyright__?9 -revpipyload.shared.__license__?9 -revpipyload.shared.ipaclmanager.IpAclManager.__get_acl?6() -revpipyload.shared.ipaclmanager.IpAclManager.__get_filename?6() -revpipyload.shared.ipaclmanager.IpAclManager.__get_regex_acl?6() -revpipyload.shared.ipaclmanager.IpAclManager.__iter__?6() -revpipyload.shared.ipaclmanager.IpAclManager.__set_acl?6(value) -revpipyload.shared.ipaclmanager.IpAclManager.acl?7 -revpipyload.shared.ipaclmanager.IpAclManager.filename?7 -revpipyload.shared.ipaclmanager.IpAclManager.get_acllevel?4(ipaddress) -revpipyload.shared.ipaclmanager.IpAclManager.loadacl?4(str_acl) -revpipyload.shared.ipaclmanager.IpAclManager.loadaclfile?4(filename) -revpipyload.shared.ipaclmanager.IpAclManager.regex_acl?7 -revpipyload.shared.ipaclmanager.IpAclManager.writeaclfile?4(filename=None, aclname=None) -revpipyload.shared.ipaclmanager.IpAclManager?1(minlevel, maxlevel, acl=None) -revpipyload.shared.ipaclmanager.__author__?9 -revpipyload.shared.ipaclmanager.__copyright__?9 -revpipyload.shared.ipaclmanager.__license__?9 -revpipyload.shared.ipaclmanager.__version__?9 -revpipyload.shared.ipaclmanager.refullmatch?4(regex, string) -testsystem.TestSystem.start?4() -testsystem.TestSystem.test_replace_io?4() -testsystem.TestSystem.test_sections?4() -testsystem.TestSystem?1() -testsystem.__author__?9 -testsystem.__copyright__?9 -testsystem.__license__?9 -testsystem.newline?7 -xrpcserver.SaveXMLRPCRequestHandler.parse_request?4() -xrpcserver.SaveXMLRPCServer._dispatch?5(method, params) -xrpcserver.SaveXMLRPCServer.is_alive?4() -xrpcserver.SaveXMLRPCServer.register_function?4(acl_level, function, name=None) -xrpcserver.SaveXMLRPCServer.start?4() -xrpcserver.SaveXMLRPCServer.stop?4() -xrpcserver.SaveXMLRPCServer?1(addr, logRequests=True, allow_none=False, ipacl=None) -xrpcserver.__author__?9 -xrpcserver.__copyright__?9 -xrpcserver.__license__?9 diff --git a/eric-revpipyload.bas b/eric-revpipyload.bas deleted file mode 100644 index 0fe2ca4..0000000 --- a/eric-revpipyload.bas +++ /dev/null @@ -1,7 +0,0 @@ -MqttServer Thread -PipeLogwriter Thread -RevPiPlc Thread -RevPiSlave Thread -RevPiSlaveDev Thread -SaveXMLRPCRequestHandler SimpleXMLRPCRequestHandler -SaveXMLRPCServer SimpleXMLRPCServer diff --git a/revpipyload.e4p b/revpipyload.e4p deleted file mode 100644 index 28179d9..0000000 --- a/revpipyload.e4p +++ /dev/null @@ -1,399 +0,0 @@ - - - - - - - en_US - 89ddb4e70b339f832ee277085202b38acc6a125c - Python3 - Console - Dieser Loader wird über das Init-System geladen und führt das angegebene Pythonprogramm aus. Es ist für den RevolutionPi gedacht um automatisch das SPS-Programm zu starten. - 0.8.1 - Sven Sager - akira@narux.de - - - revpipyload/helper.py - revpipyload/logsystem.py - revpipyload/mqttserver.py - revpipyload/picontrolserver.py - revpipyload/plcsystem.py - revpipyload/procimgserver.py - revpipyload/proginit.py - revpipyload/revpipyload.py - revpipyload/shared/__init__.py - revpipyload/shared/ipaclmanager.py - revpipyload/testsystem.py - revpipyload/xrpcserver.py - setup.py - - - - - - - MANIFEST.in - data - debian - doc - eric-revpipyload.api - stdeb.cfg - - revpipyload/revpipyload.py - - Mercurial - - - - add - - - - - - - - checkout - - - - - - - - commit - - - - - - - - diff - - - - - - - - export - - - - - - - - global - - - - - - - - history - - - - - - - - log - - - - - - - - remove - - - - - - - - status - - - - - - - - tag - - - - - - - - update - - - - - - - - - - - - - - - - - - - - - ERIC4API - - - - - ignoreDirectories - - - - demo - paho - - - - ignoreFilePatterns - - - - setup.py - - - - includePrivate - - - True - - - languages - - - - Python3 - - - - outputFile - - - eric-revpipyload.api - - - useRecursion - - - True - - - - - ERIC4DOC - - - - - ignoreDirectories - - - - data - deb - dist - demo - paho - - - - ignoreFilePatterns - - - - setup.py - - - - outputDirectory - - - doc - - - qtHelpEnabled - - - False - - - useRecursion - - - True - - - - - - - - - - - Pep8Checker - - - - - BuiltinsChecker - - - - - chr - - - - unichr - - - - str - - - - unicode - - - - - - CopyrightAuthor - - - - - - CopyrightMinFileSize - - - 0 - - - DocstringType - - - pep257 - - - ExcludeFiles - - - */demo/* - - - ExcludeMessages - - - E123,E226,E24,C101 - - - FixCodes - - - - - - FixIssues - - - False - - - FutureChecker - - - - - - HangClosing - - - False - - - IncludeMessages - - - - - - LineComplexity - - - 15 - - - LineComplexityScore - - - 10 - - - MaxCodeComplexity - - - 10 - - - MaxLineLength - - - 79 - - - NoFixCodes - - - E501 - - - RepeatMessages - - - True - - - ShowIgnored - - - False - - - ValidEncodings - - - latin-1, utf-8 - - - - - - - diff --git a/revpipyload/proginit.py b/revpipyload/proginit.py index 63dddf3..ed22eaf 100644 --- a/revpipyload/proginit.py +++ b/revpipyload/proginit.py @@ -188,6 +188,6 @@ def configure(): loglevel = logging.WARNING elif pargs.verbose == 1: loglevel = logging.INFO - elif pargs.verbose > 1: + else: loglevel = logging.DEBUG logger.setLevel(loglevel) diff --git a/setup.py b/setup.py index 06c8da4..f889fa1 100644 --- a/setup.py +++ b/setup.py @@ -46,8 +46,8 @@ setup( ]), ("share/revpipyload", glob("revpipyload/*.*")), ("share/revpipyload/shared", glob("revpipyload/shared/*.*")), - ("share/revpipyload/paho", ["revpipyload/paho/__init__.py"]), - ("share/revpipyload/paho/mqtt", glob("revpipyload/paho/mqtt/*.*")), + ("share/revpipyload/paho", ["lib/paho/__init__.py"]), + ("share/revpipyload/paho/mqtt", glob("lib/paho/mqtt/*.*")), ("/var/lib/revpipyload", [ "data/var/lib/revpipyload/.placeholder", ])