NiceTiming Cloud

Connect VS Code to NiceTiming Cloud

The extension works on its own, on your computer. Connected to NiceTiming Cloud, it sends your time to the web dashboard and to the Today page on your phone, lets you play your island online, and opens Pro when your account has it. It takes three steps.

1. Create an account

Create an account on NiceTiming Cloud with your email address and a password, or sign in if you already have one.

NiceTiming itself installs from the Extensions view of VS Code: search for NiceTiming. VS Code takes it from the Visual Studio Marketplace; VSCodium, Cursor and Windsurf from Open VSX.

2. Create a token for this computer

In the web app, open Settings › API tokens. Under Token name, type a name for this computer, such as “Work laptop”, and press Create a token.

The token starts with nt_ and shows only once: press Copy and keep it for the next step. The server keeps only a hash of it and cannot show it again; if you lose it, create another one and revoke the old one.

With Pro, keep For set to “The extension (sync)”: a token made for the API cannot sync.

Settings › API tokens in NiceTiming Cloud, right after Create a token: the new token, partly blurred, with its Copy button, and the list of tokens with when each one was last used.
The token shows once, here. The list below it says when each token was last used.

3. Set up sync in VS Code

In VS Code, open the Command Palette with Ctrl+Shift+P (Cmd+Shift+P on a Mac), type “sync with” and run NiceTiming: Set up sync with NiceTiming Cloud.

The Command Palette of VS Code, filtered by “sync with”, with NiceTiming: Set up sync with NiceTiming Cloud first.
The command, found by typing “sync with”.

A first box asks for the address of NiceTiming Cloud: https://nicetiming.app is already in it, so press Enter.

A second box asks for the token: paste it and press Enter. It shows as dots, like a password.

The second box of the command in VS Code: the pasted token shown as dots, and below it the prompt that names nicetiming.app › Settings › API tokens.
The token box: what you paste shows as dots.

NiceTiming checks the token with the server, runs the first sync and says “Connected to NiceTiming Cloud as ada@example.com. First sync done: your time is on the web. Sync runs again every 10 minutes.”, with your email. The NiceTiming Cloud block at the top of the Today view then shows your account and when it last synced. VS Code keeps the token in its secret storage, not in your settings.

After the first sync

Your time shows in the Overview of the web app, and its Today page shows the day on a phone. Sync then runs every 10 minutes while VS Code is open, and NiceTiming: Sync now runs it at once. In Settings › API tokens, the token’s Last used column fills in.

On another computer

Repeat steps 2 and 3 on each computer, with a token of its own. When you stop using a computer, run NiceTiming: Stop syncing and forget the token on it and revoke its token in Settings › API tokens: the other computers go on syncing.

On the free plan, one computer syncs. Another computer keeps its time on its own disk, its work still counts for the island, and the Today view in VS Code says “Not syncing on the free plan”. Pro syncs every computer; on the free plan, the Computers list of the Subscription page lets you choose which one syncs.

Pro in VS Code

Pro bought on NiceTiming Cloud reaches the extension through sync: after each sync, VS Code fetches a document NiceTiming Cloud signs for your account and checks it on your computer. So Pro opens with the next sync after the purchase, or at once with NiceTiming: Sync now.

On a computer that does not sync with NiceTiming Cloud, use a licence key: on the Subscription page, under Pro in VS Code, press Make a licence key, then run NiceTiming: Enter a licence key in VS Code and paste it.

When it fails

VS Code says what went wrong under the box you type in, or in a message at the bottom right. The usual causes:

“Tokens start with nt_ followed by letters and digits.”
The token box got something other than a token, often a token cut short or with a space inside. Copy it again; if the page that showed it is closed, create a new token.
“This token was not accepted. Check you copied all of it, or create a new one.”
The token was copied wrong, or it was revoked in Settings › API tokens. Press Try again and paste it again, or create a new token: the address stays.
“NiceTiming Cloud refused this computer’s token (it may have been revoked). Sync is paused; your time stays here.”
The token was revoked in Settings › API tokens. Sync waits and your time stays on the computer: press Set up sync again, in the message or at the top of the Today view, and paste a new token.
“VS Code could not check the token: Cannot reach https://nicetiming.app. (…)”
VS Code got no answer: no connection, or a proxy or a firewall in the way. Sync tries again at its next turn, and NiceTiming: Sync now tries at once.
“VS Code could not check the token: HTTP 403: This token is made for the API (/api/public/v1): the extension needs a token without scopes.”
A token made for the API cannot sync. Create one for “The extension (sync)”.
Nothing shows on the web
With the setting clockingTimer.sync.scope set to game, sync sends only what the online island needs, and the web has no reports: set it back to full. On the free plan, check that this computer is the one that syncs (above).

Still stuck? Write to contact@filarr.com with the message VS Code shows.