{"id":13478723,"url":"https://github.com/Zidious/BTT-TouchBarScript","last_synced_at":"2025-03-27T08:30:56.740Z","repository":{"id":163729578,"uuid":"181341313","full_name":"Zidious/BTT-TouchBarScript","owner":"Zidious","description":"BetterTouchTool(BTT) Cryptocurrency Python Scripts Powered by CoinGecko API","archived":false,"fork":false,"pushed_at":"2021-12-20T05:43:56.000Z","size":2656,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-12T00:33:31.025Z","etag":null,"topics":["bettertouchtool","crpyto","cryptocurrency","pythonscript","touchbar-app"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Zidious.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}},"created_at":"2019-04-14T17:00:14.000Z","updated_at":"2024-04-02T01:53:04.000Z","dependencies_parsed_at":"2024-02-09T10:01:47.187Z","dependency_job_id":null,"html_url":"https://github.com/Zidious/BTT-TouchBarScript","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/Zidious%2FBTT-TouchBarScript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zidious%2FBTT-TouchBarScript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zidious%2FBTT-TouchBarScript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zidious%2FBTT-TouchBarScript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zidious","download_url":"https://codeload.github.com/Zidious/BTT-TouchBarScript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245809674,"owners_count":20676033,"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":["bettertouchtool","crpyto","cryptocurrency","pythonscript","touchbar-app"],"created_at":"2024-07-31T16:02:01.595Z","updated_at":"2025-03-27T08:30:55.455Z","avatar_url":"https://github.com/Zidious.png","language":"Python","readme":"# BTT-TouchBarScript\nCryptoCurrency touchbar button to get price, marketcap and volume of an asset. \n\n\n\u003cimg src=\"ASSETS/NewExample.gif\" width=\"300\" height=\"300\" /\u003e\n\n\n# Steps: Adding a script - \n\n###### Step 1\n\nInstall BTT: https://folivora.ai/. You get a 45 day trial, I would recommend buying the license as I did, 100% worth buying the license and to support the dev!\n\nDownload python 3.7: https://www.python.org/.\n\nYou will need to also install the CoinGeckoAPI dependency via pip, the command is:  ```pip3 install pycoingecko```.\n\n###### Step 2\n\nOpen up BTT and top left make sure \"Touch Bar\" is selected. There is where you'll be able to add individual buttons and/or button groups.\n\n###### Step 3\n\nSelect \"+\" under Groups \u0026 Top Level Triggers.\n\n###### Step 4\n\nUnder \"Touch Bar Trigger Configuration\" select the \"Touch Bar Widgets\" drop down and select \"Shell Script / Task Widget\".\n\n###### Step 5\n\nUnder \"Widget Identifier\" remove any text within this box. \n\nUnder \"Execute script every\" select to the duration you wish i.e. 10 seconds\n\nAt the bottom, under \"script\" enter the the name of the button i.e. AVA like so: ```echo AVA``` - This is the test that will appear on the button itself.\n\n###### Step 6\n\nNow, we need to assign an Action to this script, this will be the Python script. \n\nSelect the \"+\" and enter in \"execute Shell Script / Task\".\n\n###### Step 7\n\nNow, we need to enter in the path of the script using Python3. \n\nDownload a script, for this example we will use ```Travala.py```.\n\nThe script is the python3 path followed by the path of your saved script. Like so: \n\n```/usr/local/bin/python3/ Users/gabe/Scripts/BTT-TouchBarScript/Travala.py``` - NOTE: there is a space between the end of `python3/ Users`.\n\n###### Step 8\n\nAfter inputting the script select \"Run Script Now\" and you should be prompted with the following output (example below): \n\n`$3.0 - MC: $156,455,696 - VOL: $7,070,268`\n\n\n# Adding Icons To Button (As shown in the GIF) - \n\nFirst of all you'll need to source your desired icon, many projects have a graphic bundle, you can use this as your icon for each button.\n\n###### Step 1\n\nSelect your desired button, under \"Shell Script / Task Widget\" you'll see \"Common\" Select this.\n\nUnder \"Icon\" and \"From Image File\" on the right of \"Select Button Icon\" will be a grey box, select this and click \"From Disk\" locate your icon from your directory and click \"Open\".\n\n###### Step 2\n\nNow, you will see you have an icon on your button. \n\nIf you want to make it more aesthetically pleasing, you can make the background of the button the same colour as your icon. To do this under \"Button Background Color\" and at the bottom left of the pop-up window you will see a colour picker, click onto this and hover over your icon and click to save the colour. \n\n\n# All done!\n\nIf you like this - Please go support the creator of BTT (Better-Touch-Tool) by purchasing his software (worth it!)\n\nEnjoy and happy HODLing! \n\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FZidious%2FBTT-TouchBarScript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FZidious%2FBTT-TouchBarScript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FZidious%2FBTT-TouchBarScript/lists"}