> For the complete documentation index, see [llms.txt](https://sryvkver.gitbook.io/cobi.bike/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sryvkver.gitbook.io/cobi.bike/namespaces/tour-service/calories.md).

# Calories

Total amount of calories burnt - in kcal.

{% tabs %}
{% tab title="Typescript" %}

```typescript
const onCaloriesChange = (value: number, timestamp?: Date) => {
    console.log(value, timestamp);
};

COBI.tourService.calories.subscribe(onCaloriesChange);
COBI.tourService.calories.unsubscribe(onCaloriesChange);
```

{% endtab %}

{% tab title="Javascript" %}

```javascript
const onCaloriesChange = (value, timestamp) => {
    console.log(value, timestamp);
};

COBI.tourService.calories.subscribe(onCaloriesChange);
COBI.tourService.calories.unsubscribe(onCaloriesChange);
```

{% endtab %}
{% endtabs %}
