new: new ui.display.video.on_frame configuration to use fbi on framebuffer based screens

This commit is contained in:
Simone Margaritelli
2019-10-21 14:01:21 +02:00
parent e943cfad70
commit 41ea0e0747
2 changed files with 11 additions and 0 deletions

View File

@ -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: