Open ChadOhman opened 4 years ago
Try to reboot your system. Or change the port from flask before you start autowx2.py https://github.com/filipsPL/autowx2/blob/72804c588a1d793e2b5f76471a67e55d0d7201ab/autowx2_conf.py.example#L149
Thanks for your reply, @SA7BNT.
Changing the port didn't work to get the flask server up - however I'm not seeing the error I was seeing before anymore. I think it's listening on localhost so it won't accept traffic on eth0.
Flask seems to be running in debugging mode - I'm not familiar with Flask at all, how do I take it out of debug mode?
You may try to install lighttpd or apache2. Then point the autowx2 config to your page https://github.com/filipsPL/autowx2/blob/72804c588a1d793e2b5f76471a67e55d0d7201ab/autowx2_conf.py.example#L102 Maybe that will help you
Thanks. Installed apache2, pointed autowx2 to /var/www/html, and nada. Manually copied autowx2/var/www/ to the apache2 web root and while that did create content, I've noted all of the referenced elements on the page have an extra / in front of them. I tried stripping out all of them but something doesn't seem right. I don't know if this is the solution.
Update: used nginx reverse proxy - I now have a functioning webserver! :) I'm going to go ahead and close this. Thanks for your help!
Just kidding - I can't view the table - the hyperlink is pointed to http://server/table - not table.html. pointing to table.html gives me a 404 though the file exists in var/www/. Interesting. Polling is also returning a 400, pointing to /socket.io/?EIO=3&transport=polling&t=M-Tx-&sid=0a1ecc1616ab4fd2a2b78bba53099303... etc.
OK. The config on my side is pointing at /var/www/ Take a look inside autowx2 there you will see a map var/www/ Inside this there will be your DashBoard. I just pointing symlinks to this map and all was running fine at my side.
sa7bnt@owncloud:/var/www/html/autowx2$ ls -lisa insgesamt 12 390981 4 drwxrwxr-x 3 www-data www-data 4096 Apr 19 2019 . 390984 4 drwxrwxr-x 44 www-data www-data 4096 Jan 13 02:00 .. 398943 0 lrwxrwxrwx 1 www-data www-data 32 Nov 21 2018 css -> /home/sa7bnt/autowx2/var/www/css 390986 0 lrwxrwxrwx 1 www-data www-data 39 Nov 21 2018 index.html -> /home/sa7bnt/autowx2/var/www/index.html 390991 0 lrwxrwxrwx 1 www-data www-data 38 Nov 21 2018 index.tpl -> /home/sa7bnt/autowx2/var/www/index.tpl 398891 0 lrwxrwxrwx 1 www-data www-data 42 Nov 21 2018 nextpass.html -> /home/sa7bnt/autowx2/var/www/nextpass.html 398893 0 lrwxrwxrwx 1 www-data www-data 41 Nov 21 2018 nextpass.png -> /home/sa7bnt/autowx2/var/www/nextpass.png 398901 0 lrwxrwxrwx 1 www-data www-data 46 Nov 21 2018 noaa_dirlist.html -> /home/sa7bnt/autowx2/var/www/noaa_dirlist.html 398921 0 lrwxrwxrwx 1 www-data www-data 39 Nov 21 2018 recordings -> /home/sa7bnt/autowx2/var/www/recordings 398927 0 lrwxrwxrwx 1 www-data www-data 39 Nov 21 2018 table.html -> /home/sa7bnt/autowx2/var/www/table.html 415504 4 drwxr-xr-x 2 sa7bnt sa7bnt 4096 Apr 19 2019 wiki_bilder sa7bnt@owncloud:/var/www/html/autowx2$
hello Chad when you use nginx reverse onwhich file or directory are you pointing to in the nginx configuration file? and flask becomes what? Thank you for the info
eric
Hi!
I'm not super versed in python, so you'll have to forgive me...
Got things up and running, however I'm facing this error:
Logfile: 2020-01-12.txt
Has anyone seen this before? Is this normal? Also, how do you change what IP the flask server is listening on? Trying to access the webserver from another device returns a "refused to connect".
Thanks!