-
Notifications
You must be signed in to change notification settings - Fork 107
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
Help with setup of emulator on Orange Pi Lite #149
Comments
can you start the script manually and provide the output? And what type of lights are you using and expect to be discovered? |
Thank you for your quick answer. The problem is that when i enter the code "sudo ./HueEmulator.py" it says command not found. But all i did was follow your instructions on the wiki. I plan on adding WS2812 LED strips with a Wifi 01 Mini ESP8266 Dev board. |
check #20 there is a small tutorial. You receive that command because you are not in the directory where HueEmulator.py is located. |
Thanks i got it up and running. But when i close Putty the connection disappears. Can i do something to make it auto run on startup without being connected to a computer? |
yes, you need to create the systemd service, i provide example in wiki. Be aware that you must correct the paths to HueEmulator.py script. In my example it was located in /home/pi |
How can i find the location? |
|
Great. Can you then help with what i should do if i want to connect 120 LEDs connected on a WS2812 LED strip. I have the Wemos D1 mini pro with ESP8266. What files should i upload to the Wemos? and how is it through Arduino IDE? |
go to Lights -> Arduino -> WS2812BHueStrip
write the code in Wemod D1 and follow the wiki to connect it to your wifi network. if you have issues with light discovery and you are sure the nmap package is installed, then check #144 |
Great what does Lightscount mean? and what number should i set it to? |
lightsCount let you setup more lights on one ESP8266 board. For example if you setup lightsCount to 4 then on light discover will be detected 4 new Philips Hue strips, first one will control first 30 leds, second the next 30 leds and so on. I like how default scenes are displayed when you set 3 or more lights per strip. |
Okay. I have downloaded the board driver to my arduino IDE but it wont let me upload the code. It gives me this error exit status 1 |
Don't try to write the firmware with leds connected to board. Are you sure COM8 is the Wemos D1 board? |
The LEDs are not connected. Yes i used COM8 with the board. I restarted the computer and got futher but still not uploaded now it says "espcomm_upload_mem failed" so i think i downloaded the wrong library what should i download? |
"espcomm_upload_mem failed" is a generic error. Based on esp8266/Arduino#2801 the options are " you either have bad wiring, or a bad module, or you're doing something wrong" |
i again found the solution i had set the flash size to 4M (3M SPIFFS) i changed it to 4M (1M SPIFFS) and now it got uploaded. |
Okay i tried to make the file that would make the orangepi auto start the program. It did not work. Now i cant even start the program via putty. It says its started and sending M-search response to diffrent IP adressess. But after i turned on the power to the LEDs and the ESP8266 my mobile app of Philips Hue wont find the Brigde anymore. |
Okay now the program let me get into the app. But i cant find any lights? How do i connect to the LEDS |
Ah okay there is still a problem with the bridge when i close putty then the connection disappears. Im stuck. |
you need to start the emulator as service, this way it will not be killed once you disconnect your session. |
How can i do that? |
follow the wiki https://github.com/mariusmotea/diyHue/wiki/1.-Getting-started |
I have followed the wiki, and both made the sudo nano /lib/systemd/system/hue-emulator.service in the first library i come to after login into my orangepi and also here /diyHue/BridgeEmulator. But still does not work when closing putty |
i believe your service is not working. provide me the output. |
root@orangepilite: Jan 14 17:35:43 orangepilite systemd[1]: hue-emulator.service: Unit entered fail |
ok, you just copy and paste the content of the service from wiki, without to replace the path to python script. In my example it was located in Look here another way to see the path:
|
Here is my location. /root/diyHue/BridgeEmulator/HueEmulator.py should i then create the file like this sudo nano /root/diyHue/BridgeEmulator/HueEmulator.service |
stop! i correct here your path. The wiki for you look like this:
paste this:
save and execute the following commands:
|
Still the same. The instant i close putty the connection dissapears. |
|
Just a last question. When trying to make a Philips Hue account i need to press the bridge but ofcourse i dont have a button to press. Is there a function for this in your firmware? |
To create a Philips Hue account you will need a real bridge. There is a communication from hue bridge to Philips cloud servers and the api is not public, so it cannot be implemented. Functionality of hue emulators are restricted just to local communication, everything that involve the remote api will not work. |
Ah okay good to know. Thanks |
Hi again. Now its a nother problem. I can control the lights but the bridge seems to loose connection to internet avery 2-6 hours so i can set an alarm for sunrise light in the afternoon but no connection to do so in the morning. I can not seem to find out why its happening. I have tried to add a reboot command so the pi will reboot every 6 hours. But it still brings problems. |
Is your pi connected using wifi to your network? |
Yes. And it works but then its like it gets disconneted |
did you added the cron job from #154 ? |
Yep. Its also were i added the reboot code. |
The problem with the cron job code is that i end up having my bridge connected to my 5Ghz network, but my lights are connected to my 2.4 Ghz network so they can not communicate. I can connect to one of the IP's that the ESP makes but it only lets me change light settings not network settings. |
I suggest to start with automatic script installation, check wiki |
That I have tried without success
…On Feb 27, 2018 11:55 PM, "Motea Marius" ***@***.***> wrote:
I suggest to start with automatic script installation, check wiki
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#149 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhwdTL0g70hthyMdzpK_x6ZrwbD0oPnUks5tZIfagaJpZM4RdMC_>
.
|
Execute manually the script to see the error on exit. |
It can not find it when I run manually but that is because I don't know how
to navigate the file system it is located when using find
…On Feb 28, 2018 9:21 AM, "Motea Marius" ***@***.***> wrote:
Execute manually the script to see the error on exit.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#149 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhwdTHja42J3qAKbCTb6bFoIEmpLCrrAks5tZQx8gaJpZM4RdMC_>
.
|
No usefull informations here. You need to start manually the script manually to see the error. Better start from scratch and use automatic install method, it must work. |
Yes you say that. But if i start from scratch again i get same result. Starting from scratch was the exact thing i did 2 days ago and it ended me here. |
If you have a clean installation then try to execute the script from: sudo /opt/hue-emulator/HueEmulator3.py |
Is not a completed installation. Execute again the easy_install script from wiki and provide the output. |
Better paste the text, don't upload pictures. |
Okay
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-oct766p6/ws4py/ |
Execute again and provide the output. I made some changes for you on installation script |
It did something, but the hue brigde is still not found in the app
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-s1i2dvuv/ws4py/ |
Try a reboot. Is the service running now? |
Yes now it works i will try the following days and see if it disconnect like last time. Thanks again for great support |
Sadly after 2 days work without problem it fit not work today so I had to
restart the bridge manually. What can cause this. And how can I fix it
…On Mar 1, 2018 6:57 PM, "Motea Marius" ***@***.***> wrote:
Try a reboot. Is the service running now?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#149 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhwdTAwzzkVVSG2FOuBs6IXgLA8_XatTks5taDZ7gaJpZM4RdMC_>
.
|
Now it does not work at all. It not possible to communicate with at all
even with restarts
…On Mar 4, 2018 12:27 AM, "Oliver Høgsberg" ***@***.***> wrote:
Sadly after 2 days work without problem it fit not work today so I had to
restart the bridge manually. What can cause this. And how can I fix it
On Mar 1, 2018 6:57 PM, "Motea Marius" ***@***.***> wrote:
> Try a reboot. Is the service running now?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#149 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AhwdTAwzzkVVSG2FOuBs6IXgLA8_XatTks5taDZ7gaJpZM4RdMC_>
> .
>
|
Replace your board with something that has physical network port. Your issue is hardware related, not software. If you have an usb wifi dongle you can try to use that for wifi connection. |
Hi everyone.
Im kinda stuck. I have installed Armbian on my orange pi lite so i can connect to it via putty. I can do that and i tried following the guide on the wiki page. But nothing comes up when searching for the hub in the app. Can someone help me through the setup, im not so strong in python?
Thanks
The text was updated successfully, but these errors were encountered: