Community
cancel
Showing results for 
Search instead for 
Did you mean: 
idata
Community Manager
1,160 Views

Problems with alert and rule (IOT Analytics)

Hi guys,

I have create this rule:

I'm sure that cloud receive data from edison and store it on temperaturep component as you can see at the graph below

The value of temperaturep is always different from 10 but I don't receive any alerts.

Can someone tell me why?

Thanks

0 Kudos
13 Replies
idata
Community Manager
46 Views

Hi Vale,

 

 

Thanks for contacting us, also, for all the information shared.

 

 

Have you tried upgrading the iotkit-agent? Follow the steps for uploading from https://github.com/enableiot/iotkit-agent enableiot/iotkit-agent · GitHub.

 

 

Please let me know if this works.

 

 

Regards,

 

-Yermi

 

idata
Community Manager
46 Views

Hi,

thanks for your answer. I'm trying to use the C API so I don't use the iotkit-agent. How could I do to make it work?

idata
Community Manager
46 Views

Hi Vale,

 

 

I found this project http://www.instructables.com/id/Intel-Edison-Hydroponics-Controller/?ALLSTEPS http://www.instructables.com/id/Intel-Edison-Hydroponics-Controller/?ALLSTEPS. There built rules in the Intel's IoT Analytics Dashboard, so maybe you can set up the rule again or set up different rules and test if these work.

 

 

Also, I would like to know more details about your project, which sensor are you using? Which steps did you follow in order to connect the Edison to the cloud?

 

 

I'll be waiting for your reply.

 

 

Regards,

 

-Yermi

 

idata
Community Manager
46 Views

I've done the same things with the API C. for the connection to the cloud I have used the following steps:

1- getUserJwtToken

2- createDeviceCreationObject

3 - getActivationCode

4 - activateADevice

Then to add a component:

1 - createAnComponentCatalog

2 - addComponent

Finally:

3 - submitData

After verifing that the work is fine, I have add the rules directly on the cloud website but not work.

Thanks

idata
Community Manager
46 Views

Hi Vale,

 

 

Have you tested with different notification types? This would be in order to verify if with other notification types it works.

 

 

Regards,

 

-Yermi

 

idata
Community Manager
46 Views

Hi vale,

 

 

I would like to know if you have any updates. Did you test with different notification types?

 

 

Regards,

 

-Yermi

 

idata
Community Manager
46 Views

Hi,

Yes, I try but alerts don't work.

idata
Community Manager
46 Views

Hi Vale,

 

 

I would like to replicate the steps you followed with the API C, could you please share the detailed steps or any link about it?

 

 

Regards,

 

-Yermi

 

idata
Community Manager
46 Views

Hi Vale,

 

 

I would like to know if you can share with us the information requested in the previous post.

 

 

Regards,

 

-Yermi

 

idata
Community Manager
46 Views

Hi here is the code: with iotkit-lib-c API

iotkit_init();

char *response_token = NULL;

char *response_activation_device = NULL;

response_token = getUserJwtToken(username, password);

DeviceCreationObj *Device;

Device = createDeviceCreationObject(id, gateway, name);

response_activation_device = createADevice(Device);

isActivated = isDeviceActivated();

if (!isActivated) {

response_activation_code = renewActivationCode();

response_activation_device = activateADevice getActivationCode(response_activation_code));

}

char *response_comp = NULL;

char *response_add_component = NULL;

bool isRegistered = false;

isRegistered = isSensorRegistered("temperatura");

if (!isRegistered) {

ComponentCatalog *cmpObject = createComponentCatalogObject("temperatura", "1.0", "temperatura.v1.0", "sensor", "Number", "float", "Degrees Celsius", "timeSeries");

addMinValue(cmpObject, -10.0f);

addMaxValue(cmpObject, 50.0f);

addCommandString(cmpObject, NULL);

response_comp = createAnComponentCatalog(cmpObject);

}

response_add_component = addComponent("temperatura", "temperatura.v1.0");

for(;;;){

char *response_temperature;

response_temperature = submitData("temperatura", "25");

delete response_temperature;

sleep(1);

}

I've added rules directly on cloud.

Thank's Yermi

idata
Community Manager
46 Views

Hi Vale,

 

 

Thank you very much for sharing your code.

 

 

I'm currently working on it and as soon as I find useful information I'll let you know. I'll appreciate your patience during the meantime.

 

 

Regards,

 

-Yermi

 

idata
Community Manager
46 Views

Hi Vale,

 

 

I just want to let you know that I'm still working on it. As soon as I find useful information I let you know, thanks for your patience.

 

 

Regards,

 

-Yermi

 

idata
Community Manager
46 Views

HI Vale,

 

 

We have been working in this case, and we're not able to replicate the issue you are getting. Also, we would like to let you know that the IoT analytics is going to be discontinued as is mentioned here: https://communities.intel.com/thread/107871 https://communities.intel.com/thread/107871.

 

 

Regards,

 

-Yermi

 

Reply