[ Developer Appel ] I show you how to set up Gladys 4 for development

Hello everyone!

Following @NilkOne’s request, I will make a call this weekend with anyone who wants to show you how to install Gladys 4 on your machine, and how to develop for Gladys 4 :slight_smile:

As I recently announced, it’s time to migrate/develop Gladys 4 services, so this is the perfect time if you want to help!

I suggest this Saturday, May 18th at 9:00 AM French time.

Who is interested? :slight_smile:

:warning:Warning, this call is intended for an audience that already knows how to program, and already has a functional Node.js 10 development environment on their machine!

See my post:

Hello,
count on me to participate.

See you tomorrow.

Of course, I am :smile:

Hello,

Great idea for this call @pierre-gilles @NilkOne. For those who can’t be there, will it be broadcast again?

Yes, I’m interested too :slight_smile:

I’m in!
I’ll listen in :wink:

Absolutely, I’m going to record that :slight_smile:

Hi,

a bit late response but I’d like to follow along too :smiley:

Hello everyone!

I’m setting up my laptop in the meeting room and I’m here :slight_smile:

Would a Hangouts link work for everyone?

@pierre-gilles OK for me

It’s going well! @pierre-gilles

@pierre-gilles Ready ! :wink:

Hop!

[Edit]: link removed

The replay of the call is available on YouTube!

Hello,

I had trouble installing this alpha version of Gladys, specifically with the installation of the zwave service (see error message below).

To fix the problem, I had to install libopenzwave-devel (I’m on Linux Fedora).

@pierre-gilles shouldn’t this dependency be included in the installation instructions?

Hope this helps some of you :slight_smile:

make: entering directory « /home/philippe/Développement/gladys/server/services/zwave/node_modules/openzwave-shared/build »
  CXX(target) Release/obj.target/openzwave_shared/src/callbacks.o
In file included from ../src/callbacks.cc:18:
../src/openzwave.hpp:29:10: fatal error: Manager.h: No such file or directory
   29 | #include "Manager.h"
      |          ^~~~~~~~~~~
compilation terminated.
make: *** [openzwave_shared.target.mk:126: Release/obj.target/openzwave_shared/src/callbacks.o] Error 1
make: leaving directory « /home/philippe/Développement/gladys/server/services/zwave/node_modules/openzwave-shared/build »
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 5.0.16-300.fc30.x86_64
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/philippe/Développement/gladys/server/services/zwave/node_modules/openzwave-shared
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN gladys-zwave@ No description
npm WARN gladys-zwave@ No repository field.
npm WARN gladys-zwave@ No license field.

@PhilippeMA Yes, if you want to run the Z-Wave service, you need to have Open-Zwave installed. Normally, this is not mandatory!

I don’t want it to be seen as « required Â» to install this dependency, but I agree that we should add a note in the README to mention it :slight_smile:

I installed everything, just to satisfy my curiosity, but I won’t go any further than that.

Anyway, everything seems to work for me (I think).
Just one thing that seems weird, my .env with DEMO_MODE=false doesn’t seem to be taken into account, I still have the demo dashboard…

Then, can this be used for beta testing this environment?
If yes, I’m available on the Hue hardware (which doesn’t work for me, it finds the gateway but it doesn’t go any further) and on the Xiaomi for the dev who will handle this service. :stuck_out_tongue:

This is normal, you’re only looking at the dashboard, and the dashboard hasn’t been merged yet, it’s still WIP, so the dynamic version isn’t available yet :slight_smile: But DEMO_MODE does work if you look at the other screens.

Of course!

The front end isn’t finished yet for the Hue service :slight_smile:

Who’s up for Xiaomi? :slight_smile:

Hello,
From what I remember, I also had issues with sqlite. Had to compile the node module ad hoc (Fedora 29)
Not mentioned in the Readme either, the dependency on nodemon. Installed globally by many of us/you but can be blocking for a newcomer.
Cool the recording, disappointed to have missed the live stream. Not very active for months, I would have liked to say hi :wink:

Hello @Boimb! Thanks for your reply :slight_smile:

Ok. Do you have the error in mind or up your sleeve? Never had the problem on my side under Linux (Docker).

When did you test Gladys 4? @AlexTrovato added nodemon to the package.json about a week ago :slight_smile: