Smartgambler
Pro-Punter

Go Back   OZmium Sports Betting and Horse Racing Forums > Public Forums > General Topics
User Name
Password
Register FAQ Search Today's Posts Mark all topics as read

To advertise on these
forums, e-mail us.

Reply
 
Thread Tools Search this Thread Display Modes
  #121  
Old 25th July 2015, 09:41 AM
jazzy jazzy is offline
Member
 
Join Date: Nov 2010
Posts: 88
Default

you mean these?

Code:
req_data["Dob"] = "" # dunno ****** these are? req_data["DeviceName"] = "" req_data["DeviceKey"] = "" req_data["Referrer"] = ""


I really don't think they are neccessary.

You could always just try it... You never know, it might just work. (My money is on it will)

And if if it doesn't why not ask tatts what is required?


I think you're making this a lot harder than it needs to be
Reply With Quote
  #122  
Old 25th July 2015, 11:47 AM
Puntz Puntz is offline
Member
 
Join Date: Jan 2012
Posts: 497
Default

Quote:
you mean these?

Code:

req_data["Dob"] = ""
# dunno ****** these are?
req_data["DeviceName"] = ""
req_data["DeviceKey"] = ""
req_data["Referrer"] = ""


I really don't think they are neccessary.

You could always just try it... You never know, it might just work. (My money is on it will)

And if if it doesn't why not ask tatts what is required?


Yes, required, I asked someone who knows about it, and said it took them a while to figure it out to, but it was a private Application for one of their customers, see ?

They not giving this part, ( 4 lines of code) away. Typical IT industry, there is always a snag. They got their "secrets" we got ours, our, ( plural, punters), respective edge.


Tatts have not replied to this specific question, they won't if ya not a qwalifried IT blah blah.

I'll fire it up later and get a copy of the py editor thingy, after today's races.

Everythig else seems to work OK, no errors, good work, ya done all ya can and that's OK if that's as far as it goes.

So no prob, I gotta get this thing happening if all the rest is working up to those 4,... F(*^&,... lines.
Quote:
req_data["Dob"] = ""
# dunno ****** these are?
req_data["DeviceName"] = ""
req_data["DeviceKey"] = ""
req_data["Referrer"] = ""


later,
Reply With Quote
  #123  
Old 25th July 2015, 07:31 PM
Puntz Puntz is offline
Member
 
Join Date: Jan 2012
Posts: 497
Default

:-)
jazz !
OK, it logged in, somehow.
Now for the bet, sent 1 bet, $1.00, but account balance same.
Attached Files
File Type: zip msg.zip (150 Bytes, 74 views)
Reply With Quote
  #124  
Old 25th July 2015, 07:58 PM
Puntz Puntz is offline
Member
 
Join Date: Jan 2012
Posts: 497
Default

thE BeT WenT oN !
$1.00,

It showed up on the account,

------,

Got session ID txt file, Got Login txt file, deleted the first one, but never got a 2nd file,
5 minutes after the bet was put on, it showed up on account balance.

I'll tidy up the workbook, and there ya have it..
Needs a bit more work from the py side of things such as feed back logging, to know exactly whats going with time stamps and record keeping.

Time it took for the 3 py scripts to Run, and end, about 15 seconds, everything went to a stand-still, but I knew then, it's working !

jazz, early days yet, but a bet went through, $1.00

cheers
Reply With Quote
  #125  
Old 29th July 2015, 08:00 AM
Puntz Puntz is offline
Member
 
Join Date: Jan 2012
Posts: 497
Default

jazz, trying to get headspace around this py stuff, but too early for now,
need the 4th script, has to write to txt file same as the sessionID, txt.
It's the response to the bet, need to know if the bet got through or failed, if failed, try again. Then the bet sender is more or less complete, please/thanks,

Win Bet RESPONSE
second down on the list
http://media.tatts.com/documentatio...ngToteBets.html

Cheers
Reply With Quote
  #126  
