专栏名称: 院长技术
《院长技术》专注于DevOps技术栈研究,云原生、Istio,CICD、Docker、Prometheus、K8s、ServiceMesh、Jenkins、Linux、微服务、分布式存储、监控、日志收集、安全渗透、虚拟化等技术栈。
目录
相关文章推荐
河南省发改委  ·  服务供给开新篇②|千年窑烟今又起,“国潮”绞 ... ·  15 小时前  
河南省发改委  ·  服务供给开新篇②|千年窑烟今又起,“国潮”绞 ... ·  15 小时前  
江西检察  ·  好戏再唱 ·  23 小时前  
新声Pro  ·  我们与鬼神的距离 ·  昨天  
新声Pro  ·  我们与鬼神的距离 ·  昨天  
51好读  ›  专栏  ›  院长技术

一款可视化全球天气状况平台

院长技术  · 公众号  ·  · 2024-05-27 07:00

正文

院长简介

作者:院长

职位:运维开发工程师

官网:https://deanit.cn

博客:https://blog.deanit.cn

擅长:

【虚拟化,容器化,自动化运维,CICD,监控,日志,中间件,双机热备,分布式存储,数据库,认证,组网隧道,Kali 安全渗透,网络攻击,负载均衡,Html,Css,Js,Jq,Vue3,Shell,Python,Go,前后端框架】

项目地址

GitHub:https://gitee.com/xupingmao/xnote

项目简介

“地球”是一个将全球天气状况可视化的项目。

部署安装

安装node.js和npm后,克隆“earth”并安装依赖项:

git clone https://github.com/cambecc/earth
cd earth
npm install

启动服务

node dev-server.js 8080

浏览器访问

http://localhost:8080

获取地图数据

curl "http://www.nacis.org/naturalearth/50m/physical/ne_50m_coastline.zip" -o ne_50m_coastline.zip
curl "http://www.nacis.org/naturalearth/50m/physical/ne_50m_lakes.zip" -o ne_50m_lakes.zip
curl "http://www.nacis.org/naturalearth/110m/physical/ne_110m_coastline.zip" -o ne_110m_coastline.zip
curl "http://www.nacis.org/naturalearth/110m/physical/ne_110m_lakes.zip" -o ne_110m_lakes.zip
unzip -o ne_\*.zip
ogr2ogr -f GeoJSON coastline_50m.json ne_50m_coastline.shp
ogr2ogr -f GeoJSON coastline_110m.json ne_110m_coastline.shp
ogr2ogr -f GeoJSON -where "scalerank  lakes_50m.json ne_50m_lakes.shp
ogr2ogr -f GeoJSON -where "scalerank  lakes_110m.json ne_110m_lakes.shp
ogr2ogr -f GeoJSON -simplify 1 coastline_tiny.json ne_110m_coastline.shp
ogr2ogr -f GeoJSON -simplify 1 -where "scalerank  lakes_tiny.json ne_110m_lakes.shp
topojson -o earth-topo.json coastline_50m.json coastline_110m.json lakes_50m.json lakes_110m.json
topojson -o earth-topo-mobile.json coastline_110m.json coastline_tiny.json lakes_110m.json lakes_tiny.json
cp earth-topo*.json /public/data/

获取天气数据

YYYYMMDD=
curl "http://nomads.ncep.noaa.gov/cgi-bin/filter_gfs.pl?file=gfs.t00z.pgrb2.1p00.f000&lev_10_m_above_ground=on&var_UGRD=on&var_VGRD=on&dir=%2Fgfs.${YYYYMMDD}00" -o gfs.t00z.pgrb2.1p00.f000
grib2json -d -n -o current-wind-surface-level-gfs-1.0.json gfs.t00z.pgrb2.1p00.f000
cp current-wind-surface-level-gfs-1.0.json /public/data/weather/current\


Web访问

http://ip:3000






Demo访问

https://earth.nullschool.net/

招贤纳士

欢迎👏关注《院长技术》,只做原创,干货~~~

更多技术干货持续输出中......


知识星球,试运营中,

原价188¥在不断上涨, 现加入仅需129¥ ,文档正逐渐上传!

欢迎加入 QQ- 3群:【

1群-2群-已满

推荐阅读

K8s命令行交互运维神器







请到「今天看啥」查看全文