Code Monkey home page Code Monkey logo

hubble's People

Contributors

andyhmltn avatar datamuc avatar ferentchak avatar jaymedavis avatar keesfransen avatar marydavis avatar pengwynn 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

hubble's Issues

"Bummer" for all queries

Hello,

I really like your projet, but I have a mysterious problem.
For testing, I used your example queries (in the README file, section A polling example - a github repository dashboard!).
First, I tested without login and password. Bummer for each queries.
Second, I tested with my login and password. Bummer for each queries.
I really don't understand why...

Of course, I have tested the result of curl on the call of the URL, and I have a good result.

For example :

curl https://FrelEsquif:[email protected]/repos/jaymedavis/hubble/collaborators

return

[
  {
    "type": "User",
    "url": "https://api.github.com/users/jaymedavis",
    "avatar_url": "https://secure.gravatar.com/avatar/686366b39809a67a1ca091c7fef82d05?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
    "organizations_url": "https://api.github.com/users/jaymedavis/orgs",
    "starred_url": "https://api.github.com/users/jaymedavis/starred{/owner}{/repo}",
    "repos_url": "https://api.github.com/users/jaymedavis/repos",
    "gists_url": "https://api.github.com/users/jaymedavis/gists{/gist_id}",
    "received_events_url": "https://api.github.com/users/jaymedavis/received_events",
    "gravatar_id": "686366b39809a67a1ca091c7fef82d05",
    "followers_url": "https://api.github.com/users/jaymedavis/followers",
    "subscriptions_url": "https://api.github.com/users/jaymedavis/subscriptions",
    "following_url": "https://api.github.com/users/jaymedavis/following",
    "id": 171522,
    "events_url": "https://api.github.com/users/jaymedavis/events{/privacy}",
    "login": "jaymedavis"
  }
]

I understand that this problem is really hard to solve, because I have very little information to give you, but I'd really like to understand what is wrong. And I'd be happy to help you to resolve this problem.

I remain at your disposal if you need more information.

Colors

The colors aren't working now - they are causing the value to go 'undefined'. I need to fix this.

Launching Hubble: Error: Cannot find module 'request'

I'm using OSX ML, followed your directions but I'm a node noobe and don't have much troubleshooting exp w/ node. I've used brew to install node for me on the mac, and I have version v0.8.17.

I pulled hubble, ran the nmp install and then tried to launch hubble:

[09:53][dillera@massiveAir:~/Dropbox/devwork/hubble(master)]$ ./hubble.coffee 
Error: Cannot find module 'request'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/Users/dillera/Dropbox/devwork/hubble/src/PollManager.coffee:4:13)
    at Object.<anonymous> (/Users/dillera/Dropbox/devwork/hubble/src/PollManager.coffee:33:4)
    at Module._compile (module.js:449:26)
    at Object.require.extensions..coffee (/Users/dillera/Dropbox/devwork/hubble/node_modules/coffee-script/lib/coffee-script/coffee-script.js:30:21)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)

Any suggestions as to what file it cannot find?

auto-save dashboard

Hi,

I'd like to use hubble for a private usage, eg keeping track of my TV series and episodes number.

One thing that causes me problem is that the dashboard will get reset everytime I restart hubble. Is there an option I would have missed that can auto-save the dashboard ? Otherwise would you have time to implement this new feature ?

Thanks for your interest
Cordially

Border Out of Alignment

When running hubble by itself (no data to display) it looks correct. As soon as I add some data, the right border looses alignment. This happens regardless of border character setting in hubble configuration file or terminal font settings. Also happens regardless of which column data is added to or the length of the value. This happens to me in both iTerm and OS X Terminal app.

Screen shot 2013-02-20 at 10 45 54 AM

Environment:

Mac OS X Version 10.6.8
iTerm2 Build 1.0.0.20120203

[email protected]

>> npm version
{ http_parser: '1.0',
  node: '0.8.19',
  v8: '3.11.10.25',
  ares: '1.7.5-DEV',
  uv: '0.8',
  zlib: '1.2.3',
  openssl: '1.0.0f',
  npm: '1.2.10' }

Count BitBucket data

Hello,

I working with Bitbucket (roughly the same service as Github, but private repository for free), but unfortunately Hubble doesn't woth with the Bitbucket data.

The error message from Hubble:

/usr/local/lib/node_modules/hubble/src/Board.coffee:124
          if (value.length > column[line].value.length + 1) {
                                               ^
TypeError: Cannot read property 'length' of undefined
    at Board._drawLine (/usr/local/lib/node_modules/hubble/src/Board.coffee:124:48)
    at Board.draw (/usr/local/lib/node_modules/hubble/src/Board.coffee:77:14)
    at Board._createOrUpdateDataPoint (/usr/local/lib/node_modules/hubble/src/Board.coffee:66:19)
    at Object.update (/usr/local/lib/node_modules/hubble/src/Board.coffee:44:26)
    at Request._callback (/usr/local/lib/node_modules/hubble/src/PollManager.coffee:24:31)
    at Request.callback (/usr/local/lib/node_modules/hubble/node_modules/request/main.js:122:22)
    at Request.emit (events.js:70:17)
    at Request.<anonymous> (/usr/local/lib/node_modules/hubble/node_modules/request/main.js:661:16)
    at Request.emit (events.js:88:20)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/hubble/node_modules/request/main.js:623:14)

The query:

curl http://localhost:9999 \
-d column=0 \
-d label="Total issues" \
-d poll_url="https://myLogin:[email protected]/1.0/repositories/myLogin/myRepository/followers" \
> -d poll_seconds=10 \
> -d poll_failed="Bummer :(" \
> -d poll_method="count_array" 

The result of this query

curl https://myLogin:[email protected]/1.0/repositories/FrelEsquif/iconoclaste-underplate/followers

is:

{
    "count": 1,
    "followers": [
        {
            "username": "followerName",
            "first_name": "followerFirstName",
            "last_name": "followerLastName",
            "display_name": "followerDisplayName",
            "is_team": false,
            "avatar": "https://secure.gravatar.com/avatar/33893a94c2298f2295eed58b337bdad7?s=140&d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
            "resource_uri": "/1.0/users/followerName"
        }
    ]
}

Can't install because it can't find coffee-script@'latest'

scott@naboocruiser { ~ } [!9990] -> sudo npm install -g coffee-script
Password:
npm http GET https://registry.npmjs.org/coffee-script
npm http 304 https://registry.npmjs.org/coffee-script
/usr/local/bin/coffee -> /usr/local/lib/node_modules/coffee-script/bin/coffee
/usr/local/bin/cake -> /usr/local/lib/node_modules/coffee-script/bin/cake
[email protected] /usr/local/lib/node_modules/coffee-script

scott@naboocruiser { ~ } [!9991] -> sudo npm install -g hubble
npm http GET https://registry.npmjs.org/hubble
npm http 304 https://registry.npmjs.org/hubble
npm http GET https://registry.npmjs.org/coffee-script
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/pad
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/jspath
npm http GET https://registry.npmjs.org/moment
npm http GET https://registry.npmjs.org/keypress
npm http GET https://registry.npmjs.org/express
npm http GET https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/colors
npm http 304 https://registry.npmjs.org/coffee-script

npm ERR! Error: No compatible version found: coffee-script@'latest'
npm ERR! Valid install targets:
npm ERR! ["0.7.0","0.7.1","0.7.2","0.9.0","0.9.1","0.9.2","0.9.3","0.9.4","0.9.5","0.9.6","1.0.0","1.0.1","1.1.0","1.1.1","1.1.2","1.1.3","1.2.0","1.3.0","1.3.1","1.3.2","1.3.3","1.4.0","1.5.0","1.6.0","1.6.1"]
npm ERR! at installTargetsError (/usr/local/lib/node_modules/npm/lib/cache.js:486:10)
npm ERR! at /usr/local/lib/node_modules/npm/lib/cache.js:373:15
npm ERR! at saved (/usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/get.js:151:7)
npm ERR! at Object.oncomplete (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:230:7)
npm ERR! You may report this log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! [email protected]
npm ERR!
npm ERR! System Darwin 12.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "hubble"
npm ERR! cwd /Users/scott
npm ERR! node -v v0.6.18
npm ERR! npm -v 1.1.21
npm ERR! message No compatible version found: coffee-script@'latest'
npm ERR! message Valid install targets:
npm ERR! message ["0.7.0","0.7.1","0.7.2","0.9.0","0.9.1","0.9.2","0.9.3","0.9.4","0.9.5","0.9.6","1.0.0","1.0.1","1.1.0","1.1.1","1.1.2","1.1.3","1.2.0","1.3.0","1.3.1","1.3.2","1.3.3","1.4.0","1.5.0","1.6.0","1.6.1"]
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/scott/npm-debug.log
npm not ok

