martenjacobs / py-otgw-mqtt

Python OTGW MQTT bridge
MIT License
9 stars 16 forks source link

You're right. I see my last commit introduced a syntax error. Major oops on my part. Could you please try again? #9

Closed tumsel closed 5 years ago

tumsel commented 5 years ago

Hi Marten, thanks a lot for your wonderful tool. I installed it as you described but i think, i dont have enough knowledge and information. Can you tell me where I can start for deeper information? When I started the tool I got this error message: Jan 02 19:48:58 raspberrypi systemd[1]: py-otgw-mqtt.service: Main process exited, code=exited, status=1/FAILURE Jan 02 19:48:58 raspberrypi systemd[1]: py-otgw-mqtt.service: Unit entered failed state. Jan 02 19:48:58 raspberrypi systemd[1]: py-otgw-mqtt.service: Failed with result 'exit-code'. Jan 02 20:47:26 raspberrypi systemd[1]: Started Python OTGW MQTT bridge. Jan 02 20:47:27 raspberrypi python[2963]: INFO:main:Initializing MQTT Jan 02 20:47:27 raspberrypi python[2963]: INFO:main:Initializing OTGW Jan 02 20:47:27 raspberrypi python[2963]: INFO:main:Running Jan 02 20:47:27 raspberrypi python[2963]: INFO:main:Connected with result code 0

martenjacobs commented 5 years ago

The last few lines seem to suggest the service is running properly. Can you please check if it is? It’s possible systemd started it up too early and then retried later

tumsel commented 5 years ago

I dont know exactly what I have to check. Could you pls. explain? I startet the py-otgw-mqtt.service manually via a restart. So it should be the latest startet service. In my understanding your tool directly communicates with the serial port(USB) with the otgw (and not with the OTmonitor). So the OTmonitor is not running. Hopefully this is right. What do you mean by saying: "started it up too early"? When is "too early"? What should happen before that? Do you know a good site to get a deeper understanding of OTGW an MQtt (working together)?

tumsel commented 5 years ago

Now it works fine. Thanks for your support!