Looks like you tried to enter the cURL command into Scriptable app? This cannot work. cURL is a command line utility, that you type into your macOS/Linux/Windows terminal. I’m pretty sure there is also cURL for Windows 10, but it will require some special steps before you can use it. There is no such thing for iOS/iPadOS and your screenshots look like you are trying to do this on your iPhone/iPad?
This is still the only method I’m aware of. With iOS16 there is a new lock screen widget (and Scriptable supports it too yay) but it is super tiny, haven’t found a good use case for it yet.
Before doing anything with Scriptable, it is a good idea to check your setup first. Install a REST extension in your browser, authenticate to HASS, query the sensors.
i would like to make this map of your temperature but i can’t get it done run into errors on line 17 you have to create that token in ha under access tokens with long life, right? wall I would like to make it? can you help me ?
On the bottom left in Home Assistant, click on your username (mine is „Max“) then scroll down to „Long-Lived Access Tokens“ then click on „Create Token“.
hello i tried this error message so i don’t understand what i did wrong?
2023-06-12 23:06:24: Error on line 17: SyntaxError: Unexpected EOF
let req = new Request("https://192.168.0.184/api/states")
req.headers = { "Authorization": "my token
at https://192.168.0.184/profile", "content-type": "application/json" }
let json = await req.loadJSON();
hey merci I have removed the token here and Bearer for it does not help I now get the error message error: the url is invalid ? & I have http://my ip ha :8123/api/states ? is this correct and test via that chrome thing won’t lauch on my chrome browser?
Okay, this problem is unrelated to the Widget. You first need to setup your Home Assistant properly, using some DynDNS provider and Let’s Encrypt. For example following this guide.