A clever switch

Discussions about RaZberry - Z-Wave board for Raspberry computer
SolarFlor
Posts: 261
Joined: 22 Mar 2014 15:23

Re: A clever switch

Post by SolarFlor »

what is the file I should edit? index.js? or module.json?
could you send me some examples to better understand how they works?

My knowledge of jason programming is very very limited
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: A clever switch

Post by pofs »

You shouldn't edit it :) (unless you want to change BatteryPolling module for some reason)

BatteryPolling was referenced just as example of using Cron module to run some code based on schedule. You should create your own module for your needs.

Typically module consists of two files: index.js (with module code) and module.json (with default settings and module capabilities)
Start learning how to write a module here: https://github.com/Z-Wave-Me/home-autom ... e-a-module
SolarFlor
Posts: 261
Joined: 22 Mar 2014 15:23

Re: A clever switch

Post by SolarFlor »

pofs wrote: Start learning how to write a module here: https://github.com/Z-Wave-Me/home-autom ... e-a-module
Many Many thanks.
This is what I was looking for. A startining point to learn about home-automation
Post Reply