×

COVID-19印度更新程序开源分享

消耗积分:0 | 格式:zip | 大小:0.25 MB | 2023-07-04

李玉兰

分享资料个

描述

嗨兄弟姐妹

这是我使用thinger.io云开发的页面:https ://tinyurl.com/MrBeeHoneyCoronaDashboard

在这里,我将显示来自https://www.worldometers.info/coronavirus/这个网站的有关冠状病毒统计的网页。

此页面的目的:

1.实时冠状病毒感染数据 的统计仪表板此页面的主要目的是显示有关新型冠状病毒感染的统计报告,

  • 国名
  • 确诊病例
  • 今日案例
  • 治疗中
  • 康复病例
  • 测试
  • 死亡
  • 今天死亡
  • 在关键
  • 一百万人的测试次数
  • 一百万人的病例数
  • 一百万人的死亡人数
poYBAGOYB-2ABZEaAAHjLqAOaTY286.jpg
我的地区语言泰米尔语的所有统计数据
 

2. 孩子们展示火花的平台 还有一个就是,在封城期间,是一个让被锁的孩子们大展才华的平台。所以我通过 pinterest 和thinger.io cloud 的图像显示来展示他们的艺术作品。

pYYBAGOYwESADUrdAAHzi9Z6GCE971.jpg
儿童艺术作品
 

3. 开源 Corona 病毒数据可视化工具

这部分非常方便和简单。我从 https://ourworldindata.org/ 嵌入了 HTML 代码。在这个网站上,我们可以免费分享大量新冠病毒感染数据。

 
 
 
poYBAGOYwEmAHQ9QAAIAB1R26QM734.png
 
1 / 2确诊病例 - 您可以更改或更改国家
 

 

受信任的权威[从源站点复制]

Worldometer 被世界上历史最悠久、规模最大的图书馆协会美国图书馆协会(ALA)评为最佳免费参考网站之一。

Worldometer 是全球 COVID-19 统计数据的提供商,为世界各地的许多爱心人士提供服务。我们的数据也受到英国政府约翰霍普金斯 CSSE泰国政府巴基斯坦政府金融时报纽约时报商业内幕BBC许多其他机构的信任和使用。

在过去的 15 年中,我们的统计数据被要求并提供给:牛津大学出版社威利培生欧洲核子研究中心万维网联盟 (W3C) 大西洋英国广播公司、米尔顿 J. 鲁宾斯坦科技博物馆、弗吉尼亚科学博物馆、摩根士丹利IBM 惠普戴尔卡巴斯基普华永道亚马逊 Alexa 谷歌翻译联合国可持续发展大会 (Rio+20)U2演唱会等等。

现在我要告诉你如何做到这一点

只有三个硬件要求......

1. 5v/1amp 电源或墙壁适配器

2.您的智能手机有互联网和热点或普通的WiFi热点

3. NodeMCU任意一款或Wemos D1开发板。

从thinger.io网站获取免费仪表板。免费的我更喜欢这个。

然后从这里的文档页面下载适用于 arduino 的 thinger 库(所有内容都有据可查),因此请按照说明进行操作。

http://coronavirus-19-api.herokuapp.com/countries/转到此页面并选择您的国家。

pYYBAGOYwFOAdTEKAAQPr5-8a18181.png
这是来自网站api的数据
 

我选择印度所以去这个页面http://coronavirus-19-api.herokuapp.com/countries/India

poYBAGOYwFWAZhhAAACRR1JMcyk690.png
这个页面给出了我实际需要的变量名。
 

剩下的东西在代码中

1.从你的thinger.io凭证更新一切

#define USERNAME "xxxx"               // "thinger USERNAME"
#define DEVICE_ID "Wemos_D1"          // "Your Device Name"
#define DEVICE_CREDENTIAL "ghththt"   // "Device password from thinger"

2.把你的国家拿来统计

在这一行中,您必须输入您的国家名称

#define country_code "India"  // You can change your nation

3. WiFi 凭证

你应该改变这些行

#define SSID "ccccccc"                // My Mobile WiFi network name
#define SSID_PASSWORD "#$%^&"         // My Mobile WiFi network password

将所有内容上传到芯片上...

一旦您的设备与thinger.io连接,从名为dashboard 的选项卡中添加仪表板和所需的楔块

pYYBAGOYwFiAfazAAAGP4QdpQwo246.png
从仪表板添加楔子并从设备提供数据
 

 

poYBAGOYwFuASgoeAAEjgQwCkhc439.png
通过启用共享按钮共享为单独的网页
 

成功获得结果并作为单独的网页托管。对于移动分辨率可能会有所不同。

声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉

评论(0)
发评论

下载排行榜

全部0条评论

快来发表一下你的评论吧 !

'+ '

'+ '

