Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
naiades
naiades-platform-poc
Commits
7fa588c8
Commit
7fa588c8
authored
Jul 21, 2020
by
Federico Sismondi
Browse files
Update() logs of DCA app
parent
4f154b1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
dca-carouge-watering/app.py
View file @
7fa588c8
...
...
@@ -63,7 +63,7 @@ def _forward_to_message_broker():
timestamp
=
request
.
json
[
'timestamp'
]
dev_eui
=
request
.
json
[
'deveui'
]
entity_id
=
mapping_deveui_to_fiware_id
[
dev_eui
]
app
.
logger
.
info
(
"Pushing IoT reading {}"
.
format
(
entity_id
))
app
.
logger
.
info
(
"Pushing IoT reading
({}) to
{}"
.
format
(
sensor_reading
,
entity_id
))
url
=
"{}/v2/entities/{}/attrs?options=keyValues"
.
format
(
URL_BASE
,
entity_id
)
payload
=
{
...
...
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