{"id":13412194,"url":"https://github.com/gildesmarais/gil_beats","last_synced_at":"2025-03-14T18:30:30.748Z","repository":{"id":40411359,"uuid":"423611655","full_name":"gildesmarais/gil_beats","owner":"gildesmarais","description":"⌚ A command-line tool (and library) for the rusty Swatch Internet Time. Comes with XBar/Swiftbar support.","archived":true,"fork":false,"pushed_at":"2023-09-25T09:45:10.000Z","size":50,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-07-31T20:50:01.792Z","etag":null,"topics":["bitbar-plugins","internet-time","learning-rust","swatch","swatch-internet-time","swiftbar-plugins","xbar-plugins"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gildesmarais.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-11-01T20:47:38.000Z","updated_at":"2023-09-25T09:45:18.000Z","dependencies_parsed_at":"2024-01-05T23:53:40.011Z","dependency_job_id":"30c2ab85-87af-46d6-8e4f-dc43d9397a7d","html_url":"https://github.com/gildesmarais/gil_beats","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gildesmarais%2Fgil_beats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gildesmarais%2Fgil_beats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gildesmarais%2Fgil_beats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gildesmarais%2Fgil_beats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gildesmarais","download_url":"https://codeload.github.com/gildesmarais/gil_beats/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243625006,"owners_count":20321214,"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":["bitbar-plugins","internet-time","learning-rust","swatch","swatch-internet-time","swiftbar-plugins","xbar-plugins"],"created_at":"2024-07-30T20:01:21.973Z","updated_at":"2025-03-14T18:30:30.414Z","avatar_url":"https://github.com/gildesmarais.png","language":"Rust","funding_links":[],"categories":["Programming Languages, Libraries","Rust"],"sub_categories":[],"readme":"# gil_beats\n\nThis command-line program deals with the [Swatch Internet Time](https://en.wikipedia.org/wiki/Swatch_Internet_Time).\n\nFeatures:\n\n- calculates the current _@beats_\n- supports _@beats_ to `H:m:s` time format\n- outputs in several formats:\n  - Bitbar/Xbar/Swiftbar\n  - JSON\n  - raw text\n\nIt's also usable in other Rust programs as a library.\n\n## CLI examples\n\nSupports several output formats:\n\n```\n$ gil_beats\n@469\n\n$ gil_beats --format=json\n{\"beats\":469,\"time\":\"11:15:21\"}\n\n$ gil_beats --format=swiftbar\n@469\n---\n11:15:21 | href=https://www.timeanddate.com/worldclock/fixedtime.html?day=6\u0026month=11\u0026year=2021\u0026beats=469\u0026p1=0\n```\n\nBeats to time:\n\n```\n$ gil_beats --beats 500 --format json\n{\"beats\":500,\"time\":\"12:00:00\"}\n```\n\n## History\n\nOne day, after we had been given an hour (change from summer time to winter time, daylight saving time (DST)), there was a small discussion on Twitter about when the European Union would finally implement its plans to abolish daylight saving time.\n\nSomeone mentioned Swatch Internet Time, a time-zone-less time format from 1998. The idea was unsuccessful.\n\nUnimpressed by all this, I thought a program that will help me deal with the Internet Time could be a nice little project to invest the hour well and learn some Rust. Here it is.\n\nSince I have no intention of making it a full-fledged crate, and due to lack of name-finding creativity, I have prefixed the obvious name `beats` with my first name and hence called it `gil_beats`.\n\n## Usage \u0026 Development\n\n1. Install Rust (e.g. rustup, via your version manager or `brew install rust` or which method you prefer)\n2. `git clone https://github.com/gildesmarais/gil_beats.git` and `cd` into it\n3. To run: `cargo run -- --help`\n4. To install: `cargo install --path .`, check for warnings and act, eventually run it: `gil_beats`\n\n### Use with Bitbar/XBar/Swiftbar...\n\nTo have the current _@beats_ displayed in your menu bar, use:\n\n- \u003chttps://github.com/matryer/xbar\u003e or\n- \u003chttps://github.com/swiftbar/SwiftBar\u003e\n\nand install gil_beats (see instructions above). Then, create this script in your\n\\*bar plugins folder, called e.g. `gil_beats.87s.sh`:\n\n```sh\n#!/bin/sh\n\n\"$HOME/.cargo/bin/gil_beats\" --format=swiftbar\n\n# or:\n# gil_beats --format=swiftbar\n```\n\nFinally, `chmod +x gil_beats.87s.sh` and a new item on your menu bar should appear.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgildesmarais%2Fgil_beats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgildesmarais%2Fgil_beats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgildesmarais%2Fgil_beats/lists"}