-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhelp.php
100 lines (95 loc) · 8.94 KB
/
help.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<h1 id="announce-zettle-">Announce Zettle!</h1>
<p><a href="http://makeapullrequest.com"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat" alt="Pull Requests Welcome"></a>
<img src="https://shields.io/badge/fpp-AnnounceZettle-brightgreen" alt="FPP Zettle Logo">
</p>
<p>Get yourself an iZettle device, take a donation & trigger an effect on your light show.</p>
<ul>
<li><a href="#getting-started">Getting Started</a></li>
<li><a href="#dataplicity-setup">Dataplicity Setup</a></li>
<li><a href="#fpp">FPP</a></li>
<li><a href="#pushover-setup">Pushover Setup</a></li>
<li><a href="#commands">Commands</a></li>
<li><a href="#multi-readers">Multi Readers</a></li>
<li><a href="#notes">Things To Note</a></li>
</ul>
<h2 id="getting-started">Getting Started</h2>
<p>You'll need an iZettle device to use this plugin.</p>
<p>Either <a href="https://register.zettle.com/gb">register</a> or <a href="https://login.zettle.com/">login</a> with Zettle.</p>
<ul>
<li>Click 'Integrations' (Bottom Left)</li>
<li>Click 'API Keys'
<img src="https://fpp-zettle.s3.eu-west-2.amazonaws.com/img/zettle-api-key.png" alt="Zettle API Integrations" class="img-fluid img-thumbnail">
</li>
<li>Click 'Create API Key'</li>
<li>Type a name for your API Key.</li>
<li>Select 'READ:USERINFO and READ:PURCHASE'<br>
<img src="https://fpp-zettle.s3.eu-west-2.amazonaws.com/img/zettle-apikeys.png" alt="1" class="img-fluid img-thumbnail">
</li>
<li>Click 'Create Key'</li>
</ul>
<p>You will now be presented with 2 attributes you need to copy & keep safe. They won't be retrievable again so make sure you capture them:</p>
<ul>
<li>client_id</li>
<li>API Key
<img src="https://fpp-zettle.s3.eu-west-2.amazonaws.com/img/zettle-apikeys-created.png" alt="1" class="img-fluid img-thumbnail">
</li>
</ul>
<h2 id="dataplicity-setup">Dataplicity Setup</h2>
<p>This plugin relies on a secure https endpoint so Zettle can send events to you. The easiest way to set up a https endpoint is to use <a href="https://www.dataplicity.com">Dataplicity</a></p>
<p>Greg Macaree has produced an excellent <a href="https://youtu.be/7LeD3dz-uXU">getting started video</a> for Dataplicity. You need to enable the wormhole setting and save the address, you'll need this later. Watch Greg's tutorial here:</p>
<iframe width="560" height="315" src="https://www.youtube.com/embed/7LeD3dz-uXU" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<h2 id="fpp">FPP</h2>
<p>Navigate to your FPP instance. </p>
<p>Click <code>'Content Setup' > 'Plugin Manager'</code></p>
<p>Install the <code>Announce Zettle</code> plugin.</p>
<p>Once installed, navigate to <code>'Content Setup' > 'Zettle - Setup'</code>.</p>
<p><img src="https://fpp-zettle.s3.eu-west-2.amazonaws.com/img/setup-init.png" alt="1" class="img-fluid img-thumbnail"></p>
<p>Add your <code>Client ID</code> and <code>Secret</code> to the page & click 'Save'</p>
<p><img src="https://fpp-zettle.s3.eu-west-2.amazonaws.com/img/create-sub.png" alt="" class="img-fluid img-thumbnail"></p>
<p>This will now unlock the ability to add a <code>Subscription</code> that will listen for 'purchases' aka donations from our Zettle device.</p>
<p>Enter your Dataplicity wormhole address followed by this plugin's API event path. ie</p>
<p><code>https://{wormhole address}/api/plugin/fpp-zettle/event</code></p>
<p><code>https://wandering-sheep-0157.dataplicity.io/api/plugin/fpp-zettle/event</code></p>
<p>Add your email address too. This is the address that is notified of any errors sending (or in Zettle's terminology, 'pushing') a transaction to your Pi.</p>
<p>Save the subscription.</p>
<p><img src="https://fpp-zettle.s3.eu-west-2.amazonaws.com/img/save-sub.png" alt="1" class="img-fluid img-thumbnail"></p>
<p>The first time you create a subscription you will receive a test notification sent to your Raspberry Pi. This is just the Zettle API notifying you that a subscription has been set up.</p>
<p>Once the subscription has been created successfully, you can then add an effect to be triggered. </p>
<p>Navigate back to the set-up page where you can select the effect to trigger once a transaction is received.</p>
<p><img src="https://fpp-zettle.s3.eu-west-2.amazonaws.com/img/add-effect-trigger.png" alt="1" class="img-fluid img-thumbnail"></p>
<p>At the moment this plugin can only trigger an effect (ESEQ file), if you have a use case for triggering something else please raise an issue on GitHub, so we can add support.</p>
<p>When a real transaction is received the plugin will log it to a transaction file. You can view transactions in <code>Status / Control > Zettle - Status</code>. This page will also allow you to clear any transactions should you wish. This is mearly for you to see what / who has used your Zettle device to donate at your show.</p>
<p><img src="https://fpp-zettle.s3.eu-west-2.amazonaws.com/img/status-page.png" alt="1" class="img-fluid img-thumbnail"></p>
<h2 id="pushover-setup">Pushover Setup</h2>
<p>Get notification sent your phone every time a donate is made. Pushover is free to use for 30 days. If you want to use it for longer there is a $5 USD one-time purchase fee. Check out the details at there website: <a href="https://pushover.net/" target="_blank">https://pushover.net</a></p>
<p>To get up and running with Pushover you will need to create an account and get two keys that will be need to everything to work. The two keys you need is the <strong>Application API Token</strong> and <strong>User Key</strong></p>
<p>You can find <strong>User Key</strong> on the first page you go after you login on the rigth hand side</p>
<p>To get the <strong>Application API Token</strong> first you need to create an application.</p>
<p>Navigate to your Pushover dashboard.</p>
<p>Scroll down to <code>Your Applications</code></p>
<p>Click <code>Create an Application/API Token</code></p>
<p>Ender a <code>Name</code> for your application then click <code>Create Application</code></p>
<p>Once your application is created you will see your API Token/Key</p>
<h2 id="commands">Commands</h2>
<p>Zettle Total: Allows you to show what has been raised at the end or during your show using the "Overlay Model Effect Command". The command text can use all text options available.</p>
<p>The command will only work if you are using the "Overlay Model Effect Command" in your zettle setup page.</p>
<h2 id="multi-readers">Multi Readers</h2>
<p>If you have multi readers and you would like to run a effect per reader it can be done.</p>
<p>First you need to configure it this a can be done for the <a href="plugin.php?_menu=content&plugin=fpp-zettle&page=multiple-readers.php">Multi Reader page</a>. On the page you create the number of readers you have, inside each reader you set the product name and what you want to happen.</p>
<p>The "Product Name" must be the same as it is no Zettle. Your products can be found on your "<a href="https://my.zettle.com/products?from=1&pageSize=50" target="_blank">Product library</a>" on your Zettle account.</p>
<p><img src="https://fpp-zettle.s3.eu-west-2.amazonaws.com/img/zettle-product-library.png" alt="Zettle Product Library" class="img-fluid img-thumbnail"></p>
<h2 id="notes">Things To Note</h2>
<ol>
<li>For repeat payments to work you will need to iphone running iOS 14. The last phone that supports iOS 14 is an iPhone 6s. You are able to pick up an iphone on facebook market place for as little £30.</li>
<li>To get repeat payments actived on your zettle account you need to contact them using the live chat or send them an email</li>
<li>Once you have repeat payments actived on your zettle account you need to turn it on in your zettle app by going to “Settings” > “Payment settings” / “Card”</li>
<li>The iPhone needs to been connected to the internet and have the zettle app loaded for every thing to work</li>
<li>Battey life on both the card reader and the phone does not last in the cold so would need to connected to power</li>
<li>Bluetooth range on the card reader we found is not the best so we recommend that you keep the iPhone with in 5 feet</li>
<li>The card reader is not water proof and would need to box to keep the water out. Here is a <a href="https://www.amazon.co.uk/dp/B08FC91HHV" target="_blank">link</a> to box that works well</li>
</ol>
<h2 id="privacy-policy">Privacy Policy</h2>
<h3 id="what-we-collect">What We Collect</h3>
<p>Absolutely nothing!</p>
<h3 id="what-we-don-t-collect">What We Don't Collect</h3>
<p>We do not collect or store any of your personal information. The information you submit via this plugin is transmitted between your Pi & the Zettle API. Any transactions are kept on your device & are retrievable from Zettle using your API Keys (client_id & secret) should you clear them. </p>