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.

    London tube status

    Scheduled Pinned Locked Moved Requests
    13 Posts 4 Posters 7.9k Views 6 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.
    • S Offline
      soqueen
      last edited by

      Love this! signed up for a dev account myself and was trying to figure out how to write this. My only question when I load this as a module - the module takes up the entire width of my screen. Is there a way to set a size on it?

      N 1 Reply Last reply Reply Quote 0
      • N Offline
        nigel-daniels @soqueen
        last edited by

        @soqueen hi what does your config look like? If you PM it to me (sans API keys etc.) I’ll try and recreate the issue and suggest a correct config or add a fix to the css.

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          soqueen @nigel-daniels
          last edited by

          @nigel-daniels Thanks for getting back to me! Do you want the entire config or just the tube station portion of it? I will PM it to you shortly…

          N 1 Reply Last reply Reply Quote 0
          • N Offline
            nigel-daniels @soqueen
            last edited by

            @soqueen probably best to send me he whole thing just in case it’s an interaction thing, just remove any private api keys and any personal urls (e.g. calendar).

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              soqueen @nigel-daniels
              last edited by

              @soqueen

              I apologize, I can’t seem to figure out how to PM you. If it’s ok, I can just paste the config file (sans personal info) here.

              1 Reply Last reply Reply Quote 0
              • S Offline
                soqueen
                last edited by

                /* Magic Mirror Config Sample
                *

                • By Michael Teeuw http://michaelteeuw.nl
                • MIT Licensed.
                  */

                var config = {
                port: 8080,

                language: 'en',
                timeFormat: 24,
                units: 'imperial',
                
                modules: [
                	{
                		module: 'alert',
                	},
                
                	{
                		module: 'MMM-Tube-Status',
                		position: 'bottom_bar',
                		header: 'Tube Status',
                		config: {
                			show_all:  true
                		}
                	},
                	
                	{
                		module: 'MMM-Remote-Control'
                	},
                

                // {
                // module: ‘MMM-Modulecheduler’,
                // config: {
                // notification_schedule: [
                // //turn the moniter on at 6:30 am daily
                // {notification: ‘REMOTE_ACTION’, schedule: '30 6 * * * ', payload: {action: “MONITORON”}},
                // //turn off the monitor at 22:30 daily
                // {notification: ‘REMOTE_ACTION’ schedule: ‘30 22 * * *’, payload: [action: “MONITOROFF”}},
                // //restart magicmirror 2am sundays
                // {notification: ‘REMOTE_ACTION’, schedule: ‘0 2 * * SUN’, payload: [action: “RESTART”}}
                // ]
                // }
                // },

                	{
                		module: 'clock',
                		position: 'top_left'
                	},
                	{
                		module: 'MMM-Wunderlist',
                		position: 'top_left',
                		header:  'To-Do',
                		config: {
                			accessToken: '',
                			clientID: '',
                			lists: ["Work", "Family"]
                		}
                
                	},
                	{
                		module: 'calendar',
                		header: 'Jennifer Calendar',
                		position: 'middle_center',
                		config: {
                			calendars: [
                				{
                					symbol: 'calendar-check-o',
                					url: ''
                				},
                				{
                					url: '',
                				},
                				{
                					url: 'webcal://www.calendarlabs.com/templates/ical/UK-Holidays.ics'
                				},
                			]
                		}
                	},
                	{
                		module: 'calendar',
                		header: 'Sarika Calendar',
                		position: 'middle_center',
                		config: {
                			calendars: [
                				{	
                					symbol: 'diamond',
                					url: ''
                				},
                				
                			]
                		}
                	},
                	{
                		module: 'compliments',
                		position: 'top_bar'
                	},
                	{
                		module: 'currentweather',
                		position: 'top_right',
                		config: {
                			location: 'City of Westminster',
                			locationID: '',  //ID from http://www.openweathermap.org
                			appid: ''
                		}
                	},
                	{
                		module: 'weatherforecast',
                		position: 'top_right',
                		header: 'Weather Forecast',
                		config: {
                            location: 'City of Westminster',
                			locationID: '',  //ID from http://www.openweathermap.org
                            appid: ''
                		}
                	},
                	{
                		module: 'newsfeed',
                		position: 'bottom_bar',
                		config: {
                			feeds: [
                				{
                					title: "BBC Top Stories",
                					url: "http://feeds.bbci.co.uk/news/rss.xml"
                				}
                			],
                			showSourceTitle: true,
                			showPublishDate: true
                		}
                	},
                ]
                

                };

                /*************** DO NOT EDIT THE LINE BELOW ***************/
                if (typeof module !== ‘undefined’) {module.exports = config;}

                N 1 Reply Last reply Reply Quote 0
                • N Offline
                  nigel-daniels @soqueen
                  last edited by

                  @soqueen sorry I thought the site supported PMs, my bad. Looking at the config you have you have the tube status set to show across the bottom of the screen:

                  position: 'bottom_bar',

                  If you move it to show in something like 'bottom_center' then it will restrict the width of the module. Check out the MM2 Read Me for the valid location settings. Hopefully this will correct the issue you are seeing, let me know if it remains a problem.

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    soqueen @nigel-daniels
                    last edited by

                    @nigel-daniels You are SO right! That works perfectly! Thank you!

                    1 Reply Last reply Reply Quote 0
                    • 1
                    • 2
                    • 2 / 2
                    • First post
                      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