Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting double plugin in plugin list and LOADING.... on homepage
#5
Dan,
 
   Unfortunately, a the emulators only work in the python environment where GPIO are replaced with "fake" GPIO requiring me to change gpio_pins.py.

 However, I was able to get it working with 2 simple changes.
      1) Added a new global to gv.py called "wx_rs" to pass the result of the weather station rain sensor output to SIP.
      2) Change the except NameError: (line 265) in the check_rain module  of helpers.py to replace the "pass" with:
                         plugin_list = [item[0] for item in gv.plugin_menu]
                         if "Weewx Rain Sensor" in plugin_list :
                                   rain_sensor = gv.sd["wx_rs"]
                         else :
                                   pass

If the sensor plugin is in the active plugin menu sets the rain_sensor variable to the global from the plugin, if not just does the same as before when no gpio are present for rain sensor.
Reply


Messages In This Thread
RE: Getting double plugin in plugin list and LOADING.... on homepage - by tutqiunnh - 2023 Sep 11, 02:31 PM

Forum Jump:


Users browsing this thread: 5 Guest(s)