Skip to content

Commit

Permalink
Merge pull request diyhue#53 from juanesf/master
Browse files Browse the repository at this point in the history
improvements for installation in OpenWrt
  • Loading branch information
mariusmotea authored Jan 2, 2019
2 parents db03417 + 7dc8914 commit 56fcf91
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions BridgeEmulator/easy_openwrt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ cp HueEmulator3.py config.json updater /opt/hue-emulator/
cp -r web-ui /opt/hue-emulator/
cp -r functions protocols debug /opt/hue-emulator/
cp entertainment-mips /opt/hue-emulator/entertainment-srv
rm -Rf /opt/hue-emulator/functions/network.py
mv /opt/hue-emulator/functions/network_OpenWrt.py /opt/hue-emulator/functions/network.py
wait
cp hueemulatorWrt-service /etc/init.d/

Expand All @@ -33,6 +35,7 @@ chmod +x /opt/hue-emulator/web-ui
chmod +x /opt/hue-emulator/functions
chmod +x /opt/hue-emulator/config.json
chmod +x /opt/hue-emulator/entertainment-srv
chmod +x /opt/hue-emulator/functions/network.py
/etc/init.d/hueemulatorWrt-service enable
wait
echo -e "\033[32m Installation completed. run: nano /etc/config/uhttpd and mod htpp port 80 for 82, run: nano /etc/lighttpd/lighttpd.conf and mod server.port = 80 for 82. For save changes ctrl +x, y, and enter..\033[0m"
Expand Down
6 changes: 6 additions & 0 deletions BridgeEmulator/functions/network_OpenWrt.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import logging
import socket
import sys

def getIpAddress():
return "192.168.8.1"

0 comments on commit 56fcf91

Please sign in to comment.