Some experimental python scripts to download products from Eumetsat.
text files used in python scripts (defined in eci_defs.py) | |
eci.key | replace <consumer_key> and <consumer_secret> |
eci.prd | example file to store product to download (if needed) |
python gui product selector | |
eci_select.py | select product, add in product file (see get_product() ) |
python scripts: functions | |
eci_defs.py | defines variables with default values |
eci_funcs.py | several functions for downloading |
python scripts: examples using above functions | |
eci_get_in_period.py | Example 1 |
eci_make_movie.py | Example 2 |
eci_process.py | contains action to do with downloaded file (used in example 2) |
This file has some optional arguments:
-h, --help show this help message and exit -dry just show what will be done -verbose VERBOSE 0=quiet, 1=errors, 2=+warnings, >2=+info -nprod NPROD Select product from eci.prd (line nr.) -product PRODUCT define product name
The Pi to use depends on the processing (i.e., xrit2pic command):
Repeatedly running can best be done by scheduling, e.g. using cron (Linux):
# m h dom mon dow commandAdd a line:
*/5 * * * * python3 eci/eci_make_movie.py >> eci.log(this is if scripts are in directory $HOME/eci) This will run the script each day every 5 minutes, needed for RSS. You can change that to:
*/15 * * * * python3 eci/eci_make_movie.py >> eci.logfor MSG (which is updated ecvery 15 minutes). Longer intervals are possible, since 8 new files can be handled at a time.
Note: If the first line contains:
#!/usr/bin/python3and if eci_make_movie.py is made executable then you can remove 'python3' in the command.