t6 logo # t6 - Connect real world Object & Devices to Digital Api _t6_ is a "Data-first" IoT platform to connect physical Objects with time-series DB and perform Data Analysis. Please referes to [CONTRIBUTING.md](https://github.com/mathcoll/t6/blob/master/CONTRIBUTING.md) in case you would like to help :-) ![Stable version](https://img.shields.io/badge/version-2.0.1-blue) ![GitHub commit activity](https://img.shields.io/badge/tests%20succeeded-193-brightgreen) ![GitHub commit activity](https://img.shields.io/badge/test%20average%20response%20time-802ms-brightgreen) ![GitHub commit activity](https://img.shields.io/github/commit-activity/w/mathcoll/t6) ![GitHub contributors](https://img.shields.io/github/contributors/mathcoll/t6) [![Netlify Status](https://api.netlify.com/api/v1/badges/3264e669-05d6-4032-bdc2-28b3fc270f71/deploy-status)](https://app.netlify.com/sites/t6iot/deploys) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/3d45972dd53246f58ba82a6f75483116)](https://www.codacy.com/gh/mathcoll/t6/dashboard?utm_source=github.com&utm_medium=referral&utm_content=mathcoll/t6&utm_campaign=Badge_Grade) [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/5210/badge)](https://bestpractices.coreinfrastructure.org/projects/5210) [![Mentioned in Awesome phodal awesome-iot](https://awesome.re/mentioned-badge.svg)](https://github.com/phodal/awesome-iot) [![Mentioned in Awesome HQarroum awesome-iot](https://awesome.re/mentioned-badge.svg)](https://github.com/HQarroum/awesome-iot) [![#nodejs](https://img.shields.io/badge/%23-nodejs-brightgreen)](https://github.com/topics/nodejs) [![#things](https://img.shields.io/badge/%23-things-brightgreen)](https://github.com/topics/things) [![#api](https://img.shields.io/badge/%23-api-brightgreen)](https://github.com/topics/api) [![#flow](https://img.shields.io/badge/%23-flow-brightgreen)](https://github.com/topics/flow) [![#home-automation](https://img.shields.io/badge/%23-home%20automation-brightgreen)](https://github.com/topics/home%20automation) [![#mqtt](https://img.shields.io/badge/%23-mqtt-brightgreen)](https://github.com/topics/mqtt) [![#iot](https://img.shields.io/badge/%23-iot-brightgreen)](https://github.com/topics/iot) [![#esp8266](https://img.shields.io/badge/%23-esp8266-brightgreen)](https://github.com/topics/esp8266) [![#middleware](https://img.shields.io/badge/%23-middleware-brightgreen)](https://github.com/topics/middleware) [![#sensor](https://img.shields.io/badge/%23-sensor-brightgreen)](https://github.com/topics/sensor) [![#internet-of-things](https://img.shields.io/badge/%23-internet%20of%20things-brightgreen)](https://github.com/topics/internet%20of%20things) [![#iot-platform](https://img.shields.io/badge/%23-iot%20platform-brightgreen)](https://github.com/topics/iot%20platform) [![#sensors](https://img.shields.io/badge/%23-sensors-brightgreen)](https://github.com/topics/sensors) [![#iot-framework](https://img.shields.io/badge/%23-iot%20framework-brightgreen)](https://github.com/topics/iot%20framework) [![#timeseries](https://img.shields.io/badge/%23-timeseries-brightgreen)](https://github.com/topics/timeseries) --- ## IoT and Physical World Physical World are composed by your sensors and actuators, real physical Objects/Devices. In _t6_, physical Objects needs* a virtual _[Object](https://github.com/mathcoll/t6/wiki/Object)_ as a reference in _t6_ and then, they are able to add _Data_ to _[Flows](https://github.com/mathcoll/t6/wiki/Flow)_. _*_ : remain optional Sample nodeMCU and Arduino scripts are available in the [sensors repository](https://github.com/mathcoll/t6/tree/master/sensors) and on [t6iot Arduino library](https://github.com/mathcoll/t6iot). ## t6 API first: Live, eat, and breathe the API-first lifestyle of t6 Detailed [Api documentation](https://doc.internetcollaboratif.info) will help you to connect your sensors to _t6_. Installing _t6_ on your own server is easy, follow the [installation guide](https://github.com/mathcoll/t6/wiki/Installing-t6) on Wiki page. More detailed explanation on [![wiki](https://img.shields.io/badge/t6%20documentation-orange)](https://www.internetcollaboratif.info/features/) is also available. ## t6 schematic ```mermaid sequenceDiagram; Object->>t6 Sockets: basic auth t6 Sockets-->>Object: welcome message t6 Sockets-->>Object: claim request Object->>t6 Sockets: claim Object t6 Sockets-->>Object: claimed loop As many as wished Object->>t6 Sockets: channel subscribe Object->>t6 Sockets: channel unsubscribe t6 Sockets-->>Object: channels end User->>+Object: Http GET /index Object-->>+User: html Ui and assets User->>t6 Sockets: Http /unsubscribe t6 Sockets-->>User: channels loop Custom frequency t6 Sockets->>Object: measureRequest Object-->>t6 Rest Api: Http POST /api/v2.0.1/data Object-->>t6 Sockets: remindMeToMeasure end ``` ## t6 Android Application _t6_ is available on the [Android Google Play Store](https://play.google.com/store/apps/details?id=info.internetcollaboratif.api) for free. This Application is using exactly the same code and Api from this repository. Some additional [Application screenshots](https://github.com/mathcoll/t6/wiki/Application-Screenshots). ## Helping and contributing to t6 Please refers to [CONTRIBUTING.md](https://github.com/mathcoll/t6/blob/master/CONTRIBUTING.md) in case you would like to help & contribute :-)