It is currently March 29th, 2024, 12:18 am

Speaking TextClock6 with Weather

Weather skins
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5384
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Speaking TextClock6 with Weather

Post by eclectic-tech »

Yes, the feed changed again in the summer so the August update is the working version. Darn that weather channel! :x

Glad to hear you got it working again and your English is completely understandable! :thumbup:
SCP
Posts: 1
Joined: February 12th, 2021, 9:22 am

Re: Speaking TextClock6 with Weather

Post by SCP »

Quick question,
I am english and I cannot read farenheit, so could you please tell me how to switch the clock to celcius
Thanks
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Speaking TextClock6 with Weather

Post by jsmorley »

SCP wrote: February 12th, 2021, 9:24 am Quick question,
I am english and I cannot read farenheit, so could you please tell me how to switch the clock to celcius
Thanks
Right-click and select "Edit Weather Variables" to Edit the file WeatherComJSONVariables.inc in the @Resources folder of the skin and change Units=e to Units=m.

Save the file and refresh the skin.
Pablo
Posts: 2
Joined: September 16th, 2021, 3:21 pm

Re: Speaking TextClock6 with Weather

Post by Pablo »

Nice skin bro, question, how i change the language of the month and days to spanish? thanks in advance.

Image
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Speaking TextClock6 with Weather

Post by jsmorley »

Pablo wrote: September 16th, 2021, 3:26 pm Nice skin bro, question, how i change the language of the month and days to spanish? thanks in advance.

Image
The days of the week and months are coming from the .lua code, and the os.date() functions in Lua are based on the current "locale" set on your computer. So you would need to edit the Lua and use string.gsub() on the values returned and set for weekdayName and monthName, in order to change Monday to Lunes.

I assume you have already done some editing to change other things like the textual numbers to Spanish.

Find the function DateString() in the .lua, and add some string.gsub() calls...

Code: Select all

function DateString()

	weekdayName = os.date('%A')
	monthName = os.date('%B')
	
	weekdayName = string.gsub(weekdayName, 'Monday', 'lunes')
	weekdayName = string.gsub(weekdayName, 'Tuesday', 'martes')
	weekdayName = string.gsub(weekdayName, 'Wednesday', 'miércoles')
	weekdayName = string.gsub(weekdayName, 'Thursday', 'jueves')
	weekdayName = string.gsub(weekdayName, 'Friday', 'viernes')
	weekdayName = string.gsub(weekdayName, 'Saturday', 'sábado')
	weekdayName = string.gsub(weekdayName, 'Sunday', 'domingo')
	
Do the same for monthName.
Pablo
Posts: 2
Joined: September 16th, 2021, 3:21 pm

Re: Speaking TextClock6 with Weather

Post by Pablo »

jsmorley wrote: September 16th, 2021, 3:45 pm The days of the week and months are coming from the .lua code, and the os.date() functions in Lua are based on the current "locale" set on your computer. So you would need to edit the Lua and use string.gsub() on the values returned and set for weekdayName and monthName, in order to change Monday to Lunes.

I assume you have already done some editing to change other things like the textual numbers to Spanish.

Find the function DateString() in the .lua, and add some string.gsub() calls...

Code: Select all

function DateString()

	weekdayName = os.date('%A')
	monthName = os.date('%B')
	
	weekdayName = string.gsub(weekdayName, 'Monday', 'lunes')
	weekdayName = string.gsub(weekdayName, 'Tuesday', 'martes')
	weekdayName = string.gsub(weekdayName, 'Wednesday', 'miércoles')
	weekdayName = string.gsub(weekdayName, 'Thursday', 'jueves')
	weekdayName = string.gsub(weekdayName, 'Friday', 'viernes')
	weekdayName = string.gsub(weekdayName, 'Saturday', 'sábado')
	weekdayName = string.gsub(weekdayName, 'Sunday', 'domingo')
	
Do the same for monthName.
Dude, you're awesome! thanks a lot :D :D
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Speaking TextClock6 with Weather

Post by jsmorley »

Pablo wrote: September 16th, 2021, 5:41 pm Dude, you're awesome! thanks a lot :D :D
Glad to help.
User avatar
NPCnugget
Posts: 1
Joined: January 11th, 2022, 7:09 am

Re: Speaking TextClock6 with Weather

Post by NPCnugget »

The Skin suddenly stopped working for me today... It was working well yesterday and now it won't display anything...
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Speaking TextClock6 with Weather

Post by jsmorley »

NPCnugget wrote: January 11th, 2022, 7:11 am The Skin suddenly stopped working for me today... It was working well yesterday and now it won't display anything...
I think you will find that if you change the API Key to 21d8a80b3d6b444998a80b3d6b1449d3, it will begin to work again.
scythe944
Posts: 3
Joined: May 15th, 2020, 8:00 pm

Re: Speaking TextClock6 with Weather

Post by scythe944 »

jsmorley wrote: January 11th, 2022, 11:17 am I think you will find that if you change the API Key to 21d8a80b3d6b444998a80b3d6b1449d3, it will begin to work again.
Thanks! Just found the API key and updated it. Working fine now.