• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Weather module queries

Scheduled Pinned Locked Moved Unsolved Troubleshooting
1 Posts 1 Posters 177 Views 1 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    Richard238
    last edited by Oct 9, 2022, 3:43 PM

    Just a couple of probably very quick-n-simple queries regarding the default weather module

    Firstly, current weather does not show location yet it’s all in the code

    		{
    			module: 'weather',
    			header: 'Current weather for: ',			
    			position: 'top_right',
    			config: {
    				type: 'current',
    				location: 'My_Place',
    				locationID: '1234567',  //ID from https://www.openweathermap.org
    				apiKey: '####################'
    			}
    		},
    

    Next, forecast does show location, but how do I remove the “,GB” part of the location?
    (And I’ll do the same for current weather too.)

    		{
    			module: 'weather',
    			position: 'top_right',
    			header: 'Weather Forecast for: ',
    			config: {
    				type: 'forecast',
    				location: 'My_Place',
    				locationID: '1234567',  //ID from https://www.openweathermap.org
    				apiKey: '####################'
    			}
    		},
    

    Thank you.

    1 Reply Last reply Reply Quote 0
    • 1 / 1
    1 / 1
    • First post
      1/1
      Last post
    Enjoying MagicMirror? Please consider a donation!
    MagicMirror created by Michael Teeuw.
    Forum managed by Sam, technical setup by Karsten.
    This forum is using NodeBB as its core | Contributors
    Contact | Privacy Policy