The authorization service address has been changed.
New address: http://www.formula1.com/reg/login?redirect_url=%2flive_timing%2f
And now you should set referer for it request.
> request.Referer = "http://www.formula1.com/live_timing/";
--
WBR,
Alexander
E-mail: alex...@povarnitsyn.ru
ICQ: 260891575
Once again, just for the protocol. Using AK.F1.Timing.Core.dll as a
COM is a very BAD idea. Much easy learn C# and .NET (it very simple
platform).
--
WBR,
Alexander
E-mail: alex...@povarnitsyn.ru
ICQ: 260891575
Wednesday, March 14, 2012, you wrote:
> Hi Alexander! THanks for your answers! :)
> I see you found the problem... but, could I solve it to connect via
> f1recorder? I suppose if I interactuate with dlls directly I can, but
> "playing" with f1recorder directly maybe I can not...
> Sorry for my general doubts...
> First attempt with my app is using f1recorder and reading the log file
> is continuosly generating. I had it almost clear but connections
> problems have made me to stop... Once I have it clear, I want to try
> to compile dlls as COM object as you told me and try to use them
> directly from my app...
> Really thanks for your help!
I have to say that all my tests where with an old build version which did not need to use "live" command...
And here, how I launch f1recorder using just a DOS windows...
"f1recorder.exe live hacedord...@gmail.com 2011Formula1
sesion.tms"
I don't understand what's happening. From same PCs, I can connect to
formula1.com server using your f1 timing application and of course,
using same credentials. In this way, it is not a credentials or a
machine/internet connection problem...
Thanks a lot for your help. But I think I start to lose the
faith... :)
I have copied exactly what you posted in a .bat file. Logically, I
have written it into the same line and I have replaced dots with the
complete user name. Double click over the batch file and here the log
result...
2012-03-15 16:42:44.5088 INFO Program[1]: authenticating...
2012-03-15 16:42:44.5298 INFO LiveAuthenticationService[1]: fetching
auth token from http://www.formula1.com/reg/login?redirect_url=/live_timing/
for user hacedord...@gmail.com
2012-03-15 16:42:50.7621 ERROR LiveAuthenticationService[1]: failed to
fetch the auth token as no cookie named USER was found in the response
to the login request, assuming the credentials have been rejected
2012-03-15 16:42:50.7721 ERROR Program[1]:
System.Security.Authentication.AuthenticationException: The supplied
credentials have been rejected by the live-timing service.
at AK.F1.Timing.Live.LiveAuthenticationService.Login(String
username, String password)
at AK.F1.Timing.Utility.Recorder.Program.TryAuthenticate(String
username, String password, AuthenticationToken& token)
Content of the batch file is just... "f1recorder.exe live --
username=hacedordetablicas@gmail.com --password=2011Formula1 --
Hi Pedro.
> I do not know the reason why it was not able to connect...
It's just because Saturn in Cassiopeia. Don't worry. :)
> I did it via "Add Reference" and adding a "using AK.F1.Timing;" at
> the beggining of my solution... but I do not understand at all what
> I did... if I did it correctly or not...
It's correctly. In .net all references working like a dynamic linking in C++ or Delphi.
Best please for asking questions about .net is stackoverflow.com or something like that.
See else msdn.com
Hi, Pedro.
Some answers for you questions.
> hot to obtain time once I use message.accept method with a string like TimeGap(Time='00:00:09
Method Accept is using for processing messages. This is a part of the implementation Visitor pattern.
See http://en.wikipedia.org/wiki/Visitor_pattern for more information.
For access to a properties values use appropriate properties.
> I see I receive twice same data... first with the "key"
> SetGridColumnValueMessage, and after that, with different "keys"
> like SetDriverSectorTimeMessage, SetDriverLapTimeMessage and so on...
SetGridColumnXXX - this is a messages about the changing grid cells.
SetDriverXXX - this is a messages about the some events related with driver (it is translation of SetGridColumnXXX).
These messages contain the same data but have a different sense.
You can use SetGridColumnXXX for grid and SetDriverXXX for storing all lap times.
Look in the Andy's application. This is already contain implementation of all what you want.
Look AK.F1.Timing.Model.