Skip to content

A simple script to pull data from the GeoGlows python API library and save to a network folder.

License

Notifications You must be signed in to change notification settings

HorizonsRC/geoglows-scheduled-task

Repository files navigation

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:

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.

  1. 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:
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.

  1. The .bat script can be scheduled to run at a specific time using the Windows Task Scheduler.

About

A simple script to pull data from the GeoGlows python API library and save to a network folder.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published