Hi there,
I am still trying to pull in stats from Chess.com about games played to track.
They have an API and Beeminder /can/ access their API call -
https://api.chess.com/pub/player/baronvonchickenpants/stats
The section I am interested in is this :-
“chess_rapid”: {
“last”: {
“rating”: 1354,
“date”: 1751201893,
“rd”: 81
},
“best”: {
“rating”: 1525,
“date”: 1725655910,
“game”: “Chess: Dannibees vs BaronVonChickenpants - Chess.com”
},
“record”: {
“win”: 202,
“loss”: 169,
“draw”: 11
}
I want to add up the win/loss/draw numbers withing that bottom ‘record’ section and Beemind the total number.
Is this possible with the regex / curl integration? Can a Regex sum nubmers or is it just extracting the one figure?
If the former, can anyone help write it?
If the latter can I extract each separately and somehow have some meta goal to track the total?