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

MMM-Globe

Scheduled Pinned Locked Moved Utilities
119 Posts 39 Posters 174.4k Views 40 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.
  • B Offline
    binderth @lolobyte
    last edited by binderth Dec 29, 2016, 11:51 AM Dec 29, 2016, 11:47 AM

    @lolobyte said in MMM-Globe:

    EUMETSAT_MSG_MPE_LowResolution.png’

    That’s great! I did this:

    start: function () {
    	self = this;
    	this.url = '';
    	this.imageUrls = {
    		'natColor': 'http://rammb.cira.colostate.edu/ramsdis/online/images/latest/himawari-8/full_disk_ahi_natural_color.jpg',
    		'geoColor': 'http://rammb.cira.colostate.edu/ramsdis/online/images/latest/himawari-8/full_disk_ahi_true_color.jpg',
    		'airMass': 'http://rammb.cira.colostate.edu/ramsdis/online/images/latest/himawari-8/full_disk_ahi_rgb_airmass.jpg',
    		'fullBand': 'http://rammb.cira.colostate.edu/ramsdis/online/images/latest/himawari-8/himawari-8_band_03_sector_02.gif',
    		'europeDiscNat': 'http://oiswww.eumetsat.org/IPPS/html/latestImages/EUMETSAT_MSG_RGBNatColour_LowResolution.jpg',
    		'europeDiscSnow': 'http://oiswww.eumetsat.org/IPPS/html/latestImages/EUMETSAT_MSG_RGBSolarDay_CentralEurope.jpg'
    	}
    	this.hiResImageUrls = {
    		'natColor': 'http://rammb.cira.colostate.edu/ramsdis/online/images/latest_hi_res/himawari-8/full_disk_ahi_natural_color.jpg',
    		'geoColor': 'http://rammb.cira.colostate.edu/ramsdis/online/images/latest_hi_res/himawari-8/full_disk_ahi_true_color.jpg',
    		'airMass': 'http://rammb.cira.colostate.edu/ramsdis/online/images/latest_hi_res/himawari-8/full_disk_ahi_rgb_airmass.jpg',
    		'fullBand': 'http://rammb.cira.colostate.edu/ramsdis/online/images/latest/himawari-8/himawari-8_band_03_sector_02.gif',
    		'europeDiscNat': 'http://oiswww.eumetsat.org/IPPS/html/latestImages/EUMETSAT_MSG_RGBNatColour_LowResolution.jpg',
    		'europePartSnow': 'http://oiswww.eumetsat.org/IPPS/html/latestImages/EUMETSAT_MSG_RGBSolarDay_CentralEurope.jpg'
    	}
    	console.log(this.imageUrls[this.config.style]);
    

    So, you can choose from more Images.

    • europeDiscNat: natural Color Europe Picture
    • europeDiscSnow: snow!!! ;)

    config.js

    	{
    		module: 'MMM-Globe',
    		position: 'center',
    		config: {
    			style: 'europeDiscNat',
    			imageSize: 600,
    			ownImagePath:'',
    			updateInterval: 10*60*1000
    		}
    	},
    

    If I have a bit more time, I’d like to add the standard ones and make a pull request to choose from. There’s a list of (near) real-time images from EUMETSAT: http://oiswww.eumetsat.org/IPPS/html/latestImages.html

    S S 2 Replies Last reply Dec 30, 2016, 2:26 PM Reply Quote 3
    • B Offline
      binderth @lolobyte
      last edited by Dec 29, 2016, 11:49 AM

      @lolobyte said in MMM-Globe:

      EUMETSAT_MSG_RGBNatColour_LowResolution.jpg

      only Problem with these images are the white bottomline, on my MM it looks like this:
      0_1483012096329_upload-dda9a5c9-d918-4dc6-b35c-ecf790791bed

      sadly, there’s some white capping down there, but I guess we have to live with that - real time cropping of images won’t make the PIs any faster! ;)

      L S 2 Replies Last reply Dec 29, 2016, 12:05 PM Reply Quote 0
      • L Offline
        lolobyte @binderth
        last edited by Dec 29, 2016, 12:05 PM

        @binderth

        yes, i know. That’s the south pole. ;-))

        Pull request, good idea.

        The Images are better then nothing.
        I searched for a better view for Europe with full disk, but nothing found.

        Maybe other sources from other user here?

        C 1 Reply Last reply Jan 30, 2017, 10:14 PM Reply Quote 0
        • S Offline
          schlachtkreuzer6 @binderth
          last edited by Dec 30, 2016, 2:26 PM

          @binderth niiiice! :)

          1 Reply Last reply Reply Quote 0
          • S Offline
            schlachtkreuzer6 @binderth
            last edited by Dec 30, 2016, 6:29 PM

            @binderth the globe is cut at south pole area, i think the white slice down there is the background color

            0_1483121888864_pi globe.PNG

            so i think the module cut a circle out of the webpage and down there is some part of the earth missing, or out of view. Also i got another issue: If I´m using the random Photo Module as background, i see a small black border around the full globe. So to fix that, there must be an adjustment for the size of the cutting circle. But anyway the main problem with that white slice is, the image source.

            S 1 Reply Last reply Jan 9, 2017, 6:40 PM Reply Quote 0
            • S Offline
              shgmongohh @binderth
              last edited by Jan 8, 2017, 11:25 AM

              @binderth

              If I have a bit more time, I’d like to add the standard ones and make a pull request to choose from. There’s a list of (near) real-time images from EUMETSAT: http://oiswww.eumetsat.org/IPPS/html/latestImages.html

              Very nice work!

              It would be awesome, if you could add the real time images!

              Sebastian

              S 1 Reply Last reply Jan 8, 2017, 11:47 AM Reply Quote -1
              • S Offline
                schlachtkreuzer6 @shgmongohh
                last edited by Jan 8, 2017, 11:47 AM

                @shgmongohh that would be awesome! thank you in advance :)

                1 Reply Last reply Reply Quote 0
                • S Offline
                  SvenSommer @schlachtkreuzer6
                  last edited by Jan 9, 2017, 6:40 PM

                  @schlachtkreuzer6
                  Hey guys,
                  I was able to cut the white bar by cutting the last pixels (depending on the image size) from this image with adding the following to MMM-Globe.js

                  getDom: function () {
                      var wrapper = document.createElement("div");
                      if (this.config.style == "europeDiscNat") {
                  	wrapper.style.height = 0.98 * this.config.imageSize - 1 + "px";
                  	wrapper.style.overflow = "hidden";
                      }
                  
                      var image = document.createElement("img");
                  

                  Looking for some building inspiration?
                  Check out my large, thin and metal framed mirror on robstechlog.com.

                  Modules released:
                  MMM-GoogleAnalytics
                  MMM-GrafanaChart
                  MMM-GrafanaGauges

                  S 1 Reply Last reply Jan 9, 2017, 6:46 PM Reply Quote 1
                  • S Offline
                    schlachtkreuzer6 @SvenSommer
                    last edited by Jan 9, 2017, 6:46 PM

                    @SvenSommer Nice work! Thanks. Post it on github as well :)

                    S 1 Reply Last reply Jan 9, 2017, 7:22 PM Reply Quote 0
                    • S Offline
                      SvenSommer @schlachtkreuzer6
                      last edited by Jan 9, 2017, 7:22 PM

                      @schlachtkreuzer6
                      done, I also included the sources from binderth and made a pull request.

                      Looking for some building inspiration?
                      Check out my large, thin and metal framed mirror on robstechlog.com.

                      Modules released:
                      MMM-GoogleAnalytics
                      MMM-GrafanaChart
                      MMM-GrafanaGauges

                      LukeCodewalkerL L 2 Replies Last reply Jan 9, 2017, 7:29 PM Reply Quote 1
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 11
                      • 12
                      • 3 / 12
                      • 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