This commit is contained in:
Jeroen Oudshoorn
2024-01-05 14:17:51 +01:00
parent 0931a8c10a
commit e28261663f
4 changed files with 13 additions and 3 deletions

View File

@ -8,7 +8,9 @@ from functools import wraps
# https://stackoverflow.com/questions/14888799/disable-console-messages-in-flask-server # https://stackoverflow.com/questions/14888799/disable-console-messages-in-flask-server
logging.getLogger('werkzeug').setLevel(logging.ERROR) logging.getLogger('werkzeug').setLevel(logging.ERROR)
os.environ['WERKZEUG_RUN_MAIN'] = 'true'
# Set to false, on bookworm it wouldn't load the flask server for webui
os.environ['WERKZEUG_RUN_MAIN'] = 'false'
import pwnagotchi import pwnagotchi
import pwnagotchi.grid as grid import pwnagotchi.grid as grid

View File

@ -11,8 +11,8 @@ from pwnagotchi.ui.web.handler import Handler
# https://stackoverflow.com/questions/14888799/disable-console-messages-in-flask-server # https://stackoverflow.com/questions/14888799/disable-console-messages-in-flask-server
logging.getLogger('werkzeug').setLevel(logging.ERROR) logging.getLogger('werkzeug').setLevel(logging.ERROR)
# Commented this out, on bookworm it wouldnt load the flask server for webui # Set to false, on bookworm it wouldn't load the flask server for webui
os.environ['WERKZEUG_RUN_MAIN'] = 'true' os.environ['WERKZEUG_RUN_MAIN'] = 'false'
class Server: class Server:

View File

@ -26,7 +26,11 @@ dependencies = [
"shimmy; platform_machine!=\"armv6l\"", "shimmy; platform_machine!=\"armv6l\"",
"smbus2", "smbus2",
"spidev", "spidev",
"stable_baselines3; platform_machine!=\"armv6l\"",
"stable_baselines3==1.8.0; platform_machine==\"armv6l\"",
"toml", "toml",
"torch==2.0.1",
"torchvision==0.15.2",
"tweepy", "tweepy",
"websockets" "websockets"
] ]

View File

@ -18,6 +18,10 @@ scapy
shimmy; platform_machine!="armv6l" shimmy; platform_machine!="armv6l"
smbus2 smbus2
spidev spidev
stable_baselines3; platform_machine!="armv6l"
stable_baselines3==1.8.0; platform_machine=="armv6l"
toml toml
torch==2.0.1
torchvision==0.15.2
tweepy tweepy
websockets websockets