From 81ed72546931f2d4bc39fc28eb3b4270548dd9cc Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Thu, 16 Nov 2023 06:30:12 +0100 Subject: [PATCH] multiple changes --- .idea/misc.xml | 2 +- .idea/pwnagotchi.iml | 2 +- builder/pwnagotchi.json.pkr.hcl | 2 +- builder/raspberrypi32.yml | 4 +- builder/raspberrypi64.yml | 4 +- pwnagotchi/locale/mt/LC_MESSAGES/voice.po | 253 ++++++++++++++++++++++ pwnagotchi/ui/view.py | 2 +- 7 files changed, 261 insertions(+), 8 deletions(-) create mode 100644 pwnagotchi/locale/mt/LC_MESSAGES/voice.po diff --git a/.idea/misc.xml b/.idea/misc.xml index b182fa76..6a0f074b 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,5 +3,5 @@ - + \ No newline at end of file diff --git a/.idea/pwnagotchi.iml b/.idea/pwnagotchi.iml index b6766f65..ec511368 100644 --- a/.idea/pwnagotchi.iml +++ b/.idea/pwnagotchi.iml @@ -4,7 +4,7 @@ - + diff --git a/builder/pwnagotchi.json.pkr.hcl b/builder/pwnagotchi.json.pkr.hcl index 93fa506e..84e7a0bb 100644 --- a/builder/pwnagotchi.json.pkr.hcl +++ b/builder/pwnagotchi.json.pkr.hcl @@ -3,7 +3,7 @@ packer { required_plugins { #arm = { - # version = ">= 1.0.0" + # version = "1.0.0" # source = "github.com/cdecoux/builder-arm" #} ansible = { diff --git a/builder/raspberrypi32.yml b/builder/raspberrypi32.yml index 1a68dab5..d36012da 100644 --- a/builder/raspberrypi32.yml +++ b/builder/raspberrypi32.yml @@ -447,8 +447,8 @@ path: /etc/rc.local insertbefore: "exit 0" block: | - if ! /opt/vc/bin/tvservice -s | egrep 'HDMI|DVI'; then - /opt/vc/bin/tvservice -o + if ! /usr/bin/tvservice -s | egrep 'HDMI|DVI'; then + /usr/bin/tvservice -o fi - name: create /etc/pwnagotchi folder diff --git a/builder/raspberrypi64.yml b/builder/raspberrypi64.yml index d7177b43..17a6edf8 100644 --- a/builder/raspberrypi64.yml +++ b/builder/raspberrypi64.yml @@ -444,8 +444,8 @@ path: /etc/rc.local insertbefore: "exit 0" block: | - if ! /opt/vc/bin/tvservice -s | egrep 'HDMI|DVI'; then - /opt/vc/bin/tvservice -o + if ! /usr/bin/tvservice -s | egrep 'HDMI|DVI'; then + /usr/bin/tvservice -o fi - name: create /etc/pwnagotchi folder diff --git a/pwnagotchi/locale/mt/LC_MESSAGES/voice.po b/pwnagotchi/locale/mt/LC_MESSAGES/voice.po new file mode 100644 index 00000000..ab124f79 --- /dev/null +++ b/pwnagotchi/locale/mt/LC_MESSAGES/voice.po @@ -0,0 +1,253 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-11-15 09:15+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: Maltese\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "ZzzzZZzzzzZzzz" +msgstr "" + +msgid "Hi, I'm Pwnagotchi! Starting ..." +msgstr "" + +msgid "New day, new hunt, new pwns!" +msgstr "" + +msgid "Hack the Planet!" +msgstr "" + +msgid "AI ready." +msgstr "" + +msgid "The neural network is ready." +msgstr "" + +msgid "Generating keys, do not turn off ..." +msgstr "" + +#, python-brace-format +msgid "Hey, channel {channel} is free! Your AP will say thanks." +msgstr "" + +msgid "Reading last session logs ..." +msgstr "" + +#, python-brace-format +msgid "Read {lines_so_far} log lines so far ..." +msgstr "" + +msgid "I'm bored ..." +msgstr "" + +msgid "Let's go for a walk!" +msgstr "" + +msgid "This is the best day of my life!" +msgstr "" + +msgid "Shitty day :/" +msgstr "" + +msgid "I'm extremely bored ..." +msgstr "" + +msgid "I'm very sad ..." +msgstr "" + +msgid "I'm sad" +msgstr "" + +msgid "Leave me alone ..." +msgstr "" + +msgid "I'm mad at you!" +msgstr "" + +msgid "I'm living the life!" +msgstr "" + +msgid "I pwn therefore I am." +msgstr "" + +msgid "So many networks!!!" +msgstr "" + +msgid "I'm having so much fun!" +msgstr "" + +msgid "My crime is that of curiosity ..." +msgstr "" + +#, python-brace-format +msgid "Hello {name}! Nice to meet you." +msgstr "" + +#, python-brace-format +msgid "Yo {name}! Sup?" +msgstr "" + +#, python-brace-format +msgid "Hey {name} how are you doing?" +msgstr "" + +#, python-brace-format +msgid "Unit {name} is nearby!" +msgstr "" + +#, python-brace-format +msgid "Uhm ... goodbye {name}" +msgstr "" + +#, python-brace-format +msgid "{name} is gone ..." +msgstr "" + +#, python-brace-format +msgid "Whoops ... {name} is gone." +msgstr "" + +#, python-brace-format +msgid "{name} missed!" +msgstr "" + +msgid "Missed!" +msgstr "" + +msgid "Good friends are a blessing!" +msgstr "" + +msgid "I love my friends!" +msgstr "" + +msgid "Nobody wants to play with me ..." +msgstr "" + +msgid "I feel so alone ..." +msgstr "" + +msgid "Where's everybody?!" +msgstr "" + +#, python-brace-format +msgid "Napping for {secs}s ..." +msgstr "" + +msgid "Zzzzz" +msgstr "" + +#, python-brace-format +msgid "ZzzZzzz ({secs}s)" +msgstr "" + +msgid "Good night." +msgstr "" + +msgid "Zzz" +msgstr "" + +#, python-brace-format +msgid "Waiting for {secs}s ..." +msgstr "" + +#, python-brace-format +msgid "Looking around ({secs}s)" +msgstr "" + +#, python-brace-format +msgid "Hey {what} let's be friends!" +msgstr "" + +#, python-brace-format +msgid "Associating to {what}" +msgstr "" + +#, python-brace-format +msgid "Yo {what}!" +msgstr "" + +#, python-brace-format +msgid "Just decided that {mac} needs no WiFi!" +msgstr "" + +#, python-brace-format +msgid "Deauthenticating {mac}" +msgstr "" + +#, python-brace-format +msgid "Kickbanning {mac}!" +msgstr "" + +#, python-brace-format +msgid "Cool, we got {num} new handshake{plural}!" +msgstr "" + +#, python-brace-format +msgid "You have {count} new message{plural}!" +msgstr "" + +msgid "Oops, something went wrong ... Rebooting ..." +msgstr "" + +#, python-brace-format +msgid "Uploading data to {to} ..." +msgstr "" + +#, python-brace-format +msgid "Kicked {num} stations\n" +msgstr "" + +msgid "Made >999 new friends\n" +msgstr "" + +#, python-brace-format +msgid "Made {num} new friends\n" +msgstr "" + +#, python-brace-format +msgid "Got {num} handshakes\n" +msgstr "" + +msgid "Met 1 peer" +msgstr "" + +#, python-brace-format +msgid "Met {num} peers" +msgstr "" + +#, python-brace-format +msgid "" +"I've been pwning for {duration} and kicked {deauthed} clients! I've also met " +"{associated} new friends and ate {handshakes} handshakes! #pwnagotchi " +"#pwnlog #pwnlife #hacktheplanet #skynet" +msgstr "" + +msgid "hours" +msgstr "" + +msgid "minutes" +msgstr "" + +msgid "seconds" +msgstr "" + +msgid "hour" +msgstr "" + +msgid "minute" +msgstr "" + +msgid "second" +msgstr "" diff --git a/pwnagotchi/ui/view.py b/pwnagotchi/ui/view.py index e148f189..04742139 100644 --- a/pwnagotchi/ui/view.py +++ b/pwnagotchi/ui/view.py @@ -56,7 +56,7 @@ class View(object): 'face': Text(value=faces.SLEEP, position=(config['ui']['faces']['position_x'], config['ui']['faces']['position_y']), color=BLACK, font=fonts.Huge, png=config['ui']['faces']['png']), - 'friend_face': Text(value=None, position=self._layout['friend_face'], font=fonts.Bold, color=BLACK), + # 'friend_face': Text(value=None, position=self._layout['friend_face'], font=fonts.Bold, color=BLACK), 'friend_name': Text(value=None, position=self._layout['friend_name'], font=fonts.BoldSmall, color=BLACK), 'name': Text(value='%s>' % 'pwnagotchi', position=self._layout['name'], color=BLACK, font=fonts.Bold),