https://github.com/horizonsrc/geoglows-scheduled-task
A simple script to pull data from the GeoGlows python API library and save to a network folder.
https://github.com/horizonsrc/geoglows-scheduled-task
Last synced: 8 months ago
JSON representation
A simple script to pull data from the GeoGlows python API library and save to a network folder.
- Host: GitHub
- URL: https://github.com/horizonsrc/geoglows-scheduled-task
- Owner: HorizonsRC
- License: gpl-3.0
- Created: 2025-01-09T22:23:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-12T20:49:00.000Z (over 1 year ago)
- Last Synced: 2025-01-12T21:30:44.780Z (over 1 year ago)
- Language: Python
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# geoglows-scheduled-task
A simple script to pull data from the GeoGlows python API library and save to a network folder.
## Requirements
* Git
* Python < 3.13 (GEOGLoWS python package doesn't support 3.13 yet)
## Steps to get this running on a production server
1. Pull the repo to `C:\Scripts`. If this location is not viable the `.bat` script would need to be updated.
2. Create a file named `.env` in the repo. Optionally make a copy of `.env.example` and rename it to `.env`.
3. Substitute the example paths in your `.env` file, using `.env.example` as an example. The `.gitignore` file is set to ignore the `.env` file, so don't worry about putting sensitive data in there.
4. Create a python virtual environment in the repo directory. This can be done by running the following command in the command prompt:
```bash
cd C:\Scripts\geoglows-scheduled-task
python -m venv venv
```
The `.gitignore` file is set to ignore the `venv` folder. The `.bat` script will activate the virtual environment before running the script.
5. Run the `.bat` script to install the required packages and run the python script. This can be done by running the following command in the command prompt:
```bash
geoglows-scheduled-task.bat
```
The `.bat` script will update the git repo, activate the virtual environment, install the required packages, and run the python script.
6. The `.bat` script can be scheduled to run at a specific time using the Windows Task Scheduler.