cambecc / earth

a project to visualize global weather conditions
http://earth.nullschool.net
MIT License
5.99k stars 1.17k forks source link

Run without node.js #140

Open GeoTuxMan opened 2 months ago

GeoTuxMan commented 2 months ago

I want to run on localhost without node.js; so I change the path for al JS library like that: <script src="libs/earth/1.0.0/micro.js" charset="utf-8"></script> and for css: <link rel="stylesheet" type="text/css" href="styles/styles.css"> Also, I change the paths in products.js: var WEATHER_PATH = "../../../data/weather"; var OSCAR_PATH = "../../../data/oscar"; and in micro.js: var DEFAULT_CONFIG = "../../../data/weather/current/wind/surface/level/orthographic"; var TOPOLOGY = isMobile() ? "../../../data/earth-topo-mobile.json?v2" : "../../../data/earth-topo.json?v2";

Now, when I run from http://localhost/earth-master/public/index.html, it's show Initializing...(see the attached image) earth-master

GeoTuxMan commented 2 months ago

Solved.... var WEATHER_PATH = "data/weather"; var OSCAR_PATH = "data/oscar";