hubble not showing properly

hubble 0.5.0
urxvt
arch linux

When starting hubble series.coffee, I get:

hubble broken

Any idea why ?

Also getting that error when starting hubble alone:

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: listen EADDRINUSE
    at errnoException (net.js:901:11)
    at Server._listen2 (net.js:1039:14)
    at listen (net.js:1061:10)
    at Server.listen (net.js:1127:5)
    at Function.app.listen (/usr/lib/node_modules/hubble/node_modules/express/lib/application.js:533:24)
    at Server.module.exports.Server.start  (/usr/lib/node_modules/hubble/src/Server.coffee:79:18)
    at /usr/lib/node_modules/hubble/src/index.coffee:20:19
    at Object.cb [as oncomplete] (fs.js:168:19)

Script is broken on install

I tried to install this on a new computer using npm install -g hubble and when the hubble command is run I get the following:

/usr/local/lib/node_modules/hubble/src/Board.coffee:180
      return new Array(num + 1).join(char);
             ^
RangeError: Invalid array length
    at Board.module.exports.Board._repeatText (/usr/local/lib/node_modules/hubble/src/Board.coffee:180:14)
    at Board.module.exports.Board._getLineTextInCenter (/usr/local/lib/node_modules/hubble/src/Board.coffee:173:21)
    at Board.module.exports.Board.draw (/usr/local/lib/node_modules/hubble/src/Board.coffee:73:74)
    at BoardManager.module.exports.BoardManager._drawBoard (/usr/local/lib/node_modules/hubble/src/BoardManager.coffee:68:31)
    at BoardManager.module.exports.BoardManager.setupDefaultBoard (/usr/local/lib/node_modules/hubble/src/BoardManager.coffee:17:12)
    at Server.module.exports.Server.start (/usr/local/lib/node_modules/hubble/src/Server.coffee:32:22)
    at /usr/local/lib/node_modules/hubble/src/index.coffee:20:19
    at Object.cb [as oncomplete] (fs.js:168:19) 

Allow passing headers to the url to pull

Hello,

I would like to pull data from HabitRPG, and it should look like:

curl http://localhost:9999 \
-d column=0 \
-d label="Name" \
-d poll_url="https://habitrpg.com/api/v1/user/tasks?type=habit"  \
-d poll_header="x-api-user: <user-id>" \
-d poll_header="x-api-key: <api-key>" \
-d poll_seconds=10 \
-d poll_failed="Bummer :(" \
-d poll_method="json_value:^.[0].text"

Would it be difficult to implement this new poll_header argument ?

Thanks for considering that feature :)

multiple screens

when using multiple screens, the first screens data wont load unless you switch to a new screen, then escape back to the original screen

Parameters not taken into acocunt

Hi,

When passing an URL, hubble doesn't take into account all parameters after the first character '&'.
For example, this query (with no sence, it's just for the example):

curl "https://api.bitbucket.org/1.0/repositories/tutorials/tutorials.bitbucket.org/issues?status=new&status=resolved&limit=0"

return an object like this :

{
    "count": 15,
    "filter": {
        "status": [
            [
                "",
                "new"
            ],
            [
                "",
                "resolved"
            ]
        ]
    },
    "search": null,
    "issues": []
}

But Hubble shows the value 1.

After a few tests, I think it's because Hubble doesn't take into account the second 'status' parameter and the 'limit' parameter, after a '&' character.

The complete query, just in case:

curl http://localhost:9999 -d column=1 \
-d label="Test" \
-d poll_url="https://api.bitbucket.org/1.0/repositories/tutorials/tutorials.bitbucket.org/issues?status=new&status=resolved&limit=0" \
-d poll_seconds=10 \
-d poll_failed="Bummer :(" \
-d poll_method="json_value:^.[0].count"

In your examples, you have some '&' characters, but you don't use any special traitment or other...

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.