Ideas to Automation

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
kenco
Posts: 8
Joined: Mon Aug 14, 2023 2:33 pm

I want some help automating my ideas.
My Bet Angel is running 24/7 on VPS. At the start of each day, I select all the UK and Irish Horse racing markets in guardian.
i can now leave Bet Angel running and revisit it again the next day.
During the days racing i want to send my horse selections tips as and when i find them. I can currently send myself an email that then converts the information to CSV file, Race meeting, time, name, type of bet, back or lay.
I want Bet Angel to execute my tips Automatically as i am away from PC etc.

i have looked at the bet angel excel files and dont have any understand on how to use them, or how to get my tips read by bet angel.
Any help in guiding me forward in automating my ideas is greatly appriciated
User avatar
ODPaul82
Posts: 800
Joined: Sun May 08, 2011 6:32 am

Excel you will struggle to perform it, if you're emailing back to yourself you'd need to be able to connect in via SMTP to your email server, identify the appropriate email structure and also having it polling constantly to see if any new updates which chews up on CPU due to the fact Excel only really does synchronous processing rather than asynchronous.

You could in theory do it with Python/C#/Rust/Kotlin without so much machine overhead but it's not such an easy task in that you'll get step 1/2/3 to follow on there.

In whatever language you choose my thinking would be following
  • Poll email server (??SMTP) for email header that matches some of structure you've set
  • Look at the selections which have to be pretty precise in structure
  • Take that selection, find relevant ID from loaded markets, trigger a rule via the API to apply automation against that selection
sionascaig
Posts: 1618
Joined: Fri Nov 20, 2015 9:38 am

If you store the CSV file on a shared drive then it should just be a case of updating that file remotely in time for your bot to read in?

===> so access the file say on your phone when you want to update it & as long as the file is closed when you bot needs to access it then should not have a problem.

That will skip the need to use excel. Have a look at the "reading in a CSV file" in the User Guide.

(assuming I understood your requirements!)

edit - note the CSV file needs to be in a particular structure an example of which is given in user guide & I think there is a blog article about it.

edit edit - I assumed you already had some automation running, If not, then will need to set up some to read in the file and execute whatever it is you want to do with that information !
kenco
Posts: 8
Joined: Mon Aug 14, 2023 2:33 pm

Thanks for the replies — they’re really helpful. I’ve actually got Python set up already on a VPS and it:
• Parses email tips sent to a email inbox
• Converts those tips into a structured CSV file
• Uploads that CSV to a shared folder

I now want Bet Angel’s Guardian to:
• Automatically read that CSV (I believe this is via “Set stored values using a file”)
• Trigger Back or Lay bets if the current market/horse matches a tip in the CSV

I’ll make sure to follow the CSV structure from the user guide. If anyone has tips for linking the race (meeting + time) to the Guardian market list, I’d love to hear them
sniffer66
Posts: 1812
Joined: Thu May 02, 2019 8:37 am

Given runner names are unique on a given day, I've only ever used the selection name in the import csv, though you might want to strip out anything in parenthesis like "(IRE)"

The only caveat to that is to ensure you wipe the csv at the start\end of each day so you don't get repeat matches
kenco
Posts: 8
Joined: Mon Aug 14, 2023 2:33 pm

That’s brilliant, thank you! Makes a lot of sense to match by just SelectionName — and yes, I’ll clean up any suffixes like (IRE), (FR), etc.
I’ll also make sure the CSVs are wiped each day to avoid false triggers. Appreciate the pointer!
Post Reply

Return to “Bet Angel - Automation”