Giter Site home page Giter Site logo

tiny-care-terminal's Introduction

tiny-care-terminal

This is a little dashboard that tries to take care of you when you're using your terminal. It tells you cute, self care things, and tries not to stress you out. It shows:

  • the last tweets from @tinycarebot, @selfcare_bot and @magicrealismbot. The first two tend to tweet reminders about taking breaks, drinking water and looking outside, and the latter tells you strange, whimsical stories. If you don't like these bots, they're configurable!
  • your git commits from today and the last 7 days. When I get stressed out because I think I haven't done anything, it turns out that I only think about big and serious commits, and forget about all the tiny amounts of work I've actually done throughout. Hopefully this will help you too <3
  • the weather, because you might get rained on.

It looks like this, and updates every 20 minutes.

tiny terminal care screenshot

Make it go

1. Installation

Sadly only node.js v10.x is supported at the moment.

npm install -g tiny-care-terminal

(yarn also works fine.)

2. Setting the environment variables

After installing the npm package, you need to set up the configuration in your Terminal.

Every OS and shell is different so I probably won't hit all of them, but the bottom line is that you should copy those environment variables wherever the rest of your system's variables live. For example,

  • if you're using zsh, that's probably in your home directory's .zshrc file
  • if you're using bash, that could be your bash_profile file
  • if you're using fish, use set -gx key value in your ~/.config/fish/config.fish file

Note that the export bit is pretty key, to make sure that they are globally available. To check that the variables have been set correctly, you can print them in the terminal -- for example, echo $TTC_WEATHER.

Configure the dashboard

All the settings the dashboard looks at are in the sample file sample.env. This file isn't used by the dashboard, it just lists the environment variables that you can copy in your rc files:

  • TTC_BOTS are the 3 twitter bots to check, comma separated. The first entry in this list will be displayed in the big party parrot box.
  • TTC_SAY_BOX defines the ASCII-Art to show. e.g. parrot | bunny | llama | cat | yeoman | mario | ironman.ansi | stegosaurus.cow See section below for all the different options.
  • TTC_REPOS, a comma separated list of repos to look at for git commits.
  • TTC_REPOS_DEPTH is the max directory-depth to look for git repositories in the directories defined with TTC_REPOS (by default 1). Note that the deeper the directory depth, the slower the results will be fetched. Seeing your commits in tiny-terminal-care, set this to gitlog
  • TTC_WEATHER, the location to check the weather for. A zipcode doesn't always work, so if you can, use a location first (so prefer Paris over 90210)
  • TTC_CELSIUS (by default true)
  • TTC_APIKEYS -- set this to false if you don't want to use Twitter API keys and want to scrape the tweets instead.
  • TTC_UPDATE_INTERVAL, set this to change the update frequency in minutes, default is 20 minutes.
  • TTC_TERMINAL_TITLE -- set this to false if you don't want the terminal title to be changed on startup.
Configure the Say-box

There are almost endless variation of ASCII art images supported. You can select an existing image from the cowsay library just by defining a filename ending with ".cow". So e.g. vader.cow or bunny.cow would be two possible options. Also the ansi-art library is supported. In addition to the existing colorful images you can create your own image by using the webapp and download the result. After downloading the ANSI-File you can just supply its absolute path to render it within the box. (eg: TTC_SAY_BOX='/Users/om/desktop/cat.ansi'). If you want the art to be selected by random use the magic word RANDOM.

In addition to this libraries the following types are supported: bunny, llama, cat, yeoman

Set up Twitter API keys

The dashboard has two alternatives for reading tweets: using your API keys or scraping. API keys is preferred (because lol scraping), but if you're really not into that, then skip the next section and read the bit about setting TTC_APIKEYS

You need Twitter API keys for the tweets to work. It should be pretty easy to create a new app, and get these 4 values. After you've set them up, set these env variables (see the sample.env for an example):

TTC_CONSUMER_KEY='...'
TTC_CONSUMER_SECRET='...'
TTC_ACCESS_TOKEN='...'
TTC_ACCESS_TOKEN_SECRET='...'

3. Start

tiny-care-terminal

You can exit the dashboard by pressing esc or q. You can refresh it manually by pressing r.

๐Ÿ… Pomodoro Mode

You can press p to switch parrot box to pomodoro mode.

Other commands while in pomodoro mode:

