[ https://jira.fiware.org/browse/HELP-8937?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fernando Lopez updated HELP-8937:
---------------------------------
Description:
Created question in FIWARE Q/A platform on 01-12-2016 at 12:12
{color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/40909799/error-registering-weather-forcast-data-model-ngsi-v2
+Question:+
Error registering Weather Forcast data model (NGSI v2)
+Description:+
I am trying to register weather forcast on ContextBroker V1.5.0 but getting below error :-
400 Bad Request
{
"error": "BadRequest",
"description": "attribute must be a JSON object, unless keyValues option is used"
}
Request:
POST http://[ContextBroker IP]:1026/v2/entities
Request header :
Content-Type:application/json
Here is the payload
{
"feelsLikeTemperature":31.8,
"dayMinimum":{"feelsLikeTemperature":31.8,"temperature":0.0,"relativeHumidity":31.0},
"temperature":0.0,
"dateCreated":"2016-12-01T12:05:00+05:30",
"type":"WeatherForecast",
"address":{"addressCountry":"IN","postalCode":"452001","addressLocality":"Indore"},
"windSpeed":3.7,
"validity":{"to":"2016-12-01T06:44:37Z","from":"2016-12-01T06:44:37Z"},
"source":"http://dataservice.accuweather.com/",
"precipitationProbability":0,
"dayMaximum":{"feelsLikeTemperature":31.8,"temperature":0.0,"relativeHumidity":31.0},
"weatherType":"Partly sunny",
"windDirection":"ENE",
"id":"452001_IN_YYYY-12-DD ",
"relativeHumidity":31.0
}
I verified with FIWARE data models on http://fiware-datamodels.readthedocs.io/en/latest/Weather/WeatherForecast/doc/spec/index.html but it does not seem to be working. Does anyone know solution to this problem?
was:
Created question in FIWARE Q/A platform on 01-12-2016 at 12:12
{color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/40909799/error-registering-weather-forcast-data-model-ngsi-v2
+Question:+
Error registering Weather Forcast data model (NGSI v2)
+Description:+
I am trying to register weather forcast on ContextBroker V1.5.0 but getting below error :-
400 Bad Request
{
"error": "BadRequest",
"description": "attribute must be a JSON object, unless keyValues option is used"
}
Request:
POST http://[ContextBroker IP]:1026/v2/entities
Request header :
Content-Type:application/json
Here is the payload
{
"feelsLikeTemperature":31.8,
"dayMinimum":{"feelsLikeTemperature":31.8,"temperature":0.0,"relativeHumidity":31.0},
"temperature":0.0,
"dateCreated":"2016-12-01T12:05:00+05:30",
"type":"WeatherForecast",
"address":{"addressCountry":"IN","postalCode":"452001","addressLocality":"Indore"},
"windSpeed":3.7,
"validity":{"to":"2016-12-01T06:44:37Z","from":"2016-12-01T06:44:37Z"},
"source":"http://dataservice.accuweather.com/",
"precipitationProbability":0,
"dayMaximum":{"feelsLikeTemperature":31.8,"temperature":0.0,"relativeHumidity":31.0},
"weatherType":"Partly sunny",
"windDirection":"ENE",
"id":"452001_IN_YYYY-12-DD ",
"relativeHumidity":31.0
}
I verified with FIWARE data models on http://fiware-datamodels.readthedocs.io/en/latest/Weather/WeatherForecast/doc/spec/index.html but it does not seem to be working. Does anyone know solution to this problem?
HD-Enabler: Orion
> [fiware-stackoverflow] Error registering Weather Forcast data model (NGSI v2)
> -----------------------------------------------------------------------------
>
> Key: HELP-8937
> URL: https://jira.fiware.org/browse/HELP-8937
> Project: Help-Desk
> Issue Type: Monitor
> Components: FIWARE-TECH-HELP
> Reporter: Backlog Manager
> Labels: fiware, fiware-orion
>
> Created question in FIWARE Q/A platform on 01-12-2016 at 12:12
> {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/40909799/error-registering-weather-forcast-data-model-ngsi-v2
> +Question:+
> Error registering Weather Forcast data model (NGSI v2)
> +Description:+
> I am trying to register weather forcast on ContextBroker V1.5.0 but getting below error :-
> 400 Bad Request
> {
> "error": "BadRequest",
> "description": "attribute must be a JSON object, unless keyValues option is used"
> }
> Request:
> POST http://[ContextBroker IP]:1026/v2/entities
> Request header :
> Content-Type:application/json
> Here is the payload
> {
> "feelsLikeTemperature":31.8,
> "dayMinimum":{"feelsLikeTemperature":31.8,"temperature":0.0,"relativeHumidity":31.0},
> "temperature":0.0,
> "dateCreated":"2016-12-01T12:05:00+05:30",
> "type":"WeatherForecast",
> "address":{"addressCountry":"IN","postalCode":"452001","addressLocality":"Indore"},
> "windSpeed":3.7,
> "validity":{"to":"2016-12-01T06:44:37Z","from":"2016-12-01T06:44:37Z"},
> "source":"http://dataservice.accuweather.com/",
> "precipitationProbability":0,
> "dayMaximum":{"feelsLikeTemperature":31.8,"temperature":0.0,"relativeHumidity":31.0},
> "weatherType":"Partly sunny",
> "windDirection":"ENE",
> "id":"452001_IN_YYYY-12-DD ",
> "relativeHumidity":31.0
> }
> I verified with FIWARE data models on http://fiware-datamodels.readthedocs.io/en/latest/Weather/WeatherForecast/doc/spec/index.html but it does not seem to be working. Does anyone know solution to this problem?
--
This message was sent by Atlassian JIRA
(v6.4.1#64016)
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy