Weather App Location Error

var loc = Location.current()

log(await loc["latitude"])

What you are looking at here is a failed attempt at trying to get my current latitude from the Location.current API.

The console just said:
{}

Is this a Scriptable script? What error happens and what are you expecting to happen?

I expected to get a latitude for my darksky link which I can plug in locations but the Location.current was not working

Is this a Scriptable script? If so it should be in the Scriptable forum.

Where is that? I am new to the whole Scriptable thing.

Logically you have the order wrong. You are awaiting a variable rather than awaiting the setting of the variable.

Try it like this: