PVLiveConsumer
November 10, 2025 ยท View on GitHub
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
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):
rachel tipton ๐ป |
Peter Dudfield ๐ป |
Matthew Duffin ๐ป |
Akshay Waghmare ๐ป |
Ramkumar R ๐ |
This project follows the all-contributors specification. Contributions of any kind welcome!