{"id":24446397,"url":"https://github.com/openclimatefix/pvlive-consumer","last_synced_at":"2025-04-10T11:21:48.573Z","repository":{"id":37955641,"uuid":"472664260","full_name":"openclimatefix/pvlive-consumer","owner":"openclimatefix","description":"Collect GSP solar generation data from PVLive","archived":false,"fork":false,"pushed_at":"2025-04-07T17:31:33.000Z","size":247,"stargazers_count":0,"open_issues_count":5,"forks_count":5,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-07T18:38:41.555Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openclimatefix.png","metadata":{"funding":{"github":["openclimatefix"],"patreon":null,"open_collective":"openclimatefix","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null},"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-22T07:52:49.000Z","updated_at":"2025-02-01T11:02:08.000Z","dependencies_parsed_at":"2023-12-25T20:03:43.856Z","dependency_job_id":"fc3a092c-1ee8-40a9-9bb5-48321b16a9f7","html_url":"https://github.com/openclimatefix/pvlive-consumer","commit_stats":{"total_commits":238,"total_committers":7,"mean_commits":34.0,"dds":0.5126050420168067,"last_synced_commit":"3f84bb3af74515b7d80f319b97d8514fcebf55c9"},"previous_names":["openclimatefix/pvlive-consumer"],"tags_count":80,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openclimatefix%2Fpvlive-consumer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openclimatefix%2Fpvlive-consumer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openclimatefix%2Fpvlive-consumer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openclimatefix%2Fpvlive-consumer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openclimatefix","download_url":"https://codeload.github.com/openclimatefix/pvlive-consumer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248208604,"owners_count":21065203,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-20T23:58:47.640Z","updated_at":"2025-04-10T11:21:48.555Z","avatar_url":"https://github.com/openclimatefix.png","language":"Python","funding_links":["https://github.com/sponsors/openclimatefix","https://opencollective.com/openclimatefix"],"categories":[],"sub_categories":[],"readme":"# PVLiveConsumer\n\u003c!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --\u003e\n[![All Contributors](https://img.shields.io/badge/all_contributors-4-orange.svg?style=flat-square)](#contributors-)\n\u003c!-- ALL-CONTRIBUTORS-BADGE:END --\u003e\nCollect GSP solar generation data from PVlive from Sheffield Solar\n\n## Run\n\nTo the run the appication install this library and run\n```\npython pvliveconsumer/app.py\n```\n\nThe environmental variables are\n- DB_URL: The natabase url you want to save the results to\n- REGIME: Regime of which to pull, either 'in-day' or 'day-after'\n- N_GSPS: The number of gsps you want to pull\n- INCLUDE_NATIONAL: Option to load national data, or not\n- UK_LONDON_HOUR: Optional to check UK London hour. This means can run this service at the same\n   UTC times, independently of the clock change.\n- BACKFILL_HOURS: Optional, defaults to 2. The amount of hours of data that is backfilled.\n- 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\n- PVLIVE_DOMAIN_URL: Optional, defaults to 'https://www.pvlive.org.uk'. The domain of the PVLive API.\n\nThese options can also be enter like this:\n```\npython pvliveconsumer/app.py --n-gsps=10\n```\n\n## Tests\n\nTo run tests use the following command\n```bash\ndocker stop $(docker ps -a -q)\ndocker-compose -f test-docker-compose.yml build\ndocker-compose -f test-docker-compose.yml run pvliveconsumer\n```\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/rachel-labri-tipton\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/86949265?v=4?s=100\" width=\"100px;\" alt=\"rachel tipton\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003erachel tipton\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/openclimatefix/pvlive-consumer/commits?author=rachel-labri-tipton\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/peterdudfield\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/34686298?v=4?s=100\" width=\"100px;\" alt=\"Peter Dudfield\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003ePeter Dudfield\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/openclimatefix/pvlive-consumer/commits?author=peterdudfield\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/mduffin95\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/6598483?v=4?s=100\" width=\"100px;\" alt=\"Matthew Duffin\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eMatthew Duffin\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/openclimatefix/pvlive-consumer/commits?author=mduffin95\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"http://www.wemofy.in\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/120705327?v=4?s=100\" width=\"100px;\" alt=\"Akshay Waghmare\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eAkshay Waghmare\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/openclimatefix/pvlive-consumer/commits?author=akshayw1\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenclimatefix%2Fpvlive-consumer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenclimatefix%2Fpvlive-consumer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenclimatefix%2Fpvlive-consumer/lists"}