Giter Site home page Giter Site logo

yeywj / jetlinks-platform Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jetlinks/jetlinks-platform

0.0 0.0 0.0 18.75 MB

已迁移到. https://github.com/jetlinks/jetlinks-community

Shell 0.01% JavaScript 91.21% Java 1.20% CSS 5.01% HTML 2.58% Dockerfile 0.01%

jetlinks-platform's Introduction

JetLinks Platform

JetLinks的核心功能整合,以及实现简单的业务功能.

启动

启动项目需要Redis,ElasticSearch,Postgresql 你可以通过配置文件application.yml的配置项 spring.redis以及spring.elasticsearch.jest.uris配置相关信息

也可以使用docker启动相关环境

   $ cd docker
   $ docker-compose up

使用maven命令:mvn spring-boot:run 或者使用IDE启动JetLinksApplication.main

测试

  1. 成功启动服务后, 打开浏览器:http://127.0.0.1:8844 账号密码:admin
  2. 使用模拟器模拟设备

模拟器使用方式请点击查看

修改数据库类型

直接修改application.yml配置项spring.r2dbc以及easyorm.相关配置即可。 数据库支持H2,Mysql,Oracle,PostgreSQL,SqlServer

业务功能

  • 协议管理
    • 内置协议
    • 自定义协议
    • jar包实现协议SPI
    • 在线配置(脚本)
  • 设备管理
    • 设备型号
      • 设备型号模型
    • 设备实例
      • 设备添加,注册
      • 设备批量导入
      • 设备属性,状态,日志
      • 设备调试
  • 规则引擎
    • 规则模型
      • 定时调度
      • 设备消息订阅,发送
      • MQTT 服务端,客户端
      • SQL
      • elasticsearch
      • 动态脚本
      • 邮件通知
    • 规则实例
      • 运行状态
      • 运行日志
  • 系统管理
    • 用户管理
    • 权限维度管理
    • 权限设置
    • API管理

设备定义

      {
       "id": "test",
       "name": "测试",
       "properties": [
         {
           "id": "name",
           "name": "名称",
           "valueType": {
             "type": "string"
           }
         }
       ],
       "functions": [
         {
           "id": "playVoice",
           "name": "播放声音",
           "inputs": [
             {
               "id": "text",
               "name": "文字内容",
               "valueType": {
                 "type": "string"
               }
             }
           ],
           "output": {
             "type": "boolean"
           }
         }
       ],
       "events": [
         {
           "id": "temp_sensor",
           "name": "温度传感器",
           "valueType": {
             "type": "double"
           }
         },
         {
           "id": "fire_alarm",
           "name": "火警",
           "valueType": {
             "type": "object",
             "properties": [
               {
                 "id": "location",
                 "name": "地点",
                 "valueType": {
                   "type": "string"
                 }
               },
               {
                 "id": "lng",
                 "name": "经度",
                 "valueType": {
                   "type": "double"
                 }
               },
               {
                 "id": "lat",
                 "name": "纬度",
                 "valueType": {
                   "type": "double"
                 }
               }
             ]
           }
         }
       ]
     }

jetlinks-platform's People

Contributors

zhou-hao avatar gyf520 avatar wangzheng0723 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.