Search found 5 matches

by oskarion
Wednesday 02 December 2020 20:33
Forum: Python
Topic: Serial port listen
Replies: 3
Views: 961

Re: Serial port listen

@Dnpwwo I have a question. My hardware sends to me commands like those: "message" : "2020-12-01 20:43:28.294 (Sterownik) AT+Time=-1,-1,-1,-1\r\nAT+Time=-1,-1,-1,-1\r\nAT+Time=-1,-1,-1,-1\r\nAT+Time=-1,-1,-1,-1\r\nAT+Time=-1,-1,-1,-1\r\nAT+Time=-1,-1,-1,-1\r\nO=1,0,1,1,0,0,0\r\nI=1,0,0,1,0,0,0\r\nAT ...
by oskarion
Tuesday 01 December 2020 13:58
Forum: Python
Topic: Serial port listen
Replies: 3
Views: 961

Re: Serial port listen

Thank you very much :)
by oskarion
Tuesday 01 December 2020 2:13
Forum: Python
Topic: Serial port listen
Replies: 3
Views: 961

Serial port listen

Hello everyone :)
Maybe this time someone will help me.
How can I listen my serial port (rs232) from domoticz plugin? Is there some function like Receive? I need receive commands from my hardware connected to raspberry.
Thank you
by oskarion
Tuesday 24 November 2020 16:46
Forum: Python
Topic: Python plugin
Replies: 0
Views: 198

Python plugin

Hey everyone,
Can I read domoticz logs like:

Code: Select all

2020-11-22 20:30:02.220 (Sterownik) 4f 3d 31 2c 30 2c 31 2c 30 2c 30 2c 30 2c 30 0d 0a .. .. .. O=1,0,1,0,0,0,0..
and use this infomation in my plugin.py ?
by oskarion
Sunday 22 November 2020 20:38
Forum: Python
Topic: Pull out data from domoticz log to plugin
Replies: 0
Views: 235

Pull out data from domoticz log to plugin

Hello, I write domoticz plugin for cummunication with my controller by rs-232. How can I pull out informations from domoticz logs to my plugin? My controller returns informations about state of outputs when i change one of them by calling onCommand function e.g switch. 2020-11-22 20:30:02.119 ...