Old 30th July 2015, 12:10 PM
jazzy jazzy is offline
Member
 
Join Date: Nov 2010
Posts: 88
Default

Revised send_bet.py attached

At the moment, it is set up to append to the file BET_RESP.TXT. If this is not the behaviour you want, change line 60 from

with open("BET_RESP.TXT", "a") as fp:

to

with open("BET_RESP.TXT", "w") as fp:

This will overwrite the file if it exists.

NB: Python will barf if you change the indentation, so don't meddle with it
Attached Files
File Type: zip send_bet.zip (1.3 KB, 69 views)
Reply With Quote
  #127  
Old 30th July 2015, 12:17 PM
Puntz Puntz is offline
Member
 
Join Date: Jan 2012
Posts: 497
Default

Thanks,
will test
Cheers
Reply With Quote
  #128  
Old 3rd August 2015, 08:49 AM
Puntz Puntz is offline
Member
 
Join Date: Jan 2012
Posts: 497
Default

jazz, thanks for all the help, and everyone who contributed suggestions etc.


works a charm.

I can sit back now, taking a break n work on something else that's not pc or internet related for a week,
automated coffee machine, dishwasher, :-)

Cheers
Reply With Quote
  #129  
Old 10th August 2015, 09:53 PM
Puntz Puntz is offline
Member
 
Join Date: Jan 2012
Posts: 497
Default

Just a trivial update, more of blog than anything, ( some of it is in the plural, some not)
Well, I got the betsender sorted as in the logical run of things, then trying to couple it to a selection process, which had to happen first. Why make a betsender if ya not gonna use it to send /selections ya comfortable with ?

It ain't that simple coupling the 2;
when to select, when to bet and when to fire the betsender
To test all this, needed a "test" mode, so it runs through all the process, "as if", and make sure all is working "right", or in-sync.
That's not a simple thing to do, when all has to be done by being in-sync with the real world timing of a race before it starts.
And when a glitch or a process_logic it may take 10 minutes to tweak it, that's how many races in time order have passed while working on the fix.
So more extra "utility" processes get coded to get back up to date, and test the next, "logic".
Then there is an oversight, a "what if" suddenly appears, so more, If's and Then's etc.

But getting there, it's getting closer to both bet_sender and selection_maker work in unison without a glitch or un-forseen process logic.
Not as easy as I thought it was and priceless may I add. The time is priceless.

But wait ! ( another knock at the door, family who have been wondering, "why ya so quiet, what's wrong? ) lol, that question, "what's wrong" ? and with guilt all over my face, "emm, nothing, all good"
I just cannot talk about my racing and what I do, they do not "understand".
"Why have you got 4 computers" ? one asks.
Easy excuse for now, blame it all on Win 10, "friends pc, wants me to sort it out with this Win 10 stuff", I LIED!, again.

They leave after coffee/pizza/AFL etc and I forget where I was in the process of things.

There is the final test, the real bet and how long it takes to process it all, in milliseconds...does my process take too long I may miss the "gate" so to speak ?
It takes a bit of extra time when it logs_in, in real, at that very moment when it's out of my control, it's up the the acceptance of the server to accept the bet, if in time, or is overloaded and what if, what if..., and what if ?
I don't know yet. Nearly there though,

My fear is, after all is sorted on my side of the street, then the IT powers that be change something and it's all back to sorting that out, again.

IDK !
Reply With Quote
  #130  
Old 18th March 2018, 12:34 AM
Puntz Puntz is offline
Member
 
Join Date: Jan 2012
Posts: 497
Default

Changes to code in Python scripts, for the record

From
Quote:
"https://api.tatts.com/sales/

To
Quote:
"https://api.tattsbet.ubet.com/sales/


Untested, but worked a charm before.

Thanks Jazz...
still have not learnt this Python thing yet...
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump



All times are GMT +10. The time now is 12:26 AM.


Powered by: vBulletin Version 3.0.3
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
2008 OZmium Pty. Ltd. All rights reserved . ACN 091184655