Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using moisture sensors to control programs
#9
Quote:The signals (blinker signals) are notifications broadcast by SIP that can be used by plugins to trigger functions but they do not trigger functions in the core sip code.

So long as overriding gv.rs is the correct way to suppress a program I'm good.

Quote:As far as determining what triggered a program the gv.pon variable should hold the program number but it does not work for Run Now or Run Once. I will look into adding those.

There are 3 special program numbers:
98 = Run-once Program
99 = Manual mode
100 = Node-red

I will try to add a way to determine if a program was started with Run Now rather than by the start time.

Thanks, that will be very helpful.

In the meantime I'm making progress and I have two basic plugins (Moisture Sensor Control / Moisture Sensor Data MQTT) that:
  • Gather moisture readings regularly from sensors via MQTT
  • Assign afore mentioned sensors to stations
  • Suppress programs based on the assigned sensor value
but there is still much to do:
  • UI data validation and backend error handling
  • Add missing functionality like Reading path / Enable / Retention period / Stale reading 
Can you recommend any plugins with good examples of UI data validation?

   
   
Reply


Messages In This Thread
RE: Using moisture sensors to control programs - by cdesouza - 2024 Jan 19, 08:36 PM

Forum Jump:


Users browsing this thread: 14 Guest(s)