piui icon indicating copy to clipboard operation
piui copied to clipboard

change app url

Open han-so1omon opened this issue 6 years ago • 4 comments

I tried changing nginx.conf piui server to 192.168.4.1:8080, then copying the file to /etc/nginx and restarting nginx thru init.d. I also tried changing piui/init.pyPiUi class port to the same url and then rebuilding/reinstalling thru setup.py. This only works for files in the basepiui` directory, but still no luck for files that are in other directories. I also tried rebooting after all of this and still nothing. Any words of wisdom or ways to pass in url as an argument?

han-so1omon avatar Sep 10 '18 05:09 han-so1omon

What are you actually trying to achieve - it's not super clear from your question.

dps avatar Sep 10 '18 06:09 dps

The code by default starts the piui server at 0.0.0.0:9999. I tried accessing the piui server at this address, but it only works on the local device. http://piui doesn't work over internet either.

I would like to access the server over internet, so I change the URL to another address (192.168.4.1, which is router address) via the files mentioned above.

I notice that there is a tool called cherrypy that can take the server and port as arguments. Maybe it would work to pass those as keywords arguments to PiUi class?

Let me know if there is an easy solution.

han-so1omon avatar Sep 10 '18 06:09 han-so1omon

Simply: How does one change the piui server url from 0.0.0.0:9999?

han-so1omon avatar Sep 10 '18 17:09 han-so1omon

Local device - 0.0.0.0:9999 Device on same network - <Raspberry local IP address>:9999 (example 192.168.1.100:9999) For accessing from over the internet, you must open port 9999 for ip address, where RPI is hosted.

Neophytez avatar Oct 09 '18 11:10 Neophytez