s - start/pause/resume pomodoro
e - stop pomodoro
u - update pomodoro duration
b - update break time

To change default pomodoro and break durations set following variables in minutes (these should be numbers):

TTC_POMODORO=...
TTC_BREAK=...

๐Ÿ†˜ Halp I don't see my commits

  • did you forget to export your TTC_REPOS environment variable? Open a new tab, and type echo $TTC_REPOS to make sure it's not empty. Note that spaces inside the repo names are not supported right now ๐Ÿ˜ฅ

  • also there seem to be problems sometimes if the paths you're using are not fully qualified -- that is, use /Users/notwaldorf/Code rather than ~/Code and see if that helps.

  • did you use yarn? I know yarn is cool, and I've seen it work with this, but can you double check that it still doesn't work with a basic npm installation instead?

    Take care of yourself, ok? ๐Ÿ’–

tiny-care-terminal's People

Contributors

alecglassford avatar andriusm avatar anxolerd avatar avongenesis avatar aware avatar calee0219 avatar cvuorinen avatar dependabot[bot] avatar dloeda avatar edm00se avatar fluxsauce avatar garbee avatar gauravchl avatar jackmransom avatar kant avatar komiga avatar lauraperezcerrato avatar loklaan avatar mattclaw avatar micgro42 avatar mischah avatar mlegy avatar mojoaxel avatar notwaldorf avatar ocordova avatar pascalpixel avatar plutov avatar saintsebastian avatar timbeadle avatar vinnya3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tiny-care-terminal's Issues

Commits graphs don't display properly

Node Version: v7.8.0
tiny-core-terminal version: 1.0.8
Shell: bash
Terminal Program: terminator
Operating System: Ubuntu 16.04

They are not well displayed, like they are trying to be on top of each other. See pic

tct-bug

Instructions for simple humans

Hi, Iโ€™m a simple human that uses the terminal quite a bit to commit stuff while trying not to break the repo. Tiny Care Terminal seems like a great way to have a prettier and more useful terminal window somewhere on screen. However, after doing the NPM dance, I have no clue how to configure it, where is this .env file you speak of? ๐Ÿค”

Oh, and thank you for making this ๐Ÿ™Œ๐Ÿฝ.

Cat box doesn't display right

When using the cat box, it doesn't display correctly. It works fine with the parrot.

image

  • Node Version: node --version
    v6.10.3

  • tiny-core-terminal version: npm info tiny-care-terminal | grep version:
    1.2.0

  • Shell: bash, zsh, fish, something else?
    bash

  • Terminal Program: tmux, iterm, terminator, cmd, something else?
    hyper

  • Operating System: Mac, Windows, Linux, BSD, Really, something else?
    Windows

Feature request: News feeds from hacker news?

Node Version: v6.9.1
tiny-core-terminal version: 1.0.8
Shell: zsh
Terminal Program: iterm2
Operating System: Mac

Thanks for this great tool;) Though I like the idea about adding feeds from social media, I don't use Twitter quite often. Do you have any plan to support new feeds from hacker news? Or make the feeds customizable?

Cheers~

Add SVN Support?

Is there a way/any chance to add SVN to this instead of just Git?

Node Version: 7.8.1
tiny-core-terminal version: 1.0.8
Shell: bash
Terminal Program: iterm
Operating System: Mac

Thank you!

Installation failed on Windows 7

Hello, I tried to install tiny-care-terminal using NPM, but it failed on all mine available console.
Not sure if I can try something else.

  • Node Version: v7.9.0
  • Python version: Python 3.6.1
  • PYTHON env: C:\Users\vdubus\AppData\Local\Programs\Python\Python36-32\python.exe
  • PYTHONPATH env: C:\Users\vdubus\AppData\Local\Programs\Python\Python36-32
  • tiny-core-terminal version: version: '1.1.1'
  • Shell: bash
  • Terminal Program: cygwin, cmd and powershell
  • Operating System: Windows 7 Enterprise Service Pack 1 64bits

Here the result of the command npm install -g git-standup:

$ npm install -g git-standup
C:\Users\vdubus\AppData\Roaming\npm\git-standup -> C:\Users\vdubus\AppData\Roaming\npm\node_modules\git-standup\git-standup
C:\Users\vdubus\AppData\Roaming\npm
`-- [email protected]

Here the result of the command npm install -g tiny-care-terminal:

C:\DEV\Applications>npm install -g tiny-care-terminal
npm WARN deprecated [email protected]: v1 is no longer maintained, please upgrade to v2.0+ as soon possible.
npm WARN deprecated [email protected]: use [cross-spawn](https://github.com/IndigoUnited/node-cross-spawn) or [cross-spawn-async](https://github.com/IndigoUnited/node-cross-spawn-async) instead.
npm WARN deprecated [email protected]: Use uuid module instead
C:\Users\vdubus\AppData\Roaming\npm\tiny-care-terminal -> C:\Users\vdubus\AppData\Roaming\npm\node_modules\tiny-care-terminal\care.js

> [email protected] install C:\Users\vdubus\AppData\Roaming\npm\node_modules\tiny-care-terminal\node_modules\weak
> node-gyp rebuild


C:\Users\vdubus\AppData\Roaming\npm\node_modules\tiny-care-terminal\node_modules\weak>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "C:\Users\vdubus\AppData\Local\Programs\Python\Python36-32\python.exe", you can set the PYTHON env variable.
gyp ERR! stack     at PythonFinder.failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:454:19)
gyp ERR! stack     at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:480:16)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:114:15)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\vdubus\AppData\Roaming\npm\node_modules\tiny-care-terminal\node_modules\weak
gyp ERR! node -v v7.9.0
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok
C:\Users\vdubus\AppData\Roaming\npm
+-- UNMET PEER DEPENDENCY git-standup@^2.1.8
`-- [email protected]

npm WARN [email protected] requires a peer of git-standup@^2.1.8 but none was installed.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\tiny-care-terminal\node_modules\weak):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

It seems that it isn't able to pinpoint the PYTHON executable, yet the command C:\Users\vdubus\AppData\Local\Programs\Python\Python36-32\python.exe --version to give me the result Python 3.6.1...

Startup error in care.js

Hi,

I have just installed the app, but something is not working properly after setup. I'm getting this error:

[hamen:~] $ tiny-care-terminal

