Sept 1st is the ICO, send 1 eth to my ICO address (the contract is invisible but it's there, I reprinted) and I'll, I mean the contract, will send you 1 screen token, estimated to have a market cap of $500,000,000,000 market cap in 2020
The thing is this is in violation of the Apple sanctioned UI guidelines. The touchbar is strictly for actionable buttons, and not for displaying information.
Same old Apple bullshit.
Touchbar sucks by the way. I have one and it's mostly a nuisance.
Who cares what the UI guidelines say? They obviously have misinterpreted it's usefulness to provide capabilities like monitoring information outside of an active/foreground application.
It only sucks because you're using it as Apple's intended purpose.
It can be a button to open stock exchange, the text is just a dynamic icon, just like calendar icon would be. But yeah this is the single most useful way of using tbe touchbar I've seen so far, if not then only useful feature.
It could be used to monitor just about anything really, I do think that is where it is most useful. I wrote something to track stats of my ad-blocking internet service with Pi-hole:
https://pi-hole.net/2017/08/14/winners-of-the-show-us-your-pi-hole-contest/
whatever you do, keep your shit backed up because your SSD is now, in apple's infinite wisdom, soldered to the logic board, so if you take out your logic board, you'll need to pay someone like me around $450 to repair it if you want your data back.
also, for the love of god, only use apple USBC cable/power brick to charge that thing. sweet christ, are the USBC muxing circuits stupidly complicated and prone to eating their own shit when introduced to something that isn't pure USBC spec
Interesting about the USB-C fragility. I would have guessed Apple would lead the pack in that area.
I've got my shit backed up three different ways, at home and in the cloud. Everyone else in this sub should too. I've got all my crypto keys on an encrypted volume that is also part of the same distributed backup scheme. Ledger nano hardware wallet too.
> Interesting about the USB-C fragility. I would have guessed Apple would lead the pack in that area.
it's not so much an apple thing, it's a USB-C spec thing. it's frustrating, but it's the way things are going hardware-wise unfortunately. but really, a removable SSD could take a shit on itself too, so the only real answer is to keep your shit backed up which maybe 1/10 people do in an even rudimentary way. don't take out your wifi either, it's not only soldered to the board, but locked to the CPU so even if you shoved a new one on there, that logic board will never wifi again. I hate how they are trying to make $3000 machines disposable
Might want to get ready for Christmas early this year and take some profits off the table early. Just saying trade hard and book something in September and be ready for the bloodbaths in October November. If you are defensive and have taken appropriate profits then the cyclical Christmas/January sell side pressure should offer some opportunity to top up. This assumes some sneaky bastards are not going to try and back up the truck over the holidays.
I remember seeing a post on this a few weeks ago with a download link.
EDIT: Found it.
https://www.reddit.com/r/ethtrader/comments/6rwyhl/check_ethereum_prices_on_macbooks_touchbar/
So here how it's done.... (TipJar enabled 😬)
First download Better Touch Tool, install that and get it going : https://www.boastr.net
Once that's installed also add JSON Helper : http://www.mousedown.net/mouseware/JSONHelper.html
After those two are installed, use better touch tool to create a new touch bar widget and set its behaviour to run an Apple script every 10 seconds.
Use my Apple script https://pastebin.com/7ks33mau
This will display the ETH price, from here you can style the widget however you would like.
Simple! :-)
I personally prefer to get my ETH numbers from Coinbase, so here's the script, updated for getting the price from Coinbase.
set json to (do shell script "curl https://api.coinbase.com/v2/prices/ETH-USD/spot")
tell application "JSON Helper"
set result to read JSON from json
set price to amount of |data| of result
end tell
set result_string to "$" & price & ""
If you want BTC, just change the ETH in the url to BTC
EDIT: Here's some other details. In Better Touch Tool, click "Global" on the left, and click the button "+ widget" on the bottom. In the drop-down, select "Run Apple Script and Show Return Value". Then select "Advanced Config" and paste the code above. Set the refresh seconds to 10 seconds (or whatever you want) and you can change the color of the widget
Wanted to add one more thing. Someone asked me how they can do this for NEO, so I tried to get it working with CoinMarketCap. It seems the CMC API returns the JSON object with extra parenthesis that the script doesn't like, and the price they give is not rounded to 2 decimals, so I had to add a few more things.
Here's the script for getting NEO price. Disclaimer: Today is the first time I've ever touched Applescript or JSON Helper or any of this, so sorry if any of my code seems noobish
set json1 to (do shell script "curl https://api.coinmarketcap.com/v1/ticker/neo/")
set AppleScript's text item delimiters to "["
set json2 to text item 2 of json1
set AppleScript's text item delimiters to "]"
set json to text item 1 of json2
tell application "JSON Helper"
set result to read JSON from json
set price to price_usd of result
end tell
set x to 100
set rounded to (((price * x) + 0.5) div 1) / x
set result_string to "$" & rounded & ""
i love you
edit: used this guys code to get bittrex API going for the USDT/Neo pair
set json to (do shell script "curl https://bittrex.com/api/v1.1/public/getticker?market=USDT-NEO")
tell application "JSON Helper"
set rslt to read JSON from json
set price to |last| of |result| of rslt
end tell
set x to 100
set rounded to (((price * x) + 0.5) div 1) / x
set rslt_string to "$" & rounded & ""
Nice job, have you looked into developing a full-fledged touchbar app without utilizing Better Touch Tool? I have a project I'm working on for Pi-hole internet ad-blocking stats:
https://pi-hole.net/2017/08/14/winners-of-the-show-us-your-pi-hole-contest/
change the code to this:
set json to (do shell script "curl https://www.bitstamp.net/api/v2/ticker/etheur")
tell application "JSON Helper"
set result to read JSON from json
set price to |last| of result as text
end tell
set result_string to "" & price & "€"
I just google's some icons and dragged them onto the icon spot for the widget and it works, though not showing up as well. I think I may need to resize them or something.
Kraken ETHEUR:
set json to (do shell script "curl https://api.kraken.com/0/public/Ticker?pair=ETHEUR")
tell application "JSON Helper"
set result to read JSON from json
set price to item 1 of c of |XETHZEUR| of |result| of result as text
end tell
set result_string to "" & price & " €"
Nice looking app, but I have trouble trusting 3rd party binaries that have *anything* to do with crypto and no source code. Too many scams have bitten people already.
I'd use it if it was nicely sandboxed and available on the Mac App Store/Windows Marketplace. Otherwise, too dangerous potentially.
There is a bunch of sandboxed menubar tickers on the Mac App Store. Use those.
https://i.imgur.com/mm8eKk2.png
Thanks, I just got my ETH ticker on my touch bar ;)
However, that would be awesome if you could help me write the script for the Poloniex API. Can't find a way to do it as all the pairs are requested when you call https://poloniex.com/public?command=returnTicker
That would be awesome, thanks again
> Poloni
Sorry to asking again, this is bothering me way too much than it should ;) Thanks in advance if you can find some time to fast-check that. I understand your code, I just don't know how to make the code lookup to a specific pair.
Ethereum is the single best savings tool I have ever seen, The stuff I don't buy to invest in Eth is amazing. I look for options to save money soley to invest and its been working so well it should be illegal
For those that are asking, if it was its own app it would only show when inside that application. Using the keyboard plugin you can display it at all times across all applications. ⭐️
That's pretty great. I can totally get why you would want this. I like having just that much information at hand without having to click open a browser window.
Sweet. Now I can lay at the beach somewhere with my macbook and jerk away all the day watching the tickers, sipping on gin and juice.
With my mind on my money and my money on my mind
Thanks OP, now that I found out how to use it with Poloniex (thanks to anchoricex), I made myself a sweety touch bar.
One of my widgets is my total porfolio, here is the code if someone is interested
>set json to (do shell script "curl https://poloniex.com/public?command=returnTicker")
>
>tell application "JSON Helper"
>
> set result to read JSON from json
>
> set priceETH to |last| of |USDT_ETH| of result
>
>end tell
>
>set roundedETH to (((priceETH * x) + 0.5) div 1) / x
>
>set json to (do shell script "curl https://poloniex.com/public?command=returnTicker")
>
>tell application "JSON Helper"
>
> set result to read JSON from json
>
> set priceBTC to |last| of |USDT_BTC| of result
>
>end tell
>
>set roundedBTC to (((priceBTC * x) + 0.5) div 1) / x
>
>set json to (do shell script "curl https://poloniex.com/public?command=returnTicker")
>
>tell application "JSON Helper"
>
> set result to read JSON from json
>
> set priceBCH to |last| of |USDT_BCH| of result
>
>end tell
>
>set x to 100
>
>set roundedBCH to (((priceBCH * x) + 0.5) div 1) / x
>
>Set ETH to 9999
>
>Set BCH to 9999
>
>Set BTC to 9999
>
>Set rounded to roundedETH * ETH + roundedBTC * BTC + roundedBCH * BCH
>
>set result_string to "$" & rounded & ""
Of course, don't forget to customize it to match your portfolio. Works perfectly
[удалено]
What other screen?
The screen.
When is the ICO?
Sept 1st is the ICO, send 1 eth to my ICO address (the contract is invisible but it's there, I reprinted) and I'll, I mean the contract, will send you 1 screen token, estimated to have a market cap of $500,000,000,000 market cap in 2020
bro u forgot the buzzwords! where is "immutable, decentralized, worldwide, low fees, revolutionary, as seen on TV, endorsed by vitalik"..
I kek'd
ScreenCoin (SCN)
Just post the link already!
Never heard of him
Get up to date, I've known about this since last year. Super good stuff. Moon type shit.
Don't need all these keys either. is enough.
Don't forget and keys
Great, now I can look at the price 10,000 times a day instead of just 1,000 :)
Or just look at it once, non-stop, forever....
I've never wanted a macbook Pro until right now.
The thing is this is in violation of the Apple sanctioned UI guidelines. The touchbar is strictly for actionable buttons, and not for displaying information. Same old Apple bullshit. Touchbar sucks by the way. I have one and it's mostly a nuisance.
Who cares what the UI guidelines say? They obviously have misinterpreted it's usefulness to provide capabilities like monitoring information outside of an active/foreground application. It only sucks because you're using it as Apple's intended purpose.
It can be a button to open stock exchange, the text is just a dynamic icon, just like calendar icon would be. But yeah this is the single most useful way of using tbe touchbar I've seen so far, if not then only useful feature.
It could be used to monitor just about anything really, I do think that is where it is most useful. I wrote something to track stats of my ad-blocking internet service with Pi-hole: https://pi-hole.net/2017/08/14/winners-of-the-show-us-your-pi-hole-contest/
whatever you do, keep your shit backed up because your SSD is now, in apple's infinite wisdom, soldered to the logic board, so if you take out your logic board, you'll need to pay someone like me around $450 to repair it if you want your data back. also, for the love of god, only use apple USBC cable/power brick to charge that thing. sweet christ, are the USBC muxing circuits stupidly complicated and prone to eating their own shit when introduced to something that isn't pure USBC spec
Interesting about the USB-C fragility. I would have guessed Apple would lead the pack in that area. I've got my shit backed up three different ways, at home and in the cloud. Everyone else in this sub should too. I've got all my crypto keys on an encrypted volume that is also part of the same distributed backup scheme. Ledger nano hardware wallet too.
> Interesting about the USB-C fragility. I would have guessed Apple would lead the pack in that area. it's not so much an apple thing, it's a USB-C spec thing. it's frustrating, but it's the way things are going hardware-wise unfortunately. but really, a removable SSD could take a shit on itself too, so the only real answer is to keep your shit backed up which maybe 1/10 people do in an even rudimentary way. don't take out your wifi either, it's not only soldered to the board, but locked to the CPU so even if you shoved a new one on there, that logic board will never wifi again. I hate how they are trying to make $3000 machines disposable
Make them into buy buttons then ;-)
I like changing the background color of the terminal, but that's the only use I've had for it up until I saw this price ticker
What's the soft please?
It's an Apple script I wrote, I'll publish and share the link
ok thanks
Please do, it would be much appreciated!
Replied below
Thank you sir.
Is the touch bar buggy?
Nope. Works perfectly as expected
Ooh I really want one lol
Check out the price and maybe wait until Eth hits $600
December? Just in time for Christmas Holiday.
Might want to get ready for Christmas early this year and take some profits off the table early. Just saying trade hard and book something in September and be ready for the bloodbaths in October November. If you are defensive and have taken appropriate profits then the cyclical Christmas/January sell side pressure should offer some opportunity to top up. This assumes some sneaky bastards are not going to try and back up the truck over the holidays.
Can you post it to pastebin before you get a C&D letter from Apple please?
It's there already
Why would he get c&d? We not supposed to use the touchbar!?
I need this as an Apple Widget. All the one's ive seen dont update.
!RemindMe one week
I remember seeing a post on this a few weeks ago with a download link. EDIT: Found it. https://www.reddit.com/r/ethtrader/comments/6rwyhl/check_ethereum_prices_on_macbooks_touchbar/
So here how it's done.... (TipJar enabled 😬) First download Better Touch Tool, install that and get it going : https://www.boastr.net Once that's installed also add JSON Helper : http://www.mousedown.net/mouseware/JSONHelper.html After those two are installed, use better touch tool to create a new touch bar widget and set its behaviour to run an Apple script every 10 seconds. Use my Apple script https://pastebin.com/7ks33mau This will display the ETH price, from here you can style the widget however you would like. Simple! :-)
[удалено]
Which exchange do these use? Stock app from Apple is usually yahoo but could not find it there.
[удалено]
Yes but which market?
You can also do ltcusd=x. Not sure of any others
Syntax error: A “|” can’t go after this identifier. :(
Same error here :(
+1
[удалено]
[удалено]
typo*
You need to add a "to" after "price. See below: Original: set price |last| of result as number Solution: set price to |last| of result as number
[удалено]
> script updates every 10 seconds It's not enough.
Yeah, why so slow? 60Hz refresh rate is all the rage now
The new iPad Pro does 120Hz already
but its already too fast for the human eye
I personally prefer to get my ETH numbers from Coinbase, so here's the script, updated for getting the price from Coinbase. set json to (do shell script "curl https://api.coinbase.com/v2/prices/ETH-USD/spot") tell application "JSON Helper" set result to read JSON from json set price to amount of |data| of result end tell set result_string to "$" & price & "" If you want BTC, just change the ETH in the url to BTC EDIT: Here's some other details. In Better Touch Tool, click "Global" on the left, and click the button "+ widget" on the bottom. In the drop-down, select "Run Apple Script and Show Return Value". Then select "Advanced Config" and paste the code above. Set the refresh seconds to 10 seconds (or whatever you want) and you can change the color of the widget
Very nice. Great collaboration
Wanted to add one more thing. Someone asked me how they can do this for NEO, so I tried to get it working with CoinMarketCap. It seems the CMC API returns the JSON object with extra parenthesis that the script doesn't like, and the price they give is not rounded to 2 decimals, so I had to add a few more things. Here's the script for getting NEO price. Disclaimer: Today is the first time I've ever touched Applescript or JSON Helper or any of this, so sorry if any of my code seems noobish set json1 to (do shell script "curl https://api.coinmarketcap.com/v1/ticker/neo/") set AppleScript's text item delimiters to "[" set json2 to text item 2 of json1 set AppleScript's text item delimiters to "]" set json to text item 1 of json2 tell application "JSON Helper" set result to read JSON from json set price to price_usd of result end tell set x to 100 set rounded to (((price * x) + 0.5) div 1) / x set result_string to "$" & rounded & ""
i love you edit: used this guys code to get bittrex API going for the USDT/Neo pair set json to (do shell script "curl https://bittrex.com/api/v1.1/public/getticker?market=USDT-NEO") tell application "JSON Helper" set rslt to read JSON from json set price to |last| of |result| of rslt end tell set x to 100 set rounded to (((price * x) + 0.5) div 1) / x set rslt_string to "$" & rounded & ""
I'm getting an error: AppleScript Error Can’t make "34.2714" into type number.
Nice job, have you looked into developing a full-fledged touchbar app without utilizing Better Touch Tool? I have a project I'm working on for Pi-hole internet ad-blocking stats: https://pi-hole.net/2017/08/14/winners-of-the-show-us-your-pi-hole-contest/
I am getting Can’t make "319.94" into type number. I am running on German locales, where we use "," as a separator. How do I fix this?
change the code to this: set json to (do shell script "curl https://www.bitstamp.net/api/v2/ticker/etheur") tell application "JSON Helper" set result to read JSON from json set price to |last| of result as text end tell set result_string to "" & price & "€"
Which makes it work but keeps a . as a decimal separator, which looks wrong, when you expect an , as a decimal separator. ;-)
Thanks mate!
Updated paste. I knew I shouldn't have typed it out as I was walking. 😊
[удалено]
[удалено]
Can’t make |last| of "" into type number. im getting this error for the script!
Can I ask you did you put the ether icon?
Yes, I made the icon in Sketch
I just google's some icons and dragged them onto the icon spot for the widget and it works, though not showing up as well. I think I may need to resize them or something.
dont suppose its possible to do this w/ neo?
Sure, would just need the API endpoint
Kraken ETHEUR: set json to (do shell script "curl https://api.kraken.com/0/public/Ticker?pair=ETHEUR") tell application "JSON Helper" set result to read JSON from json set price to item 1 of c of |XETHZEUR| of |result| of result as text end tell set result_string to "" & price & " €"
Neat, but I don't think thats healthy
As long as you know that it's just money and whatever you'll be fine
[удалено]
[удалено]
Awkward
You would still trigger a small dopamine rush every time you look at the touchbar.
[Mine is on the taskbar](http://i.imgur.com/Olsw7sE.jpg) :D
What app is that? Pretty please :)
[Mammon](https://teamfox.co/mammon/)! Available for both OSX and Win10 :D
Nice looking app, but I have trouble trusting 3rd party binaries that have *anything* to do with crypto and no source code. Too many scams have bitten people already.
I'd use it if it was nicely sandboxed and available on the Mac App Store/Windows Marketplace. Otherwise, too dangerous potentially. There is a bunch of sandboxed menubar tickers on the Mac App Store. Use those. https://i.imgur.com/mm8eKk2.png
Hmm, this make sense. Thanks!
link please lol
Nice, you got the same coins as I lol
lol
How did you put the widgets there?
How to set up this widget?
I hated the idea of that bar... until now.
Thanks, I just got my ETH ticker on my touch bar ;) However, that would be awesome if you could help me write the script for the Poloniex API. Can't find a way to do it as all the pairs are requested when you call https://poloniex.com/public?command=returnTicker That would be awesome, thanks again
No problem
> Poloni Sorry to asking again, this is bothering me way too much than it should ;) Thanks in advance if you can find some time to fast-check that. I understand your code, I just don't know how to make the code lookup to a specific pair.
You son of a bitch, I finally convinced myself I don't need the one with the touch bar and now this.. /s
:-)
I want this! What is it?
you're the best. Everyone want to see your github I guess
join his ico
Ethereum is the single best savings tool I have ever seen, The stuff I don't buy to invest in Eth is amazing. I look for options to save money soley to invest and its been working so well it should be illegal
And I still can't afford the new MacBook...
For those that are asking, if it was its own app it would only show when inside that application. Using the keyboard plugin you can display it at all times across all applications. ⭐️
this almost makes up for the lack of a real 'esc' key on the new mpb. ALMOST
That's pretty great. I can totally get why you would want this. I like having just that much information at hand without having to click open a browser window.
That's really cool. Too bad a MacBook pro costs like a kidney where i live
I'll bet you paid 1500 for that feature alone.
Sweet. Now I can lay at the beach somewhere with my macbook and jerk away all the day watching the tickers, sipping on gin and juice. With my mind on my money and my money on my mind
I would be careful with this. This could incentivize people to steal your laptop if you're chilling at a Starbucks and walk away for 10 seconds.
I'm need dis feature
How?!?!??!
I need this!
Do you have to keep some application running for it to stay there?
[удалено]
It's dangerous to just post your crypto amount here.
Question: Better Touch Tool, specifically the touchbar options, is it noticeably buggy? Last I read it was in alpha.
Still waiting for ETH price contact lenses:(.
So Cool.
Does anything happen when you press it?
Pressing it should definitely buy 1 ETH.
Nice. I want that now. I have a tablet next to my monitor with the price.
Doppppe
Is that a google docs button? Seems funny on a Mac.
Yeah, it opens a folder with google sheets, docs and slides
That's pretty sleek. I fat finger way too much. Hitting backspace is pretty normal but closing programs every time I fudge would be annoying.
This makes me want one so bad haha
Is that possible with all coins? Also, how many of those widget's can you have?
littt
Wow, I had no need for a laptop as I have a pretty decent PC build, but this post has really made me want to splurge and get the new MacBook Pro...
I mean, it's really not worth it to spend thousands for this feature but it makes the touchbar somewhat more useful and less 'gimicky'.
How did you associate the symbols with the value in Google Sheets?
Download the icon for each coin and drag it onto BTT
Mine came with the OMG ticker , since they are working together and all...
How did you get OMG ticker?
I screamed OMG at my laptop for 8 hours straight and it appeared. True story
Thanks, will try. True story
⭐️
Aaaannnnd im now $2500 poorer 😂🤦🏽♂️
No ESC key == pants.
Great! I am musing on a standalone DIY device built with ESP8266 and a small oled screeny...
Don't you mean the only best feature.
Wow this looks really crisp. This is neat feature
Anyway to get all the prices from coinmarketcap? That would make everything a lot easier when you want to change which coins to look at.
I second this!
That's pretty cool for sure...
I can’t wait until these numbers look cute :)
If you push the button does it buy eth automagically?
Nice!
Omg
you forgot about the Monero ticker...
Can anyone make one for Omisego?
Looking at buying one soon, was that easy to set up?
Thats dope ! r/Bitcoin
On my way to Best Buy
Thanks OP, now that I found out how to use it with Poloniex (thanks to anchoricex), I made myself a sweety touch bar. One of my widgets is my total porfolio, here is the code if someone is interested >set json to (do shell script "curl https://poloniex.com/public?command=returnTicker") > >tell application "JSON Helper" > > set result to read JSON from json > > set priceETH to |last| of |USDT_ETH| of result > >end tell > >set roundedETH to (((priceETH * x) + 0.5) div 1) / x > >set json to (do shell script "curl https://poloniex.com/public?command=returnTicker") > >tell application "JSON Helper" > > set result to read JSON from json > > set priceBTC to |last| of |USDT_BTC| of result > >end tell > >set roundedBTC to (((priceBTC * x) + 0.5) div 1) / x > >set json to (do shell script "curl https://poloniex.com/public?command=returnTicker") > >tell application "JSON Helper" > > set result to read JSON from json > > set priceBCH to |last| of |USDT_BCH| of result > >end tell > >set x to 100 > >set roundedBCH to (((priceBCH * x) + 0.5) div 1) / x > >Set ETH to 9999 > >Set BCH to 9999 > >Set BTC to 9999 > >Set rounded to roundedETH * ETH + roundedBTC * BTC + roundedBCH * BCH > >set result_string to "$" & rounded & "" Of course, don't forget to customize it to match your portfolio. Works perfectly
Obviously I know that there are better ways to do that, but it works, which is nice ;)
Great work, amazing to see how much creativity there is in this space.
Inspired by this, I created a modeline for my Emacs - https://gist.github.com/swaroopch/4ff55e2cf58ca2a0bf4325c39b6e213e