Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Powerpoint's live feed.

  1. Nov 20, 2004 #1

    Mk

    User Avatar

    Ok, so I have a project for school, and I'm thinking of getting the current satellite picture over Asia, Russia specifically. How do I do this?
     
  2. jcsd
  3. Nov 20, 2004 #2

    dduardo

    User Avatar
    Staff Emeritus

  4. Nov 20, 2004 #3

    Mk

    User Avatar

    Thank you, but I wanted to know how to get powerpoint to automaticly get something like this off the internet.
     
  5. Nov 20, 2004 #4

    dduardo

    User Avatar
    Staff Emeritus

    What do you mean automatically? Just select the picture, save the file and insert it into your powerpoint presentation.
     
  6. Nov 20, 2004 #5

    Mk

    User Avatar

    I mean, I want the powerpoint to always have the latest one, not only the one I saved three days ago.
     
  7. Nov 20, 2004 #6

    Mk

    User Avatar

  8. Nov 20, 2004 #7

    dduardo

    User Avatar
    Staff Emeritus

    Do you think they take aerial photos everyday? They are usually taken a year or more apart. This only makes sense. I mean you're not going to see a huge difference in landscape from one day to another.
     
  9. Nov 20, 2004 #8

    dduardo

    User Avatar
    Staff Emeritus

    O, well you should have said weather in the first place. It would probable take a lot of effort to get a self updating powerpoint presention. The other option is to use openoffice's impress. The reason I say this is because openoffice uses a zip archive with a xml file format which makes it very easy to modify the presentation. You could probable write some quick code to get rip the lastest image and then put the file inside the Pictures folder.
     
  10. Nov 20, 2004 #9

    Mk

    User Avatar

    Ohh, I seem to remember seeing something on techtv, how to have feed off the internet update your excel spreadsheets, but I couldn't remember how to do it. I thought it would be kind of like on excel.
     
  11. Nov 20, 2004 #10

    dduardo

    User Avatar
    Staff Emeritus

  12. Nov 20, 2004 #11

    Mk

    User Avatar

    Can't I insert part of a speadsheet into powerpoint, with the importing feature applied?
     
  13. Nov 20, 2004 #12

    dduardo

    User Avatar
    Staff Emeritus

    Excel just extracts text, not images.
     
  14. Nov 20, 2004 #13

    Mk

    User Avatar

    Ok, How do I do this than? I have OpenOffice. Wouldn't it be easier to just copy and paste the latest image?
     
  15. Nov 20, 2004 #14

    Mk

    User Avatar

    Can I stick the source code in?
     
  16. Nov 20, 2004 #15

    dduardo

    User Avatar
    Staff Emeritus

    What you would want to do is have a program unzip the .sxi file, download the latest image, overwrite the old image located in the Pictures folder and then zip back to .sxi

    Depending on which programming langauge you use downloading the latest image will differ, but the rest can be done using a basic shell script to cp the file into the folder.
     
  17. Nov 20, 2004 #16

    Mk

    User Avatar

    I ment HTML code from the website: http://m.imwx.com/looper/archive/russia_sat_720x486/2L.jpg?1101003092614
    its only the animated picture. I'm not much of a programmer.

    Code (Text):
    <HTML>
    <HEAD>
        <TITLE>weather.com - Map Navigator - Russia  Satellite</TITLE>
        <!-- externals version 2004.07.27 @ 11:39 AM modified by Wendy Frazier -->
    <LINK REL="stylesheet" TYPE="text/css" HREF="http://j.imwx.com/web/common/header/stylesheet/style_sheet.css">
    <META HTTP-EQUIV="MSThemeCompatible" Content="Yes">
    <meta http-equiv="imagetoolbar" content="no">
    <SCRIPT LANGUAGE="JavaScript1.2">
    <!--
    isMinNS4 = (document.layers) ? 1 : 0;
    isMinIE4 = (document.all) ? 1 : 0;
    isMinIE5 = (document.getElementById&&document.all) ? 1 : 0;
    isNS6 = (document.getElementById&&!document.all) ? 1 : 0;
    var popup;
    var dateNow=new Date();
    var haton=0;
    function initialize_ad_array(adS)
    {
      adS['uk.weather.com']=new Array('uk.weather.com','http://www.weather.com/RealMedia/ads/');
      adS['br.weather.com']=new Array('br.weather.com','http://www.weather.com/RealMedia/ads/');
      adS['fr.weather.com']=new Array('fr.weather.com','http://www.weather.com/RealMedia/ads/');
      adS['de.weather.com']=new Array('de.weather.com','http://www.weather.com/RealMedia/ads/');
      adS['espanol.weather.com']=new Array('espanol.weather.com','http://www.weather.com/RealMedia/ads/');
      adS['desktop3.weather.com']=new Array('desktop3.weather.com','http://www.weather.com/RealMedia/ads/');
      adS['desktop.weather.com']=new Array('desktop.weather.com','http://www.weather.com/RealMedia/ads/');
      adS['adstest.weather.com']=new Array('adstest.weather.com','http://adstest.weather.com/RealMedia/ads/');
      adS['beta.weather.com']=new Array('www.weather.com','http://beta.weather.com/RealMedia/ads/');
      adS['photo.weather.com']=new Array('www.weather.com','http://www.weather.com/RealMedia/ads/');
      adS['www.w3.weather.com']=new Array('www.weather.com','http://www.w3.weather.com/RealMedia/ads/');
      adS['beta.w3.weather.com']=new Array('beta.weather.com','http://beta.w3.weather.com/RealMedia/ads/');
      adS['registration.weather.com']=new Array('registration.weather.com','http://www.weather.com/RealMedia/ads/');


    }
    // -->
    </script>
    <SCRIPT LANGUAGE="JavaScript1.2" SRC="http://j.imwx.com/common/header/javascript/ext.js" ></SCRIPT>
    <SCRIPT LANGUAGE="JavaScript1.2" SRC="http://j.imwx.com/common/header/javascript/triggerParams.js" ></SCRIPT>

    <SCRIPT LANGUAGE="JavaScript1.2" SRC="http://j.imwx.com/common/header/javascript/stdLauncher.js" ></SCRIPT>
    <SCRIPT LANGUAGE="JavaScript1.2" SRC="http://j.imwx.com/common/header/javascript/divtools.js" ></SCRIPT><SCRIPT LANGUAGE="JavaScript1.2">
    <!--

    //
    // <% /**
    var remoteAddr="172.16.24.23";
    // **/ %>


    var adTest=GetCookie("oas_host_cookie");

    function regenerate2() {
        return;
    }

    function initialize_dom_severe_scroll() {
        return;
    }

    function onPageStart() {
        regenerate2();
        if (isMinNS4 && document.images["holdspace"]) {
            thisX = document.images["holdspace"].x;
            thisY = document.images["holdspace"].y;
            thisElement = makeObjectNS4();
        }
        if (document.getElementById) initialize_dom_severe_scroll();
    }

    window.onload = onPageStart;

    var adS=new Array();
    initialize_ad_array(adS);

    OAS_url ='http://www.weather.com/RealMedia/ads/';
    OAS_host = window.location.hostname;

    if (OAS_host.indexOf('w3')>0)
    {
        OAS_host = 'www.weather.com';
        OAS_url='http://www.w3.weather.com/RealMedia/ads/';  
    }else if (adS[OAS_host]){
         OAS_url=adS[OAS_host][1];
         OAS_host = adS[OAS_host][0];
    }else{
       OAS_host='www.weather.com';
    }

    // special ads test code
    if (adTest)
    {
        if ((remoteAddr.indexOf("10.") == 0)||
            (remoteAddr.indexOf("169.254.") == 0)||
            (remoteAddr.indexOf("192.168.") == 0)||
            (remoteAddr.indexOf("216.133.140.1") == 0)||
            (remoteAddr.indexOf("216.133.140.2") == 0))
           {
         OAS_host=adTest;
           }
      }

    OAS_target = "_top";
    OAS_version = 10;
    OAS_rn = '001234567890';
    OAS_rns = '1234567890';
    OAS_rn = new String (Math.random()); OAS_rns = OAS_rn.substring(2,11);
    function OAS_NORMAL(pos) {
    if (OAS_MJX_on){
      document.write('<A HREF="' + OAS_url + 'click_nx.ads/' + OAS_host + OAS_spoof + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + '" TARGET=' + OAS_target + '>');
      document.write('<IMG SRC="' + OAS_url + 'adstream_nx.ads/' + OAS_host + OAS_spoof + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + '" BORDER=0></A>');
      }
    }

    // this'll get overwritten later on the page render,
    // but if it doesn't, we're still OK

    function OAS_RICH(pos) {
      OAS_NORMAL(pos);
    }

    //This was added to "touch" the UserPreferences and RMID cookies with every
    //page view so that their expiration date changes.  If the cookie exists....
        var queryString = new Object;
        function parseParameter() {
        var temp_query = new RegExp ('^[^\\?]+\\?(.*)$');
        if ( ! temp_query.test(location) ) return false;
        var array = temp_query.exec(location);
        queryString.QUERY_STRING = array[1];
        var params = queryString.QUERY_STRING.split(/&/);
        for ( var i = 0; i < params.length; i++ ) {
            var keys = params[i].split(/=/);
            queryString[ keys[0] ] = unescape(keys[1]);
            }
        }
        function paramValue(key) {
        if ( key == null ) {
            alert("param() function has been used incorrectly.\nUSAGE: param(key)");
            return false;
        }
            return queryString[key];
        }
        parseParameter();  
       
        var vsearch = paramValue('search');
        var upcookie = GetCookie("UserPreferences");
        if(upcookie > 0 && vsearch != "search"){
            updateCookieExpDate("UserPreferences");
            updateCookieExpDate("RMID");
        }

    var customization_pathname = (window.location.pathname.indexOf("/weather/my")>=0)?1:0;

    //The below logic should only process on non-Customization pages.
    if (customization_pathname == 0){  
        var myPrefsCookie = GetCookie("MyPrefs");
        if(myPrefsCookie.length > 1){
            updateCookieUnescape("MyPrefs");
        }
    }  
    //-->
    </SCRIPT>
    <SCRIPT LANGUAGE="JavaScript1.1">
    <!--
    OAS_version = 11;
    if (!isMinIE4 && !isMinIE5 && !isNS6 && !isMinNS4) OAS_version = 10;
    if (OAS_MJX_on){
    if (OAS_version >= 11) document.write('<SCR' + 'IPT LANGUAGE=JavaScript1.1 SRC="' + OAS_url + 'adstream_mjx.ads/' + OAS_host + OAS_spoof + '/1' + OAS_rns + '@' + OAS_listpos + '?' + OAS_query + '"><\/SCRIPT>');
    }
    //-->
    </SCRIPT>
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    function OAS_AD(pos) {
            (OAS_version >= 11) ? OAS_RICH(pos) : OAS_NORMAL(pos);
    }
    //-->
    </SCRIPT>


    <script language="JavaScript1.2">
    addEvent(window,'load',mapInitLoad);
    var images = new Array();
    var thisMap = ['/looper/archive/russia_sat_720x486/'];
    var loaded = 0;
    var timerRunning = false;
    var animSpeed = 400;
    var animCounter = 0;
    var imagenames = new Array();
    var currentImage = 0;
    var uniquej = new Date();
    var uniquei = "?"+uniquej.getTime();
    var thisloc = document.location;
    setTimeout('reloadpage()' ,599000);
    function reloadpage() {
        stopMap();
        var op = "The images you are viewing may be outdated.<p>\nPlease use the link below to restart the animation with current images.<p>\n<a href=\"javascript:{document.location='"+thisloc+"'}\">Restart Animation</a><p>\n";
        document.open();
        document.write(op);
        document.close();  
    }
    function stopMap(){  
        if(timerRunning) clearInterval(timerID);
        timerRunning = false;
    }
    function startMap(){  
        stopMap();  
        timerRunning = true;
        timerID = setInterval('animMap()',animSpeed);
    }
    function imageLoaded() {
        document.images['severeMap'].myComplete = true;
    }
    function loadImages(thisNum){
        imagenames = new Array( 'http://m.imwx.com'+thisMap[thisNum]+'1L.jpg'+uniquei,'http://m.imwx.com'+thisMap[thisNum]+'2L.jpg'+uniquei,'http://m.imwx.com'+thisMap[thisNum]+'3L.jpg'+uniquei,'http://m.imwx.com'+thisMap[thisNum]+'4L.jpg'+uniquei,'http://m.imwx.com'+thisMap[thisNum]+'5L.jpg'+uniquei);
        loaded = 0;
        document.images['severeMap'].myComplete = true;
        document.images['severeMap'].onload = imageLoaded;
        for(n=0;n<imagenames.length;n++){
            images[n]=new Image();
            images[n].src=imagenames[n];
        }
        loaded = imagenames.length;
        startMap();
    }
    function mapInitLoad() {
        loadImages(0);
    }
    function animMap() {
        if (!document.images['severeMap'].myComplete) {
            return;
        }
        if (animCounter < 6) animCounter++;
        else animCounter = 0;
        var thisCounter = 0;
        if (animCounter == 5) thisCounter = 4;
        else if (animCounter == 6) thisCounter = 0;
        else thisCounter = animCounter;
        if (thisCounter != currentImage) {
            document.images['severeMap'].myComplete = false;
            document.images['severeMap'].src = images[thisCounter].src;
            currentImage = thisCounter;
        }
    }
    function animRMap() {
        if (!document.images['severeMap'].myComplete) return;
        if (animCounter > 0) animCounter--;
        else animCounter = 6;
        var thisCounter = 0;
        if (animCounter == 5) thisCounter = 4;
        else if (animCounter == 6) thisCounter = 0;
        else thisCounter = animCounter;
        if (thisCounter != currentImage) {
            document.images['severeMap'].myComplete = false;
            document.images['severeMap'].src = images[thisCounter].src;
            currentImage = thisCounter;
        }
    }
    function nextMap() {
        if (animCounter < 4) animCounter += 1;
        else animCounter = 0;
        document.images['severeMap'].src = images[animCounter].src;
        currentImage = animCounter;
    }
    function prevMap() {
        if (animCounter > 4) animCounter = 4;
        if (animCounter > 0) animCounter -= 1;
        else animCounter = 4;
        document.images['severeMap'].src = images[animCounter].src;
        currentImage = animCounter;
    }
    function startRMap(){  
        stopMap();  
        timerRunning = true;
        timerID = setInterval('animRMap()',animSpeed);
    }
    </script>
    </HEAD>

    <BODY BGCOLOR="#FFFFFF" LEFTMARGIN="0" TOPMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0" LINK="#004371" VLINK="#004371">
    <TABLE WIDTH=600 BORDER=0 CELLPADDING=0 CELLSPACING=0><TR>

    <TD WIDTH="100%">



    <img src="http://m.imwx.com/web/legends/autoload_600x405.gif" alt="" width="600" height="405" border="0" id="severeMap" name="severeMap"></TD></TR><FORM METHOD="post" ACTION="<!-- none specified -->"><TR><TD WIDTH="100%" CLASS="largeMap2">
    <input type="button" value="<<" onClick="if(loaded!=0){animSpeed=400;startRMap();}">  
    <input type="button" value=" < " onClick="if(loaded!=0){stopMap();prevMap();}">  
    <input type="button" value=" stop " onClick="if(loaded!=0)stopMap();">  
    <input type="button" value=" > " onClick="if(loaded!=0){stopMap();nextMap();}">  
    <input type="button" value=">>" onClick="if(loaded!=0){animSpeed=400;startMap();}"><p>
    <noscript>Your browser is unable to use our JavaScript-based looping application.  
    Please enable the JavaScript component within your browser
    to view our looping radar and satellite images.</noscript>
    <A HREF="/common/help/maps/satellite.html" onClick="return parent.mapWindowOpen('/common/help/maps/satellite.html','dif','width=450,height=450,resizable,scrollbars')" class="blkVerdanaText10">How to read this map</A>
       
    <a href="/multimedia/index.html?clip=365" target="_top">Severe Weather Outlook</A> <IMG SRC="http://image.weather.com/web/common/icons/video_icon_s.gif" BORDER="0" ALT="Free Content" ALIGN="MIDDLE">    

    <a href="/multimedia/index.html?clip=364" target="_top">National Forecast</A> <IMG SRC="http://image.weather.com/web/common/icons/video_icon_s.gif" BORDER="0" ALT="Free Content" ALIGN="MIDDLE">
    <BR>
    <BR>
    <SELECT NAME="mapSelect" onChange="parent.mapSwap(this.form.mapSelect.options[this.form.mapSelect.selectedIndex].value)">
    <OPTION VALUE="">Select Another Map</OPTION>
                        <OPTION VALUE="/maps/local/local/rs/1a/index_large.html" SELECTED>Russia  Satellite</OPTION>
                        <OPTION VALUE="/maps/local/local/rs/1a/europesatellite_large.html">Europe Satellite</OPTION>
                        <OPTION VALUE="/maps/local/local/rs/1a/asiasatellite_large.html">Asia Satellite</OPTION>
                        <OPTION VALUE="/maps/local/local/rs/1a/eastasiasatellite_large.html">East Asia Satellite</OPTION>

                        <OPTION VALUE="/maps/local/local/rs/1a/centralasiasatellite_large.html">Central Asia Satellite</OPTION>

    <!-- <OPTION VALUE="special">See more maps</OPTION>  -->
    </SELECT><BR>

                   
    </TD></TR></FORM></TABLE>
    </BODY>
    </HTML>
     
  18. Nov 24, 2004 #17

    Mk

    User Avatar

    I have recieved information that most of the HTML code written is ads and other BEEP like that.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Powerpoint's live feed.
  1. Nonlinear powerpoint (Replies: 2)

  2. Powerpoint background (Replies: 1)

  3. Feed Reader (Replies: 0)

Loading...