Coder Social home page Coder Social logo

hs-web / hsweb-iot-cloud Goto Github PK

View Code? Open in Web Editor NEW
255.0 34.0 130.0 11.2 MB

本项目已迁移至 github.com/jetlinks

Home Page: https://github.com/jetlinks

Shell 0.01% Java 0.72% HTML 2.00% Dockerfile 0.01% CSS 5.87% JavaScript 91.39%
java iot-platform spring-boot spring-cloud vertx kafka mqtt udp hsweb

hsweb-iot-cloud's Introduction

开源物联网管理平台

License

目的

提供一个开源的物联网管理平台,支持各种设备接入,并完成数据上报,分析,处理等自定义功能.

技术栈

  1. java8,maven3
  2. spring-boot: 整合各种组件
  3. spring-cloud: 对微服务提供支持
  4. hsweb-framework: 基础业务框架
  5. vertx: 物联网通信(mqtt,udp)
  6. redisson: redis客户端
  7. spring-cloud-stream: 事件驱动
  8. kafka: 消息中间件
  9. docker: 快速环境搭建,持续交付

在使用本项目之前,你应该对以上技术有所了解.

模块介绍

 ---------hsweb-iot-cloud
 -------------docker                    # 一些docker脚本
 ---------------dev-env                 # 启动开发环境需要的外部服务(redis,kafka,zookeeper等)
 -------------eureka-server             # 服务注册中心
 -------------gateway-server            # 基于zuul的网关服务
 -------------iot-components            # 通用组件
 ------------------iot-authorization    # 权限集成
 ------------------iot-cloud-stream     # spring-cloud-stream集成
 ------------------iot-logging          # 访问日志,系统日志集成
 ------------------iot-redis            # redis集成
 ------------------server-dependencies  # 微服务通用依赖
 -------------mqtt-emulator             # mqtt客户端模拟器
 -------------user-server               # 用户服务
 -------------interaction-server        # 物联网设备交互服务

约定: 所有微服务以-server为后缀,微服务禁止依赖其他微服务,只能依赖iot-components内的通用依赖. 微服务间使用FeignClient或者spring cloud stream 进行通信.

使用

本项目使用了redis,kafka,zookeeper.因此在启动项目之前需要先安装并启动相应服务.

以linux为例:

  1. 下载源码

     git clone https://github.com/hs-web/hsweb-iot-cloud.git
    
  2. 执行启动开发环境脚本,将会使用docker安装相应服务.(自行安装docker)

     ./start-dev-env.sh
    

未提供windows下的安装脚本,windows下请自行安装相关服务:redis,zookeeper,kafka.

  1. 依次启动服务

     eureka-server,gateway-server,user-server....
    
  2. 服务启动成功后,浏览器访问: http://localhost:8000 ,用户名:admin 密码: admin

  3. 数据库,项目默认使用h2数据库,可自行修改application.yml配置更改数据库,目前支持: h2,mysql,oracle数据库. 系统首次启动将会自动初始化数据库,无需导入数据库脚本.

遇到问题? 可以加入QQ群:515649185, 或者使用issues提问.

贡献

目前缺前端大佬一名, 要求:

  1. 有开源精神,愿意无偿并长期献身开源项目.
  2. hsweb感兴趣.
  3. 有能力使用主流前端框架重写现有功能页面.
  4. 加入QQ群:515649185(备注:hsweb-iot-cloud) @群主.

License

License

hsweb-iot-cloud's People

Contributors

zhou-hao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hsweb-iot-cloud's Issues

求助,运行./start-dev-env.sh后,卡住了

系统为mac os,运行./start-dev-env.sh后,运行到此后,无反应了。
无其他报错,日志如下:
zookeeper_1 | 2018-11-23 02:45:19,568 [myid:] - INFO [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@649] - Got user-level KeeperException when processing sessionid:0x1673e750df90000 type:delete cxid:0x27 zxid:0x82 txntype:-1 reqpath:n/a Error Path:/admin/reassign_partitions Error:KeeperErrorCode = NoNode for /admin/reassign_partitions
zookeeper_1 | 2018-11-23 02:45:19,577 [myid:] - INFO [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@649] - Got user-level KeeperException when processing sessionid:0x1673e750df90000 type:delete cxid:0x29 zxid:0x83 txntype:-1 reqpath:n/a Error Path:/admin/preferred_replica_election Error:KeeperErrorCode = NoNode for /admin/preferred_replica_election
kafka_1 | [2018-11-23 02:45:19,625] INFO [/config/changes-event-process-thread]: Starting (kafka.common.ZkNodeChangeNotificationListener$ChangeEventProcessThread)
kafka_1 | [2018-11-23 02:45:19,636] INFO [SocketServer brokerId=1001] Started processors for 1 acceptors (kafka.network.SocketServer)
kafka_1 | [2018-11-23 02:45:19,638] INFO Kafka version : 2.0.1 (org.apache.kafka.common.utils.AppInfoParser)
kafka_1 | [2018-11-23 02:45:19,638] INFO Kafka commitId : fa14705e51bd2ce5 (org.apache.kafka.common.utils.AppInfoParser)
kafka_1 | [2018-11-23 02:45:19,639] INFO [KafkaServer id=1001] started (kafka.server.KafkaServer)

平台怎么应用

现在平台上看到的都是系统管理类的功能,我想知道怎么在平台上接入设备,展示设备数据,生成报警之类的?

error

Got user-level KeeperException when processing sessionid:0x1679bfe14190000 type:create cxid:0x3 zxid:0x117 txntype:-1 reqpath:n/a Error Path:/brokers/topics Error:KeeperErrorCode = NodeExists for /brokers/topics

登录报错

服务启动后,把ui下的文件拷贝到gateway-server\target\classes\static目录下,能正常打开登录页了,输入admin/admin登录提示:
NOAUTH Authentication required.. channel: [id: 0xd4f52c59, L:/127.0.0.1:30937 - R:127.0.0.1/127.0.0.1:6379] command: (HGET), params: [user-auth-, PooledUnsafeDirectByteBuf(ridx: 0, widx: 32, cap: 256)]
是什么原因呢

设备交互服务(interaction-server)

  • 建立设备交互服务 interaction-server

  • 使用vertx发布,mqtt,udp服务,供设备链接

  • 增加设备授权,调用设备服务( device-server)设备进行授权

  • 提供http接口给其他服务调用,支持向设备发送指令

  • 通过消息队列方式向设备发送指令

  • 设备回执或者上报数据后,将数据推送到消息队列

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.