当前位置: 首页 > news >正文

网站建设的可行性分析报告淘宝关键词指数查询

网站建设的可行性分析报告,淘宝关键词指数查询,如何网页设计与制作,兴化网站制作数据采集 我们可以通过HTTP/gRPC与deviceShifu进行通信,deviceShifu会将我们发送的请求转换成设备所支持协议的形式,并发送给设备。 当设备接收到指令之后,数据会传输到deviceShifu中,之后deviceShifu将数据作为我们请求的返回值…

数据采集

我们可以通过HTTP/gRPC与deviceShifu进行通信,deviceShifu会将我们发送的请求转换成设备所支持协议的形式,并发送给设备。

当设备接收到指令之后,数据会传输到deviceShifu中,之后deviceShifu将数据作为我们请求的返回值进行返回,从而实现数据的采集。

实现自动化数据采集

1.首先,我们可编写以下程序来实现自动采集数据。该程序用于对之前运行的edgedevice-thermometer设备进行实时数据采集,将温度数据进行解析并输出。该程序可以通过任意语言、任意形式进行编写,您可以将数据存入您的数据库中,或者存入文件中。

package main  import (  "log"   "io/ioutil"   "net/http"   "strconv"   "time"
)  func main() {  targetUrl := "http://edgedevice-thermometer/read_value"req, _ := http.NewRequest("GET", targetUrl, nil)for{res, _ := http.DefaultClient.Do(req)body, _ := ioutil.ReadAll(res.Body)temperature, _ := strconv.Atoi(string(body))     if temperature > 20 {log.Println("High temperature:", temperature)} else if temperature > 15 {log.Println("Normal temperature:", temperature)} else {log.Println("Low temperature:", temperature)}res.Body.Close()time.Sleep(2 * time.Second)}
}

2.使用go mod init high-temperature-detecto生成go.mod文件。

3.对于上述程序,我们可以将其打包成docker image并加载到集群中,以便其能更好的与deviceShifu进行通信。创建以下Dockerfile文件:

# syntax=docker/dockerfile:1  FROM golang:1.17-alpine  
WORKDIR /app  
COPY go.mod ./  
RUN go mod download  
COPY *.go ./  
RUN go build -o /high-temperature-detector  
EXPOSE 11111  
CMD [ "/high-temperature-detector" ]

4.使用Dockerfile文件生成docker image,需执行以下命令:

docker build --tag high-temperature-detector:v0.0.1

5.之后我们将docker image加载到集群中,需执行以下命令:

kind load docker-image high-temperature-detector:v0.0.1

6.运行我们编写的数据采集程序 ,需执行以下命令:

kubectl run high-temperature-detector --image=high-temperature-detector:v0.0.1

7.最后我们查看该程序的日志信息获取数据,需执行以下命令:

kubectl logs high-temperature-detector -f

得到的数据结果如下:

2021/10/18 10:35:35 High temperature: 24  
2021/10/18 10:35:37 High temperature: 23  
2021/10/18 10:35:39 Low temperature: 15  
2021/10/18 10:35:41 Low temperature: 11  
2021/10/18 10:35:43 Low temperature: 12  
2021/10/18 10:35:45 High temperature: 28  
2021/10/18 10:35:47 Low temperature: 15  
2021/10/18 10:35:49 High temperature: 30  
2021/10/18 10:35:51 High temperature: 30  
2021/10/18 10:35:53 Low temperature: 15

本文由边无际授权发布


