-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b17ccb6
commit 1aa5ef0
Showing
55 changed files
with
2,161 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# IntelliConnect | ||
|
||
> 一个智慧的物联网平台. | ||
## 概述 | ||
* 本项目基于springboot2.7开发,使用spring security作为安全框架 | ||
* 配备物模型和完善的监控模块 | ||
* 原生支持promptulate大模型框架(开发中) | ||
* 支持多种iot协议,使用emqx exhook作为mqtt通讯,可扩展性强 | ||
* 支持微信小程序和微信服务号 | ||
* 使用常见的mysql和redis数据库,上手简单 | ||
* 支持时序数据库influxdb | ||
|
||
## 安装运行 | ||
* 安装mysql和redis数据库,高性能运行推荐安装时序数据库influxdb | ||
* 安装java17环境 | ||
* 修改配置文件application.yaml | ||
* java -jar demo-0.0.1-SNAPSHOT.jar | ||
|
||
## 项目特色 | ||
* 极简主义,层次分明,符合mvc分层结构 | ||
* 完善的物模型抽象,使得iot开发者可以专注于业务本身 | ||
|
||
## 交流群 | ||
|
||
欢迎加入群聊一起交流讨论有关Aiot相关的话题,链接过期了可以issue或email提醒一下作者。 | ||
|
||
<div style="width: 250px;margin: 0 auto;"> | ||
<img src="https://www.rslly.top/data/User/wonder/home/pictures/bf9be251bf2b7b3e2daabdc6055869d.jpg"/> | ||
</div> | ||
|
||
|
||
## 贡献 | ||
|
||
本人正在尝试一些更加完善的抽象模式,支持更多的物联网协议和数据存储形式,如果你有更好的建议,欢迎一起讨论交流。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<!-- _coverpage.md --> | ||
|
||
<style> | ||
.title { | ||
font-weight: bold; | ||
font-size: 50px; | ||
background-size: 400% 400%; | ||
background-image: linear-gradient(to right, #ff0000, #ff8000, #d83b01, #000000, #00d0ff, #9000ff,#ff008c); | ||
-webkit-background-clip: text; | ||
animation: text-color-gradient 10s ease infinite; | ||
color: transparent; | ||
} | ||
@keyframes text-color-gradient { | ||
0%{background-position:0% 50%} | ||
50%{background-position:100% 50%} | ||
100%{background-position:0% 50%} | ||
} | ||
</style> | ||
|
||
|
||
<div class="title">InteliConnect</div> | ||
|
||
> A Powerful iot platform. | ||
|
||
<p align="center"> | ||
<a target="_blank" href=""> | ||
<img src="https://img.shields.io/badge/license-apache2.0-yellow?style=flat-square"/> | ||
</a> | ||
<a target="_blank" href=''> | ||
<img src="https://img.shields.io/badge/release-v0.1-blue?style=flat-square"/> | ||
</a> | ||
<a target="_blank" href=""> | ||
<img src="https://img.shields.io/badge/cwl-project1.8-green?style=flat-square&link=https://wordpress.rslly.top"/> | ||
</a> | ||
</p> | ||
|
||
|
||
<p align="center"> | ||
<img src="images/logo.png"> | ||
</p> | ||
|
||
|
||
|
||
[GitHub](https://github.com/ruanrongman/IntelliConnect.git) | ||
[Getting Started](/README.md) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Document</title> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | ||
<meta name="description" content="Description"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0"> | ||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css"> | ||
</head> | ||
<nav> | ||
<a href="#/">文档 v1.8</a> | ||
<a href="#/">示例</a> | ||
</nav> | ||
<body> | ||
<div id="app"></div> | ||
<script> | ||
window.$docsify = { | ||
name: 'IntelliConnect', | ||
repo: 'https://github.com/ruanrongman/IntelliConnect.git', | ||
loadNavbar: true, | ||
loadSidebar: true, | ||
subMaxLevel: 3, | ||
coverpage: true, | ||
} | ||
</script> | ||
<!-- Docsify v4 --> | ||
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/** | ||
* Copyright © 2023-2030 The ruanrongman Authors | ||
* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package top.rslly.iot.dao; | ||
|
||
import top.rslly.iot.models.DataEntity; | ||
import top.rslly.iot.utility.influxdb.InfluxDBBaseMapper; | ||
import top.rslly.iot.utility.influxdb.ano.Delete; | ||
import top.rslly.iot.utility.influxdb.ano.Param; | ||
import top.rslly.iot.utility.influxdb.ano.Select; | ||
|
||
import java.util.List; | ||
|
||
public interface TimeDataRepository extends InfluxDBBaseMapper<DataEntity> { | ||
@Select(value = "SELECT * FROM \"data\" where time >=#{time1}ms and time <=#{time2}ms", | ||
resultType = DataEntity.class) | ||
List<DataEntity> findAllByTimeBetween(@Param("time1") Long time1, @Param("time2") Long time2); | ||
|
||
@Select( | ||
value = "SELECT * FROM \"data\" where time >=#{time}ms and time <=#{time2}ms and deviceId='#{deviceId}'", | ||
resultType = DataEntity.class) | ||
List<DataEntity> findAllByTimeBetweenAndDeviceId(@Param("time") long time, | ||
@Param("time2") long time2, @Param("deviceId") int deviceId); | ||
|
||
@Select( | ||
value = "SELECT * FROM \"data\" where time >=#{time}ms and time <=#{time2}ms and deviceId='#{deviceId}' and jsonKey=#{jsonKey}", | ||
resultType = DataEntity.class) | ||
List<DataEntity> findAllByTimeBetweenAndDeviceIdAndJsonKey(@Param("time") long time, | ||
@Param("time2") long time2, @Param("deviceId") int deviceId, | ||
@Param("jsonKey") String jsonKey); | ||
@Delete(value = "DELETE FROM \"data\" where time <=#{time}ms and deviceId='#{deviceId}' and jsonKey=#{jsonKey}") | ||
void deleteAllByTimeBeforeAndDeviceIdAndJsonKey(long time, int deviceId, | ||
String jsonKey); | ||
} |
Oops, something went wrong.