Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
interns2022
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ayush.choudhary
interns2022
Commits
58cb80ab
Commit
58cb80ab
authored
Apr 04, 2022
by
charankumar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update assignment3.md
parent
84a3ad41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
1 deletion
+36
-1
assignments/assignment3.md
assignments/assignment3.md
+36
-1
No files found.
assignments/assignment3.md
View file @
58cb80ab
...
@@ -105,4 +105,39 @@ Sample Document:
...
@@ -105,4 +105,39 @@ Sample Document:
### Reference:
### Reference:
https://kairosdb.github.io/docs/restapi/QueryMetrics.html
https://kairosdb.github.io/docs/restapi/QueryMetrics.html
https://pypi.org/project/kairosdb-python/
\ No newline at end of file
https://pypi.org/project/kairosdb-python/
## Task 3: Working with MQTT & REDIS
# Description
Data from different sites will be pushed with frequency of 10 seconds for the parameters PM10,PM2.5,SO2,NO2 via mqtt.
data can be of different quality - Good ( 0 ), Maintainance ( 1 ), Error ( 2 )
Based on the quality of data update to different redis database.
sample data format:
```
json
{
"data"
:
{
"PM10"
:
100
,
"PM2.5"
:
23
,
"SO2"
:
21
,
"NO2"
:
32
}
"site_id"
:
"site_100"
,
"data_quality"
:
1
}
```
Use Redis for caching/storing information
create consumer's which consumes data from these topics and store to a redis db based on data quality.
### Tools to use:
1.
Pycharm / VSCode
2.
MQTT - (paho-mqtt)
3.
REDIS - (redis)
### Reference:
https://www.emqx.com/en/blog/how-to-use-mqtt-in-python
https://docs.redis.com/latest/rs/references/client_references/client_python/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment