Skip to main content

Common interface to the WakaTime api.

Project description

https://travis-ci.org/wakatime/wakatime.svg https://coveralls.io/repos/wakatime/wakatime/badge.svg?branch=master&service=github https://wakaslack.herokuapp.com/badge.svg

Command line interface to WakaTime used by all WakaTime text editor plugins.

Note: You shouldn’t need to directly use this package unless you are building your own plugin or your text editor’s plugin asks you to install the wakatime cli interface manually.

Go to http://wakatime.com/editors to install the plugin for your text editor or IDE.

Usage

Install the plugin for your IDE/editor at https://wakatime.com/editors

If you are building a plugin using the WakaTime API then follow the Creating a Plugin guide.

Configuring

Options can be passed via command line, or set in the $HOME/.wakatime.cfg config file. Command line arguments take precedence over config file settings. The $HOME/.wakatime.cfg file is in INI format. An example config file looks like:

[settings]
debug = false
api_key = your-api-key
hidefilenames = false
exclude =
    ^COMMIT_EDITMSG$
    ^TAG_EDITMSG$
    ^/var/
    ^/etc/
include =
    .*
offline = true
proxy = https://user:pass@localhost:8080
timeout = 30

Installation

Each plugin should install wakatime for you, except for the Emacs WakaTime plugin. If your plugin does not install wakatime cli(this package), install it with:

pip install wakatime

Troubleshooting

WakaTime CLI writes errors to a common log file in your User $HOME directory:

~/.wakatime.log

Set debug=true in ~/.wakatime.cfg for more verbose logging, but don’t forget to set it back to debug=false afterwards or your editor might be laggy while waiting for wakatime cli to finish executing.

Each plugin also has it’s own log file for things outside of the common wakatime cli:

  • Atom writes errors to the developer console (View -> Developer -> Toggle Developer Tools)

  • Brackets errors go to the developer console (Debug -> Show Developer Tools)

  • Eclipse logs can be found in the Eclipse Error Log (Window -> Show View -> Error Log)

  • Emacs messages go to the messages buffer window

  • Jetbrains IDEs (IntelliJ IDEA, PyCharm, RubyMine, PhpStorm, AppCode, AndroidStudio, WebStorm) log to idea.log (locating IDE log files)

  • Komodo logs are written to pystderr.log (Help -> Troubleshooting -> View Log File)

  • Netbeans logs to it’s own log file (View -> IDE Log)

  • Notepad++ errors go to AppData\Roaming\Notepad++\plugins\config\WakaTime.log (this file is only created when an error occurs)

  • Sublime Text logs to the Sublime Console (View -> Show Console)

  • TextMate logs to stderr so run TextMate from Terminal to see any errors (enable logging)

  • Vim errors get displayed in the status line or inline (use :redraw! to clear inline errors)

  • Visual Studio logs to the Output window, but uncaught exceptions go to ActivityLog.xml (more info…)

  • Xcode type sudo tail -f /var/log/system.log in a Terminal to view Xcode errors

Check that heartbeats are received by the WakaTime api with the last_heartbeat and last_plugin attributes from the current user api resource. Saving a file forces a heartbeat to be sent.

Contributing

Before contributing a pull request, make sure tests pass:

virtualenv venv
. venv/bin/activate
pip install tox
tox

Many thanks to all contributors!

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wakatime-4.1.12.tar.gz (1.7 MB view details)

Uploaded Source

File details

Details for the file wakatime-4.1.12.tar.gz.

File metadata

  • Download URL: wakatime-4.1.12.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wakatime-4.1.12.tar.gz
Algorithm Hash digest
SHA256 fc11a4503ef958856aca67d7a47c84c3946feef28e15b12debc9e0e46f7c0ce7
MD5 b26f6437c1fb4c4c3c5f38bf62a06a30
BLAKE2b-256 32870ba80a2412b05fa3ecea03f282f00cd48248f9c6c3c16aaeba3b6f1d0e01

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page