filipsPL / autowx2

The program for scheduling recordings and processing of the satellite and ground radio transmissions (like capturing of the weather APT images from NOAA satellites, voice messages from ISS, fixed time recordings of WeatherFaxes etc.) :earth_africa: :satellite:
78 stars 16 forks source link

Static Web Page on a NAS #101

Open elral opened 4 years ago

elral commented 4 years ago

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 commented 4 years ago

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