MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. PeppaPigKilla
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    P
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 13
    • Groups 0

    PeppaPigKilla

    @PeppaPigKilla

    8
    Reputation
    730
    Profile views
    13
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    PeppaPigKilla Unfollow Follow

    Best posts made by PeppaPigKilla

    • RE: Adding 3rd party modules help please

      I’m also new liek you to this, i have myself had similar issues.
      Try

         },
                  {
      		module: "updatenotification",
      		position: "bottom_bar"
      	},
                	{
          		module: 'planetrise',
          		position: 'top_right',  // This can be any of the regions.
          		header: 'PLanet Rise',
          		config: {  // Place the latitude and longitude of your mirror
              		latitude: 45.5,
              		longitude: -122.38,
              		// A dictiory of the bodies and unicode character for the symbol
              		// This is the default and does not need to be listed.
              		// A full list of bodies can be seen on line 1359 in astronomy.js
              		// Note: Trying to find the rise time of Earth will crash the Module
              		bodies: {'Sun': '☉',
                      	'Moon': '☽',
                      	'Mercury': '☿',
                      	'Venus': '♀',
                      	'Mars': '♂',
                      	'Jupiter': '♃',
                      	'Saturn': '♄',
                }
                }
      	},
      	{
      		module: 'clock',
      		position: 'top_left'
      	},
                  {
      		module: 'calendar',
      		header: 'US Holidays',
      		position: 'top_left',
      

      I have added

      }
      }
      

      after the

      'Saturn': '♄',
      

      add your config to this page here, it points out errors
      http://jshint.com/

      Updated it, missed out another }

      posted in Troubleshooting
      P
      PeppaPigKilla
    • RE: Adding 3rd party modules help please

      @Mykle1

      You’re welcome buddy

      Wish you the best.

      posted in Troubleshooting
      P
      PeppaPigKilla
    • RE: Does anyone know how to make the iFrame module refresh periodically?

      Have a Read here http://stackoverflow.com/questions/5146805/an-iframe-i-need-to-refresh-every-30-seconds-but-not-the-whole-page

      posted in Troubleshooting
      P
      PeppaPigKilla
    • RE: Adding 3rd party modules help please

      hello

      can you post your code minus any apis passwords etc ?

       {
          module: 'MMM-Globe',
          position: 'bottom_center',
          config: {
              style: 'fullBand',
              imageSize: 600,
              ownImagePath:'',
              updateInterval: 10*60*1000
          }
      },
      
                {
          module: 'MMM-soccer',
          position: 'top_right',
          config: {
              show: 'ENGLAND',
              focus_on: {
                  'ENGLAND': 'Manchester City FC'
              },
              max_teams: 10
          }
      },
      

      you can see what i do is I add the extra code after the }, on a new line
      Some modules when they ask you to add to the config file they show

      modules: [
                  {
                      module: 'calendar_monthly',
                      position: 'top_left',
                      config: {
                              // The config property is optional
                              // Without a config, a default month view is shown
                              // Please see the 'Configuration Options' section for more information
                      }
                  },
      ]
      

      you see the modules:[ and the ] at he end, dont add them bit in your code, so it should be like this

                  {
                      module: 'calendar_monthly',
                      position: 'top_left',
                      config: {
                              // The config property is optional
                              // Without a config, a default month view is shown
                              // Please see the 'Configuration Options' section for more information
                      }
                  },
      

      So im goign to add the above into my config code now from the top

       {
          module: 'MMM-Globe',
          position: 'bottom_center',
          config: {
              style: 'fullBand',
              imageSize: 600,
              ownImagePath:'',
              updateInterval: 10*60*1000
          }
      },
                  {
                      module: 'calendar_monthly',
                      position: 'top_left',
                      config: {
                              // The config property is optional
                              // Without a config, a default month view is shown
                              // Please see the 'Configuration Options' section for more information
                      }
                  },
      
                {
          module: 'MMM-soccer',
          position: 'top_right',
          config: {
              show: 'ENGLAND',
              focus_on: {
                  'ENGLAND': 'Manchester City FC'
              },
              max_teams: 10
          }
      },
      

      Ive stuck it in the middle. This will work

      I hope that makes sense

      posted in Troubleshooting
      P
      PeppaPigKilla

    Latest posts made by PeppaPigKilla

    • RE: Does anyone know how to make the iFrame module refresh periodically?

      I tried it and cant get it to work either. best reaching out to the author,

      posted in Troubleshooting
      P
      PeppaPigKilla
    • RE: Adding 3rd party modules help please

      @Mykle1

      You’re welcome buddy

      Wish you the best.

      posted in Troubleshooting
      P
      PeppaPigKilla
    • RE: Adding 3rd party modules help please

      I’m also new liek you to this, i have myself had similar issues.
      Try

         },
                  {
      		module: "updatenotification",
      		position: "bottom_bar"
      	},
                	{
          		module: 'planetrise',
          		position: 'top_right',  // This can be any of the regions.
          		header: 'PLanet Rise',
          		config: {  // Place the latitude and longitude of your mirror
              		latitude: 45.5,
              		longitude: -122.38,
              		// A dictiory of the bodies and unicode character for the symbol
              		// This is the default and does not need to be listed.
              		// A full list of bodies can be seen on line 1359 in astronomy.js
              		// Note: Trying to find the rise time of Earth will crash the Module
              		bodies: {'Sun': '☉',
                      	'Moon': '☽',
                      	'Mercury': '☿',
                      	'Venus': '♀',
                      	'Mars': '♂',
                      	'Jupiter': '♃',
                      	'Saturn': '♄',
                }
                }
      	},
      	{
      		module: 'clock',
      		position: 'top_left'
      	},
                  {
      		module: 'calendar',
      		header: 'US Holidays',
      		position: 'top_left',
      

      I have added

      }
      }
      

      after the

      'Saturn': '♄',
      

      add your config to this page here, it points out errors
      http://jshint.com/

      Updated it, missed out another }

      posted in Troubleshooting
      P
      PeppaPigKilla
    • RE: Display JSON data from an api

      To add more to this.

      This is the output of the API

      {"player":{"username":"peppapigkilla","platform":"uplay","ubisoft_id":"bb2c294b-d691-4708-863f-a55242d3270e","indexed_at":"2016-05-29T16:03:49.884Z","updated_at":"2017-01-29T11:38:10.755Z","stats":{"ranked":{"has_played":true,"wins":21,"losses":9,"wlr":2.333,"kills":153,"deaths":127,"kd":1.205,"playtime":42600},"casual":{"has_played":true,"wins":468,"losses":383,"wlr":1.222,"kills":3019,"deaths":2212,"kd":1.365,"playtime":729250.0},"overall":{"revives":92,"suicides":21,"reinforcements_deployed":1765,"barricades_built":985,"steps_moved":4027174420,"bullets_fired":94519,"bullets_hit":27318,"headshots":1193,"melee_kills":23,"penetration_kills":329,"assists":927},"progression":{"level":109,"xp":9128}}}}
      

      I want to create a block that displasy this information.
      Not all of it, just some.

      This is a bot i use on my discord
      alt text

      Essentially just the information on this.

      posted in Requests
      P
      PeppaPigKilla
    • RE: Adding 3rd party modules help please

      hello

      can you post your code minus any apis passwords etc ?

       {
          module: 'MMM-Globe',
          position: 'bottom_center',
          config: {
              style: 'fullBand',
              imageSize: 600,
              ownImagePath:'',
              updateInterval: 10*60*1000
          }
      },
      
                {
          module: 'MMM-soccer',
          position: 'top_right',
          config: {
              show: 'ENGLAND',
              focus_on: {
                  'ENGLAND': 'Manchester City FC'
              },
              max_teams: 10
          }
      },
      

      you can see what i do is I add the extra code after the }, on a new line
      Some modules when they ask you to add to the config file they show

      modules: [
                  {
                      module: 'calendar_monthly',
                      position: 'top_left',
                      config: {
                              // The config property is optional
                              // Without a config, a default month view is shown
                              // Please see the 'Configuration Options' section for more information
                      }
                  },
      ]
      

      you see the modules:[ and the ] at he end, dont add them bit in your code, so it should be like this

                  {
                      module: 'calendar_monthly',
                      position: 'top_left',
                      config: {
                              // The config property is optional
                              // Without a config, a default month view is shown
                              // Please see the 'Configuration Options' section for more information
                      }
                  },
      

      So im goign to add the above into my config code now from the top

       {
          module: 'MMM-Globe',
          position: 'bottom_center',
          config: {
              style: 'fullBand',
              imageSize: 600,
              ownImagePath:'',
              updateInterval: 10*60*1000
          }
      },
                  {
                      module: 'calendar_monthly',
                      position: 'top_left',
                      config: {
                              // The config property is optional
                              // Without a config, a default month view is shown
                              // Please see the 'Configuration Options' section for more information
                      }
                  },
      
                {
          module: 'MMM-soccer',
          position: 'top_right',
          config: {
              show: 'ENGLAND',
              focus_on: {
                  'ENGLAND': 'Manchester City FC'
              },
              max_teams: 10
          }
      },
      

      Ive stuck it in the middle. This will work

      I hope that makes sense

      posted in Troubleshooting
      P
      PeppaPigKilla
    • RE: Mobile app (bachelor thesis)

      @strawberry-3.141

      ok, Thanks for the info. Look vforward to the release

      posted in Development
      P
      PeppaPigKilla
    • RE: Mobile app (bachelor thesis)

      The app been released ?
      Searched the store, but couldnt find anything.

      posted in Development
      P
      PeppaPigKilla
    • RE: Does anyone know how to make the iFrame module refresh periodically?

      on the config part I believe its just the URL. But on the iframe.js file, i think extra code would needed to be added.

      
      /* global Module */
      
      /* Magic Mirror
       * Module: iFrame
       *
       * By Ben Williams http://desertblade.com
       * MIT Licensed.
       */
      
      Module.register("iFrame",{
      		// Default module config.
      		defaults: {
      				height:"300px",
      				width:"100%"
      		},
      
      
      	// Override dom generator.
      	getDom: function() {
      		var iframe = document.createElement("IFRAME");
      		iframe.style = "border:0"
      		iframe.width = this.config.width;
      		iframe.height = this.config.height;
      		iframe.src =  this.config.url;
      		return iframe;
          window.setInterval("reloadIFrame();", 30000);
      
      function reloadIFrame() {
       document.frames["frameNameHere"].location.reload();
      }
      	}
      
      });
      
      posted in Troubleshooting
      P
      PeppaPigKilla
    • RE: Does anyone know how to make the iFrame module refresh periodically?

      whats the iframe mod you downloaded ?

      posted in Troubleshooting
      P
      PeppaPigKilla
    • RE: Mobile app (bachelor thesis)

      Has this happened ?

      posted in Development
      P
      PeppaPigKilla