Good morning message

Everything keeps coming out in English..

Interesting, mine is on line 375 as I mentioned earlier, regardless if that is the same line (by the way make sure you back up the original), save then go back to the device and press poll then refresh, give it a few seconds and you should see the changes.

Can you do a screenshot of the same snip I posted?

nothing, keep the same friend...

do the same for line 349

can you send a screenshot like this one, after you press the poll and refresh buttons?
image

now yes! Now something has changed, not everything, but hey, do you think that by touching something else with the driver, everything would come out?

Nope... The rest of the information is hardcoded into the driver. If you just want the summary in Spanish you will need to change the words that are in English to Spanish, to do that you need to change the following lines:

if(weatherSummaryPublish){ // don't bother setting these values if it's not enabled
		String Summary_forecastTemp = ' with a high of ' + String.format(ddisp_twd, myGetDataBD('forecastHigh')) + myGetData(sTMETR) + ' and a low of ' + String.format(ddisp_twd, myGetDataBD('forecastLow')) + myGetData(sTMETR) + '. '
		String Summary_precip = 'There is a ' + myGetData('percentPrecip') + '% chance of precipitation. '
		LOGINFO('Summary_precip: ' + Summary_precip)
		String Summary_vis = 'Visibility is around ' + String.format(ddisp_twd, myGetDataBD('vis')) + (myGetData(sDMETR)=='MPH' ? ' miles.' : ' kilometers.')
		SummaryMessage((Boolean)settings.summaryType, myGetData('Summary_last_poll_date'), myGetData(sSUMLST), Summary_forecastTemp, Summary_precip, Summary_vis)

For example: where you see "with a high of" you would change it to "con un alto de", do that for each of the lines in English and your summary will be In Spanish. Does this make sense?

y luego debe verse asΓ­:
image

1 Like

Im pretty sure WU supports multiple languages - so this wouldn't be too hard. I just need to add the correct country code option to the list in the driver.

Yes, it's a fairly easy change - I'll try to get it out today:

1 Like

How happy I am to read this friend!

1 Like

Ok, version 7.0.4 now has full Spanish Language support and is available via HPM or GitHub:

6 Likes

You da man mi amigo!

2 Likes

Hehe, WU make it very easy - their service is fully multilingual, and I just had to add 3 lines of code and add extra option to the language drop down.

4 Likes

ok I use openweather, so how should I do it? delete that driver and install the other? I tried it yesterday and it asked me for two APIs.

What should I fill in this field?

You'll need to get an API key for WU, it's a totally different service to OW.

It is recommended that you have your own PWS, but there are workarounds to access another person's PWS near you. The PWS is not an API key, it's the local weather station ID you are using (ideally your own).

eg, this is my PWS here in Melbourne, Australia:

but I don't know anyone who has their own station, I live in Spain, I thought I got it directly from the internet as OW, could you guide me a bit on how to make WU work?