Hi Unfortunately, it seems not possible to have 2 weewx instances using the same port:
May 21 08:13:52 GAND weewx-billeder[17360] INFO user.interceptor: driver version is 0.53 May 21 08:13:52 GAND weewx-billeder[17360] INFO user.interceptor: device type: ecowitt-client May 21 08:13:52 GAND weewx-billeder[17360] INFO user.interceptor: mode is listen May 21 08:13:52 GAND weewx-billeder[17360] INFO user.interceptor: listen on :8000 May 21 08:13:52 GAND weewx-billeder[17360] ERROR weewx.engine: Import of driver failed: [Errno 98] Address already in use (<class 'OSError'>) May 21 08:13:52 GAND weewx-billeder[17360] CRITICAL weewx.engine: **** Traceback (most recent call last): May 21 08:13:52 GAND weewx-billeder[17360] CRITICAL weewx.engine: **** File "/home/weewx/bin/weewx/engine.py", line 103, in setupStation May 21 08:13:52 GAND weewx-billeder[17360] CRITICAL weewx.engine: **** self.console = loader_function(config_dict, self) May 21 08:13:52 GAND weewx-billeder[17360] CRITICAL weewx.engine: **** File "/home/weewx/bin/user/interceptor.py", line 315, in loader May 21 08:13:52 GAND weewx-billeder[17360] CRITICAL weewx.engine: **** return InterceptorDriver(**config_dict[DRIVER_NAME]) May 21 08:13:52 GAND weewx-billeder[17360] CRITICAL weewx.engine: **** File "/home/weewx/bin/user/interceptor.py", line 2523, in __init__ May 21 08:13:52 GAND weewx-billeder[17360] CRITICAL weewx.engine: **** self._device = self.DEVICE_TYPES.get(self._device_type)(**stn_dict) May 21 08:13:52 GAND weewx-billeder[17360] CRITICAL weewx.engine: **** File "/home/weewx/bin/user/interceptor.py", line 2298, in __init__ May 21 08:13:52 GAND weewx-billeder[17360] CRITICAL weewx.engine: **** super(EcowittClient, self).__init__( May 21 08:13:52 GAND weewx-billeder[17360] CRITICAL weewx.engine: **** File "/home/weewx/bin/user/interceptor.py", line 429, in __init__ May 21 08:13:52 GAND weewx-billeder[17360] CRITICAL weewx.engine: **** self._server = Consumer.TCPServer(address, port, handler) May 21 08:13:52 GAND weewx-billeder[17360] CRITICAL weewx.engine: **** File "/home/weewx/bin/user/interceptor.py", line 584, in __init__ May 21 08:13:52 GAND weewx-billeder[17360] CRITICAL weewx.engine: **** TCPServer.__init__(self, (address, int(port)), handler) May 21 08:13:52 GAND weewx-billeder[17360] CRITICAL weewx.engine: **** File "/usr/lib/python3.8/socketserver.py", line 452, in __init__ May 21 08:13:52 GAND weewx-billeder[17360] CRITICAL weewx.engine: **** self.server_bind() May 21 08:13:52 GAND weewx-billeder[17360] CRITICAL weewx.engine: **** File "/usr/lib/python3.8/socketserver.py", line 466, in server_bind May 21 08:13:52 GAND weewx-billeder[17360] CRITICAL weewx.engine: **** self.socket.bind(self.server_address) May 21 08:13:52 GAND weewx-billeder[17360] CRITICAL weewx.engine: **** OSError: [Errno 98] Address already in use May 21 08:13:52 GAND weewx-billeder[17360] CRITICAL __main__: Unable to load driver: [Errno 98] Address already in use May 21 08:13:52 GAND weewx-billeder[17360] CRITICAL __main__: **** Exiting... Gert On Thursday, May 21, 2020 at 7:52:53 AM UTC+2, Gert Andersen wrote: > > Hi > > Yes multiple weewx instances listening to the same port. I have 2 weewx > instances serving two different domain(different languages). It could be > fine, if they can use the same port. Otherwise I need 2 GW1000 devices > using different ports or..? > > Gert > > On Thursday, May 21, 2020 at 6:31:52 AM UTC+2, gjr80 wrote: >> >> Hi Gert, >> >> Do you mean multiple WeeWX instances on the same machine listening to the >> same port? To be truthful I don't know but I would have expected there >> would be some contention there somewhere. It's an easy enough experiment to >> do though, you just need another WeeWX config file with the appropriate >> settings changed <https://github.com/weewx/weewx/wiki/weewx-multi> and >> then run directly. >> >> Gary >> >> On Thursday, 21 May 2020 14:09:56 UTC+10, Gert Andersen wrote: >>> >>> Hi Gary >>> >>> Thanks, working now. >>> >>> Do you know if I can more weewx instances running using the same port >>> 8000? >>> >>> Gert >>> >>> On Thursday, May 21, 2020 at 1:57:30 AM UTC+2, gjr80 wrote: >>>> >>>> Hi, >>>> >>>> Not an error as such but an informational log entry that the >>>> interceptor driver did not recognise PASSKEY. It just happens that this >>>> unfortunately causes the passkey to be logged in full and unobfuscated. I >>>> have submitted a PR >>>> <https://github.com/matthewwall/weewx-interceptor/pull/64> to Matthew >>>> to fix the issue, I am sure he will get around to it in due course. In the >>>> interim, you can fix the problem by applying the change to >>>> interceptor.py >>>> <https://github.com/matthewwall/weewx-interceptor/pull/64/commits/00bdecdc1822d7deaa7c41f20dfc4c30a349936d> >>>> >>>> that is included in the PR. >>>> >>>> Gary >>>> >>>> On Thursday, 21 May 2020 07:36:02 UTC+10, Gert Andersen wrote: >>>> >>>>> Hi >>>>> >>>>> Weewx4.0 >>>>> Interceptor 0.54 >>>>> Ubuntu 20.04 >>>>> GW1000 >>>>> >>>>> I get this error: >>>>> INFO user.interceptor: unrecognized parameter >>>>> b'PASSKEY=5E7384C4921D13C0A8572F8XXXXXXXXXXX >>>>> all the time. I have registered the device with Ecowitt.net. >>>>> >>>>> Can I do anything about that? >>>>> >>>>> One more question, can I have more weewx instances listen to same >>>>> interceptor port or is the port locked with the first instance? >>>>> >>>>> Thanks >>>>> Gert >>>>> >>>>> -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/8489e642-c7c2-40d9-98fe-fe8e3b7ace87%40googlegroups.com.