Where can I edit the script behind the function I created using Display: Generic LCD 20x4 (I2C)? I want to add support for a PIR sensor to only enable the backlight when there is motion.
I am on version 8.16.0
Thank you in advance!
Where can I edit the script behind the function I created using Display: Generic LCD 20x4 (I2C)? I want to add support for a PIR sensor to only enable the backlight when there is motion.
I am on version 8.16.0
Thank you in advance!
The Camera Function is located here: Mycodo/mycodo/functions/camera_libcamera.py at 96c5463feb624a777e9eb165ea1ce3f86b9cc458 · kizniche/Mycodo · GitHub
I apologize, but I am unsure how the camera function helps. I have an 20x4 LCD display that has software controllable backlight. I used the function Display: Generic LCD20x40 (I2C) which works great. The next step is to use a PIR motion sensor to only turn on the backlight when motion is detected. When I use a function like Conditional Controller, the script editing is right there. Where do I go to edit the display function?
Thank you in advance for your help.
Cameras, as a controller type, are deprecated. They can’t be created in any recent release of Mycodo, since about 2 or more years ago. All new controllers follow the modular framework that allows all code/html/etc. to be contained in a single modular file (like I linked above). There is only one camera Function, above. If you want to make code changes on deprecated features, that’s something you’ll have to do on your own. You can look in Mycodo/mycodo/devices at master · kizniche/Mycodo · GitHub for Camera features that were preserved for backwards compatibility with old releases.
My apologies, I was misinterpreting this the entire time. I meant to link to the LCD Function, not the Camera Function. Similar to the Camera page, the LCD page has been deprecated, and like Cameras, the LCD functionality has been moved to the Functions, for which there are several LCD functions, which you can browse in the Functions directory, with the names starting with “display”. You might be referring to this module.