Devel: Share object between modules.
Posted: 14 Nov 2016 12:36
Hi everyone.
What is the best way to share non device related data between module?
In the presence auto learning module i'm working on, there is a table of 336 values that represents the presence probability of each half hour of a week (2 * 24 * 7 = 336). I would be able to expose a service to other modules. This service should return the presence ("on" or "off") according to a Date typed var passed trought parameters.
How could i manage to do that? Is there an exemple in some other modules and which one?
What is the best way to share non device related data between module?
In the presence auto learning module i'm working on, there is a table of 336 values that represents the presence probability of each half hour of a week (2 * 24 * 7 = 336). I would be able to expose a service to other modules. This service should return the presence ("on" or "off") according to a Date typed var passed trought parameters.
How could i manage to do that? Is there an exemple in some other modules and which one?