-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Language setting #30
Comments
To bad, this workaround is not working for me. Are you sure its working with your code from above? |
Positive! I am very sure.
BTW. Not tested now, but from my earlier experience, I guess that when the language is not set here, it defaults to English. This because I discovered the language had changed from Dutch to English when I started to use the plugin without this language setting.. |
Ohh ! I did not understand why the language changed on MELCloud App ! This is the reason ! So in plugin.py (I'm using #27 too), find :
On second post_fields line, I changed fourth value from "1" to "7" (french language), and now it's OK. Thanks a lot |
I am still using Version: 0.7.7 where the melcloud_login is defined as in my first post. |
Thank You!!
Replacing "1" (at the end of the line) with "12" (Dutch) did the trick!! Thanks again!! |
On the main Code <> page it is still:
I will stick to that version for now, because it is working well for me, with my language edit. |
Thanks for the update of this plugin. (I was still on 0.7.3, having issues to do settings from Domoticz).
Now used the plugin.py from #27
I use it in combination with the temperature from EVOhome plugin,
I found out that using the plugin changed the language from Dutch to English in the MELcloud app.
This can be solved by adding the wanted language=12 (for Dutch) to the login arguments like this:
def melcloud_login(self):
data = "AppVersion=1.9.3.0&Language=12&Email={0}&Password={1}".format(Parameters["Username"], Parameters["Password"])
self.melcloud_send_data(self.melcloud_urls["login"], data, "LOGIN")
return True
May be it can be included?
For completeness here a list with Language codes that I have found earlier.
Language codes:
0 = en English
1 = bg Български
2 = cs Čeština
3 = da Dansk
4 = de Deutsch
5 = et Eesti
6 = es Español
7 = fr Français
8 = hy Հայերեն
9 = lv Latviešu
10 = lt Lietuvių
11 = hu Magyar
12 = nl Nederlands
13 = no Norwegian
14 = pl Polski
15 = pt Português
16 = ru Русский
17 = fi Suomi
18 = sv Svenska
19 = it Italiano
20 = uk Українська
21 = tr Türkçe
22 = el Ελληνικά
23 = hr Hrvatski
24 = ro Română
25 = sl Slovenščina
Best regards
Jan Peppink, https://ict.peppink.nl
The text was updated successfully, but these errors were encountered: