Skip to content

Instantly share code, notes, and snippets.

@Pogopooc
Last active May 6, 2020 05:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pogopooc/6549bb958e2553ed988a404fc97a55b8 to your computer and use it in GitHub Desktop.
Save Pogopooc/6549bb958e2553ed988a404fc97a55b8 to your computer and use it in GitHub Desktop.
A Daily BTC Value printed on your LittlePrinter via. Apple Shortcuts.
// This is an Simple Daily BTC Value Update to use with the PHP Script from JAVL.
// Remeber to add your LittlePrinter API Key
// Add the following HTML Code to your IFTTT Applet
// I use the "cryptonator.com" API for the request.
<table style="width: 384px;margin-left:auto;margin-right:auto;" border="0" cellspacing="0" cellpadding="0" align="center">
<tbody>
<tr>
<td style="text-align: center;vertical-align: middle;" colspan="3">
<img style="width: 80px;height: 78px;float: left;margin-left:10px;margin-right:10px;" src="https://cdn.icon-icons.com/icons2/1384/PNG/512/btc-crypto-cryptocurrency-cryptocurrencies-cash-money-bank-payment_95084.png" alt="Icon"> <strong><span style="font-size: 50px;">{{Value1}}$</span></strong>
</td>
</tr>
<tr>
<td style="vertical-align: middle;text-align: center;"><span style="font-size: 10px;"><sup>1Hour CHANGE</sup> <strong><span style="font-size: 18px;">{{Value2}}%</span></strong></span></td>
<td style="text-align: center;">&nbsp;</td>
<td style="text-align: center;">&nbsp;</td>
</tr>
<tr>
<td style="text-align: center;" colspan="3">
<hr>
<span style="font-size: 10px;">{{OccurredAt}}</span>
</td>
</tr>
<tr>
<td style="text-align: center;" colspan="3"><span style="font-size: 10px;"><strong>USD/BTC</strong>, cryptonator.com</span></td>
</tr>
</tbody>
</table>
@Pogopooc
Copy link
Author

Pogopooc commented May 6, 2020

Here the link for the "Apple Shortcut": https://www.icloud.com/shortcuts/03e3bcb3cfc84bea9c2a92d0d2d16fbb

  1. Start the Shortcut. (This can also be automated. e.g. when the alarm clock sounds.)
  2. The Shortcut gets the Data from "cryptonator.com".
  3. Then we send the data over to IFTTT.
  4. There we add the HTML from above 👆 "IFTTT_HTML".
  5. With help of "Jawl's" PHP we Post the data on the LittlePrinter "Sirius" Server.

In the HTML i would like to Add:

  • LOW / HIGH /LAST - The Table is prepared for it, but LittlePrinter Prints only the first one... (so i changed it to 1HOUR CHANGE)
  • Also the Link for "cryptonator.com" is there, but gets not Printed. 👉 LINE 24
  • The same Problem in 👉 LINE 20. Does anyone know why this isn't being printed?

Here is the Original Version from "LittlePrinter":

tumblr_inline_pbksdyMFGf1sz46pf_250

Remake:

IMG_3147

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment