GithubHelp home page GithubHelp logo

Need help for installation about gomotics HOT 21 CLOSED

mch1307 avatar mch1307 commented on September 15, 2024
Need help for installation

from gomotics.

Comments (21)

mch1307 avatar mch1307 commented on September 15, 2024

This means /opt/gomotics is not in your PATH or it does not have the exec flag.
Try ./gomotics when launching from /opt/gomotics and make sure it has the x attributes (ls -l) If not, just do chmod +x gomotics

from gomotics.

abbar21 avatar abbar21 commented on September 15, 2024

capture d ecran 2017-11-03 a 21 56 50

from gomotics.

mch1307 avatar mch1307 commented on September 15, 2024

which linux are you running? 32 or 64 bits? type: uname -a
You have to download the right binary for your platform on the GitHub release page

from gomotics.

mch1307 avatar mch1307 commented on September 15, 2024

if running a linux 64, choose linux_amd64
If raspberry choose linux_arm64

from gomotics.

abbar21 avatar abbar21 commented on September 15, 2024

Linux HomeJeedom 4.9.0-4-686-pae #1 SMP Debian 4.9.51-1 (2017-09-28) i686 GNU/Linux
Do you have a 32bits release or I can do a new VM in 64bits ;)

from gomotics.

abbar21 avatar abbar21 commented on September 15, 2024

Thanks for your patience ! ;)

from gomotics.

mch1307 avatar mch1307 commented on September 15, 2024

No worries ;)
A release v.0.3.1 should appear in a few minutes with a i386 distrib, if everything goes well

from gomotics.

abbar21 avatar abbar21 commented on September 15, 2024

No lights... but :
gomotics.log
And I've this line in my script for 'Dimmer Salon"
http://192.168.1.106:8081/api/v1/jeedom/8/#slider#
Do I need to restart gomotics every time I restart Jeedom server ?

from gomotics.

mch1307 avatar mch1307 commented on September 15, 2024

in the log: listen tcp :8081: bind: address already in use
It means another process is already using port 8081 (jeedom-nhc?)
You can use another port or make sure this port is not used
PS: if you use a different port, you will need to update the Jeedom script setup accordingly

from gomotics.

abbar21 avatar abbar21 commented on September 15, 2024

Yes it is Jeedom-NHC so I took port 8082 for gomotics.
gomotics.log

from gomotics.

abbar21 avatar abbar21 commented on September 15, 2024

http://192.168.1.106:8082/api/v1/jeedom/8/100 failed in a browser

from gomotics.

mch1307 avatar mch1307 commented on September 15, 2024

What's the error message? Is gomotics still running?
Can you get the list of Niko items in your browser: http://192.168.1.106:8082/api/v1/nhc?

from gomotics.

abbar21 avatar abbar21 commented on September 15, 2024

\o/ the lights working !!! "Dimmer Salon" and "Dimmer salon TV" are different now ! It may just be an impression, but it's more responsive than jeedom-NHC
What can I do to make the server automatically start at Jeedom server startup?
gomotics.log

from gomotics.

mch1307 avatar mch1307 commented on September 15, 2024

Hi,
This is good news ;)
I have written some doc on the wiki page. Please download the latest version as I fixed a bug with the logger.
If you want to disable jeedom-nhc, edit the config file and set the startup to false instead of true.
Remember to change the log level to change the log level to info because it is verbose

from gomotics.

abbar21 avatar abbar21 commented on September 15, 2024

With supervisor, do I need confg.toml in /opt/gomotics ? If not, where can I change the listen port ?
Is it normal that stderr_logfile and stdout_logfile write in the same file ?

from gomotics.

mch1307 avatar mch1307 commented on September 15, 2024

You don't need a config file as all parameters can be passed as env variables. This is what you setup in the environment line in supervisor config. So if you want to change the port to 8082, just add LISTEN_PORT=8082 in the supervisor config file. In your case the line would look like environment=JEE_APIKEY="abcdefg12345",JEE_URL="http://jeedom-host/core/api/jeeApi.php",LOG_LEVEL="INFO",LOG_PATH="stdout",LISTEN_PORT="8082"

Yes, both stderr et stdout will be written to the same log file. This is OK

from gomotics.

abbar21 avatar abbar21 commented on September 15, 2024

with http://192.168.1.106:8082/api/v1/jeedom/8/100 in a browser, I've "Item not found"... :(
gomotics.log

from gomotics.

mch1307 avatar mch1307 commented on September 15, 2024

Looks like could it could not get any info from jeedom. Is jeedom up and running? Are you sure about the config? Can you post your environment line from supervisor config?

from gomotics.

abbar21 avatar abbar21 commented on September 15, 2024

It's good now. Maybe the server was not fully started. After a while I refreshed http://192.168.1.106:8082/api/v1/nhc/ and the jeedomId were good.

from gomotics.

abbar21 avatar abbar21 commented on September 15, 2024

I think I found where the problem is.
I restarted my jeedom server, and gomotics did not have jeedom info. I checked the gomotics server and the uptime was 12 minutes. After restarting the gomotics server, it was OK. Bug?

from gomotics.

mch1307 avatar mch1307 commented on September 15, 2024

Well, it's difficult to track the status of Jeedom as both processes are not linked in the startup.. So for me it's rather normal to restart gomotics after you restart jeedom..
But I will think about it ;)

from gomotics.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.