Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jixuan1989/iotdb-tutorial
https://github.com/jixuan1989/iotdb-tutorial
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/jixuan1989/iotdb-tutorial
- Owner: jixuan1989
- Created: 2019-08-12T14:18:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-07T18:32:43.000Z (over 3 years ago)
- Last Synced: 2024-10-03T12:23:31.248Z (about 2 months ago)
- Language: Java
- Size: 29.3 KB
- Stars: 9
- Watchers: 4
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
this repo contains some codes to cover the life cycle of data in a simulated IoT scenario.
The process is:
- data generation ("datagenerator" package)
- use JMX API to get the CPU and memory measurements of your computer.
- (TODO) use PLC4J to get data from a modbus-protocol based PLC.- data collection ("collect" package)
- collect the above data into Kafka
- collect the above data into MQTT server
- collect the above data into IoTDB directly.
- data store
- store all data into IoTDB
- data query ("accessdata" package)
- query data from IoTDB.
- data analyze ("analyze" package)
- analyze TsFile data that written by IoTDB.
- To get one or more TsFiles, you may need to run an IoTDB-client.sh and execute "flush" command
first. Then, you can copy the file path to `SparkSQLAnalyzer` file.- data visualization
- please read https://github.com/apache/incubator-iotdb/tree/master/grafana
## how to use EMQ* deploy EMQ: https://github.com/emqx/emqx/releases/tag/v4.0-alpha.1
* start EMQ: ./bin/emqx start
* deploy IoTDB: ./sbin/start-server.sh
* start IoTDB server: ./sbin/start
* run InitStorageGroup
* launch EMQXConsumerStore
* uncomment " writer = new EMQXSender(); writer.connect("127.0.0.1", 1883);" in DataGenerator
* start DataGenerator
* start IoTDB client: ./sbin/start-client.sh
* select data: select * from root;