ShareShortcuts

BTC to USD

Get the value of your Bitcoin

blackhatteam
Создать форк «BTC to USD»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы blackhatteam получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
36K
Сохранено
0
Действия
27
Категория
Calculations
Версия
2.0
Язык
EN

Get the value of your Bitcoin.

Do you acquire Satoshi in various amounts and want a way to determine the value without having to use a search engine?

Do you simply want to see the value of your Bitcoin?

BTC to USD may be the tool you need.

Simply enter the amount of Bitcoin (Satoshi) to see the value in USD. The value can then be saved to a file to view as an archive.

The shortcut gets the answer from Bing search on the web and uses ChatGPT to display the result.

*The shortcut now requires the ChatGPT app.

*If you get an error with ChatGPT, go to the app and delete your chat history.

Что нового

Версия 2.0

- added the ChatGPT app

История версий
2.0 20 июн 2023 г.

- added the ChatGPT app

1.3 20 июн 2023 г.

- added Bing search on the web

1.2 24 янв 2023 г.

Bug fix...

1.1 24 янв 2023 г.

Fix for iOS 16.3

1.0 18 янв 2023 г.

First release

Что делает

Действий: 27
  1. Get File
  2. If
  3. Create Folder
  4. Show Alert
  5. Open URLs
  6. Wait
  7. Text
  8. Close Tab
    com.apple.mobilesafari
  9. Show Alert
  10. Choose from Menu
  11. Choose from Menu
    Get Bitcoin Value
  12. Ask for Input
    Enter amount of Bitcoin
  13. URL
    https://www.bing.com/search?q=…BTC to USD
  14. Get Contents of Web Page
  15. Ask ChatGPT
  16. Text
  17. Show Result
  18. Ask for Input
    Enter Bitcoin Value $
  19. Append to Text File
  20. Run Shortcut
    BTC to USD
  21. Choose from Menu
    View Saved Values
  22. If
  23. Show Alert
  24. If
  25. Open File
  26. Choose from Menu
    Quit Shortcut
  27. Stop This Shortcut

Посмотреть как код
Бета

Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.

#include 'actions/web'
#include 'actions/documents'
#define color green
#define glyph bitcoin

const File = getFileFromFolder(, "Bitcoin", false)

if !File {
	createFolder("Bitcoin")
	confirm("Run Initial Setup? ")
	openURL("http://www.blackhatteams.com/p/bitcoin.html")
	wait(6)
	const Text = "Bitcoin"
	rawAction("com.apple.mobilesafari.CloseTab", {
		"AppIntentDescriptor": "",
		"target": "Text"
	})
	confirm("Setup Complete! Run Shortcut? ")
}

menu nil {
item "Get Bitcoin Value":
	prompt("Enter amount of Bitcoin", "Number")
	url("https://www.bing.com/search?q={}BTC to USD")
	getWebpageContents()
	rawAction("com.openai.chat.AskIntent", {
		"AppIntentDescriptor": "",
		"ShowWhenRun": false,
		"newChat": true,
		"prompt": "Generate a summary using this page: \\\"{}\\\""
	})
	show()
	const ProvidedInput = prompt("Enter Bitcoin Value $", "Number")
	appendToFile("Bitcoin/values.txt", "{CurrentDate} - {} BTC is ${ProvidedInput}")
	runSelf(ProvidedInput)
item "View Saved Values ":
	if !File['Contents'] {
		alert("You have not added any values! ", "")
	} else {
		openFile()
	}
item "Quit Shortcut":
	stop()
}
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

Оценки и отзывы

Написать отзыв
–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Пока нет отзывов. Поделись мнением первым!

Реклама

Ещё от blackhatteam

См. все

Вам также может понравиться

См. все
Реклама