Page 1 of 1

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

Posted: 08 December 2020, 13:30
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).

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

Posted: 09 December 2020, 11:03
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 ?

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

Posted: 09 December 2020, 11:21
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.

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

Posted: 09 December 2020, 12:39
by Een
Maybe webpush notifications are something that you'd be interested in? viewtopic.php?f=10&t=13246

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

Posted: 09 December 2020, 12:41
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.

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

Posted: 09 December 2020, 13:56
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.