智能物联网鱼缸

硬件部分及接线图

工具

继电器、开发板、物联网os、云平台
在这里插入图片描述

微信小程序

在这里插入图片描述
结构:images、pages两个为主体。

标题头部分

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

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

.head_box{
  display: inline-flex;
  padding-top: 120rpx;
}
.head_box > image{
  height: 100rpx;
  width: 100rpx;
}

天气预报盒子

<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>

在这里插入图片描述

传感器信息盒子

<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>

在这里插入图片描述

控制器盒子

<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>

在这里插入图片描述

相关推荐

  1. 基于STM32设计的联网智能鱼缸(微信小程序)(187)

    2024-07-10 17:14:02       7 阅读
  2. 联网智能互联创新开发平台

    2024-07-10 17:14:02       20 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-10 17:14:02       5 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-10 17:14:02       5 阅读
  3. 在Django里面运行非项目文件

    2024-07-10 17:14:02       4 阅读
  4. Python语言-面向对象

    2024-07-10 17:14:02       5 阅读

热门阅读

  1. poi导出值班excel

    2024-07-10 17:14:02       9 阅读
  2. MP公共字段填充

    2024-07-10 17:14:02       10 阅读
  3. 配置 VSCode C++ 调试时, 常见错误教程

    2024-07-10 17:14:02       10 阅读
  4. HarmonyOS应用开发前景及使用工具

    2024-07-10 17:14:02       7 阅读
  5. JVM的基础介绍(1)

    2024-07-10 17:14:02       10 阅读