jardiamj / wmII

GNU General Public License v3.0
4 stars 2 forks source link

Enable wmII to work with `wee_device` to access hardware configuration #11

Open jardiamj opened 1 year ago

jardiamj commented 1 year ago

Currently, you cannot use wee_device to access the hardware configuration of the Weather Monitor II station. This would be useful for:

In order to make the driver compatible with wee_device, we need to implement a configurator class and implement the configurator_loader method, e.g.:

def configurator_loader(config_dict):
    return WMIIConfigurator()
class WMIIConfigurator(weewx.drivers.AbstractConfigurator):
   ...
   def description(self):
      ...
   def usage:
      ...
   def add_options(self, parser):
      ...
   def do_options(self, options, parser, config_dict, prompt):
      ...

We can use the Vantage driver as an example. The file can be found under /usr/share/weewx/weewx/drivers/ in Debian systems.

jardiamj commented 1 year ago

This issue was created as a result of a message posted by: @operaphile

Most of the logic to implement the feature is already in the driver. I will try to address it but am quite busy these days. If someone else wants to pick it up, please be my guest.

operaphile commented 1 year ago

NP. thanks anyway

On Feb 19, 2023, at 4:00 AM, Jardi Martinez @.***> wrote:

 This issue was created as a result of a message posted by: @operaphile

Most of the logic to implement the feature is already in the driver. I will try to address it but am quite busy these days. If someone else wants to take up on it, please be my guest.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.

jardiamj commented 1 year ago

@operaphile, You also wrote that the driver is not working after a reboot. What do you have in the logs?

ottyscom commented 1 year ago

Hello, The driver works fine but the pressure vdata was not showen at weewx. Why?

ardu1 commented 8 months ago

Hello, did you solve the Problem and is your system now running? I want also to use my WMII with a raspberry pi. How did you connect the serial port to the raspberry USB port?