mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
cb0c6c6e44 | |||
0ceeb94111 | |||
6bf50a36dd | |||
fb0fda4d0d | |||
51f86d0286 | |||
614e844a51 | |||
fd16b2c94d | |||
a4d5930477 |
@ -1 +1 @@
|
||||
__version__ = '2.9.5'
|
||||
__version__ = '2.9.5.1'
|
||||
|
@ -54,10 +54,13 @@ main.plugins.memtemp.enabled = false
|
||||
main.plugins.memtemp.scale = "celsius"
|
||||
main.plugins.memtemp.orientation = "horizontal"
|
||||
|
||||
main.plugins.ohcapi.enabled = true
|
||||
main.plugins.ohcapi.enabled = false
|
||||
main.plugins.ohcapi.api_key = "sk_your_api_key_here"
|
||||
main.plugins.ohcapi.receive_email = "yes"
|
||||
|
||||
main.plugins.pwndroid.enabled = false
|
||||
main.plugins.pwndroid.display = false # show coords on display
|
||||
|
||||
main.plugins.pisugarx.enabled = false
|
||||
main.plugins.pisugarx.rotation = false
|
||||
main.plugins.pisugarx.default_display = "percentage"
|
||||
|
@ -41,7 +41,7 @@ class BTTether(plugins.Plugin):
|
||||
'bluetooth.type', 'panu',
|
||||
'bluetooth.bdaddr', f'{mac}',
|
||||
'ipv4.method', 'manual',
|
||||
'ipv4.dns', '8.8.8.8;1.1.1.1;'
|
||||
'ipv4.dns', '8.8.8.8;1.1.1.1;',
|
||||
'ipv4.addresses', f'{address}',
|
||||
'ipv4.gateway', f'{gateway}',
|
||||
'ipv4.route-metric', '100'
|
||||
|
@ -70,7 +70,12 @@ class ohcapi(plugins.Plugin):
|
||||
return
|
||||
|
||||
# Check if the internet is still available by pinging Google
|
||||
response = requests.get('https://www.google.com', timeout=5)
|
||||
try:
|
||||
response = requests.get('https://www.google.com', timeout=5)
|
||||
except requests.ConnectionError:
|
||||
self.internet_active = False
|
||||
return
|
||||
|
||||
if response.status_code == 200:
|
||||
self.internet_active = True
|
||||
else:
|
||||
|
Reference in New Issue
Block a user