-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feedback on AUTO START,MQTT & APDS9960 #9
Comments
-APDS9960: If you do not provide an INT pin to the plugin it will check device status 10 times per second, and if it changes, the value changes. -MQTT: RPIEasy only uses and installs mqtt client. You need to install mqtt broker (which serves at default port 1883), such as mosquitto onto this or other RPI (i usually install mqtt broker on the same machine as the Domoticz server), and using that IP address on the controller settings. -The autostart feature depends on the Raspbian Linux /etc/rc.local file, which i have struggled a little, now it seems to work on all four of my test RPI devices. Did you install "screen"? Please post content of /etc/rc.local. Thank you for your support and feedback! |
APDS9960 works fine for proximity and light So I2C settings is correct and I checked it with I2C SCAN and it shows up as 0x39 but when I set it as gesture sensor/dimmer on devices tab it is not changing value in log with my hand gestures as it should.I do not know how I change "APDS9960_LED_BOOST_300->APDS9960_LED_BOOST_100 at device.py" . MQTT now connection works after installing broker on same rpi. Thanks. this is my /etc/rc.local file !/bin/sh -e |
Fixing LED_BOOST is a little complicated task, can you test it first with the Gesture sample program if it is also failing? If not working at all, you have to remove apds9960 first: Your /etc/rc.local seems OK. When your system is started, then the "My IP address is ...." line appears at the console? If yes, then rc.local is executed. |
Fixing LED_BOOST is a little complicated task, can you test it first with the Gesture sample program if it is also failing? If not working at all, you have to remove apds9960 first: - Tried all above and it did not work so I will have to try different sensor. Funny thing is I get MQTT message every second under topic Rpieasy/9960/Gesture/state with payload value of Your /etc/rc.local seems OK. When your system is started, then the "My IP address is ...." line appears at the console? If yes, then rc.local is executed. - Ran all test above and it all test good without any error messages but it still does not start at boot up. Yes it is Raspbian stretch |
Yep, timer function is enabled even if not the Gesture mode wanted... its a bug, will be fixed soon. Try the following: If no error showed, than try to start with:
The screen -r connects to the RPIEasy console if it started. Isn't it possible that some other program (apache,domoticz,lighttpd) holds port 80, and RPIEasy starts at 8080 or 8008 instead? |
Yes both port 80 and 8080 were taken by other servers I am running and Rpieasy started automatically at port 8008. When I used following It started on port 80 and Rpieasy restarted on reboot. Thanks. For apds-9960 I tried another sensor and it worked fine. For me the purple breakout board with 5 pins (the smallest of 4 different style I tried) worked out of box. I consider this issue is solved so you can close it. Thank you for all your help. |
With pleasure... yes i think this case is solved. |
I have tried rpieasy and I am very happy way it is performing. It is way faster then espeasy on esp8266. I have some feedback and questions -
I tried BME280 and it is working perfectly.
I also tried APDS9960 and proximity & light part of sensor work fine but I am having problem with gesture part of sensor. Do I have to choose pin for interrupt and if yes what pin should I use ? the gesture sensor shows only 0.00 value no matter how I move my hand above it.
I also tried to setup paho mqtt controller and use my rpi's ip for host controller ip but log saying it is failing connection. Am I doing somthing wrong. When I install paho mqtt did I install broker or client ? if broker is not installed on pi do I have to install it separately outside of rpieasy using rpi command line using SSH ?
Finally I tried autostart rpieasy feature clicking RPIEasy autostart at boot: option on hardware tab but when I boot autostart of rpieasy doest not work. It's not a big deal I manually start rpieasy after reboot using command line via SSH.
Thanks for your hard work.
The text was updated successfully, but these errors were encountered: