BaseModule helps module authors with these utilities:
Logging with prefixes instead of console.log and console.error
Timestamp of last real change in every vDev (metrics:modificationTime) - where metrics:level was actually changed
Events on real level change (modify:metrics:level)
Fetch presence states (via the Presence module)
Find devices based on criteria (tags, values, room, type ...)
Process devices from list of device IDs
Parse time
Compare time periods
Simplified timeout handling
You will need to install this module prior to installing my Thermostat control, Presence, ConditionSwitch, Motion Trigger, ... modules. Please make sure to instantiate this module.
I'm very interested in the different modules you developed, based on this BaseModule. Unfortunately I can't get it installed correctly. The module appears as local module just fine. But as soon as I try to create an App I only get " 404 Not Found. Requested data does not exists". As I'm using Version 2.2.0 maybe this is the reason. As I just started with Z-Way I'm not sure where to check for further details. The z-way-Server log file does not say anything when I try to create the app.
Can you give me any hint where to look or do you have any idea why the base module isn't working on V2.2.0 ?
Thanks
Masque
This has to be put under "Management".
Like in the picture. After doing this, the packages are shown and you can download and install them.
You may also empty your Browser cache. I had issues with that from time to time as well.
Nevertheless the Problem with the BaseModule still exists in 2.2.0. I'm right on to downgrade to 2.1.1 to check if I can get it working there.
unfortunately no luck with v2.1.1 either.
This is a conmplete blank installation. I used the 2.1.2 razpberry img and downgraded to 2.1.1.
Then I manually installed the BaseModule as userModule.
I do see the BaseModule under Apps. I can create an app, which is listed as active. But I get the following errors in the log:
[2015-12-31 15:13:02.884] [I] [core] Instantiating module 10 from class BaseModule
[2015-12-31 15:13:02.889] [I] [core] --- Starting module Base Module
[2015-12-31 15:13:02.934] [I] [core] Notification: error (core): Cannot instantiate module: BaseModule: TypeError: undefined is not a function
[2015-12-31 15:13:03.019] [I] [core] TypeError: undefined is not a function
at BaseModule.init (automation/userModules/BaseModule/index.js:35:57)
at AutomationController.instantiateModule (automation/classes/AutomationController.js:308:22)
at AutomationController.createInstance (automation/classes/AutomationController.js:504:14)
at ZAutomationAPIWebRequest._.extend.createInstance (automation/ZAutomationAPIProvider.js:656:40)
at ZAutomationAPIWebRequest.ZAutomationWebRequest.handleRequest (automation/WebserverRequestRouter.js:258:41)
at automation/WebserverRequestRouter.js:32:35
at WebServer.document_root (automation/Webserver.js:27:11)
masque wrote:unfortunately no luck with v2.1.1 either.
That is very strange. Looks like the getName method is missing from the AutomationModule base class. The latest master head from github should have a workaround/fix for this issue. Will publish this fix as soon as anybody can confirm that it works properly
maros wrote:Will publish this fix as soon as anybody can confirm that it works properly
Hi maros,
first of all hapy new year and many, many thanks for your fast support.
I checked out the newest version and now I can install and run the Base Module.
From my side I can confirm that it is working now with v2.1.1
Unfortunately most of your other modules do show the same problem.
As well my productive v2.2.0 System still reports a 404 Error when creating the Base App, but I guess I will downgrade to v2.1.1 till V2.2.0 has become more stable. Seams that there are more issues that need to be fixed before v2.2.0 is usable in production.
regards
masque