Solar Radiation Model is a python service that provides you with a pipe and filter architecture. Further, it manage a field sensor database and an automatic downloader for satellite images.
If you want to deploy this repository with the default settings, on any GNU/Linux or OSX system you just need to execute the next bash command to setting up all the requirements (GNUMakefile should have been installed to this point).
$ PYVERSION=2.7 make sqlite3 deploy
But, if you want use postgresql instead of sqlite3, you should execute the next bash command:
$ PYVERSION=2.7 make postgres deploy
All the testing are made in python2.7. If you haven't installed python2.7 it is automatically installed with the previous command.
Last, you should configure a superuser access to the frontend. To do so, you should execute the next command and then fill the password field.
$ make defaultsuperuser
There are 2 services, the frontend and the backend. First we recommend you to bootup the frontend using the command:
$ make run
Now you can go to a browser on the same machine and use the address http://localhost:8000/admin to login to the service. You should complete the username field with "dev" and in the password field you should use your previously selected password.
Once you have set all the preferences, it's time to start the backend (the processing engine), you should use the next line:
$ make runbackend
This software is developed by GERSolar. You can contact us to gersolar.dev@gmail.com.