Search found 8 matches
- 14 Nov 2016 12:36
- Forum: Discussions in English
- Topic: Devel: Share object between modules.
- Replies: 1
- Views: 3309
Devel: Share object between modules.
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...
- 14 Nov 2016 12:22
- Forum: Discussions in English
- Topic: Devel : Is there a way to save data using javascript API?
- Replies: 4
- Views: 6082
Re: Devel : Is there a way to save data using javascript API
Hi everybody. I'm working on an presence auto learning modules. it will permits to anticipate your presence to launch heating for exemple. So for now i'm able to create and save presence data when the module is running. I tried to uninstall the module and install it back but the saved object is relo...
- 10 Nov 2016 20:53
- Forum: Discussions in English
- Topic: Devel : Is there a way to save data using javascript API?
- Replies: 4
- Views: 6082
Re: Devel : Is there a way to save data using javascript API
Ok thank.
I looked at DeviceHistory.
To save an object and load it i have to call :
Great!
I looked at DeviceHistory.
To save an object and load it i have to call :
Code: Select all
// to save object :
saveObject("history", self.history);
// to load object :
this.history = loadObject('history') || [];
- 10 Nov 2016 00:30
- Forum: Discussions in English
- Topic: Devel : Is there a way to save data using javascript API?
- Replies: 4
- Views: 6082
Devel : Is there a way to save data using javascript API?
Hi everyone. I wonder if there is a way to save data of a module and load it back at module startup. I'm thinking about automatic leanring module (ex : the module change one of it parameters (ex: a table of integer [4,5,..]) save it and load it back when the z-way server start the module.). a sort o...
- 09 Nov 2016 20:11
- Forum: Discussions in English
- Topic: Development : can't manage to get deviceId from config
- Replies: 6
- Views: 7552
Re: Development : can't manage to get deviceId from config
Ok great. I will take a look at the possibility to use a non blocking (or timeouted) call to ping system call and submit this module in the app store.
Thank a lot
Thank a lot
- 09 Nov 2016 02:14
- Forum: Discussions in English
- Topic: Development : can't manage to get deviceId from config
- Replies: 6
- Views: 7552
Re: Development : can't manage to get deviceId from config
Ok, thank a lot. it's working for me too now. But there is just a thing i still doesn't understand: Why do i have to use : code = system('ping -c 1 ' + self.config['ipToPing'] + ' | grep -c \'1 received\''); to get ip parameter and to use : var vDev = controller.devices.get(this.config.device); to g...
- 08 Nov 2016 21:58
- Forum: Discussions in English
- Topic: Development : can't manage to get deviceId from config
- Replies: 6
- Views: 7552
Re: Development : can't manage to get deviceId from config
it's done, you can checkout it.
thank
thank
- 08 Nov 2016 13:04
- Forum: Discussions in English
- Topic: Development : can't manage to get deviceId from config
- Replies: 6
- Views: 7552
Development : can't manage to get deviceId from config
Hi everyone, i'm actualy working on a module to trigger presence state according to a defined host ping response. my problem is that i can't manage to get back the presence virtual switchBinary from config. Here is my code (with all the things i've tryed in comment): module.json: { "author"...