Compare commits

..

8 Commits

Author SHA1 Message Date
cb0c6c6e44 Quick release, because of error in bt-tether plugin.
Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
2025-01-18 10:30:52 +01:00
0ceeb94111 https://github.com/jayofelony/pwnagotchi/issues/300
It needed a comma at the end of the line. Silly me.

Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
2025-01-18 10:29:41 +01:00
6bf50a36dd Merge remote-tracking branch 'origin/noai' into noai 2025-01-18 10:28:09 +01:00
fb0fda4d0d https://github.com/jayofelony/pwnagotchi/issues/300
Revert, as this is the correct method.

Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
2025-01-18 10:27:59 +01:00
51f86d0286 Merge pull request #302 from fmatray/noai
Update ohcapi.py
2025-01-16 07:37:10 +01:00
614e844a51 https://github.com/jayofelony/pwnagotchi/issues/300
Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
2025-01-15 21:58:15 +01:00
fd16b2c94d Update ohcapi.py
catch an exception when internet is not available

Signed-off-by: Frédéric <fmatray@users.noreply.github.com>
2025-01-13 15:32:48 +01:00
a4d5930477 Set ohcapi to false
Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
2025-01-12 22:36:42 +01:00
4 changed files with 12 additions and 4 deletions

View File

@ -1 +1 @@
__version__ = '2.9.5' __version__ = '2.9.5.1'

View File

@ -54,10 +54,13 @@ main.plugins.memtemp.enabled = false
main.plugins.memtemp.scale = "celsius" main.plugins.memtemp.scale = "celsius"
main.plugins.memtemp.orientation = "horizontal" 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.api_key = "sk_your_api_key_here"
main.plugins.ohcapi.receive_email = "yes" 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.enabled = false
main.plugins.pisugarx.rotation = false main.plugins.pisugarx.rotation = false
main.plugins.pisugarx.default_display = "percentage" main.plugins.pisugarx.default_display = "percentage"

View File

@ -41,7 +41,7 @@ class BTTether(plugins.Plugin):
'bluetooth.type', 'panu', 'bluetooth.type', 'panu',
'bluetooth.bdaddr', f'{mac}', 'bluetooth.bdaddr', f'{mac}',
'ipv4.method', 'manual', '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.addresses', f'{address}',
'ipv4.gateway', f'{gateway}', 'ipv4.gateway', f'{gateway}',
'ipv4.route-metric', '100' 'ipv4.route-metric', '100'

View File

@ -70,7 +70,12 @@ class ohcapi(plugins.Plugin):
return return
# Check if the internet is still available by pinging Google # Check if the internet is still available by pinging Google
try:
response = requests.get('https://www.google.com', timeout=5) response = requests.get('https://www.google.com', timeout=5)
except requests.ConnectionError:
self.internet_active = False
return
if response.status_code == 200: if response.status_code == 200:
self.internet_active = True self.internet_active = True
else: else: