Battery level for iPhone and Watch

Can scriptable read the battery level of the iPhone or the Apple Watch? If so, does anyone have an example script?

Phone yes, watch no. The phone one is the only result when you search in the Scriptable in app documentation for ‘battery’.

console.log(Device.batteryLevel());
1 Like

Hi there. Is there also a command for storage Using. Maybe for the device and also for ICloud??

Thanks for apply

I don’t believe so.

Device information documentation is here:

https://docs.scriptable.app/device

Storage is not something that is presented. Searching the documentation for terms like “space” and “storage” unsurprisingly doesn’t yield any aptions against other objects Scriptable makes available.