Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:
-
HD-Chapter:Data
-
HD-Enabler:Cosmos
Description
Created question in FIWARE Q/A platform on 07-09-2015 at 17:09
Please, ANSWER this question AT http://stackoverflow.com/questions/32442212/fiware-cygnus-can-we-store-orion-data-in-mongodb-under-other-types-than-string
Question:
Fiware Cygnus: Can we store Orion data in MongoDB under other types than String?
Description:
I am subscribing to Orion Context Broker data using Cygnus. Cygnus stores the data on MongoDB like the following. Is there a possibility to store the attrValue as float not as String to be able to use Mongo's aggregation features?
> db['cygnus_/kurapath_enocean_power_enocean'].find().pretty()
{
"_id" : ObjectId("55e81e9631d7791085668331"),
"recvTime" : ISODate("2015-09-03T10:19:02Z"),
"attrName" : "power",
"attrType" : "string",
"attrValue" : "2085.0"
}
2015-10-07 03:05|CREATED monitor | # answers= 1, accepted answer= True