An open API service indexing awesome lists of open source software.

https://github.com/openclimatefix/pvlive-consumer

Collect GSP solar generation data from PVLive
https://github.com/openclimatefix/pvlive-consumer

Last synced: about 1 year ago
JSON representation

Collect GSP solar generation data from PVLive

Awesome Lists containing this project

README

          

# PVLiveConsumer

[![All Contributors](https://img.shields.io/badge/all_contributors-4-orange.svg?style=flat-square)](#contributors-)

Collect GSP solar generation data from PVlive from Sheffield Solar

## Run

To the run the appication install this library and run
```
python pvliveconsumer/app.py
```

The environmental variables are
- DB_URL: The natabase url you want to save the results to
- REGIME: Regime of which to pull, either 'in-day' or 'day-after'
- N_GSPS: The number of gsps you want to pull
- INCLUDE_NATIONAL: Option to load national data, or not
- UK_LONDON_HOUR: Optional to check UK London hour. This means can run this service at the same
UTC times, independently of the clock change.
- BACKFILL_HOURS: Optional, defaults to 2. The amount of hours of data that is backfilled.
- ELEVATION_LIMIT: Optional, defaults to 5. If no PVLive values are found, and sun elevation is below this, then the values are set to 0
- PVLIVE_DOMAIN_URL: Optional, defaults to 'https://www.pvlive.org.uk'. The domain of the PVLive API.

These options can also be enter like this:
```
python pvliveconsumer/app.py --n-gsps=10
```

## Tests

To run tests use the following command
```bash
docker stop $(docker ps -a -q)
docker-compose -f test-docker-compose.yml build
docker-compose -f test-docker-compose.yml run pvliveconsumer
```

## Contributors ✨

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):



rachel tipton
rachel tipton

💻
Peter Dudfield
Peter Dudfield

💻
Matthew Duffin
Matthew Duffin

💻
Akshay Waghmare
Akshay Waghmare

💻

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!