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
- Host: GitHub
- URL: https://github.com/openclimatefix/pvlive-consumer
- Owner: openclimatefix
- License: mit
- Created: 2022-03-22T07:52:49.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-07T17:31:33.000Z (about 1 year ago)
- Last Synced: 2025-04-07T18:38:41.555Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 241 KB
- Stars: 0
- Watchers: 0
- Forks: 5
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# PVLiveConsumer
[](#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
💻

Peter Dudfield
💻

Matthew Duffin
💻

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