Text not centred in Weather Widget

Weather Widget: I recently changed the display from {day} {icon} {temp} to {humidity} {icon} {temp}. The reason was {day} was displaying the previous day to present e.g. Today is Monday (Mon), the widget dispalys Sunday (Sun).

Since saving the chages, the location of the text in the Weather Widget button on the Touch Bar has moved from the centre of the button to the top of the button.

(I have a picture to attach, but as a new user I am prevented from doing so)

The text is out if line with the text on the rest of the buttons.

Is there a work around for this ?

could you post a screenshot? - you should now be able to add screenshots to the post (I can't seem to reproduce it here).

Here you go:

strange, it all looks good here. Could you copy that weather widget in BTT and paste the resulting JSON text here?

Hi - thank you for this .... please could you explain how to copy and paste the JSON text ?

right click in BTT:

then paste here

[
{
"BTTActionCategory" : 0,
"BTTLastUpdatedAt" : 1722869378.104481,
"BTTTriggerType" : 651,
"BTTTriggerTypeDescriptionReadOnly" : "Weather Widget",
"BTTTriggerTypeDescription" : "Current Weather",
"BTTTriggerClass" : "BTTTriggerTypeTouchBar",
"BTTUUID" : "BA224813-96F8-4349-911D-E9EDAA8339F7",
"BTTEnabled" : 1,
"BTTEnabled2" : 1,
"BTTOrder" : 10,
"BTTMergeIntoTouchBarGroups" : 0,
"BTTWidgetName" : "Current Weather",
"BTTTriggerConfig" : {
"BTTTouchBarWeatherUnit" : 0,
"BTTTouchBarWeatherLatLon" : "",
"BTTTouchBarButtonColor" : "180.713393, 63.401194, 211.222762, 255.000000",
"BTTTouchBarWeatherDay" : -1,
"BTTTouchBarItemPlacement" : 0,
"BTTTouchBarIconInvert" : false,
"BTTTouchBarAlwaysShowButton" : false,
"BTTTouchBarWeatherFormat" : "{humidity} {icon} {temp} \n",
"BTTTouchBarButtonHoverColor" : "248.880000, 146.115000, 128.010000, 181.050000",
"BTTTouchBarButtonHeight" : 15,
"BTTTouchBarButtonWidth" : 100,
"BTTTouchBarItemIconHeight" : 22,
"BTTTouchBarButtonTextAlignment" : 0,
"BTTTouchBarAlternateBackgroundColor" : "75.323769, 75.323769, 75.323769, 255.000000",
"BTTTBWidgetWidth" : 400,
"BTTTouchBarBorderColor" : "255.000000, 255.000000, 255.000000, 255.000000",
"BTTTouchBarWeatherAutoLocation" : 1,
"BTTTouchBarItemIconWidth" : 22,
"BTTTouchBarFreeSpaceBeforeButton" : 0,
"BTTTouchBarButtonFontSize" : 17,
"BTTTouchBarFontColor" : "213.541595, 213.546646, 213.543915, 255.000000",
"BTTTouchBarIconTextOffset" : 0,
"BTTTouchBarOnlyShowIcon" : false,
"BTTTouchBarFreeSpaceAfterButton" : 10,
"BTTTouchBarItemPadding" : 0
}
}
]

Hi there,

Has this JSON helped?

Many thanks, C

ah yes, you have an empty new line in the display format:

Remove that and it should be fine

Thank you

Hi there,

Currently I am in Beijing. And this is the local weather:

However the touch bar is showing a different local humidity and temperature.

Is there a reason for this anonolmy ?

Many thanks, Ciaran

maybe a vpn or proxy is preventing macos from getting the correct location. In that case you can provide your longitude & latitude manually

39.908638,116.370438