Is there a URL I can use to see if any games are waiting for me

Discussions about BGA (all languages)
Forum rules
Warning: challenging a moderation in Forum = 10 days ban
More info & details about how to challenge a moderation: viewtopic.php?p=119756
Locked
User avatar
drdrd
Posts: 14
Joined: 27 March 2020, 15:22

Is there a URL I can use to see if any games are waiting for me

Post by drdrd »

Hi,
just wondering if there's a URL I can use with curl to find out if any games are waiting for me, without having to start browser and log in. Yes, I know it sends me an email, but I don't check that all that often either. (Yes, I'm a luddite...)

I found that I can open https://en.boardgamearena.com/player?id=...&section=... in a private browser window (hence no credentials required) but I don't think any of the sections offer the info I'm after. (Maybe it would be considered an information breach, but considering how info it does give away, the number of games currently waiting for a move seems minor.)

Or maybe there's a way to do it using RSS or something ? (I don't know much about that, but happy to learn.)

thanks (and apologies if it's been discussed before).
User avatar
varietyCH
Posts: 57
Joined: 05 November 2020, 22:12

Re: Is there a URL I can use to see if any games are waiting for me

Post by varietyCH »

Haven't used cURL for some years, but can't you just store your credentials there and then check https://boardgamearena.com/gameinprogress ?
User avatar
drdrd
Posts: 14
Joined: 27 March 2020, 15:22

Re: Is there a URL I can use to see if any games are waiting for me

Post by drdrd »

yes, possibly - I'll have to wait for it to be my move to see what sort of output it generates. But there's a lot of unnecessary javascript in there - it contains all the stuff to start a new game, which increases the load on the server.

The ideal would be a simple static page with no javascript - html or xml - lightweight for the server to generate, low bandwidth, and easy to parse.
User avatar
Een
Posts: 3861
Joined: 16 June 2010, 19:52

Re: Is there a URL I can use to see if any games are waiting for me

Post by Een »

Maybe webpush notifications are something that you'd be interested in? viewtopic.php?f=10&t=13246
User avatar
varietyCH
Posts: 57
Joined: 05 November 2020, 22:12

Re: Is there a URL I can use to see if any games are waiting for me

Post by varietyCH »

Thats true.

I've noticed that there is a lot of unecessary stuff sent with each request in a lot of pages as well. For example the "buy premium" nag Screen is served for premium players as well, even if never shown again.

Another approach till you find a lightweight solution could be with
https://boardgamearena.com/gameinprogre ... yerid_&all and then check the tables while not logged in.

https://boardgamearena.com/gameinprogre ... id_&myturn when logged in.

Still not ideal, but less overweight.

I wonder if there is a switch like myturn to specify a playerid, so that it works without being logged in.
User avatar
drdrd
Posts: 14
Joined: 27 March 2020, 15:22

Re: Is there a URL I can use to see if any games are waiting for me

Post by drdrd »

Thanks both - I'll try those out.

Is there any documentation for all the qualifiers that can go onto urls ? (Or if source code is available, I can have a look for myself.)

I have an over-complicated setup, and run different browser instances for different activities. (Keeping work, online banking, and general browsing all separated.) That's why it's a bit of an overhead to start up a browser just to poll for activity. So all this is self-inflicted.
Locked

Return to “Discussions”