• 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.

London tube status

Scheduled Pinned Locked Moved Requests
13 Posts 4 Posters 7.2k 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.
  • Y Offline
    yawns Moderator
    last edited by Oct 24, 2016, 9:26 AM

    Absolutely. I signed up for a developer account but did not find the time on the weekend to go for it. The API indeed looks neat.

    1 Reply Last reply Reply Quote 0
    • D Offline
      djbenny07 @nigel-daniels
      last edited by Oct 24, 2016, 9:30 AM

      @nigel-daniels @yawns OK great cant wait to see what you come up with

      N 1 Reply Last reply Oct 24, 2016, 10:59 PM Reply Quote 0
      • N Offline
        nigel-daniels @djbenny07
        last edited by Oct 24, 2016, 10:59 PM

        @djbenny07 I just posted the first version of a module to do this MMM-Tube-Status under the Transport section here. Let me know how you get on with it. If you find any bugs just let me know and I’ll try and figure it out.

        I will be making an update at some point; as far as I can tell I ‘should’ be using an app_id and an api_key but whenever I try to use them I cannot get data at all. I’ve emailed TfL to try and figure out what’s going on. In the meantime I’ve used the anonymous version of their API and it seems to work, I’m just not sure if it will run out of requests at some point. I.e. it may just stop at some point.

        As soon as I know more I’ll update the module’s topic and let you know.

        1 Reply Last reply Reply Quote 0
        • S Offline
          soqueen
          last edited by Nov 9, 2016, 11:04 AM

          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 Nov 9, 2016, 6:46 PM Reply Quote 0
          • N Offline
            nigel-daniels @soqueen
            last edited by Nov 9, 2016, 6:46 PM

            @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 Nov 10, 2016, 7:54 AM Reply Quote 0
            • S Offline
              soqueen @nigel-daniels
              last edited by Nov 10, 2016, 7:54 AM

              @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 Nov 10, 2016, 4:36 PM Reply Quote 0
              • N Offline
                nigel-daniels @soqueen
                last edited by Nov 10, 2016, 4:36 PM

                @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 Nov 10, 2016, 7:35 PM Reply Quote 0
                • S Offline
                  soqueen @nigel-daniels
                  last edited by Nov 10, 2016, 7:35 PM

                  @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 Nov 10, 2016, 7:40 PM

                    /* 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 Nov 10, 2016, 8:45 PM Reply Quote 0
                    • N Offline
                      nigel-daniels @soqueen
                      last edited by Nov 10, 2016, 8:45 PM

                      @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 Nov 11, 2016, 7:47 AM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 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