
Glad to hear you got it working again and your English is completely understandable!

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.
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.
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')
Dude, you're awesome! thanks a lotjsmorley 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...
Do the same for monthName.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')
I think you will find that if you change the API Key to 21d8a80b3d6b444998a80b3d6b1449d3, it will begin to work again.