'+ ''+ '
'+ ''+ ''+ '
'+ ''+ '' ); $.get('/article/vipdownload/aid/'+webid,function(data){ if(data.code ==5){ $(pop_this).attr('href',"/login/index.html"); return false } if(data.code == 2){ //跳转到VIP升级页面 window.location.href="//m.obk20.com/vip/index?aid=" + webid return false } //是会员 if (data.code > 0) { $('body').append(htmlSetNormalDownload); var getWidth=$("#poplayer").width(); $("#poplayer").css("margin-left","-"+getWidth/2+"px"); $('#tips').html(data.msg) $('.download_confirm').click(function(){ $('#dialog').remove(); }) } else { var down_url = $('#vipdownload').attr('data-url'); isBindAnalysisForm(pop_this, down_url, 1) } }); }); //是否开通VIP $.get('/article/vipdownload/aid/'+webid,function(data){ if(data.code == 2 || data.code ==5){ //跳转到VIP升级页面 $('#vipdownload>span').text("开通VIP 免费下载") return false }else{ // 待续费 if(data.code == 3) { vipExpiredInfo.ifVipExpired = true vipExpiredInfo.vipExpiredDate = data.data.endoftime } $('#vipdownload .icon-vip-tips').remove() $('#vipdownload>span').text("VIP免积分下载") } }); }).on("click",".download_cancel",function(){ $('#dialog').remove(); }) var setWeixinShare={};//定义默认的微信分享信息,页面如果要自定义分享,直接更改此变量即可 if(window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i) == 'micromessenger'){ var d={ title:'COVID-19印度更新程序开源分享',//标题 desc:$('[name=description]').attr("content"), //描述 imgUrl:'https://'+location.host+'/static/images/ele-logo.png',// 分享图标,默认是logo link:'',//链接 type:'',// 分享类型,music、video或link,不填默认为link dataUrl:'',//如果type是music或video,则要提供数据链接,默认为空 success:'', // 用户确认分享后执行的回调函数 cancel:''// 用户取消分享后执行的回调函数 } setWeixinShare=$.extend(d,setWeixinShare); $.ajax({ url:"//www.obk20.com/app/wechat/index.php?s=Home/ShareConfig/index", data:"share_url="+encodeURIComponent(location.href)+"&format=jsonp&domain=m", type:'get', dataType:'jsonp', success:function(res){ if(res.status!="successed"){ return false; } $.getScript('https://res.wx.qq.com/open/js/jweixin-1.0.0.js',function(result,status){ if(status!="success"){ return false; } var getWxCfg=res.data; wx.config({ //debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 appId:getWxCfg.appId, // 必填,公众号的唯一标识 timestamp:getWxCfg.timestamp, // 必填,生成签名的时间戳 nonceStr:getWxCfg.nonceStr, // 必填,生成签名的随机串 signature:getWxCfg.signature,// 必填,签名,见附录1 jsApiList:['onMenuShareTimeline','onMenuShareAppMessage','onMenuShareQQ','onMenuShareWeibo','onMenuShareQZone'] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2 }); wx.ready(function(){ //获取“分享到朋友圈”按钮点击状态及自定义分享内容接口 wx.onMenuShareTimeline({ title: setWeixinShare.title, // 分享标题 link: setWeixinShare.link, // 分享链接 imgUrl: setWeixinShare.imgUrl, // 分享图标 success: function () { setWeixinShare.success; // 用户确认分享后执行的回调函数 }, cancel: function () { setWeixinShare.cancel; // 用户取消分享后执行的回调函数 } }); //获取“分享给朋友”按钮点击状态及自定义分享内容接口 wx.onMenuShareAppMessage({ title: setWeixinShare.title, // 分享标题 desc: setWeixinShare.desc, // 分享描述 link: setWeixinShare.link, // 分享链接 imgUrl: setWeixinShare.imgUrl, // 分享图标 type: setWeixinShare.type, // 分享类型,music、video或link,不填默认为link dataUrl: setWeixinShare.dataUrl, // 如果type是music或video,则要提供数据链接,默认为空 success: function () { setWeixinShare.success; // 用户确认分享后执行的回调函数 }, cancel: function () { setWeixinShare.cancel; // 用户取消分享后执行的回调函数 } }); //获取“分享到QQ”按钮点击状态及自定义分享内容接口 wx.onMenuShareQQ({ title: setWeixinShare.title, // 分享标题 desc: setWeixinShare.desc, // 分享描述 link: setWeixinShare.link, // 分享链接 imgUrl: setWeixinShare.imgUrl, // 分享图标 success: function () { setWeixinShare.success; // 用户确认分享后执行的回调函数 }, cancel: function () { setWeixinShare.cancel; // 用户取消分享后执行的回调函数 } }); //获取“分享到腾讯微博”按钮点击状态及自定义分享内容接口 wx.onMenuShareWeibo({ title: setWeixinShare.title, // 分享标题 desc: setWeixinShare.desc, // 分享描述 link: setWeixinShare.link, // 分享链接 imgUrl: setWeixinShare.imgUrl, // 分享图标 success: function () { setWeixinShare.success; // 用户确认分享后执行的回调函数 }, cancel: function () { setWeixinShare.cancel; // 用户取消分享后执行的回调函数 } }); //获取“分享到QQ空间”按钮点击状态及自定义分享内容接口 wx.onMenuShareQZone({ title: setWeixinShare.title, // 分享标题 desc: setWeixinShare.desc, // 分享描述 link: setWeixinShare.link, // 分享链接 imgUrl: setWeixinShare.imgUrl, // 分享图标 success: function () { setWeixinShare.success; // 用户确认分享后执行的回调函数 }, cancel: function () { setWeixinShare.cancel; // 用户取消分享后执行的回调函数 } }); }); }); } }); } function openX_ad(posterid, htmlid, width, height) { if ($(htmlid).length > 0) { var randomnumber = Math.random(); var now_url = encodeURIComponent(window.location.href); var ga = document.createElement('iframe'); ga.src = 'https://www1.elecfans.com/www/delivery/myafr.php?target=_blank&cb=' + randomnumber + '&zoneid=' + posterid+'&prefer='+now_url; ga.width = width; ga.height = height; ga.frameBorder = 0; ga.scrolling = 'no'; var s = $(htmlid).append(ga); } } openX_ad(828, '#berry-300', 300, 250);