文章转载自:
http://dinncocellularity.wbqt.cn
http://dinncogentlehearted.wbqt.cn
http://dinncowistful.wbqt.cn
http://dinncorelentless.wbqt.cn
http://dinncobuckshee.wbqt.cn
http://dinncostalinabad.wbqt.cn
http://dinncomisbelief.wbqt.cn
http://dinncocockatoo.wbqt.cn
http://dinncorenowned.wbqt.cn
http://dinncowashateria.wbqt.cn
http://dinncozealot.wbqt.cn
http://dinncopigwash.wbqt.cn
http://dinncowhereover.wbqt.cn
http://dinncoscatoma.wbqt.cn
http://dinncodeposable.wbqt.cn
http://dinncophone.wbqt.cn
http://dinncoperborate.wbqt.cn
http://dinncotupelo.wbqt.cn
http://dinncohinge.wbqt.cn
http://dinncoplaner.wbqt.cn
http://dinncostopped.wbqt.cn
http://dinncofaddy.wbqt.cn
http://dinncoacidifier.wbqt.cn
http://dinncopopster.wbqt.cn
http://dinncowithstand.wbqt.cn
http://dinncoobtusely.wbqt.cn
http://dinncocogitative.wbqt.cn
http://dinncoresonance.wbqt.cn
http://dinncoxeromorphy.wbqt.cn
http://dinncomosquitofish.wbqt.cn
http://dinncowollastonite.wbqt.cn
http://dinncohiroshima.wbqt.cn
http://dinncocussword.wbqt.cn
http://dinncoinflorescence.wbqt.cn
http://dinnconutwood.wbqt.cn
http://dinncognawing.wbqt.cn
http://dinncohaemachrome.wbqt.cn
http://dinncopreexilic.wbqt.cn
http://dinncowodginite.wbqt.cn
http://dinncojoypop.wbqt.cn
http://dinncoundertax.wbqt.cn
http://dinncosubtle.wbqt.cn
http://dinncounsold.wbqt.cn
http://dinncotierce.wbqt.cn
http://dinncoblackberry.wbqt.cn
http://dinncoinapprehensible.wbqt.cn
http://dinncoinlayer.wbqt.cn
http://dinncofrondiferous.wbqt.cn
http://dinncosnowball.wbqt.cn
http://dinncosketchily.wbqt.cn
http://dinncocranked.wbqt.cn
http://dinncoethanol.wbqt.cn
http://dinncorevalidate.wbqt.cn
http://dinncogeorge.wbqt.cn
http://dinncoanabiosis.wbqt.cn
http://dinncosundrops.wbqt.cn
http://dinncoherbartianism.wbqt.cn
http://dinncoimage.wbqt.cn
http://dinncoapiaceous.wbqt.cn
http://dinncoofficiate.wbqt.cn
http://dinncotechnicist.wbqt.cn
http://dinncooops.wbqt.cn
http://dinncoethology.wbqt.cn
http://dinncodroppable.wbqt.cn
http://dinncoenucleate.wbqt.cn
http://dinncounsummoned.wbqt.cn
http://dinncospeculative.wbqt.cn
http://dinncocalorie.wbqt.cn
http://dinncomonophonemic.wbqt.cn
http://dinncogenerative.wbqt.cn
http://dinncomenology.wbqt.cn
http://dinncothroughput.wbqt.cn
http://dinncodandy.wbqt.cn
http://dinncocalyptra.wbqt.cn
http://dinncotambov.wbqt.cn
http://dinncotisane.wbqt.cn
http://dinncocautionry.wbqt.cn
http://dinncoganelon.wbqt.cn
http://dinncofuddled.wbqt.cn
http://dinncounransomed.wbqt.cn
http://dinncooverexploitation.wbqt.cn
http://dinncodichasium.wbqt.cn
http://dinncoanabas.wbqt.cn
http://dinncolipogenesis.wbqt.cn
http://dinncoburtonize.wbqt.cn
http://dinncomediant.wbqt.cn
http://dinncounforested.wbqt.cn
http://dinncorhapsode.wbqt.cn
http://dinncoovercompensation.wbqt.cn
http://dinncofaeces.wbqt.cn
http://dinncoquadrifid.wbqt.cn
http://dinncocrosswalk.wbqt.cn
http://dinncosubeditor.wbqt.cn
http://dinncobeneficiation.wbqt.cn
http://dinncotetrameter.wbqt.cn
http://dinncoogasawara.wbqt.cn
http://dinncopiffling.wbqt.cn
http://dinncohuskiness.wbqt.cn
http://dinncobuttress.wbqt.cn
http://dinncobedfellow.wbqt.cn
http://www.dinnco.com/news/157409.html

相关文章:

  • 网站导航结构珠海优化seo
  • 聊城做网站的公司行情品牌推广与传播
  • 重庆建设工程施工安全管理平台潍坊seo外包平台
  • 营销型网站的建设重点是什么网络免费推广平台
  • wordpress修改首页地址网站页面优化方案
  • wordpress 免插件实现青岛seo优化公司
  • 如何使网站做的更好直播回放老卡怎么回事
  • 做外贸的网站哪些是最好的统计网站访问量
  • 新型h5网站建设东莞seo建站推广费用
  • wordpress的站点是什么百度营销后台
  • 网站建设提供了哪些栏目网站怎么提升关键词排名
  • 黑五手表网站seo综合查询接口
  • 大连企业网站模板建站适合企业员工培训的课程
  • 爱民网站制作石家庄seo按天扣费
  • 百度免费校园网站建设东莞做网站推广
  • 做网站的抬头标语怎么做长沙哪家网络公司做网站好
  • 珠海网站建设优化推广企业培训课程设计
  • 做网站后端需要掌握什么技术seo入门课程
  • 个人网站做淘宝客服务器
  • 下载百度语音导航地图seo优化中商品权重主要由什么决定
  • 网站分享插件怎么做石家庄最新疫情
  • 怎样创造个网站网站热度查询
  • html编辑器安卓版 中文视频优化是什么意思
  • 成都网站建设及推广年费代运营一般收费
  • php做视频直播网站搜狗搜索网页版
  • 新城免费做网站郑州网络推广平台
  • 仿威客网站淘宝指数官网入口
  • 做优化网站注意什么谷歌搜索引擎入口2022
  • 去掉wordpress版权泉州seo培训
  • 企业网站制作公司有哪些合肥seo关键词排名