Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Event when team scores?

If you have a question or need help, this is the place to be.
jachin99
Experienced User
Posts: 614
Joined: Sat Feb 13, 2016 8:39 pm

Re: Event when team scores?

Post by jachin99 »

The plays as they happen, and player info. There's a football game starting in about ten minutes but my kid is sick. I have it on the TV so I'll at least be able to peak at it in the background, and watch to see how quickly it reacts. I'm a little skeptical that mysportsfeeds will give me an instant notification but Hopefully it does. At the very least I should get some log info to build macros from later on. Thanks for the help
jachin99
Experienced User
Posts: 614
Joined: Sat Feb 13, 2016 8:39 pm

Re: Event when team scores?

Post by jachin99 »

To subscribe to live sports data from mysportsfeeds.com its 2000 canadian dollars a year. i could be reading this screen incorrectly but this is what it is telling me when I log in and try to subscribe to live scores. Its telling me the only free option is for completed seasons.
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Event when team scores?

Post by kgschlosser »

the live feeds should be free as well for non commercial use. it states it on their website.
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Event when team scores?

Post by kgschlosser »

states it right on their website
The BEST source for democratized, crowd-sourced sports data with a real-time API. Real-time and historical data available. Free API access for non-commercial use.

But it states that you have to contact them to get it
If you like the work I have been doing then feel free to Image
jachin99
Experienced User
Posts: 614
Joined: Sat Feb 13, 2016 8:39 pm

Re: Event when team scores?

Post by jachin99 »

EDIT: I just emailed them.
jachin99
Experienced User
Posts: 614
Joined: Sat Feb 13, 2016 8:39 pm

Re: Event when team scores?

Post by jachin99 »

I heard back from them yesterday. For live scores as they happen they're asking for a donation of 50.00 a month, and their pricing is tierd all the way down to 1.00 a month for a ten minute delay on notifications. I only asked about personal usage but if anyone is interested, I can share more info.
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Event when team scores?

Post by kgschlosser »

Ok first off. A donation is a voluntary thing. If you make it mandatory to give a specific amount then that's what it's price is. It's not a donation. If you don't donate you should still be able to get the item. It states right on their main page that the live data is free. Free means free. No donations are needed. And who may i ask is the donation to? Them? LOL that would be like Saying EG is free but you have to donate 100 dollars to is to get it. How lame is that.
If you like the work I have been doing then feel free to Image
jachin99
Experienced User
Posts: 614
Joined: Sat Feb 13, 2016 8:39 pm

Re: Event when team scores?

Post by jachin99 »

I agree, I don't really get why they call it a donation but to each their own. Sports are all about money so finding free instant notifications might be pretty hard. If were really lucky and there's interest we might be able to get an EG liscence cheap but I don't see there being too much demand for this. I'm honsetly surprised its only fifty bucks. The 1 minute delay notifications were ten bucks a month if I remember right, and that didn't seem like TOO much to me if I had some other use for it.
jachin99
Experienced User
Posts: 614
Joined: Sat Feb 13, 2016 8:39 pm

Re: Event when team scores?

Post by jachin99 »

kgschlosser wrote: Mon Oct 09, 2017 4:49 pm It states right on their main page that the live data is free. Free means free. No donations are needed. And who may i ask is the donation to? Them? LOL that would be like Saying EG is free but you have to donate 100 dollars to is to get it. How lame is that.
That goes back to having an accurate landing page for your site, which is something we've worked pretty hard at.
therealbiglou
Experienced User
Posts: 126
Joined: Sat May 19, 2012 4:33 am

Re: Event when team scores?

Post by therealbiglou »

Do I just make a new macro with a Python Script action and paste the code in? I changed NFL to NHL and made the team code STL. I also added my username and password. When I try to test it, I get this error:

Code: Select all

   Traceback (most recent call last):
     Python script "8", line 25, in <module>
       '{}:{}'.format(USERNAME, PASSWORD).encode('utf-8')
   ValueError: zero length field name in format
Also, for the event, do I just create a new one and make it Main.OnInit? Will this allow it to run automatically for every game?
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Event when team scores?

Post by kgschlosser »

You have to sign up on that website that is noted at the top of the script. then you will enter your username and password in the script.

I believe you have to send them an e-mail in order to get live sports data. I believe also there is a mandatory monthly donation as well. if you read back in this topic there is more information on this.
If you like the work I have been doing then feel free to Image
therealbiglou
Experienced User
Posts: 126
Joined: Sat May 19, 2012 4:33 am

Re: Event when team scores?

Post by therealbiglou »

I did read that, signed up, and entered in my information correctly. I tried some basic googling and it seems to be an issue with the line:

Code: Select all

'{}:{}'.format(USERNAME, PASSWORD).encode('utf-8')
More specifically:

Code: Select all

'{}:{}'
https://stackoverflow.com/questions/210 ... ython2-6-6

However, I really don't understand what everyone is actually saying about it.
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Event when team scores?

Post by kgschlosser »

its a problem with USERNAME = or PASSWORD =


it should look like follows

Code: Select all


USERNAME = "some username"
PASSWORD = "some password"
If you like the work I have been doing then feel free to Image
therealbiglou
Experienced User
Posts: 126
Joined: Sat May 19, 2012 4:33 am

Re: Event when team scores?

Post by therealbiglou »

That is precisely what I have. I have triple checked to make sure it's EXACTLY in that format. I have also copied and pasted what I inputted into the script into the website and they are correct.

Could it be an issue with my password? It contains a few special characters.
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Event when team scores?

Post by kgschlosser »

change the line

Code: Select all

'{}:{}'.format(USERNAME, PASSWORD).encode('utf-8')
to

Code: Select all

'{username}:{password}'.format(username=USERNAME, password=PASSWORD).encode('utf-8')
If you like the work I have been doing then feel free to Image
Post Reply