/usr/local/lib/node_modules/tiny-care-terminal/care.js:64
          forecastString = `Today, it will be ${skytextforecast} with the fore
                           ^
SyntaxError: Unexpected token ILLEGAL
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:906:3

Debug details:

Node Version: v0.10.32
tiny-core-terminal version: 1.0.8:
Shell: bash
Terminal Program: iTerm2 - Build 3.0.14
Operating System: OSX 10.11.6 (15G1212)

Any help, please? Thank you!

Issues when display: fonts

OS: Manjaro.
Shell: zsh.
Version: latest.
Terminal Program: terminator.
Node Version: v 7.7.3.

Seem I can't see a character's special.
I tried to install fonts from https://github.com/powerline/fonts

In my terminal, a show like:

screenshot_2017-04-22_10-19-42

You can see font seem broken. Characters before: Today, Week, ...

Terminal doesn't display commit

When I run tiny care terminal, it doesn't show my commits.
But when I run git-standup, I can see them.

Thanks for your help

Closes if DNS resolv fails

Error: getaddrinfo EAI_AGAIN twitter.com:443
at Object.exports._errnoException (util.js:1050:11)
at errnoException (dns.js:33:15)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:73:26)

throw er; // Unhanded 'error' event

I set up all my environment variables, updated npm (now using 4.5.0), and ran npm install -g tiny-care-terminal. However, when I run tiny-care-terminal, I get this:

   Error: spawn sh /usr/local/lib/node_modules/tiny-care-terminal/standup-helper.sh ENOENT
    at exports._errnoException (util.js:874:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
    at onErrorNT (internal/child_process.js:344:16)
    at doNTCallback2 (node.js:439:9)
    at process._tickCallback (node.js:353:17)
    at Function.Module.runMain (module.js:469:11)
    at startup (node.js:134:18)
    at node.js:961:3
events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: spawn sh /usr/local/lib/node_modules/tiny-care-terminal/standup-helper.sh ENOENT
    at exports._errnoException (util.js:874:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
    at onErrorNT (internal/child_process.js:344:16)
    at doNTCallback2 (node.js:439:9)
    at process._tickCallback (node.js:353:17)

Not super familiar with npm or node.

Include trello cli!

It would be great if I could remove the twitter feed and replace it with my trello card info so I could view my sprint progress.

This: https://github.com/mheap/trello-cli does a great job of listing my cards. If only I could embed it!

Node Version: 7.9.0
tiny-core-terminal version: version: '1.0.8'
Shell: zsh
Terminal Program: gnome-terminal
Operating System: Ubuntu Linux

Thank you!

Terminal doesn't display commits/Problems with git-standup

Hi there, and thanks for this cool tool! ๐Ÿ˜„
I have set up everything, but I'm unable to see the git stuff. The problem for me is that standup-helper.sh is looking for git-standup in a place where it is not located.
I installed git-standup with sudo npm install -g git-standup (maybe I should do this in another way).
Any suggestions?

I also have problems with the fonts/emojis, but I can open another issue if you would like.

Groups are missing

Hey team!

This product is awesome. However grouping doesn't work as I expected. (it's different from preview image)

My related configuration:
export TTC_REPOS=/path/to/go/src/*

Today window looks like:

Seem like (me) did nothing!
Seem like (me) did nothing!
Seem like (me) did nothing!

Expected:

/path/to/go/project-a/
  Seem like (me) did nothing!
/path/to/go/project-b/
  Seem like (me) did nothing!
/path/to/go/project-c/
  Seem like (me) did nothing!

Node Version: v6.5.0
tiny-core-terminal version: version: '1.0.8'
Shell: .zsh
Terminal Program: iterm
Operating System: Mac

Thank you!

Weather service being used is retried?

In the sample env it says that the MSN weather service is being used to get weather data. However, Microsoft claims the service was retired last year. Upon going to that service URL as well nothing is returned.

An issue is already open upstream with weather-js about this. So not sure if the weather data is actually working as intended still or if that stuff should be refactored/removed.

Issue running standup-helper.sh

Node Version: node --version
v4.7.2
tiny-core-terminal version: npm info tiny-care-terminal | grep version:
version: '1.0.8'
Shell: bash, zsh, fish, something else?
zsh
Terminal Program: tmux, iterm, terminator, cmd, something else?
iterm
Operating System: Mac, Windows, Linux, BSD, Really, something else?
macOS Sierra 10.12.3

Hey, I'm having some issues with standup-helper.sh.
In the doTheCodes method within care.js (here), the spawn call is throwing an exception

Error: spawn sh /Users/mbrawn/.nvm/versions/node/v4.7.2/lib/node_modules/tiny-care-terminal/standup-helper.sh ENOENT
    at exports._errnoException (util.js:907:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:189:32)
    at onErrorNT (internal/child_process.js:355:16)
    at nextTickCallbackWith2Args (node.js:458:9)
    at process._tickCallback (node.js:372:17)
    at Function.Module.runMain (module.js:443:11)
    at startup (node.js:139:18)
    at node.js:990:3
events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: spawn sh /Users/mbrawn/.nvm/versions/node/v4.7.2/lib/node_modules/tiny-care-terminal/standup-helper.sh ENOENT
    at exports._errnoException (util.js:907:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:189:32)
    at onErrorNT (internal/child_process.js:355:16)
    at nextTickCallbackWith2Args (node.js:458:9)
    at process._tickCallback (node.js:372:17)

Using the function mentioned in this SO post, I was able to see the following before the exception is thrown

spawn called
{ '0': 'sh /Users/mbrawn/.nvm/versions/node/v4.7.2/lib/node_modules/tiny-care-terminal/standup-helper.sh',
  '1': [ '~/repos/' ],
  '2': { shell: true } }
spawn called
{ '0': 'sh /Users/mbrawn/.nvm/versions/node/v4.7.2/lib/node_modules/tiny-care-terminal/standup-helper.sh',
  '1': [ '-d 7', '~/repos/' ],
  '2': { shell: true } }

I am able to run the standup helper manually and get a result with sh
sh-3.2$ ./standup_helper.sh ~/repos/

From what I can see, I've added the environment variables

echo $TTC_REPOS
~/repos

My .zshrc

# List of accounts to read the last tweet from, comma separated
# The first in the list is read by the party parrot.
export TTC_BOTS='tinycarebot,selfcare_bot,magicrealismbot'

# List of folders to look into for `git` commits, comma separated.
export TTC_REPOS='~/repos'

# Location/zip code to check the weather for. Both 90210 and "San Francisco, CA"
# _should_ be ok (the zip code doesn't always work -- use a location
# first, if you can). It's using weather.service.msn.com behind the curtains.
export TTC_WEATHER='Toronto'

# Set to false if you're an imperial savage. <3
export TTC_CELSIUS=true

# Unset this if you _don't_ want to use Twitter keys and want to
# use web scraping instead.
export TTC_APIKEYS=true

# Refresh the dashboard every 20 minutes.
export TTC_UPDATE_INTERVAL=20

# Twitter api keys
export TTC_CONSUMER_KEY='SECRET'
export TTC_CONSUMER_SECRET='SECRET'
export TTC_ACCESS_TOKEN='SECRET'
export TTC_ACCESS_TOKEN_SECRET='SECRET'

# Note: in tiny-terminal-care < 1.0.7, the recommended variables for the Twitter
# API keys were the ones before. As of 1.0.8, they are deprecated
# (because the names are too generic), but will still be supported
# until the next major version.
# export CONSUMER_KEY='...'
# export CONSUMER_SECRET='...'
# export ACCESS_TOKEN='...'
# export ACCESS_TOKEN_SECRET='...'

I've tried ~/repos and ~/repos/

Any ideas? Have I misconfigured something?

ENOENT exception

Getting this error when trying to run:

Error: spawn bash /usr/local/lib/node_modules/tiny-care-terminal/standup-helper.sh ENOENT
at exports._errnoException (util.js:907:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
at onErrorNT (internal/child_process.js:344:16)
at nextTickCallbackWith2Args (node.js:442:9)
at process._tickCallback (node.js:356:17)
at Function.Module.runMain (module.js:443:11)
at startup (node.js:139:18)
at node.js:974:3
events.js:141
throw er; // Unhandled 'error' event
^

Error: spawn bash /usr/local/lib/node_modules/tiny-care-terminal/standup-helper.sh ENOENT
at exports._errnoException (util.js:907:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
at onErrorNT (internal/child_process.js:344:16)
at nextTickCallbackWith2Args (node.js:442:9)
at process._tickCallback (node.js:356:17)

Inspirational Quote API

It may be cool to use something like Forismatic for getting an inspirational quote instead of certain twitter feeds. Possibly even make an adapter to allow people to chose/build their own methods to get quotes if desired.

I'm thinking we introduce an option for the inspirational quote source. Which would be a string that needs to match a registered provider. One of which would be the current twitter provider and a new one for forismatic. Then others could make an adapter for other services such as Mastadon as requested in #20.

Twitter and Forismatic could be in-box providers with developers getting the ability to make their own external packages to handle others.

Would it be useful if there was 1 tab for NoteTaking/TODO?

Im just throwing ideas out. I dont want to have another tmux. However, I would love to have a TODO pane where i can read/write bullet points. Maybe a option to swap panes is needed as more panes are added into this wonderful project.

Can't read twitter api keys

I have set my api keys, but it says "cant read twitter". And weather and repos works fine.

image

My api key settings in '.zshrc' file like this:
wechatimg244

  • Node Version: 6.6.0
  • tiny-core-terminal version: 1.1.1
  • Shell: zsh
  • Terminal Program: iterm2
  • Operating System: Mac

Twitter keys ENV variables

The ones that are currently in use look terribly generic and I can see them causing issues in the future. Would it make sense to make them scoped like all the configuration ones?

Eg.

CONSUMER_KEY='...'
CONSUMER_SECRET='...'
ACCESS_TOKEN='...'
ACCESS_TOKEN_SECRET='...'

would be

TTC_CONSUMER_KEY='...'
TTC_CONSUMER_SECRET='...'
TTC_ACCESS_TOKEN='...'
TTC_ACCESS_TOKEN_SECRET='...'

Pomodoro mode doesn't work

I can't get p Pomodoro mode to work. It doesn't do anything.

Other keys work, such as q.

  • Node Version: 7.9.0
  • tiny-core-terminal version: 1.1.1
  • Shell: zsh
  • Terminal Program: Terminal
  • Operating System: MacOS Sierra

Thank you!

Would term-stats be a good candidate to appear in tiny-care-terminal?

Do you think we can add term-stats to tiny-care-terminal? (Okay maybe I am biased because I made it but..)

term-stats

One thing I think which could be a problem is the fact that npm download stats refresh after twenty-four hours, so there is no point in refreshing them. They'll remain the same for the rest of the day, anyway.

Another thing is that it could be a serious demotivator if you think about human psychology.

I wanna know if you'd add it, or whether it would be worth adding.

PS: The list of packages is configurable, of course.

Go one level deeper in searching for repos

Node Version: v7.2.0
tiny-core-terminal version: 1.0.8
Shell: bash
Terminal Program: tmux
Operating System: Linux

For reasons I have my repositories inside ~/sites/<site-name>/public and TCT does not find them with TTC_REPOS set to ~/sites.

Would it be possible to go one level deeper?

If keys aren't defined, you can't switch the 'say' box

When I switched TTC_SAY_BOX, it seemed like it did not correctly change until I specified that I wanted to use scraping. So my guess is - if the keys aren't defined it doesn't let you change the parrot. A side issue I guess, but I really wanted the cat working before I set up my keys (or chose scraping ;).

  • Node Version: node --version
    6.10.3

  • tiny-core-terminal version: npm info tiny-care-terminal | grep version:
    1.2.0

  • Shell: bash, zsh, fish, something else?
    bash

  • Terminal Program: tmux, iterm, terminator, cmd, something else?
    hyper

  • Operating System: Mac, Windows, Linux, BSD, Really, something else?
    Windows

Commits are duplicated on update

Description

When the dashboard updated, my commits were duplicated. So instead of 15 commits I've got 30.

STR

  1. (for convenience) change the update interval to 5 seconds
  2. set up several directories which have projects
  3. run dashboard
  4. wait for update to happen (5 seconds according to step 1)
  5. Observe the result

Actual result

Commits were duplicated, and instead of my honest 13 commits for today I see 26 commits :| That is weird.

Expected result

I still see my honest 13 commits.

GIF

tiny-terminal-care

Environment

% node -v
v6.10.0
% npm -v
3.10.10

Not working with zipcode

weather-js is not working with zipcodes.

http://weather.service.msn.com/find.aspx?src=outlook&weadegreetype=C&culture=en-US&weasearchstr=98109

<string>
  Weather-location lat/lon not found (weasearchstr='98109').
</string>

http://weather.service.msn.com/find.aspx?src=outlook&weadegreetype=C&culture=en-US&weasearchstr=Seattle

<weatherdata xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <weather weatherlocationcode="wc:USWA0395" weatherlocationname="Seattle, WA" url="http://a.msn.com/54/en-US/ct47.604,-122.329?ctsrc=outlook" imagerelativeurl="http://blob.weather.microsoft.com/static/weather4/en-us/" degreetype="C" provider="Foreca" attribution="http://www.foreca.com/" attribution2="Foreca" lat="47.604" long="-122.329" timezone="-7" alert="" entityid="30170" encodedlocationname="Seattle%2C+WA">
    <current temperature="13" skycode="30" skytext="Partly Sunny" date="2017-04-19" observationtime="09:45:00" observationpoint="Seattle, WA" feelslike="13" humidity="78" winddisplay="4 km/h East" day="Wednesday" shortday="Wed" windspeed="4 km/h"/>
    <forecast low="8" high="15" skycodeday="29" skytextday="Partly Cloudy" date="2017-04-18" day="Tuesday" shortday="Tue" precip=""/>
    <forecast low="9" high="14" skycodeday="11" skytextday="Rain Showers" date="2017-04-19" day="Wednesday" shortday="Wed" precip="90"/>
    <forecast low="8" high="14" skycodeday="9" skytextday="Light Rain" date="2017-04-20" day="Thursday" shortday="Thu" precip="90"/>
    <forecast low="13" high="18" skycodeday="32" skytextday="Sunny" date="2017-04-21" day="Friday" shortday="Fri" precip="70"/>
    <forecast low="9" high="17" skycodeday="9" skytextday="Light Rain" date="2017-04-22" day="Saturday" shortday="Sat" precip="90"/>
    <toolbar timewindow="60" minversion="1.0.1965.0"/>
  </weather>
</weatherdata>

Sample.env not being used?

Hi,

i have the problem that i have to change the care.js file in order to apply settings. The .env File seems to be ignored here (for every setting).

Terminal doesn't display correctly

Tiny care terminal doesn't display correctly.
Doesn't work at any window size.

Node Version: 7.7.1
tiny-core-terminal version: 1.0.8
Shell: Windows
Terminal Program: cmd
Operating System: Windows 10 Creators

Thank you!

Illegal token

  • Node Version: node --version: v0.12.0
  • tiny-core-terminal version: npm info tiny-care-terminal | grep version:: version: '1.2.0'
  • Shell: bash, zsh, fish, something else? zsh
  • Terminal Program: tmux, iterm, terminator, cmd, something else? iterm
  • Operating System: Mac, Windows, Linux, BSD, Really, something else? Mac

The error is as follows:

tiny-care-terminal
/usr/local/lib/node_modules/tiny-care-terminal/care.js:117
forecastString = `Today, it will be ${skytextforecast} with a foreca
^
SyntaxError: Unexpected token ILLEGAL
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3

