mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
new: new ui.display.video.on_frame configuration to use fbi on framebuffer based screens
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import os
|
||||
import logging
|
||||
import pwnagotchi.plugins as plugins
|
||||
|
||||
@ -60,6 +61,12 @@ class Display(View):
|
||||
|
||||
def _on_view_rendered(self, img):
|
||||
web.update_frame(img)
|
||||
try:
|
||||
if self._config['ui']['display']['video']['on_frame'] != '':
|
||||
os.system(self._config['ui']['display']['video']['on_frame'])
|
||||
except Exception as e:
|
||||
logging.error("%s" % e)
|
||||
|
||||
if self._enabled:
|
||||
self._canvas = (img if self._rotation == 0 else img.rotate(self._rotation))
|
||||
if self._implementation is not None:
|
||||
|
Reference in New Issue
Block a user