RevPiModIO2 2.1.6 muss verwendet werden wegen Device-Iterator

Watch mode Daten schneller zusammenfassen
This commit is contained in:
2018-06-27 12:16:15 +02:00
parent e8c631d672
commit b3b7a8f92f
5 changed files with 8 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Project SYSTEM "Project-5.1.dtd">
<!-- eric project file for project revpipyload -->
<!-- Saved: 2018-06-24, 10:04:03 -->
<!-- Saved: 2018-06-27, 11:29:04 -->
<!-- Copyright (C) 2018 Sven Sager, akira@narux.de -->
<Project version="5.1">
<Language>en_US</Language>
@@ -9,7 +9,7 @@
<ProgLanguage mixed="0">Python3</ProgLanguage>
<ProjectType>Console</ProjectType>
<Description>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.</Description>
<Version>0.6.6</Version>
<Version>0.6.7</Version>
<Author>Sven Sager</Author>
<Email>akira@narux.de</Email>
<Eol index="1"/>

View File

@@ -143,7 +143,7 @@ class ProcimgServer():
"""Liefert Prozessabbild an Client.
@return Binary() bytes or None"""
if self.rpi.readprocimg() and self.rpi.syncoutputs():
bytebuff = b''
bytebuff = bytearray()
for dev in self.rpi.device:
bytebuff += bytes(dev)
return Binary(bytebuff)

View File

@@ -50,7 +50,7 @@ from time import asctime
from xmlrpc.client import Binary
from xrpcserver import SaveXMLRPCServer
pyloadversion = "0.6.6"
pyloadversion = "0.6.7"
class RevPiPyLoad():
@@ -319,7 +319,7 @@ class RevPiPyLoad():
self.xml_ps = None
proginit.logger.warning(
"can not load revpimodio2 module. maybe its not installed "
"or an old version (required at least 2.0.5). if you "
"or an old version (required at least 2.1.6). if you "
"like to use the process monitor feature, update/install "
"revpimodio2: 'apt-get install python3-revpimodio2'"
)

View File

@@ -27,11 +27,11 @@ setup(
license="LGPLv3",
name="revpipyload",
version="0.6.6",
version="0.6.7",
scripts=["data/revpipyload"],
install_requires=["revpimodio2"],
install_requires=["revpimodio2 >= 2.1.6"],
python_requires=">=3.2",
data_files=[

View File

@@ -1,5 +1,5 @@
[DEFAULT]
Debian-Version: 1
Depends3: python3-revpimodio2 (>= 2.0.0)
Depends3: python3-revpimodio2 (>= 2.1.6)
Package: revpipyload
Suite: stable