Questions tagged [cumulocity]

Cumulocity is a proprietary, cloud-based Internet of Things (IoT) applications development platform.

Cumulocity is a proprietary, cloud-based Internet of Things (IoT) applications development platform with REST APIs to connect IoT devices. For connecting devices, many embedded environments using , , , , and others are supported.

302 questions
1
vote
1 answer

Cumulocity - where to store the configuration of multi-tenant microservice?

Apparently the best practice for storing microservice config settings is in the tenant options. But I have a use case where the microservice is multi-tenant and I want a common configuration for all tenants stored in one place. I got a tip to use…
Mihail Kostira
  • 510
  • 7
  • 10
1
vote
1 answer

Sending measurement from Node-Red to Cumulocity using MQTT

I am a real newbie to Cumulocity and am currently on a trial version. I have been able to use the REST setup in Postman for creating devices, sending measurement, notification and alarms. I have also tried the Hello MQTT example using MQTTBox. What…
1
vote
1 answer

Returning 404 error when asking for userboostrap in microservices

I'm trying to develop microservices on cumulocity. I'm following this https://cumulocity.com/guides/microservice-sdk/java/. I'm able to create the application having this response "availability": "MARKET", "id": "23", "key":…
1
vote
1 answer

Cumulocity : I can create a new role and its permission

Cumulocity : I can create a new role and its permission using Cumulocity UI Platform, I want to achieve same functionality using Cumulocity Rest API but I am not able find these rest APIs. Can anyone help me to achieve this ?
Manoj Narwal
  • 11
  • 1
  • 3
1
vote
0 answers

CEP/CEL executing out of order

We have a CEL/CEP executing every time a new measurement is created. We have noticed that some CELs triggered by older measurements execute before CELs triggered by newer measurements. (ie in the wrong order). In addition, sometimes CELs are…
1
vote
0 answers

Updating result for self created operations

I'm pretty new to working with cumulocity and I'm trying to change the result for self created operations. For Shell operations this solution works setting c8y_Command result String from Java. But for other operations it doesn't. The Operation would…
Lee Kebum
  • 37
  • 3
1
vote
1 answer

Cumulocity Inter-microservice communication best practice

I developed a microservice which calls the smartrule microservice. I found that: http://www.cumulocity.com/guides/reference/microservice-runtime#Access-to-the-platform-and-other-microservices However, this doesn’t address if the microservices are…
apes
  • 87
  • 8
1
vote
1 answer

Angular App Login Authentication using user name & password only and check the associated tenant from the backend layer

We are developing an angular 6 App for showing the sensor data and other details. In this app, we are having the login screen, in that we have only the USERNAME & PASSWORD fields. once we enter the Username & Password, the request will go to the…
PCA
  • 1,677
  • 6
  • 28
  • 45
1
vote
1 answer

Deploy custom Angular 6 app to Cumulocity Tenant

We are trying to create a custom app using Angular 6. We managed to deploy an Angular 2 app using this ( https://github.com/tastejs/todomvc/tree/gh-pages/examples/angular2 ) example, adding the cumulocity.json file and zipping it. With Angular 6 we…
Vinh Tran
  • 13
  • 4
1
vote
1 answer

Using AlarmService Throws different Errors in angular 6 TypeScript

I'm having some problem in resolving this error. When i add the Alarmservice i always get this error. When i checked this error in google, every one say, i have to add this in provider, If i add in provider also it is not working and i get a…
PCA
  • 1,677
  • 6
  • 28
  • 45
1
vote
1 answer

How to use c8yClient code in the Angular 6 App (typescript file)

For Example: import { Client } from '@c8y/client'; const baseUrl = 'https://demos.cumulocity.com/'; const tenant = 'demos'; const user = 'user'; const password = 'pw'; (async () => { const client = await Client.authenticate({ tenant, …
PCA
  • 1,677
  • 6
  • 28
  • 45
1
vote
1 answer

Cumulocity sample to get and set measurement data

I'm trying to access an existing a sensor from the cumulocity platform to get and set measurement data. Is there any small example how to do this? Thanks and kind regards, Andreas
Andreas
  • 21
  • 1
1
vote
1 answer

Use Kubernetes secret in microservice

Dear Cumulocity community, i am developing a microservice for Cumulocity which needs some secret information (private key). One requirement is to store this information in a secure way. Which means encrypted and only access able by the microservice?…
apes
  • 87
  • 8
1
vote
1 answer

Using the Alias annotation when reading the managed objects

I want to extend the managed object with some custom fragments. Something like this: @Alias(value = "Dictionary") public class Dictionary extends AbstractDynamicProperties { private Map records = new HashMap<>(); …
Mariusz Kraj
  • 107
  • 5
1
vote
1 answer

Working on historical data (incrementing properties)

I'm trying to write a CEP rule that would take all the existing ACTIVE alarms and increase a specific fragment bike_alarm.priority by 1 every minute. This is the whole structure of alarm: { "count": 1, "creationTime":…
Mariusz Kraj
  • 107
  • 5