In the latest Mozilla Firefox 127 release simply do the following:

  • Go to about:config in a new tab
  • ‘Accept Risk and Continue’
  • Search for browser.newtabpage.activity-stream.system.showWeather
  • Double-click the result to enable the feature