OptimalBits / livef1

Live Formula1 Service written in Nodejs
14 stars 4 forks source link

Novice question - usage #1

Open psychemedia opened 10 years ago

psychemedia commented 10 years ago

Hi

I'm a total node.js novice ...

What's the usage for this library?

How to start it? What sort of output?

How easy would it be to log results into mongo db, for example, or save data as JSON to a logfile?

manast commented 10 years ago

it is not your fault since the library is not documented, but inside /test you can find an example test_live.js. You can open it and see how it works, or run it just by typing: node test/test_live.js Note that you need to export your env variables LIVEF1_USER and LIVEF1_PASSWD from your formula1.com account in order to make it work. good luck!.

psychemedia commented 10 years ago

Okay - thanks..

So for a novice the recipe is:

Is there a more secure way of putting the credentials somewhere, ideally not as plain text?

What's the command for running the code when a session is on and the live data is streaming?

manast commented 10 years ago

Ok. Thing is that this is a library module, for example this app is using it: https://github.com/OptimalBits/livef1.in

Normally in node you do not install the dependencies by hand, they are already specified in package.json so you only need to do `npm install`` You can specify the credentials anyway you want, test_live.js is just a test :).

psychemedia commented 10 years ago

Ok - thanks... as I said, total novice, trying to find all the shortcuts just to preview what the library does. Will try to have a proper play in advance of next race:-)

psychemedia commented 10 years ago

Are there any screenshots of the https://github.com/OptimalBits/livef1.in application anywhere?

How would I run that application if all the bits are there?

(I'm seeking data sources to log and play with for https://leanpub.com/wranglingf1datawithr )

manast commented 10 years ago

sorry I do not have any screenshots. livef1.in is a bit outdated so I need to spend a few hours to make it work again (I tried a few minutes ago and realized it will take more than I had expected). But basically is just a front end, simpler than the one you get on formulat1.com... I may spend some time before the next race so it works when Alonso wins in Spain :).