{"id":17511733,"url":"https://github.com/claws/txcurrentcost","last_synced_at":"2026-02-17T16:32:56.943Z","repository":{"id":2196690,"uuid":"3144951","full_name":"claws/txCurrentCost","owner":"claws","description":"txCurrentCost is a Python Twisted package that allows you to monitor your CurrentCost device.","archived":false,"fork":false,"pushed_at":"2018-03-06T11:33:23.000Z","size":26,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-26T14:20:27.104Z","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/claws.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-01-10T12:13:17.000Z","updated_at":"2018-03-06T11:33:24.000Z","dependencies_parsed_at":"2022-09-08T07:34:29.180Z","dependency_job_id":null,"html_url":"https://github.com/claws/txCurrentCost","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/claws/txCurrentCost","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/claws%2FtxCurrentCost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/claws%2FtxCurrentCost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/claws%2FtxCurrentCost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/claws%2FtxCurrentCost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/claws","download_url":"https://codeload.github.com/claws/txCurrentCost/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/claws%2FtxCurrentCost/sbom","scorecard":{"id":285570,"data":{"date":"2025-08-11","repo":{"name":"github.com/claws/txCurrentCost","commit":"546830d9d052c328a222829fad9c5de01e8ccc5e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"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":"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":"Code-Review","score":0,"reason":"Found 1/17 approved changesets -- score normalized to 0","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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":-1,"reason":"no dependencies found","details":null,"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":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"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":"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: MIT-LICENSE:0","Info: FSF or OSI recognized license: MIT License: MIT-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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 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-17T17:09:26.963Z","repository_id":2196690,"created_at":"2025-08-17T17:09:26.963Z","updated_at":"2025-08-17T17:09:26.963Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279009971,"owners_count":26084672,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-20T05:09:46.136Z","updated_at":"2025-10-12T02:52:59.946Z","avatar_url":"https://github.com/claws.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# txCurrentCost\n\ntxCurrentCost is a Python Twisted package that lets you monitor your CurrentCost device. Use the txcurrentcost package to integrate non blocking access to CurrentCost devices into your Python Twisted application.\n\n![PyPi version](https://img.shields.io/pypi/v/txcurrentcost.svg) \u0026nbsp;\u0026nbsp; ![PyPi version](https://img.shields.io/pypi/dm/txcurrentcost.svg)\n\n## Software Dependencies\n\n### Python Dependencies\n\n* Python\n* pyserial\n* Twisted\n\n  - zope.interface\n\n### Non-Python Dependencies\n* Serial-to-USB driver. Typically the common way to communicate with CurrentCost devices on modern computers is through a serial to USB adaptor. Do a Google search for 'pl2303 driver' and your platform.\n\n  Here is one [example](https://github.com/mpepping/osx-pl2303) that seems more up to date that the original [failberg](http://github.com/downloads/failberg/osx-pl2303) version I was running.\n\n  Additionally, there is a kernel extension at http://xbsd.nl/2011/07/pl2303-serial-usb-on-osx-lion.html that can be installed by following the easy steps listed there. The kernel extension method worked fine for me, didn't even need to unplug the USB dongle. I just updated the /dev/cu.XXXXX port in the config file and started demo.\n\n\n## Install\n\nA number of methods are available to install this package.\n\n* Using pip with PyPI as source:\n\n```bash\n$ [sudo] pip install txcurrentcost\n```\n\n* Using pip with github source:\n\n```bash\n$ [sudo] pip install git+git://github.com/claws/txCurrentCost.git\n```\n\n* Manually download and install the txCurrentCost archive. For other manual download options (zip, tarball) visit the github web page of [txCurrentCost](https://github.com/claws/txCurrentCost):\n\n```bash\n$ git clone git://github.com/claws/txCurrentCost.git\n$ cd txCurrentCost\n$ [sudo] python setup.py install\n```\n\n### Test Installation\n\n```bash\n$ python\n\u003e\u003e\u003e import txcurrentcost\n\u003e\u003e\u003e\n```\n\n## Example\n\nA simple demonstration script exists in the examples directory of this repository showing how a developer would use the Monitor to obtain periodic and historic update message data from the CurrentCost device.\n\nTo run it you must first update update the 'port' setting in the examples/monitor.cfg file to point to the actual serial port your current cost device is connected to.\n\nThen run the example script as follows (Ctrl+c will stop the script running):\n```bash\n$ cd examples\n$ python demo.py --configfile=monitor.cfg\n```\n\nExample output:\n```python\nPeriodic Update =\u003e timestamp=2012-01-10 09:55:59.997599temperature=21.7, sensor_type=Electricity, sensor_instance=0sensor_data=['00504']\nPeriodic Update =\u003e timestamp=2012-01-10 09:56:06.098980temperature=21.8, sensor_type=Electricity, sensor_instance=0sensor_data=['00508']\nPeriodic Update =\u003e timestamp=2012-01-10 09:56:12.202030temperature=21.8, sensor_type=Electricity, sensor_instance=0sensor_data=['00516']\n```\n\nHistory updates may be displayed if they are encountered while running the demo script. However, these are only sent at intervals of approximately 1 minute past every odd hour so this is unlikely.\n\n[![Analytics](https://ga-beacon.appspot.com/UA-29867375-2/txCurrentCost/readme?pixel)](https://github.com/claws/txCurrentCost)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclaws%2Ftxcurrentcost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclaws%2Ftxcurrentcost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclaws%2Ftxcurrentcost/lists"}