Grid now sends language used to opwngrid.xyz

This commit is contained in:
Jeroen Oudshoorn
2023-11-16 22:01:26 +01:00
parent 6ef1d00209
commit 0d5844ae58

View File

@ -69,6 +69,7 @@ def update_data(last_session):
pass pass
enabled = [name for name, options in pwnagotchi.config['main']['plugins'].items() if enabled = [name for name, options in pwnagotchi.config['main']['plugins'].items() if
'enabled' in options and options['enabled']] 'enabled' in options and options['enabled']]
language = pwnagotchi.config['main']['lang']
data = { data = {
'session': { 'session': {
@ -87,7 +88,8 @@ def update_data(last_session):
'brain': brain, 'brain': brain,
'version': pwnagotchi.__version__, 'version': pwnagotchi.__version__,
'build': "Pwnagotchi-Torch by Jayofelony", 'build': "Pwnagotchi-Torch by Jayofelony",
'plugins': enabled 'plugins': enabled,
'language': language
} }
logging.debug("updating grid data: %s" % data) logging.debug("updating grid data: %s" % data)