New Automation Modules

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
enco.josh
Posts: 35
Joined: 10 Mar 2014 22:10

New Automation Modules

Post by enco.josh »

What is the syntax for the config.json file? The config-sample.json seems to be out dated as the BasicReactor module is no longer included. Also, I noticed that there are files that are automatically saved to the /storage directory that seem to contain the configuration information. Could you explain what the significance of these files are? Also, how are the file names generated?

Lastly, is there any way to debug our own javascript modules besides console.log?
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: New Automation Modules

Post by PoltoS »

If you use 1.5, you don't need config.json anymore. Everything is store stored in sotrage/ folder. This folder contains everything saved using saveJSON(). Essencially, the new UI with new automation backend relies on this folder to store all the data.

From 1.4 you have a pretty detailed log with all exceptions, while console.log allows you to just pring in the log file. We do not have realtime debugging tool like Chrome have for example, but you can always run JS code from the URL line in your browser to test JS code
Post Reply