To show the humidity I changed this line:
drawText("feels like " + Math.round(weatherData.current.feels_like) + "°", footerFontSize, feelsLikeCoords.x, feelsLikeCoords.y, Color.gray())
into this:
drawText(feelsstring + " " + Math.round(weatherData.current.feels_like) + "° | " + relHumidity + " " + weatherData.current.humidity + "%", footerFontSize, feelsLikeCoords.x, feelsLikeCoords.y, Color.gray())
along with these two variables:
const feelsstring = "Gefühlt" // any local term for "feels like"
const relHumidity = "RF" // any local term for "humidity"
This line shows the updatetime:
drawTextC(epochToDate(weatherData.current.dt).toLocaleTimeString(), footerFontSize, lastUpdateTimePosAndSize.x, lastUpdateTimePosAndSize.y, lastUpdateTimePosAndSize.width, lastUpdateTimePosAndSize.height, Color.gray())
To show it without seconds, I just turned this part:
.toLocaleTimeString()
into this:
.toLocaleTimeString().slice(0, -3)
By the way, to make it talk Italian, in this line:
weatherData = await new Request("https://api.openweathermap.org/data/2.5/onecall?lat=" + LAT + "&lon=" + LON + "&exclude=daily,minutely,alerts&units=" + units + "&lang=en&appid=" + API_KEY).loadJSON();
change this part:
"&lang=en&appid="
into this:
"&lang=it&appid="
Instead, you might also declare variables like this:
const locale = "it" // "en"
const nowstring = "Ora" // any local term for "now"
and change the weatherData
variable to:
weatherData = await new Request("https://api.openweathermap.org/data/2.5/onecall?lat=" + LAT + "&lon=" + LON + "&exclude=daily,minutely,alerts&units=" + units + "&lang=" + locale + "&appid=" + API_KEY).loadJSON();
and then this:
drawTextC((i==0?"Now":hour), 18, spaceBetweenDays*i+25, 200,50, 21, Color.gray())
into:
drawTextC((i==0?nowstring:hour), 18, spaceBetweenDays*i+25, 200,50, 21, Color.gray())