diyhue / diyHue

Main diyHue software repo
https://diyhue.org/
Other
1.58k stars 279 forks source link

diyHue on OpenWrt, cannot initialize service hueemulatorWrt-service #878

Open BLADR-ONE opened 1 year ago

BLADR-ONE commented 1 year ago

Describe the bug DiyHue is installed using github script but the script gave error just in opening the hueemulatorWrt-service

Steps to Reproduce Just install DiyHue using github script

Expected behavior Script starts

Logs Failed to execute "/etc/init.d/hueemulatorWrt-service enable" action: Command failed when I tried to start it from gui

Docker Info (please complete the following information): -openWrt -tp link TL-WR1043ND v3

Checklist

Additional context

Edit 1 : Appearently chmod commands related to the hueemulatorWrt-service weren't working from the script so i ran them manually and now the service is enable and working but I have encountered another problem: when i try to acces the router's IP it gives me a blank screen with only one line that writes: LuCI - Lua Configuration Interface and then starts a download of a file, instead of showing me the diyhue interface. I have done the move of LuCI from port 80 to 82 and it works perfectly by accesing port 82. I attached some ss below.

Screenshot (74) Screenshot (75) Screenshot (76)

FerrumMaster commented 1 year ago

I've pushed a changed my WRT install script but it went nowhere, I missed what happened.

Delete nohup from the service file, also put correct permissions. You are free to look at my install script I have used on few devices already.

DIYHUEWRT.txt

BLADR-ONE commented 1 year ago

I've pushed a changed my WRT install script but it went nowhere, I missed what happened.

Delete nohup from the service file, also put correct permissions. You are free to look at my install script I have used on few devices already.

DIYHUEWRT.txt

Thank you very much, can you drop an eye maybe on the edit that I've made?

FerrumMaster commented 1 year ago

Thank you very much, can you drop an eye maybe on the edit that I've made?

You have to delete browser caches often when using openWRT and changing stuff.

You have to change not only the 80 port but the secure 443 also. It is mandatory. Just try exec my script step by step.

Nohup needs to be gone, correct permission setting, you were right, the code in original update script does not work on WRT. Double check after with ls -l.

BLADR-ONE commented 5 months ago

Scrapped that project, but maybe i'll find it in the drawer and try that. Thanks (sorry for the big delay but i have been really absent in the last year, being the final year of my highschool, and needing to take a big test. )

Charmandrigo commented 2 months ago

You know, support for OpenWRT should be dropped entirely at this point, over a year later the script did the same to my install, no further instructions given in the documentation about the changes mentioned about the secure port. I am running OWrt 23.05

hendriksen-mark commented 2 months ago

The script will be updated soon, i made some changes and the changes are confirmed working by me and a other user.

Charmandrigo commented 2 months ago

do you know if it works with Power-PC arch routers? want to try on a meraki mx60

hendriksen-mark commented 2 months ago

it should work https://firmware-selector.openwrt.org/?version=23.05.4&target=apm821xx%2Fnand&id=meraki_mx60

hendriksen-mark commented 2 months ago

for now try this install command. wget --no-check-certificate https://raw.githubusercontent.com/hendriksen-mark/diyHue/test/BridgeEmulator/install_openwrt.sh && sh install_openwrt.sh