{"id":20187124,"url":"https://github.com/danielhiversen/pytibber","last_synced_at":"2026-04-24T06:04:42.533Z","repository":{"id":25735341,"uuid":"104584858","full_name":"Danielhiversen/pyTibber","owner":"Danielhiversen","description":"Async Python 3 library for Tibber","archived":false,"fork":false,"pushed_at":"2026-04-12T19:14:35.000Z","size":531,"stargazers_count":112,"open_issues_count":4,"forks_count":53,"subscribers_count":8,"default_branch":"master","last_synced_at":"2026-04-12T21:25:54.447Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Danielhiversen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"Danielhiversen","custom":"http://paypal.me/dahoiv"}},"created_at":"2017-09-23T17:12:29.000Z","updated_at":"2026-04-12T19:14:20.000Z","dependencies_parsed_at":"2024-05-07T18:26:46.275Z","dependency_job_id":"69e0c599-6896-4cf2-a19a-84667b3732ad","html_url":"https://github.com/Danielhiversen/pyTibber","commit_stats":{"total_commits":479,"total_committers":27,"mean_commits":17.74074074074074,"dds":"0.12108559498956162","last_synced_commit":"1d8e833c1fc786b7a051aa606ddeb3a5ffd70c35"},"previous_names":[],"tags_count":158,"template":false,"template_full_name":null,"purl":"pkg:github/Danielhiversen/pyTibber","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danielhiversen%2FpyTibber","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danielhiversen%2FpyTibber/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danielhiversen%2FpyTibber/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danielhiversen%2FpyTibber/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Danielhiversen","download_url":"https://codeload.github.com/Danielhiversen/pyTibber/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danielhiversen%2FpyTibber/sbom","scorecard":{"id":37068,"data":{"date":"2025-08-11","repo":{"name":"github.com/Danielhiversen/pyTibber","commit":"c94895e7fb5d2621b35857099e7cb89f90b476ac"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":5,"reason":"7 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":1,"reason":"Found 5/30 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql.yml:16","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql.yml:17","Warn: no topLevel permission defined: .github/workflows/code_checker.yml:1","Warn: no topLevel permission defined: .github/workflows/codeql.yml:1","Warn: no topLevel permission defined: .github/workflows/python-publish.yml:1","Warn: no topLevel permission defined: .github/workflows/rebase.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/code_checker.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/Danielhiversen/pyTibber/code_checker.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/code_checker.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/Danielhiversen/pyTibber/code_checker.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/code_checker.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/Danielhiversen/pyTibber/code_checker.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/Danielhiversen/pyTibber/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/Danielhiversen/pyTibber/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/Danielhiversen/pyTibber/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/Danielhiversen/pyTibber/python-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/Danielhiversen/pyTibber/python-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rebase.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/Danielhiversen/pyTibber/rebase.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rebase.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/Danielhiversen/pyTibber/rebase.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/code_checker.yml:29","Warn: pipCommand not pinned by hash: .github/workflows/code_checker.yml:30","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:22","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:23","Info:   0 out of   9 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   4 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"SAST","score":9,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 17 commits out of 18 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-14T20:34:39.868Z","repository_id":25735341,"created_at":"2025-08-14T20:34:39.868Z","updated_at":"2025-08-14T20:34:39.868Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32211386,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T03:15:14.334Z","status":"ssl_error","status_checked_at":"2026-04-24T03:15:11.608Z","response_time":64,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["hacktoberfest"],"created_at":"2024-11-14T03:20:51.269Z","updated_at":"2026-04-24T06:04:42.516Z","avatar_url":"https://github.com/Danielhiversen.png","language":"Python","funding_links":["https://github.com/sponsors/Danielhiversen","http://paypal.me/dahoiv"],"categories":[],"sub_categories":[],"readme":"# pyTibber\n\n[![PyPI version](https://badge.fury.io/py/pyTibber.svg)](https://badge.fury.io/py/pyTibber)\n\u003ca href=\"https://github.com/astral-sh/ruff\"\u003e\n  \u003cimg src=\"https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json\" alt=\"Ruff\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/pre-commit/pre-commit\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit\u0026logoColor=white\u0026style=flat-square\" alt=\"pre-commit\"\u003e\n\u003c/a\u003e\n\n\nPython3 library for [Tibber](https://tibber.com/).\n\nGet electricity price and consumption.\n\nIf you have a Tibber Pulse or Watty you can see your consumption in real time.\n\n[Buy me a coffee :)](http://paypal.me/dahoiv)\n\n\nGo to [developer.tibber.com/](https://developer.tibber.com/) to get your API token.\n\n## Install\n```\npip3 install pyTibber\n```\n\n## Example:\n\n```python\nimport tibber.const\nimport tibber\nimport asyncio\n\n\nasync def start():\n  tibber_connection = tibber.Tibber(tibber.const.DEMO_TOKEN, user_agent=\"change_this\")\n  await tibber_connection.update_info()\n  print(tibber_connection.name)\n\n  home = tibber_connection.get_homes()[0]\n  await home.fetch_consumption_data()\n  await home.update_info()\n  print(home.address1)\n\n  await home.update_price_info()\n  print(home.current_price_info)\n\n  # await tibber_connection.close_connection()\n\nloop = asyncio.run(start())\n```\n\n\n## Example realtime data:\n\nAn example of how to subscribe to realtime data (Pulse/Watty):\n\n```python\nimport tibber.const\nimport asyncio\n\nimport aiohttp\nimport tibber\n\ndef _callback(pkg):\n    print(pkg)\n    data = pkg.get(\"data\")\n    if data is None:\n        return\n    print(data.get(\"liveMeasurement\"))\n\n\nasync def run():\n    async with aiohttp.ClientSession() as session:\n        tibber_connection = tibber.Tibber(tibber.const.DEMO_TOKEN, websession=session, user_agent=\"change_this\")\n        await tibber_connection.update_info()\n    home = tibber_connection.get_homes()[0]\n    await home.rt_subscribe(_callback)\n\n    while True:\n      await asyncio.sleep(10)\n\nloop = asyncio.run(run())\n```\n\nThe library is used as part of Home Assistant.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielhiversen%2Fpytibber","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielhiversen%2Fpytibber","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielhiversen%2Fpytibber/lists"}