• Stars
    star
    350
  • Rank 116,912 (Top 3 %)
  • Language
    Ruby
  • License
    MIT License
  • Created over 6 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Keeping track of current level of happiness

[deprecated] I'm now using FxLifeSheet for my mood tracking


mood

I have looked in the mirror every morning and asked myself: "If today were the last day of my life, would I want to do what I am about to do today?" And whenever the answer has been "No" for too many days in a row, I know I need to change something.

Steve Jobs

Background

I've been a heavy user of 1 Second Everyday, where I created a very personal video of the full year for the last 730 days. (Check out a public sample video here)

One thing I noticed is that I associate the mood and happiness when seeing the videos, however, I know that this will slowly fade away as time passes.

I wanted a way to track my overall happiness and excitement in my life, allowing me to monitor, analyze and react to it. As Steve Jobs said, if you notice a downwards trend, it might be time to apply some changes to your life.

How it works

It's a simple Telegram Bot that will send you a message 3 times a day:

  • One in the morning (I'd never reply to the bot before showering)
  • One after lunch
  • One when going to bed

You can always just text your bot a number, however, I know I'd forget it. That's why the bot sends you those reminders.

It then pulls up this really nice, optimized keyboard in Telegram, with a short description of what each number means.

If you forget to track a day, that's no big deal at all. The database is simple, it looks like this:

@_db.create_table :moods do
  primary_key :id
  DateTime :time
  Integer :value
end

I decided not to store the information about breakfast, lunch and dinner, as it would make time zones more complex, as I'm traveling quite a bit.

Future

Graphs

I want a nice visualization page & dashboard for this. Maybe even just send a weekly and monthly summary via Telegram?

Right now, just send /graph to your bot to get your historic mood as a simple graph.

Alerts

I want my bot to alert me when it detects a downwards trends. Similar to the stock trading approach, I was thinking of using the 7d average (7 days, 3 times a day => 21 data points). It's all relative, so if there is a downwards trends for 2 weeks, there probably is something bothering you

Integration into 1SE

I usually edit the 1SE videos slightly to have "subtitles" for some of the important life events. Additionally, I throw in the classic Every day of my life music.

Additionally, with that data, I want to overlay my happiness level somehow, probably in the form of a graph, a bar, or a wave. Not sure yet, but I got 11 months to figure that out.

How to use it

You'll have to setup a few things

  • Create a Telegram bot using @BotFather and get the API key, and message ID with you
  • Provide those values using TELEGRAM_TOKEN and TELEGRAM_CHAT_ID
    • To get the TELEGRAM_CHAT_ID, send a message to your bot and then access the following URL in your browser https://api.telegram.org/bot[TELEGRAM_TOKEN]/getUpdates. You'll see a message, and within that, the Chat ID to use
  • And host it on any server, like Heroku, and use the Heroku scheduler feature to call rake morning, rake noon and rake evening
  • Make sure the Heroku worker is enabled

More Repositories

1

TSMessages

๐Ÿ’Œ Easy to use and customizable messages/notifications for iOS ร  la Tweetbot
Objective-C
4,879
star
2

detect.location

An easy way to access the user's iOS location data without actually having access
Objective-C
1,244
star
3

FxLifeSheet

Tracking the key metrics of my life
Ruby
1,051
star
4

what-terminal-is-felix-using

๐Ÿ’ป For everyone who wants to know more about the terminal I use
511
star
5

overkill-for-mac

Stop iTunes from opening when you connect your iPhone
Swift
488
star
6

overkill

Don't let iTunes interrupt your workflow ๐Ÿ’ฅ๐ŸŽต
Ruby
479
star
7

InAppBrowser.com

Showcasing what in-app browsers do under the hood
HTML
469
star
8

WiFiAuth

Because connecting to WiFis is still an unsolved problem ๐Ÿ˜‚
Objective-C
426
star
9

steal.password

Easily get the user's Apple ID password, just by asking
330
star
10

watch.user

Every iOS app you ever gave permission to use your camera can record you any time it runs - without notice
Swift
286
star
11

markdown-to-html-github-style

Generate a simple HTML page based on a markdown file, that looks like GitHub's stylesheet
HTML
213
star
12

MajorKey

The fastest iOS app to add a note to your email inbox
Swift
186
star
13

new-mac

List of the things to do on a new Mac
Ruby
179
star
14

notes-exporter

Because GPDR exists for a reason, oh hi Apple
Ruby
162
star
15

krausefx.com

My personal blog
HTML
158
star
16

instapipe

Automatically cross-post your Instagram stories
Ruby
155
star
17

twitter-unfollow

Unfollow everybody on Twitter
Ruby
145
star
18

whereisfelix.today-backend

Yes, that's a thing
JavaScript
127
star
19

howisFelix.today

Yes, that's a thing
HTML
108
star
20

dotfiles

Learning the difference between > and >>
Shell
85
star
21

fastrockets

Visualize fastlane launches as rockets
Ruby
25
star
22

speaking

Upcoming and past speaking engagements
23
star
23

fastlane-ascii-art

๐Ÿƒ Add some fun to your fastlane output.
Ruby
22
star
24

auxcord.org

Have a Sonos system, and are hosting a party? Let's gooo
Ruby
21
star
25

evaluation_report

The evaluation report I wrote about fastlane at university
19
star
26

trollol

GitHub pull requests - done right
14
star
27

fastlane-plugin-load_json

Loads a local JSON file and parses it
Ruby
14
star
28

Three20.swift

Three20 is a Swift library for iOS developers
11
star
29

privacy-share-button

Proof of concept: detect when an iOS user hits the share button on your website
HTML
11
star
30

rScreenshooter

Helps you create screenshots in multiple languages on different device types using UIAutomation.
Ruby
11
star
31

fastlane-plugin-clubmate

Print the Club Mate logo in your build output
Ruby
10
star
32

brewfile

Some of the brews I use
Ruby
9
star
33

trips

My upcoming trips
Ruby
9
star
34

fastlane-tunes

๐ŸŽถ Play music using fastlane, because you can.
Ruby
9
star
35

telegram-advent-calendar

A simple to use Telegram Advent Calendar
Ruby
8
star
36

fastlane-plugin-ya_tu_sabes

Ya tu sabes.
Ruby
8
star
37

felix.fitness

Public fitness dashboard
7
star
38

certs

Certificates for [email protected] certs
7
star
39

tweet_collection_manager

Managing all the tweets, like a management manager
Ruby
6
star
40

fastlane-plugin-no_u

no u
Ruby
6
star
41

wealthfront-tax-info-exporter

Export all transactions (including dividends) details into a CSV file
Ruby
5
star
42

doesitrain.today

Ruby
5
star
43

resume

About me
5
star
44

engagement-enhancer

Not hitting your OKRs? Not getting enough engagement? Fix it with one little trick
HTML
4
star
45

krausefx-gem

Ruby
4
star
46

set-times

A collection of set-times for various venues
HTML
4
star
47

bot

@seriouskrausefx
Ruby
4
star
48

gwg

Geringwertige Wirtschaftsgรผter finden
CSS
2
star
49

license_checker

Ruby
2
star
50

light-phone-note-to-self

A simple script to fetch the most recent Notes from your Light Phone and send them to yourself via Email
Ruby
1
star
51

whichsideoftheriver.in

HTML
1
star