Multiple repo display should be altered

Hi, love this app. There's a feature request:

When I add multiple repos, and if I haven't worked some of the repos, it shows the message:

Seems like %username% did nothing! for each blank repo. However I have commits overall ๐Ÿ˜ข

It's ok to tell me that if I haven't worked in any of the repos but current behaviour is somehow heart-breaking and makes me feel like a lazy person ๐Ÿ˜ž

This issue can be related to #17, since you said you plan to add a parent directory feature. It would be awesome.

Related image (5 repos, 1 new commit in 1 repo):

screen shot 2017-04-26 at 09 49 05

Error at launch of the program

Hi i have an error when i launch the program

This is my informations :
Node Version: 4.2.6
tiny-core-terminal version: 1.1.1
Shell: zsh
Terminal Program: D'ont now the default for ubuntu 16.04..
Operating System: Linux, ubuntu

And my error:
` ~ tiny-care-terminal
Error: spawn sh /usr/local/lib/node_modules/tiny-care-terminal/standup-helper.sh ENOENT
at exports._errnoException (util.js:870:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
at onErrorNT (internal/child_process.js:344:16)
at nextTickCallbackWith2Args (node.js:441:9)
at process._tickCallback (node.js:355:17)
at Function.Module.runMain (module.js:444:11)
at startup (node.js:136:18)
at node.js:966:3
events.js:141
throw er; // Unhandled 'error' event
^

Error: spawn sh /usr/local/lib/node_modules/tiny-care-terminal/standup-helper.sh ENOENT
at exports._errnoException (util.js:870:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
at onErrorNT (internal/child_process.js:344:16)
at nextTickCallbackWith2Args (node.js:441:9)
at process._tickCallback (node.js:355:17)`

Trivial: Twitter only works with lowercase handles

I tried to enter a mixed case twitter handle and it wasn't working. I noticed it gets toLowerCase()ed when it tries to fill in the content (https://github.com/notwaldorf/tiny-care-terminal/blob/master/care.js#L92) but not when it's defined (https://github.com/notwaldorf/tiny-care-terminal/blob/master/care.js#L39-L40).

Node Version: 6.6.0
tiny-core-terminal version: 1.0.8
Shell: zsh
Terminal Program: iterm
Operating System: Mac

<3 Love this :D thanks for sharing!

can't read api keys

I have my keys set in my fish config. I tried with and without quotes. I reset the terminal session. Weather and repos works fine. But I'm getting "Can't read Twitter without API keys" in TCT.

Node Version: 6.10.2
tiny-core-terminal version: 1.0.8
Shell: fish
Terminal Program: iTerm2
Operating System: Mac

Unhandled 'error' event when spawning from Ubuntu (17.04)

Node Version: v4.7.2
tiny-core-terminal version: 1.0.8
Shell: zsh
Terminal Program: gnome-terminal, terminator
Operating System: Ubuntu GNOME 17.04

So, did everything from the setup, exported things to my .zshrc file. Trying to execute tiny-care-terminal from the command line gives me the following:

Error: spawn sh /usr/local/lib/node_modules/tiny-care-terminal/standup-helper.sh ENOENT
    at exports._errnoException (util.js:907:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:189:32)
    at onErrorNT (internal/child_process.js:355:16)
    at nextTickCallbackWith2Args (node.js:458:9)
    at process._tickCallback (node.js:372:17)
    at Function.Module.runMain (module.js:443:11)
    at startup (node.js:139:18)
    at node.js:990:3
events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: spawn sh /usr/local/lib/node_modules/tiny-care-terminal/standup-helper.sh ENOENT
    at exports._errnoException (util.js:907:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:189:32)
    at onErrorNT (internal/child_process.js:355:16)
    at nextTickCallbackWith2Args (node.js:458:9)
    at process._tickCallback (node.js:372:17)

EDIT: Forgot to add, used Twitter scraping instead of the API keys, and used the default Twitter profiles.

Configurable author & terminal

Would you add (or accept a PR to add) customization of the author passed to git-standup, and the ability to turn off the terminal title setting?

Thanks for this great software!

Can I replace party parrot?

I know this'll probably make me very unpopular, but I'm not a fan of party parrot. Can an option be added for some other "say" script to be used in that panel?

Where do env keys go?

I don't see that mentioned in the repo ๐Ÿ˜ญ

Maybe a tiny update to the readme to help us new users?

Lots of problems standup-helper.sh

Node Version: node --version 6.10.2
tiny-core-terminal version: npm info tiny-care-terminal | grep version:
Shell: bash, zsh, fish, something else? 1.0.8
Terminal Program: tmux, iterm, terminator, cmd, something else? bash
Operating System: Mac, Windows, Linux, BSD, Really, something else? Linux

Relying on (npm -g bin) to get the bin directory seems to be pretty unreliable as in my system when I execute the command I get the folder but also below that

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                 npm update check failed                  โ”‚
โ”‚           Try running with sudo or get access            โ”‚
โ”‚           to the local update config store via           โ”‚
โ”‚ sudo chown -R $USER:$(id -gn $USER) /home/joseph/.config โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Obviously this is completely unrelated to tiny-care-terminal, but by the way it works, it prevents it from getting the correct directory and thus working. Other people can also have the same or different warnings preventing standup-helper from working correctly. Also, multiple directories separated by comma doesn't seem to be working, only one is supported by the script.

Submodules no tracking

Node Version: v6.9.1
tiny-core-terminal version: version: '1.0.8'
Shell: zsh
Terminal Program: rxvt-unicode
Operating System: Linux (ubuntu)

Thank you!

Crash when counting commits in multiple repos

Node Version: v7.2.1
tiny-core-terminal version: 1.0.8
Shell: bash
Terminal Program: iTerm2
Operating System: macOS

I have quite a few repos in ~/dev. The dashboard starts up, starts counting commits for a second and then crashes. Using TTC_REPOS=/single/repo works fine for the ones I tried. Didn't try very hard to debug into the blessed library since I don't know what the code is doing. What I can tell you that at that given code location in blessed (/usr/local/lib/node_modules/tiny-care-terminal/node_modules/blessed/lib/program.js:2543), we have part == "cpp" and val == "cpp".

Unsetting env vars other than TTC_REPOS doesn't make a difference.

$ set | grep TTC
TTC_APIKEYS=false
TTC_BOTS=tinycarebot,selfcare_bot
TTC_REPOS='~/dev'
TTC_WEATHER=Munich
$ tiny-care-terminal
TypeError: Cannot read property 'slice' of null
    at /usr/local/lib/node_modules/tiny-care-terminal/node_modules/blessed/lib/program.js:2543:35
    at Array.forEach (native)
    at Program._attr (/usr/local/lib/node_modules/tiny-care-terminal/node_modules/blessed/lib/program.js:2542:11)
    at Box.Element._parseTags (/usr/local/lib/node_modules/tiny-care-terminal/node_modules/blessed/lib/widgets/element.js:498:26)
    at Box.Element.parseContent (/usr/local/lib/node_modules/tiny-care-terminal/node_modules/blessed/lib/widgets/element.js:393:22)
    at Box.Element.render (/usr/local/lib/node_modules/tiny-care-terminal/node_modules/blessed/lib/widgets/element.js:1839:8)
    at /usr/local/lib/node_modules/tiny-care-terminal/node_modules/blessed/lib/widgets/screen.js:738:8
    at Array.forEach (native)
    at Screen.render (/usr/local/lib/node_modules/tiny-care-terminal/node_modules/blessed/lib/widgets/screen.js:735:17)
    at Socket.week.stdout.on.data (/usr/local/lib/node_modules/tiny-care-terminal/care.js:120:12)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at Pipe.onread (net.js:551:20)

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.