Open psychemedia opened 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!.
Okay - thanks..
So for a novice the recipe is:
npm install request
-- npm install when
LIVEF1_USER='me@example.com' LIVEF1_PASSWD='easypasswd' node test/test_live.js
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?
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 :).
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:-)
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 )
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 :).
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?