智能物联网鱼缸

硬件部分及接线图

工具

继电器、开发板、物联网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>
相关推荐
2401_885405512 小时前
定位守护童年,科技构筑安全屏障
科技·物联网·安全·小程序·宠物·web app·智能手表
openHiTLS密码开源社区2 小时前
【密码学实战】openHiTLS s_server命令行:搭建国密标准安全通信服务器
服务器·物联网·密码学·openhitls·tlcp·商用密码算法·dtlcp
搞科研的小刘选手3 小时前
【大会邀请】2025年AI驱动下:业务转型和数据科学创新国际学术会议(ICBTDS 2025)
人工智能·物联网·大模型·智慧城市·数据科学·ai驱动·计算科学
b***25116 小时前
赋能高效电池制造:圆柱电芯组合式双面自动点焊技术
物联网·自动化
Net_Walke1 天前
【Linux系统】文件IO
linux·物联网·iot
riveting1 天前
48 元四核 ARM 核心板!明远智睿 2351 进入嵌入式市场
物联网·智能家居·嵌入式开发·明远智睿·2351核心板
wh_xia_jun1 天前
Python串口通信与MQTT物联网网关:连接STM32与物联网平台
python·stm32·物联网
云山工作室2 天前
2025年单片机毕业设计选题物联网计算机电气电子通信类
单片机·物联网·课程设计
小莞尔2 天前
【51单片机】【protues仿真】基于51单片机温度测量系统
c语言·单片机·嵌入式硬件·物联网·51单片机
趣味编程1112 天前
物联网系统三层架构解析
物联网·架构