4/7/2023 0 Comments Bettertouchtool bitcoin![]() I decided to start with the ‘easy’ bit, using the same coin list as before to iterate out a series of checkboxes that users could select. One problem was that I usually have no time for CSS or style - but I understand its importance. So to be able to give users the power to create their own toolbar, a UI was needed. Initially this was just a static array, with no user selection - however, that was about to change. ![]() You can see this in action in the ‘generateJSON’ function of. With this information, it was a fairly easy task to iterate over the coin list, and populate parts of the schema and script that were required for each coin. I found a common API that would be able to cope with multiple crypto currencies and also the conversion to multiple traditional currencies. data/fiat.jsįrom previous experiments, I had already built a basic applescript (similar to those provided by the inspirational projects). I would also need this for the traditional currencies - dollars, euros etc./data/coins.js &. For the coins themselves, I identified some information, such as their name, the ticker used on exchanges and their icon. The next stage was populating that from a list of coins. The schema that I ended up with is available in. I already had examples of the style I wanted - a group to capture all the coins under one button (now optional), the coins them self each with their own symbol, their price, an simple indicator of whether it is up or down since the day started, and finally a close group button to back out of the coin group.Įach of these components were created, at first in BetterTouchTool, then later manually tweaked. The first step was to create a basic schema that would allow me to export/import a JSON file and populate it based on the coins the user wanted. The previous examples had all made use of BetterTouchTool, which I had grown to love. ![]() ![]() Below are the general steps and phases I went through in creation of this application.īuilding a template and logic for population Living on GitHub, deployed via GitHub pages to avoid having hosting overhead. I would also describe myself as a hacker (not in the media sense) - more that I hack my way through a solution, iterating as ideas work and fail - this means I can deliver something quickly, but usually with a bit of code smell. I had to save myself from a lot of work, so it seemed clear to me that I should build a web app for this, keep it open source and piggy-back on the great work done from people already regarding things like icons. Secondly, I was sick of building out the json files, copy and pasting scripts, fudging around with icons - all of which was very manual.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |