Darksky language
Moderators: leecollings, remb0
-
- Posts: 21
- Joined: Monday 05 October 2015 9:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Darksky language
Hi,
the darksky forecast messages are available in many different languages e.g. german. This requires an added "?lang=[language]" at the end of the http-request.
Like: https://api.darksky.net/forecast/123452 ... 89?lang=de
Inside Domoticz is no inputfield for this value. I added the language on the end of location, but it's fail and block the http-request.
Please add this nice and helpfull field.
Michael
the darksky forecast messages are available in many different languages e.g. german. This requires an added "?lang=[language]" at the end of the http-request.
Like: https://api.darksky.net/forecast/123452 ... 89?lang=de
Inside Domoticz is no inputfield for this value. I added the language on the end of location, but it's fail and block the http-request.
Please add this nice and helpfull field.
Michael
-
- Posts: 120
- Joined: Tuesday 18 October 2016 13:15
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10915
- Contact:
Darksky language
Looks nice but what do you win by adding a language field - there are no devices, until now, connected to Darksky that have info that should be translated - temp, humidity, baro, wind, UV, visibility and Ozone. The forecast fields are not standard available.
Please clarefy the need for a translation.
Please clarefy the need for a translation.
-
- Posts: 21
- Joined: Monday 05 October 2015 9:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Darksky language
The need is the Forecast string. This appears on the monitor for everyone. But english is no everyones language. I translated some simple strings e.g. 'sunny'. For foreign people is it hard to understand 'Partly cloudy throughout the day.'
The translated strings from darksky are much better and easy to use. Here is the line with the string:
Hope you understand my wish. It makes domoticz much easier for multiple languages.
Michael
The translated strings from darksky are much better and easy to use. Here is the line with the string:
Hope you understand my wish. It makes domoticz much easier for multiple languages.
Michael
-
- Posts: 120
- Joined: Tuesday 18 October 2016 13:15
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10915
- Contact:
Darksky language
I understand your wish, but in the standard Darksky implementation forecast is not available as device.
How do you get your information from Darksky - I believe via the Darksky weather plugin that is standard available in Domoticz?
I do not know a screen where the forecast is displayed? Or do you use a special theme or other function to display the Weather data from Darksky?
How do you get your information from Darksky - I believe via the Darksky weather plugin that is standard available in Domoticz?
I do not know a screen where the forecast is displayed? Or do you use a special theme or other function to display the Weather data from Darksky?
Last edited by Snowtiger on Friday 10 May 2019 0:49, edited 1 time in total.
-
- Posts: 10
- Joined: Thursday 06 April 2017 23:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Contact:
Re: Darksky language
In my knowledge domoticz already sends the country string. If in firefox i open the darksky frame in a new window, the full url is something like this:Opus wrote: ↑Thursday 09 May 2019 17:36 Hi,
the darksky forecast messages are available in many different languages e.g. german. This requires an added "?lang=[language]" at the end of the http-request.
Like: https://api.darksky.net/forecast/123452 ... 89?lang=de
Inside Domoticz is no inputfield for this value. I added the language on the end of location, but it's fail and block the http-request.
Please add this nice and helpfull field.
Michael
Code: Select all
https://darksky.net/forecast/45.8572,9.8586/ca24/it
Sincerely i have no troubles with this, unless you refer to the map language, but there i'm not aware of a lang parameter in the api
-
- Posts: 21
- Joined: Monday 05 October 2015 9:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Darksky language
Okay, I've two monitors in my house and they shows me some parameters called from Domoticz by 'http://192.168.178.122:8080/json.htm?ty ... ces&plan=8'. The returned wheater values has the string 'forecastStr' with the forecast text in english language. Yes, I use the hardwired Darksky plugin. And for this I need to set the language option, like "en, de, it, nl ....". There is no other way. It is?Snowtiger wrote: ↑Friday 10 May 2019 0:49 I understand your wish, but in the standard Darksky implementation forecast is not available as device.
How do you get your information from Darksky - I believe via the Darksky weather plugin that is standard available in Domoticz?
I do not know a screen where the forecast is displayed? Or do you use a special theme or other function to display the Weather data from Darksky?
Michael
-
- Posts: 361
- Joined: Monday 25 December 2017 23:06
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Location: Paris
- Contact:
Re: Darksky language
Perhaps you can use this script
https://www.domoticz.com/forum/viewtopi ... 57#p202657
and add the device with the text (it is easy, just by duplicate what is done on other fields)
and choose your language
Hope this help (but don't have time to do it)
https://www.domoticz.com/forum/viewtopi ... 57#p202657
and add the device with the text (it is easy, just by duplicate what is done on other fields)
and choose your language
Hope this help (but don't have time to do it)
-
- Posts: 21
- Joined: Monday 05 October 2015 9:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Darksky language
OMG, why should I use a script with all its disadvantages, if it were enough to send the set language to dark weather? I already set my language in the setup. Since it is only logical that this is also desired for weather reports.
A small attachment of the language feature to the string may pose a minor problem for the programmer. A great help for the users!
Where is the problem?
A small attachment of the language feature to the string may pose a minor problem for the programmer. A great help for the users!
Where is the problem?
-
- Posts: 247
- Joined: Sunday 29 November 2015 20:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.9639
- Location: Spain
- Contact:
Re: Darksky language
Well Opus,
Domoticz - and thus also the plugins - are open source. You could always contribute and implement it.
Wanna make the (domoticz) world a better place? Be that change.
-
- Posts: 21
- Joined: Monday 05 October 2015 9:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Darksky language
I'm a Domoticz user - not a programmer. Great help!
Who is online
Users browsing this forum: No registered users and 1 guest