cambecc / earth

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

Run without node.js #140

Open GeoTuxMan opened 4 months ago

GeoTuxMan commented 4 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 4 months ago

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