No, this is not correct.

The Simulator is only for Simulation as the name suggests - to show that weewx is - in principle - properly configured

You have to put *station_type = Interceptor *in the [Station] stanza in weewx.conf and install the interceptor driver, which creates an [Interceptor] stanza in weewx.conf

the Interceptor stanza should look like:

[Interceptor]

    driver = user.interceptor
    device_type = ecowitt-client
    port = 8090
    iface = eth0   #or wlan0 depending on the network interface you/your server use/s

You will need to program the customized section of your weather service section of your control either inside the console or via the WS View (Plus) app
which has to match the Interceptor settings in weewx.conf

e.g.

protocol Ecowitt enabled
server - IP address of your weewx server
path - "/" without ""
port 8090
interval 16 seconds

Depending on your Ecowitt station, not all sensors might be shown as the Interceptor driver on GitHub only deals with the basic sensors rain, wind, solar, rain, temperature/humidity and air pressure. You might need an extended version if you have more and different sensors, or - if you have a console/gateway with the GW1000/Ecowitt Gateway interface/API - use the weewx Ecowitt Gateway driver aka GW1000 API driver

Am 13.10.2022 um 21:30 schrieb Invisible Man:
Hi,
When I start Weewx, I encounter this error:
```
  File "/usr/share/weewx/weewx/wxservices.py", line 105, in __init__
    initialize=True)
  File "/usr/share/weewx/weewx/manager.py", line 597, in get_manager
    self.manager_cache[data_binding] = open_manager(manager_dict, initialize)
  File "/usr/share/weewx/weewx/manager.py", line 747, in open_manager
    manager_dict['schema'])
  File "/usr/share/weewx/weewx/manager.py", line 151, in open_with_create
    connection = weedb.connect(database_dict)
  File "/usr/share/weewx/weedb/__init__.py", line 86, in connect
    __import__(db_dict['driver'])
ModuleNotFoundError: No module named 'ecowitt'
```

I am not sure whether this means that*my configuration file is wrong*, *or if I am starting the service in an incorrect way*.

My configuration is quite special : I have *two weather stations* currently (an old one which I will remove in a couple of weeks, and a new one). The new one is an *Ecowitt* station, and I want to use the Weewx Interceptor for that.

As I have 2 weather stations, I need to start *2 weewx daemons*. I tried https://github.com/weewx/weewx/wiki/weewx-multi which did not exactly work in my case. So, basically, I copied the /etc/init.d/weewx script, modified it to read another config (/etc/weewx/ecowitt.conf) + use another pid file.

As for *my ecowitt.conf*, I am not totally sure it is correct either.
At the end I have specified this, I think this is okay (+I'll configure the customized ecowitt to use port 8090)?

[Interceptor]
    driver = user.interceptor
    device_type = ecowitt-client
    port = 8090

I am unsure of the beginning of the configuration: I have said to*use "simulator"*. Is that the correct way to do it?

[station]
...
station_type = Simulator

[Simulator]
    loop_interval = 2.5
    mode = simulator
    driver = weewx.drivers.simulator

Thanks for your help.
PS. This is Weewx 4.3.0 on a RPi4. I have installed the weewx-interceptor.

-- Axelle

--
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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/065f4932-4280-4cd2-ba8f-6b29240fffacn%40googlegroups.com <https://groups.google.com/d/msgid/weewx-user/065f4932-4280-4cd2-ba8f-6b29240fffacn%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/e51a8e92-f270-bdc3-0cfb-cc077021c368%40gmail.com.

Reply via email to