Module question...

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
Mike Yeager
Posts: 160
Joined: 03 May 2014 07:02

Module question...

Post by Mike Yeager »

I'm working on a module and it's instantiated as module 73. The module doesn't have a physical presence per say (no element attached to it) and I need to know where it stores it's configuration data by default.

Thanks...
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Module question...

Post by pz1 »

/opt/z-way-server/automation/storage/configjson-06b2d3b23dce96e1619d2b53d6c947ec.json

On my W7 PC I use the Notepad++ editor with JSTool plugin. This latter tool has a nice fast graphical JSON viewer
Attachments
Capture.PNG
Capture.PNG (7.45 KiB) Viewed 6623 times
Mike Yeager
Posts: 160
Joined: 03 May 2014 07:02

Re: Module question...

Post by Mike Yeager »

Great! Can I modify the contents of this dynamically from Javascript? I'm writing a user code manager for Kwikset locks and I'd rather compare the settings and only write the changes to the lock rather than rewrite the entire code database every time. So I'm thinking that if I added key pairs for the old codes, when changes were made, the program could detect them and write them to the lock.
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Module question...

Post by pz1 »

Mike Yeager wrote:Can I modify the contents of this dynamically from Javascript?
I am not sure. Some people have manually changed paswords in this file. I would not do it in an active system. You better set/update metrics directly. I usually do that from OpenRemote via the OpenRemoteHelpers Api function SetMetrics. See my github
Since 29-12-2016 I am no longer a moderator for this forum
Mike Yeager
Posts: 160
Joined: 03 May 2014 07:02

Re: Module question...

Post by Mike Yeager »

I'm working on a project and I've run up against a wall. I know it's me and I might actually figure it out before you see this but here's what I have. In the config file, I have this:

"instanceId": "0",
"moduleId": "KwiksetManager",
"active": "true",
"title": "Kwikset Door Code Manager",
"params": {
"devices": ["ZWayVDev_zway_7-0-98"],
"code1": 0,
"code2": 0,
"code3": 0,
"code4": 0,

with devices being an array. I'm having a hell of a time pulling that array into the index.js file to process the devices in the array. I've looked at the SensorsPolling module since it does something similar but I haven't gotten very far. If you know how to do this, any help would be appreciated. I'm sure it's something simple that I'm screwing up but it's whipping my ass....
Post Reply