How do I use “Get Contents of URL” in an iOS Home app automation?

独自空忆成欢 提交于 2020-12-15 05:15:51

问题


I want to use use my Apple TV 4K to make a daily call to a web URL; much like a cron Job if I had a home server. In theory, this should be so simple:

  • Open iOS Home app
  • Go to the Automation tab
  • Create a new automation
  • Choose A Time of Day Occurs
  • Select Next
  • Choose Advanced -> Convert To Shortcut
  • Tap the ➕ icon
  • Choose Web
  • Choose Get Contents of URL from the Web Requests section
  • Enter the URL as https://apple.com
  • Tap the ▶️ icon to test the automation

I see the error message “A server with the specified hostname could not be found.”

Can anyone explain to me how one might use this feature if its not capable of resolving domain names?


回答1:


Found an answer: create the automation in the Shortcuts app (not the Home app) and this will work.



来源:https://stackoverflow.com/questions/64722230/how-do-i-use-get-contents-of-url-in-an-ios-home-app-automation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!