Automation
Orvyn in Make
A scenario that reads the number on a schedule and passes it on, step by step, for someone who has never installed anything.
- Takes
- About 5 minutes
- You need
- A Make account; the free plan is enough
- Nothing to pay: the free number needs no key
- Costs
- Nothing for the free number, which runs a little behind. The signed, newest number takes a pack bought on the feed’s page; every guide ends with how.
First, pick the number you want
Every line further down is then written for it, ready to copy.
You picked
EUR / USD, ECB reference rate
by Orvyn · changes every day · its page
Its address, which the lines below carry:orvyn/eur-usd-ecb-reference
The free number right now
1.1411
measured · runs 15 minutes behind
Then follow the steps
In about five minutes a scenario reads EUR / USD, ECB reference rate on a schedule and hands the number to any other module. One HTTP module with three fields does it; nothing is installed.
Start a scenario with an HTTP module
Scenarios › Create a new scenario. Press the big +, search for HTTP, and pick Make a request.Fill in three fields
Make a request URL https://orvyn.me/gw/v1/feeds/orvyn/eur-usd-ecb-reference/preview Method GET Parse response Yes
Leave the rest as it is and press OK.
Run it once
Press Run once at the bottom, then click the bubble that appears above the module.You should see: Under Output › Data there is
previewwithvaluein it, anddecimals. The value is a whole number: 4 of its digits are decimals.Turn it into a plain number
Press the + after the HTTP module, pick Tools › Set variable, name it
value, and paste this as its value. The1is the HTTP module’s number, shown on the module; change it if yours is not 1.Set variable, value {{parseNumber(1.data.preview.value; ".") / pow(10; 1.data.decimals)}}You should see: Run once again: the variable is 1.1411, a number any module after it can use.
Schedule it and switch it on
Click the clock on the first module and set it to every day, which is how often this feed changes. Add what should happen next, save, and set the scenario to On.
The Orvyn app, with ready made modules
Want the signed number instead?
What you set up above shows the free number. It runs 15 minutes behind and is not signed, which is fine for a dashboard. The signed number is the newest one, and it comes with a proof anyone can check on the check page or on chain. It costs a little: you buy a pack of reads once, with your wallet, then a key spends from that pack. Three steps, in this order.
- 1
Buy a pack on the feed’s page. The smallest is enough to start; a pack is a number of reads, and the page says what each costs.
- 2
Make a key with the wallet that bought the pack. Sign in here and it is made for you, or make one under Dashboard, API keys, with the read scope only. A read key can spend the reads you bought and nothing more, and you revoke it there.
- 3
Put the key in Make. In the HTTP module, change the end of the URL from
/previewto/latest, and under Headers add one namedAuthorizationwith the valueBearer lk_…. The answer then hasreportinstead ofpreview, so the formula reads1.data.report.value. With the Orvyn app, make a connection and paste the key there instead.
No tool holds a wallet or pays by itself. However often a sheet recalculates or a workflow runs, a feed is read from your pack at most once every day, because that is how often it changes.
If something looks wrong
| You see | It means |
|---|---|
| Status code 402 | Your key holds no pack for this feed. Buy one on the feed’s page. |
| Status code 401 | The key is wrong or was revoked. Make a new one. |
| Status code 404 | The address in the URL has a typo. Pick the feed above and copy the fields again. |
| Status code 429 | The free number is rate limited. Run the scenario less often. |
| The variable is empty | The module number in the formula is not the HTTP module’s. Look at the number on the module and put that in. |
Still stuck? Say so on X with the words on your screen, and we will answer.
Take it out again
Delete the scenario. If you made a connection for the Orvyn app, delete it under Connections.