Page 1 of 1

Propagation of info between apps

Posted: 04 Jan 2016 02:58
by bogr
I have a scenario where I want to be able to propagate some info from one app being triggered to another. So, I have the app "Device- and Elementassociation" configured to be triggered on a sensor ("Alarm Burglar") and the "Then" field is configured to call a custom app ("Send Mail"), but I would like the metrics:title (or id) of the original sensor to be sent from Device- and Elementassociation to the custom app so that I can see directly in the mail which sensor actually triggered the alarm. Any ideas or pointers to some other app that does this? Getting the metrics:title in my "Send Mail" of course gives me the title field of the "Send Mail" app, and not the original sensor.

Cheers.

Re: Propagation of info between apps

Posted: 07 Jan 2016 03:26
by PoltoS
It is not possible using these two apps. But you can modify both to do so or make your own based on these two.

Re: Propagation of info between apps

Posted: 09 Jan 2016 23:53
by bogr
Ok thanx, I suspected that. Haven't managed to figure out this one though - do you have a simple example on how to do this or a pointer to some existing app with this kind of functionality?

Re: Propagation of info between apps

Posted: 10 Jan 2016 04:10
by PoltoS
I can point to these two apps ;) They are both in sources.

Re: Propagation of info between apps

Posted: 10 Jan 2016 16:28
by bogr
Yes I figured that, but I was just asking about an example where this scenario is actually implemented so that I can see how the call is basically done in the code, and then just replicate in those two apps ;).