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.

    MMM-Globe

    Scheduled Pinned Locked Moved Entertainment
    118 Posts 32 Posters 175.7k Views 37 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.
    • A Offline
      ashishtank Module Developer @Foxy25
      last edited by

      @foxy25 to make globe transparent there are two changes required.

      • Module div’s background color
      • Globe canvas itself have black color as background.

      First one can be easily doable with css but to make globe transparent you will need to change the code as well. Do below to make globe transperent.

      • In custom.css add below css
      .globe
      {
      	background-color: unset;
      }
      
      • in modules\MMM-Globe\encom-globe.js file find below line and change it to.

      from

      this.renderer = new THREE.WebGLRenderer( { antialias: true } );
      

      to

      this.renderer = new THREE.WebGLRenderer( { antialias: true, alpha: true } );
      

      below is output

      Before

      dde6476f-f02b-48b9-aa2c-f60c4bead58a-image.png

      After
      0214ddbf-09fe-4ba8-9528-ea96ed28ea7c-image.png

      Let me know how/if it works for you.

      F 1 Reply Last reply Reply Quote 1
      • F Offline
        Foxy25 @ashishtank
        last edited by

        It works perfect!!!

        Thank you so much for you support!!!

        Greetings from Germany

        Foxy

        A 1 Reply Last reply Reply Quote 0
        • A Offline
          ashishtank Module Developer @Foxy25
          last edited by

          @foxy25 you are welcome :)

          1 Reply Last reply Reply Quote 0
          • D Offline
            damith
            last edited by

            hi everyone, I’ve tried to install on my PI but it won’t work…am getting black screen, here is my config file… any HELP…?
            modules: [

            	{
            		module: "alert",
            	},
            	{
            		module: "updatenotification",
            		position: "top_bar"
            	},
            	{
            		module: "clock",
            		position: "top_left"
            	},
            	{
            		module: "calendar",
            		header: "Italy Holidays",
            		position: "top_left",
            		config: {
            			calendars: [
            				{
            					symbol: "calendar-check",
            					url: "webcal://www.calendarlabs.com/ical-calendar/ics/53/Italy_Holidays.ics"					}
            			]
            		}
            	},
            	{
            		module: "compliments",
            		position: "top_center"
            	},
            	{
            		module: "weather",
            		position: "top_right",
            		config: {
            			weatherProvider: "openweathermap",
            			type: "current",
            			location: "ROME",
            			locationID: "3169070", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
            			apiKey: "492da6299f48937482d3c321215289b0"
            		}
            	},
            	{
            		module: "weather",
            		position: "top_right",
            		header: "Weather Forecast",
            		config: {
            			weatherProvider: "openweathermap",
            			type: "forecast",
            			location: "ROME",
            			locationID: "3169070", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
            			apiKey: "492da6299f48937482d3c321215289b0"
            		}
            	},
            	{
            		module: "newsfeed",
            		position: "bottom_bar",
            		config: {
            			feeds: [
            				{
            					title: "REPUBBLICA",
            					url: "https://www.repubblica.it/rss/homepage/rss2.0.xml"
            				}
            			],
            			showSourceTitle: true,
            			showPublishDate: true,
            			broadcastNewsFeeds: true,
            			broadcastNewsUpdates: true
            		}
            	},
                        {
            	module: 'MMM-Globe',
            	position: 'lower_third',	// This can be any of the regions. Best results in lower_third
            	config: {
                        size:"x-small", // Globe size. See configuration options below for more options
            			dayLength: 38, // (Optional) Rotation speed. See configuration options below
            		    viewAngle: 15, // (Optional) Globe tilt. See configuration options below.
            			introLinesDuration: 2000,
            			receiveExternalLocations: 0,
                        locations: [
                            // Fill with location Objects if desired
                            // e.g.
                               {lat:37.77493,lng:-122.41942, label: "San Francisco"},
                               {lat:-23.5475,lng:-46.63611, label: "Sao Paulo"}
            
                            // Individual values must be seperated by a comma.
                            // You can look up the latitude and longitude for a specific location on Google Maps.
                                ]
                                }
                        },
            ]
            

            };

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

            thgmirrorT 1 Reply Last reply Reply Quote 0
            • thgmirrorT Offline
              thgmirror @damith
              last edited by

              Hi @damith,

              May be, you have an issue in the config.js.
              You can use the built-in check-tool from within the MagicMirror folder named
              npm run config:check

              Or use an external Website (I use https://esprima.org/demo/validate.html) to see if it is valed.

              Greetings from Germany
              Thomas

              1 Reply Last reply Reply Quote 0
              • D Offline
                damith
                last edited by

                hi@thgmirror
                Thank you very much for you reply, I’ve checked with built in check but no errors …!!

                pi@raspberrypi:~/MagicMirror $ npm run config:check

                magicmirror@2.15.0 config:check /home/pi/MagicMirror
                node js/check_config.js

                [02.05.2021 12:20.01.503] [INFO] Checking file… /home/pi/MagicMirror/config/config.js
                [02.05.2021 12:20.01.719] [INFO] Your configuration file doesn’t contain syntax errors :)
                pi@raspberrypi:~/MagicMirror $

                S 1 Reply Last reply Reply Quote 0
                • S Do not disturb
                  sdetweil @damith
                  last edited by

                  @damith did u do the npm install in the module folder after git clone?

                  if u look at the startup messages, where u start mm
                  npm start
                  or pm2 logs --lines=100

                  you might see a message, module not found.
                  this is the number 1 clue you didn’t do the npm install

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  D 1 Reply Last reply Reply Quote 1
                  • D Offline
                    damith @sdetweil
                    last edited by

                    hi @sdetweil

                    Thank you very much for your reply… you are the NUMBER ONE… it works fine… Thanks again.

                    i have done NPM INSTALL… its worked fine…:face_savoring_food: :face_savoring_food:

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      damith
                      last edited by

                      hi guys… my GLOBE is woking fine… but there is a problem with City NAMES, i won’t display…, config is ok… can anyone help me …?

                      {
                      module: ‘MMM-Globe’,
                      position: ‘lower_third’, // This can be any of the regions. Best results in lower_third
                      config: {
                      size:“x-large”, // Globe size. See configuration options below for more options
                      dayLength: 38, // (Optional) Rotation speed. See configuration options below
                      viewAngle: 15, // (Optional) Globe tilt. See configuration options below.
                      introLinesDuration: 2000,
                      receiveExternalLocations: 0,
                      locations: [
                      // Fill with location Objects if desired
                      // e.g.
                      {lat:37.77493,lng:-122.41942, label:“San Francisco”},
                      {lat:7.58403,lng:80.78798, label:“Sri Lanka”},
                      {lat:-23.5475,lng:-46.63611, label:“Sao Paulo”}

                                      // Individual values must be seperated by a comma.
                                      // You can look up the latitude and longitude for a specific location on Google Maps.
                                          ]
                                          }
                                  },
                      ]
                      
                      1 Reply Last reply Reply Quote 0
                      • F Offline
                        Foxy25
                        last edited by Foxy25

                        HI

                        here is my working config:

                        Greetings Torsten

                        {
                        		module: 'MMM-Globe',
                        		position: 'fullscreen_below',	// This can be any of the regions. Best results in lower_third
                        		config: {
                                        size:"medium", // Globe size. See configuration options below for more options
                                        dayLength: 43, // (Optional) Rotation speed. See configuration options below
                                        viewAngle: 15, // (Optional) Globe tilt. See configuration options below.
                                        locations: [
                                            // Fill with location Objects if desired
                                            // e.g.
                                            // {lat:37.77493,lng:-122.41942, label: "San Francisco"},
                                            // {lat:-23.5475,lng:-46.63611, label: "Sao Paulo"}
                                            // Individual values must be seperated by a comma. 
                                            // You can look up the latitude and longitude for a specific location on Google Maps.
                        
                                            {lat:49.6294791,lng:7.8252699, label: "Rockenhausen" },
                                            {lat:40.7223507,lng:-73.9901943, label: "New York" },
                                            {lat:36.1047739,lng:-115.1421297, label: "Las Vegas" },
                                            {lat:13.7544142,lng:100.5020575, label: "Bangkok" },
                        
                                        ],
                        		},
                        	},
                        
                        1 Reply Last reply Reply Quote 0
                        • H Offline
                          hiro.nguyen
                          last edited by

                          Hi, may i ask if it is possible to change background to transparent ?
                          Thanks,

                          G S 2 Replies Last reply Reply Quote 0
                          • G Offline
                            greedyvegan @hiro.nguyen
                            last edited by

                            in the beginning of this post from 2021, it was recommended NOT to use this with a raspberry pi
                            today, in 2024, I have a raspberry pi 5, does that matter? lol

                            anyway, the left is on my pi 5 and the right is viewing it on a browser on my computer

                            Screenshot 2024-10-09 at 7.16.10 PM.png

                            is there an update on a lite version?

                            S 1 Reply Last reply Reply Quote 0
                            • S Do not disturb
                              sdetweil @hiro.nguyen
                              last edited by sdetweil

                              @hiro-nguyen sure, css

                              google search css transparent background

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              1 Reply Last reply Reply Quote 0
                              • S Do not disturb
                                sdetweil @greedyvegan
                                last edited by sdetweil

                                @greedyvegan you will need to enable the gpu in the system boot.txt

                                AND

                                tell MagicMirror electron to use it

                                export ELECTRON_ENABLE_GPU=1
                                

                                in the script before

                                npm  start
                                

                                if you used my script to install MagicMirror , that is ~/MagicMirror/installers/mm.sh

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                G 1 Reply Last reply Reply Quote 0
                                • G Offline
                                  greedyvegan @sdetweil
                                  last edited by greedyvegan

                                  @sdetweil

                                  like this?
                                  Screenshot 2024-10-10 at 5.49.34 PM.png

                                  I got this error
                                  [PM2][ERROR] File ecosystem.config.js not found

                                  S 1 Reply Last reply Reply Quote 0
                                  • S Do not disturb
                                    sdetweil @greedyvegan
                                    last edited by

                                    @greedyvegan that pm2 error is usually caused by using sudo sometime when you shouldn’t

                                    what happened before that? is that the first time w pm2

                                    maybe

                                    pm2 status
                                    pm2 delete xxx
                                    where xxx is the name or number on the MagicMirror line

                                    then run my fixuppm2 script

                                    pm2 seems fragile recently. not sure why

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    G 1 Reply Last reply Reply Quote 0
                                    • G Offline
                                      greedyvegan @sdetweil
                                      last edited by greedyvegan

                                      @sdetweil

                                      i accidently ran pm2 start instead of pm2 start mm
                                      then it returned

                                      [PM2][ERROR] File ecosystem.config.js not found

                                      then i ran pm2 start mm
                                      then it returned

                                      [PM2][ERROR] Script not found: /home/thecastle/MagicMirror/mm

                                      status
                                      Screenshot 2024-10-10 at 6.37.50 PM.png

                                      after pm2 delete 0
                                      Screenshot 2024-10-10 at 6.38.56 PM.png

                                      after pm2 save

                                      Screenshot 2024-10-10 at 6.39.49 PM.png

                                      update -
                                      it’s currently running (it was always running, it just had a weird error)
                                      and told me to copy/paste

                                      sudo env PATH=$PATH:/usr/local/bin /usr/local/lib/node_modules/pm2/bin/pm2 startup systemd -u pi --hp /home/pi

                                      S 1 Reply Last reply Reply Quote 0
                                      • S Do not disturb
                                        sdetweil @greedyvegan
                                        last edited by

                                        @greedyvegan yep, that’s why you run my script. lots of things to do

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        G 1 Reply Last reply Reply Quote 0
                                        • G Offline
                                          greedyvegan @sdetweil
                                          last edited by

                                          @sdetweil

                                          thank you very much!

                                          1 Reply Last reply Reply Quote 0

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          • 1
                                          • 2
                                          • 3
                                          • 4
                                          • 5
                                          • 6
                                          • 5 / 6
                                          • 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