Closed mendoitarou closed 1 month ago
Calmly looking at the Python error, I found the cause.
The cause appears to be fonts.
In order to use Japanese, I changed the font to the one described on the website I referred to, but that seems to have been a bad idea.
Since it can be used in the original pwnagotchi?, I will change the content of the issue to ‘Japanese cannot be used’.
(Maybe I will pull request the code to support Japanese).
The reason it could not be set to Japanese was that the configurations were incorrect.
It is ja, not jp.
However, it does not seem to be enough.
The font does not support Japanese, so it becomes a tofu (□).
In the next step, we installed and configured a font that supports Japanese.
Install the IPA font.
Download the IPA fonts from the official page.
Transfer the downloaded, zipped file to the RaspberryPi using scp or similar.
Unzip the file using the unzip command.
(Example: unzip IPAexfont00401.zip
)
Move the directory created by the unzip to /usr/share/fonts/truetype/
.
(Example: mv IPAexfont00401 /usr/share/fonts/truetype/
)
Run the following command to update the font cache.
sudo fc-cache -fv
Specify ‘ipaexg’ as the font in config.toml. (This is called a gothic font.)
(Example ui.font.name = "ipaexg"
)
This allows you to support the Japanese language.
However, some texts had not yet been translated into Japanese.
I am going to translate the texts that are not yet in Japanese and make a pull request.
(The text so far has been translated from Japanese to English using the DeepL translation tool.)
Close the issue, as the problem has been self-resolved.
Hallo,
Running latest image v2.8.9(32bit) on Raspberry Pi zero WH with waveshare V4
Display - https://www.waveshare.com/2.13inch-e-paper-hat.htm Got a V4 sticker on the bottom
Nothing on the display.
Also, webui is not working.
I'm getting some kind of Python error, but I don't understand what it is.
Please help.
The following commands returned the following logs.
Command
sudo systemctl stop pwnagotchi && sudo pwnagotchi --debug
Log
Config
/etc/pwnagotchi/config.toml
Thanks!