You can view the JSON data more easily by pasting it in json-csv.com
-
[solved] is a possibility to style button layout or insert icons for the frontend?
-
With pimatic 0.9 is it also possible to set the language?
I would like to set it to NL but i don’t seem to get it working. -
sure, should be working as usual. having locale for german running without problems.
set it as follows on top of your config :{ "settings": { "locale": "nl", ...
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
if i do so i get the following error
error [pimatic]: Invalid config: Missing property “allowedOrigin” in /settings/cors
-
the cors is another issue. this has nothing to do with the locale settings
i just changed to to from de nl and it’s working
you can ignore the cors “warning” or change the config like that
"cors": { "allowedOrigin": "*" },
the cors setup will be reviewed by @mwittig when he will find some time
i am not sure if the*
will come up with safety issues … ??
my knowledge about cors lags some important information on thatpimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
I added it in the config like this
{
“settings”: {
“locale”: “nl”,
“debug”: true,
“logLevel”: “debug”,
“httpServer”: {
“enabled”: true,
“port”: 80
},should this be good. the buttons are still in english
-
reload the page or clear the cache if not already done
next thing to check is if the locale files are on your pi
checkls /home/pi/pimatic-app/node_modules/pimatic/locales
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
that did the thrick. Thank yo very much!!
-
nice! you’re welcome
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
I have created a Danish language file for Pimatic. It might not be perfect yet, but if someone wants to use it as a foundation for their own, then here you go.