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

Static Web Page on a NAS #101

Open
elral opened this issue Aug 4, 2020 · 1 comment
Open

Static Web Page on a NAS #101

elral opened this issue Aug 4, 2020 · 1 comment

Comments

@elral
Copy link

elral commented Aug 4, 2020

First, thank you for this project.
I installed it on a Raspberry Pi 4 after trying other solutions for receiving NOAA satellites made by myself and what I found in the internet. But nothing worked as good as this one. The problems I run in was a missing "bc" command, missing SoapySDR for receiving Meteor M2 and not connecting to flask server from other PC's within the network.
After installing bc
sudo apt-get install bc
installing SoapySDR via the GUI (everything I found, I guess way to much) and changing the last entry in autowx2.py in
socketio.run(app, host='0.0.0.0', port=webInterfacePort, debug=False)
means adding "host=0.0.0.0" everything is working.

The only thing I get not to work is to figure out how to change the config file with paths that the static webpage will be stored on my NAS. I mounted it to /media/Diskstation_web/ and tried to set the pathes accordingly, but in the best case the index.html is stored on the NAS (beside some other files, but not the pictures itself), and the links to the pictures point to the locations on the home drive.
My intention is to store the recordings to the home drive (e.g. /home//autowx2/recordings) and process them at this location, but at least to store every required file for the static webpage on my NAS in the folder /media/Diskstation_web/autowx2/.
Can somebody give me some hints which path variables I have to change within the autowx2_conf.py file and if I have to change some additional files?
What is the intention of the configure.sh file (it's not executable but easy to change). Is that needed to do this?

Thanks and regards

Ralf

@elral
Copy link
Author

elral commented Aug 6, 2020

O.K., now I got it working. So I answer myself if somebody else runs in this topic.

I have mounted my NAS to
/media/Diskstation_web
Then the paths must be set to:
wwwDir = '/media/Diskstation_web/autowx'
recordingDir = wwwDir + "recordings/"
wwwRootPath='/autowx2/'
The recording path must be also on the NAS, otherwise the pictures will not be found. Recording and processing does not work on the local drive if the static homepage is stored on the NAS. Or the scipt for creating the static homepage has to be extended that the pictures from the local drive will be moved to the NAS.

Sorry for confusion and regards

Ralf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant