Read the statement by Michael Teeuw here.
MMM-Fortune
-
I do not believe the api supports other languages.
-
@cowboysdude said in MMM-Fortune:
I do not believe the api supports other languages.
You are absolutely right. I checked the api and it is only in English.
-
@Fonfon said in MMM-Fortune:
Great job! is it possible to translate in a other language ?
Thanks. This API is only in English. However, if you can find one in your language I’ll be happy to give it a go.
-
I only see the square blocks where it is supposed to have the Chinese translation.
I used the Raspbian Jessie lite; Is there possibly a dependency that this needs that is not included?
-
First, thanks for trying out my module.
Second, thanks for pointing that out. I neglected to include
npm install
into the~/MagicMirror/modules/MMM-Fortune
in the installation instructions of the readme.Other than that, the characters are part of the data itself, as you can see.
[{"fortune":{"message":"One false move may lose the game.","id":"8"},"lesson":{"english":"English-language books","chinese":"英文书","pronunciation":"Yīngwén shū","id":""},"lotto":{"id":"","numbers":[33,55,18,30,17,10]}}]
Hopefully, the dependencies will fix your problem. If it is a problem with jesse lite then I really don’t know how to correct the issue.
Let me know how you make out.
-
I just downloaded and re-installed MMM-Fortune just to see what would happen. Before I even installed the dependencies it worked fine, albeit, on my windows dev machine. Installed the dependencies and again, it worked fine. I hope Jessie Lite, or the version of Pi you are using, isn’t the reason for the characters not being displayed.
Screenshot from installation WITHOUT dependencies installed
-
Thanks for the response. I ended up having to install the following
sudo apt-get install fonts-font-awesome
Then ran through the raspi-config again to set to None as default. Guess the Jessie Lite does not include the font your module needed.
-
@TheKyleJohnson90 said in MMM-Fortune:
fonts-font-awesome
That’s interesting… I was also unable to reproduce the issue you had. There must be something different within Raspbian Jessie lite that does this… not really sure but it’s a good catch!!
Did you do this in the root "MagicMirror’ or in the MMM-Fortune directory?
-
@TheKyleJohnson90 said in MMM-Fortune:
I ended up having to install the following
So, it’s working now?
-
@TheKyleJohnson90 said in MMM-Fortune:
Guess the Jessie Lite does not include the font your module needed.
I used default fonts from MagicMirror. They should have been included in your MagicMirror installation. shrug