Skip to content
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

deCONZ runs always on port 80 #715

Closed
saxn-paule opened this issue Aug 8, 2018 · 3 comments
Closed

deCONZ runs always on port 80 #715

saxn-paule opened this issue Aug 8, 2018 · 3 comments
Labels

Comments

@saxn-paule
Copy link

Hi,

could you help me to run the deCONZ api on another port then 80?

I don't have a monitor attached so Raspian runs in headless mode.

I already changed the
/etc/systemd/system/deconz-gui.service to
ExecStart=/usr/bin/deCONZ --http-port=8080

and /usr/bin/deCONZ-autostart.sh to

if [ $hassetcap -eq 0 ] && [ "$OS_ID" == "raspbian" ]; then
                ## can use privileged ports?
                setcap -v -q cap_net_bind_service,cap_sys_time=+ep /usr/bin/deCONZ
                if [ $? -eq 0 ]; then
                        OPTIONS+=" --http-port=8080"
                else
                        OPTIONS+=" --http-port=8090"
                fi
        else
                OPTIONS+=" --http-port=8080"
        fi

After restarting the Pi top -c still shows
383 pi 20 0 120148 35144 26828 S 1,6 3,7 0:05.11 /usr/bin/deCONZ -platform minimal --http-port=80
384 root 20 0 5984 3624 2884 S 0,7 0,4 0:00.48 /bin/bash /usr/bin/deCONZ-WIFI.sh
385 root 20 0 5572 3056 2732 S 0,3 0,3 0:00.41 /bin/bash /usr/bin/deCONZ-update2.sh

@manup
Copy link
Member

manup commented Aug 8, 2018

To overwrite the headless mode the deconz.service file instead of deconz-gui.service must be overwritten.

@saxn-paule
Copy link
Author

That did the trick. Thank you.

@stale
Copy link

stale bot commented Dec 7, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants