mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Update auto-update.py for Bookworm
This commit is contained in:
@ -11,7 +11,7 @@ from pwnagotchi import plugins
|
|||||||
import pwnagotchi.ui.faces as faces
|
import pwnagotchi.ui.faces as faces
|
||||||
from pwnagotchi.bettercap import Client
|
from pwnagotchi.bettercap import Client
|
||||||
|
|
||||||
from pwnagotchi.ui.components import Text
|
from pwnagotchi.ui.components import LabeledValue
|
||||||
from pwnagotchi.ui.view import BLACK
|
from pwnagotchi.ui.view import BLACK
|
||||||
import pwnagotchi.ui.fonts as fonts
|
import pwnagotchi.ui.fonts as fonts
|
||||||
|
|
||||||
@ -399,7 +399,8 @@ class FixServices(plugins.Plugin):
|
|||||||
pos = (ui.width() / 2 + 35, ui.height() - 11)
|
pos = (ui.width() / 2 + 35, ui.height() - 11)
|
||||||
|
|
||||||
logging.info("Got here")
|
logging.info("Got here")
|
||||||
ui.add_element('brcmfmac_status', Text(color=BLACK, value='--', position=pos, font=fonts.Small))
|
ui.add_element('brcmfmac_status', LabeledValue(color=BLACK, label='', value='--', position=pos,
|
||||||
|
label_font=fonts.Small, text_font=fonts.Small))
|
||||||
|
|
||||||
# called when the ui is updated
|
# called when the ui is updated
|
||||||
def on_ui_update(self, ui):
|
def on_ui_update(self, ui):
|
||||||
|
@ -16,7 +16,7 @@ from pwnagotchi.ui.components import *
|
|||||||
from pwnagotchi.ui.state import State
|
from pwnagotchi.ui.state import State
|
||||||
from pwnagotchi.voice import Voice
|
from pwnagotchi.voice import Voice
|
||||||
|
|
||||||
WHITE = 0xff
|
WHITE = 0xFF
|
||||||
BLACK = 0x00
|
BLACK = 0x00
|
||||||
ROOT = None
|
ROOT = None
|
||||||
|
|
||||||
@ -34,7 +34,10 @@ class View(object):
|
|||||||
global WHITE
|
global WHITE
|
||||||
global BLACK
|
global BLACK
|
||||||
WHITE = 0x00
|
WHITE = 0x00
|
||||||
BLACK = 0xff
|
BLACK = 0xFF
|
||||||
|
|
||||||
|
WHITE = 0xFF
|
||||||
|
BLACK = 0x00
|
||||||
|
|
||||||
self._agent = None
|
self._agent = None
|
||||||
self._render_cbs = []
|
self._render_cbs = []
|
||||||
|
Reference in New Issue
Block a user