Compare commits
2 Commits
ee8ca45a59
...
ef33fd252f
Author | SHA1 | Date | |
---|---|---|---|
ef33fd252f | |||
2cead40a74 |
@@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = lmwsip
|
name = lmwsip
|
||||||
version = 0.9.9
|
version = 0.9.10
|
||||||
author = Marcel Nijenhof
|
author = Marcel Nijenhof
|
||||||
author_email = pypi@marceln.org
|
author_email = pypi@marceln.org
|
||||||
description = Interface for the lmw sip protocol
|
description = Interface for the lmw sip protocol
|
||||||
|
@@ -12,7 +12,7 @@ from datetime import datetime, timedelta
|
|||||||
from dateutil import tz
|
from dateutil import tz
|
||||||
|
|
||||||
""" Version info changed by git hook """
|
""" Version info changed by git hook """
|
||||||
__version__ = '0.9.9'
|
__version__ = '0.9.10'
|
||||||
|
|
||||||
class LmwSip:
|
class LmwSip:
|
||||||
"""Class to connect to the LMW Standard Interface prototcol (sip)
|
"""Class to connect to the LMW Standard Interface prototcol (sip)
|
||||||
@@ -1120,4 +1120,4 @@ class LmwParmWarn(Warning):
|
|||||||
self.parameter = parameter
|
self.parameter = parameter
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return("Unknown parameter: %s" % parameter)
|
return("Unknown parameter: %s" % self.parameter)
|
||||||
|
@@ -79,7 +79,7 @@ class lmwsipTest(unittest.TestCase):
|
|||||||
|
|
||||||
def test_cmdWrite(self):
|
def test_cmdWrite(self):
|
||||||
self.login()
|
self.login()
|
||||||
self.assertEqual(type(self.sip.cmdWrite("WN", "DUMMY", "H10", "+00:20", "2020-01-01", "00:00", "35/10;33/10")), str)
|
self.assertEqual(type(self.sip.cmdWrite("WNT", "DUMMY", "H10", "+00:20", "2020-01-01", "00:00", "35/10;33/10")), str)
|
||||||
|
|
||||||
def test_value(self):
|
def test_value(self):
|
||||||
self.login()
|
self.login()
|
||||||
|
@@ -13,6 +13,9 @@ Implements the following commands:
|
|||||||
CMD> TI LMW
|
CMD> TI LMW
|
||||||
ANS< ! 20-JAN-01 00:00:00
|
ANS< ! 20-JAN-01 00:00:00
|
||||||
|
|
||||||
|
CMD> WNT LMW,DUMMY,H1,+HH:MM,yyyy-mm-dd,HH:MM,NN/NN;NN/NN
|
||||||
|
ANS< ! 1/10,;2/10;....
|
||||||
|
|
||||||
CMD> WN LMW,DUMMY,H10,STAT
|
CMD> WN LMW,DUMMY,H10,STAT
|
||||||
ANS< ! 20-JAN-01 00:00
|
ANS< ! 20-JAN-01 00:00
|
||||||
|
|
||||||
@@ -98,6 +101,8 @@ class sipProtocol(socketserver.BaseRequestHandler):
|
|||||||
self.send("!")
|
self.send("!")
|
||||||
elif self.match("TI LMW"):
|
elif self.match("TI LMW"):
|
||||||
self.send("! 20-JAN-01 00:00:00")
|
self.send("! 20-JAN-01 00:00:00")
|
||||||
|
elif self.match("WNT LMW,DUMMY,H10,"):
|
||||||
|
self.send("!")
|
||||||
elif self.match("WN LMW,DUMMY,H10,"):
|
elif self.match("WN LMW,DUMMY,H10,"):
|
||||||
if self.match("STAT"):
|
if self.match("STAT"):
|
||||||
self.send("! 20-JAN-01 00:00")
|
self.send("! 20-JAN-01 00:00")
|
||||||
|
Reference in New Issue
Block a user