{"id":19846554,"url":"https://github.com/hekmon/btfsautohostprice","last_synced_at":"2026-06-10T19:32:07.355Z","repository":{"id":99435612,"uuid":"356646155","full_name":"hekmon/btfsautohostprice","owner":"hekmon","description":"BTFS auto host price automatically set BTFS host BTT price from coinmarketcap and a fixed USD amount","archived":false,"fork":false,"pushed_at":"2021-04-11T08:45:02.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-28T22:52:15.073Z","etag":null,"topics":["bittorent","btfs","btt","coinmarketcap","filesystem","host","market","price","rental","usd"],"latest_commit_sha":null,"homepage":"","language":"Go","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/hekmon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2021-04-10T17:07:27.000Z","updated_at":"2021-05-27T17:47:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"b23aee18-df81-400b-93b8-60a053f6e2bd","html_url":"https://github.com/hekmon/btfsautohostprice","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hekmon/btfsautohostprice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hekmon%2Fbtfsautohostprice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hekmon%2Fbtfsautohostprice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hekmon%2Fbtfsautohostprice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hekmon%2Fbtfsautohostprice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hekmon","download_url":"https://codeload.github.com/hekmon/btfsautohostprice/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hekmon%2Fbtfsautohostprice/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34168086,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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":["bittorent","btfs","btt","coinmarketcap","filesystem","host","market","price","rental","usd"],"created_at":"2024-11-12T13:11:48.387Z","updated_at":"2026-06-10T19:32:07.333Z","avatar_url":"https://github.com/hekmon.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# btfsautohostprice\nBTFS auto host price automatically set BTFS host BTT price from coinmarketcap and a fixed USD amount everyday\n\n## build\n\nSimply `go build -ldflags \"-s -w\"` the project.\n\n## install\n\n* Copy the `btfsautohostprice` binary from build to `/usr/local/bin/btfsautohostprice`\n* Copy `systemd/btfsautohostprice.service` to `/etc/systemd/system/btfsautohostprice.service`\n    * Make sure your btfs daemon is started by a unit called `btfs.service` or edit `After=` and `Requires=` in `btfsautohostprice.service`\n* Copy `systemd/btfsautohostprice.timer` to `/etc/systemd/system/btfsautohostprice.timer`\n* Copy `systemd/btfsautohostprice.env` to `/etc/default/btfsautohostprice`\n* Edit `/etc/default/btfsautohostprice` with valid values\n* Set perms with:\n\n```bash\nuseradd --home-dir /var/lib/btfsautohostprice --create-home --system --shell /usr/sbin/nologin btfsautohostprice\nchown root:btfsautohostprice /usr/local/bin/btfsautohostprice /etc/default/btfsautohostprice\nchmod 750 /usr/local/bin/btfsautohostprice\nchmod 640 /etc/default/btfsautohostprice\n```\n\n* Activate systemd with:\n\n```bash\nsystemctl daemon-reload\nsystemctl enable --now btfsautohostprice.timer\n```\n\n* Check status with:\n\n```bash\nsystemctl list-timers\nsystemctl status btfsautohostprice.timer\njournalctl -u btfsautohostprice.service\n```\n\n* Force run with:\n\n```bash\nsystemctl start btfsautohostprice.service\n```\n\n## run example\n\n`journalctl -u btfsautohostprice.service`\n```\nApr 11 08:33:57 serverhostname systemd[1]: Starting BTFS automatic host price update...\nApr 11 08:33:58 serverhostname btfsautohostprice[123483]: 10.00 USD is worth 1233.937434 BTT at 2021-04-11 08:33:07 +0000 UTC: with the 3x network redundancy, a host price must be 411.312478 BTT for a user to store 1TB/month on the network at this price\nApr 11 08:33:58 serverhostname btfsautohostprice[123483]: host pricing updated\nApr 11 08:33:58 serverhostname systemd[1]: btfsautohostprice.service: Succeeded.\nApr 11 08:33:58 serverhostname systemd[1]: Finished BTFS automatic host price update.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhekmon%2Fbtfsautohostprice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhekmon%2Fbtfsautohostprice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhekmon%2Fbtfsautohostprice/lists"}