iPhone shortcut command to check exchange rate

Table of contents

1. Function introduction

2. Tools: iphone12, shortcuts (shortcuts), ios16.5

3. Running results

4. Design ideas

5. Related Links


1. Function introduction:


Use the shortcut command app that comes with Iphone12 to query exchange rates, including querying historical exchange rate information and querying real-time exchange rate information.
The historical exchange rate inquiry supports the exchange rate inquiry of 27 national currencies, and the real-time exchange rate is displayed in a list form, and does not support single-item inquiry.


2. Tools:
iphone12, shortcuts (shortcuts), ios16.5


3. The running results are as follows:


(1) Select the historical exchange rate query in the main menu, and then slide up and down to select the currency type to query the corresponding exchange rate. The displayed format is time + currency type + exchange rate;


(2) Select real-time exchange rate query in the main menu, a prompt message will pop up, instructing you to download the shared file ExchangeRate.txt in the shared folder, download the file to the icloud cloud disk of your mobile phone, and return to the shortcut command interface , the real-time exchange rate information will be displayed.

 


4. Design ideas:


(1) Build an exchange rate information into the command, in the form of text, including time and the exchange rate of each country;


(2) Read the exchange rate information (TempExchangeRate.txt/TimeRecord.txt) from the mobile phone (my iphone). If the file is empty, assign the built-in exchange rate information to a variable for reading;


(3) First set up a main menu, including two options of historical exchange rate query and real-time exchange rate query;


(4) Create a submenu under the historical exchange rate query menu, and set it up according to the national currency to display the exchange rate information of each country;

 
(5) Under the real-time exchange rate query menu, first download the exchange rate information in the shared folder to the mobile phone, and then read and save the downloaded shared file (ExchangeRate.txt) by country; the storage address of the exchange rate information is: ( My iphone/TempExchangeRate.txt) and (my iphOne/TimeRecord.txt), the saved information is used for historical exchange rate query to ensure continuous updating of historical exchange rates;

  


     Display the exchange rates of various countries in the form of a list. Format: date/n exchange rate unit/n exchange rate of each country (/n means line break)

Note: 1. This command does not have the function of updating the real-time exchange rate information. The update of the real-time exchange rate information in the shared file needs to be completed by other commands. In order to simplify the exchange rate query process and improve query efficiency, this instruction only retains the basic query functions.
       2. To learn how to edit in the shortcut app, please check the following link:
http:// https://blog.csdn.net/zalman123456/article/details/131143003?spm=1001.2014.3001.5502


5. Related links:

Source of exchange rate data: https://www.boc.cn/sourcedb/whpj/
Shortcut link:
Exchange rate query (simplified version): https://www.icloud.com/shortcuts/c848d1279ed5464a911149615f46e0fd
References:
https://sharecuts. cn/shortcut/4962

Guess you like

Origin blog.csdn.net/zalman123456/article/details/131233001