Giter Site home page Giter Site logo

metrics.tg-bot's Introduction

Metrics.tg-bot

Key concept

To put it as simply as possible, all this bot does is dialog with the user and create/update a record in the answer table according to certain rules.

There are 2 most important entities in my architecture:

  1. Question
  • A Text metric, aggregated for each day
  • To keep track various of indicators of the day, such as weight, steps count, and more.
  1. Events entity
  • A Timestamp metric, that can occure many times on a day
  • Usually, it is to be marked when something occurs (f.e. sleep time, wakeup time, and more).
  • Ongoing events: In addition, a more flexible abstraction that can be built on top of Events, is Ongoing events
    • For example, you periodically go to sport gym. When it is the case, you mark a new event called sport_training with text start.
    • Then, at the end of you exercising, you mark new event with same name (sport_training) and text end.
    • Such events are called Durable in my code (a mistranslation, I know).

Purpose

  • Allows to very easily have overall view on week's spent time (via calendar ics feature)
  • In such way I'm trying to somewhat systemize my life
  • Also, after some period of time, a data collected may be analyzed, manually or programmatically (f.e. using Machine learning) to identify patterns and correlations between different metrics

Features

  • Subscribe to .ics calendar, aggregating "Durable" events

Documentation (in progress)

Screenshots

img.png

img.png

img.png

metrics.tg-bot's People

Contributors

tsepanx avatar

Watchers

 avatar

metrics.tg-bot's Issues

`lasting_event`: Fully implement support

New Entity type: LasingEvent

  • store it in UserData
  • On /ask, show list of lasting_events with toggles on started.
  • Write to answers as a timestamp and is_started as text

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.