It consists of a Wemos D1 clone, a 1.3" OLed display and a APDS-9960 gesture sensor.
The PV data is sent to the fixed IP address of the Wemos, and the string that is displaying the Start and Update times is also formatted and sent externally. Data is gathered by my RPi 3B, hosting Domoticz, Moquitto MQTT broker, and a script that reads the data every minute from the Zeversolar inverter.
Unfortunately, the hole has to be quite large or else the gesture sensor blocks the Wemos
Text is mostly in Dutch to conform to the WAF factor...
I'm using a self-built ESPEasy version, that includes my adjustments to the OLEDFramed and APDS-9960 plugins that are currently still in PR state. By default the APDS Gesture gain is set to a factor of 4, but it only works reliable when set to a lower gain.
There is only one rule for controlling the display by using the gesture sensor, as the display is set to turn off after 40 seconds to extend the lifetime of the display.
Code: Select all
on Gesture#Gesture do if %eventvalue% != [Variables#Gesture] TaskValueSet,10,2,%eventvalue% // Store last value if %eventvalue% != 4 oledframedcmd,frame,0 // Next frame, turns on and selects first frame when off endif if %eventvalue% = 4 // 'Down' gesture oledframedcmd,display,off // Turn off endif endif endon