Giter Site home page Giter Site logo

Comments (6)

mattsheffiel avatar mattsheffiel commented on August 23, 2024

Is there anything in /home/pi/homekit2mqtt/log/?

from homekit2mqtt.

JuanGrados avatar JuanGrados commented on August 23, 2024

Hi,

yes, the two files I just copied there.
Should be some there something else?

from homekit2mqtt.

mattsheffiel avatar mattsheffiel commented on August 23, 2024

Sorry, I misread your message earlier. What would be more useful to see is the debug information that gets printed out when you run the command. Because you are using nohup this is getting hidden. Check and see if you have a file called nohup.out. If so check and see if that has some output and post that.

Are you running the command on the Raspberry Pi with a wired keyboard and mouse or are you doing this remotely with SSH?

from homekit2mqtt.

JuanGrados avatar JuanGrados commented on August 23, 2024

Hi,

I am connecting remotely with ssh.

Yes I have the info, but I do not see anything strange, it goes like:

*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister
2018-01-10 21:38:19.488 homekit2mqtt 0.7.3 starting
2018-01-10 21:38:19.495 mqtt trying to connect mqtt://127.0.0.1
2018-01-10 21:38:19.724 using hap-nodejs version 0.4.36
2018-01-10 21:38:19.724 using directory /home/pi/homekit2mqtt/log for persistent storage
2018-01-10 21:38:19.741 loading HomeKit to MQTT mapping file /home/pi/homekit2mqtt/homekit2mqtt.json
2018-01-10 21:38:19.743 loading accessories/Lightbulb.js
2018-01-10 21:38:19.748 addBridgedAccessory Lightbulb Ambient Lamp
2018-01-10 21:38:19.755 mqtt subscribe home/livingroom/esp1/ambientLamp
2018-01-10 21:38:19.759 addBridgedAccessory Lightbulb Desk Lamp
2018-01-10 21:38:19.761 mqtt subscribe home/office/esp1/deskLamp
2018-01-10 21:38:19.762 addBridgedAccessory Lightbulb Night Lamp
2018-01-10 21:38:19.764 mqtt subscribe home/bedroom/esp1/nightLamp
2018-01-10 21:38:19.765 loading accessories/TemperatureSensor.js
2018-01-10 21:38:19.767 addBridgedAccessory TemperatureSensor TemperatureSensor
2018-01-10 21:38:19.770 mqtt subscribe home/office/esp1/temperature
2018-01-10 21:38:19.773 loading accessories/HumiditySensor.js
2018-01-10 21:38:19.775 addBridgedAccessory HumiditySensor HumiditySensor
2018-01-10 21:38:19.777 mqtt subscribe home/office/esp1/humidity
2018-01-10 21:38:19.780 hap created 5 Accessories
2018-01-10 21:38:19.780 hap publishing bridge "MQTT Bridge" username=CC:22:3D:E3:CE:F6 port=51826 pincode=031-45-154
2018-01-10 21:38:19.817 mqtt subscribe #
2018-01-10 21:38:19.852 hap Bridge listening on port 51826
2018-01-10 21:38:19.853 http server listening on port 51888
2018-01-10 21:38:20.004 mqtt connected mqtt://127.0.0.1
2018-01-10 21:38:20.052 < mqtt homekit/connected 0
2018-01-10 21:38:20.053 < mqtt homekit/connected 2
2018-01-10 21:38:20.555 mqtt unsubscribe #
2018-01-10 21:38:22.144 < hap get Ambient Lamp On
2018-01-10 21:38:22.144 > hap re_get Ambient Lamp On true
2018-01-10 21:38:22.149 < hap get Desk Lamp On
2018-01-10 21:38:22.150 > hap re_get Desk Lamp On true
2018-01-10 21:38:22.152 < hap get Night Lamp On
2018-01-10 21:38:22.152 > hap re_get Night Lamp On true
2018-01-10 21:38:22.315 < hap get TemperatureSensor TemperatureSensor CurrentTemperature
2018-01-10 21:38:22.316 > hap re_get TemperatureSensor undefined
2018-01-10 21:38:22.318 < hap get HumiditySensor HumiditySensor CurrentRelativeHumidity
2018-01-10 21:38:22.318 > hap re_get HumiditySensor undefined
2018-01-10 21:38:28.768 < mqtt home/office/esp1/temperature 20.38
2018-01-10 21:38:28.769 > hap update TemperatureSensor CurrentTemperature 20.38
2018-01-10 21:38:28.814 < mqtt home/office/esp1/humidity 47
2018-01-10 21:38:28.815 > hap update HumiditySensor CurrentRelativeHumidity 47
2018-01-10 21:38:29.490 < hap set Ambient Lamp On false
2018-01-10 21:38:29.491 > mqtt home/livingroom/esp1/ambientLamp false
2018-01-10 21:38:29.499 < mqtt home/livingroom/esp1/ambientLamp false
2018-01-10 21:38:29.501 > hap update Ambient Lamp On false
.
.
.
it keeps updating the temperature and humidity, reconects to the iPhone when I use it:

2018-01-10 21:41:28.814 > hap update HumiditySensor CurrentRelativeHumidity 47
2018-01-10 21:41:58.770 < mqtt home/office/esp1/temperature 20.38
2018-01-10 21:41:58.771 > hap update TemperatureSensor CurrentTemperature 20.38
2018-01-10 21:41:58.814 < mqtt home/office/esp1/humidity 47
2018-01-10 21:41:58.815 > hap update HumiditySensor CurrentRelativeHumidity 47
2018-01-10 21:42:01.911 < hap get TemperatureSensor TemperatureSensor CurrentTemperature
2018-01-10 21:42:01.911 > hap re_get TemperatureSensor 20.38
2018-01-10 21:42:01.913 < hap get Night Lamp On
2018-01-10 21:42:01.913 > hap re_get Night Lamp On true
2018-01-10 21:42:01.914 < hap get Desk Lamp On
2018-01-10 21:42:01.914 > hap re_get Desk Lamp On true
2018-01-10 21:42:01.915 < hap get HumiditySensor HumiditySensor CurrentRelativeHumidity
2018-01-10 21:42:01.916 > hap re_get HumiditySensor 47
2018-01-10 21:42:01.917 < hap get Ambient Lamp On
2018-01-10 21:42:01.917 > hap re_get Ambient Lamp On false
2018-01-10 21:42:03.876 < mqtt home/livingroom/esp1/ambientLamp true
2018-01-10 21:42:03.876 > hap update Ambient Lamp On true
2018-01-10 21:42:05.521 < mqtt home/livingroom/esp1/ambientLamp false
.
.
.
and at some point it just stops, no notification or anything, just stops sending and receiving messages.

But I cannot find a patter, I left it last night running and this time keeps running without any problem so far.
Is it another way to get more debug info?

Thanks!

from homekit2mqtt.

JuanGrados avatar JuanGrados commented on August 23, 2024

For now it looks like that it is working fine.
I do not know what was.
If the problem comes back I will keep you informed.

Cheers

from homekit2mqtt.

hobbyquaker avatar hobbyquaker commented on August 23, 2024

I would suggest not to use nohup but pm2. This also takes care of log file rotation and can restart the service if it crashes (what it shouldn't, but you never know ;-)

Will close the issue for now, feel free to reopen if you have problems again

from homekit2mqtt.

Related Issues (20)

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.