智能物联网鱼缸

硬件部分及接线图

工具

继电器、开发板、物联网os、云平台

微信小程序

结构:images、pages两个为主体。

标题头部分

javascript 复制代码
<view class="container">
<view class="head_box">
<image src="/images/面性鱼缸.png"></image>
<view>{{title}}</view>
</view>

图片png可以自己根据实际情况进行更换。这是一个view盒子,里面实现了标题效果。

对应的css样式:

css 复制代码
.head_box{
  display: inline-flex;
  padding-top: 120rpx;
}
.head_box > image{
  height: 100rpx;
  width: 100rpx;
}

天气预报盒子

javascript 复制代码
<view class="weather_box">
<view class="welcome_text">{{welcome}}</view>
<view class="flex">
<view class="w50">
<image wx:if="{{weatherText==='晴天'}}" src="/images/晴天.png" mode="widthFix" class="weather_png"></image>
<image wx:if="{{weatherText==='阴'}}" src="/images/阴天.png" mode="widthFix" class="weather_png"></image>
<image wx:if="{{weatherText==='多云'}}" src="/images/多云.png" mode="widthFix" class="weather_png"></image>
<image wx:if="{{weatherText==='小雨'}}" src="/images/小雨.png" mode="widthFix" class="weather_png"></image>
<image wx:if="{{weatherText==='中雨'}}" src="/images/中雨.png" mode="widthFix" class="weather_png"></image>
<image wx:if="{{weatherText==='大雨'}}" src="/images/大雨.png" mode="widthFix" class="weather_png"></image>
<image wx:if="{{weatherText==='暴雨'}}" src="/images/暴雨.png" mode="widthFix" class="weather_png"></image>
<image wx:if="{{weatherText==='雾'}}" src="/images/雾.png" mode="widthFix" class="weather_png"></image>
</view>
<view>
<view class="location_text">
<image src="/images/定位.png" class="location_png" mode="widthFix" ></image>
<text class="location_text">{{location}}</text>
</view>
<view class="tmp_text">{{tmp}}℃</view>
</view>
</view>
</view>

传感器信息盒子

javascript 复制代码
<view class="sensors_text">传感器设备</view>

<view class="sensors_system">
<view wx:for="{{sensorList}}" class="sensors_info">
      <view class="sensors_info1"> 
          <image src="{{item.img}}" style="height: 80rpx" mode="heightFix" ></image>
      </view>
      <view class="sensors_info2"> 
            <view>{{item.name}} </view>
            <view> {{item.parameter}}</view>
            <view> {{item.value}} {{item.unit}}</view>         
      </view>
      <view class="sensors_info3">! </view>
</view>
</view>

控制器盒子

javascript 复制代码
<view class="sensors_text">控制设备</view>

<view class="other_sensors" wx:for="{{otherSensorList}}" style="height: 120rpx" >

<view class="sensors_info1">
<image src="{{item.img}}" style="height: 70rpx; " mode="heightFix" ></image>
</view>
<view class="other_sensors_info2">{{item.name}}</view>

<view class=".other_sensors_info3"><switch checked="{{item.isOpen}}" data-param="{{item}}" bindchange="statusChange"/></view>
 

</view>

<view style="height: 60rpx;"></view>
</view>
相关推荐
MetrixAeroCore6 小时前
罗马尼亚跨境物联网通信痛点与方案:MetrixAeroCore物联网卡解析
物联网
黎阳之光6 小时前
数智透明·安全兜底|黎阳之光透明矿山,AI+数字孪生守护矿山生命线
人工智能·物联网·算法·安全·数字孪生
TurMass工程师6 小时前
“十五五”城市生命线升级窗口打开,TurMass 技术让智慧管廊更会“感知”
物联网·智慧城市·turmass·turmassmesh
深圳市晶科鑫实业有限公司7 小时前
5G与AIoT时代:如何选择晶振常用频率?
服务器·单片机·物联网·5g·智能路由器·健康医疗·信息与通信
物联通信量讯说8 小时前
物联网卡、流量卡、SIM 卡到底有什么区别?
物联网·iot·物联网卡
金线银线还是铜线?8 小时前
微能量收集PMIC芯片AEM00920的国产替代MF9005
物联网·太阳能·电源管理
黎阳之光9 小时前
视频孪生+空天地水工融合,黎阳之光构建智慧水利监测新范式
大数据·人工智能·物联网·算法·安全
2501_913981789 小时前
智慧畜牧养殖物联网解决方案汇总:技术驱动现代养殖的高效与智能化
物联网·智慧畜牧养殖
会周易的程序员10 小时前
使用 QClaw 驱动多 Agent 团队对项目进行专业安全审计实战
物联网·安全·iot·aiot·qclaw
Geometry Fu10 小时前
《物联网安全》第4章 网络攻防实例
网络·物联网·安全·网络攻击·网络攻防