You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
861 B
34 lines
861 B
2 years ago
|
# Steam Capturer
|
||
|
|
||
|
Steam Capturer captures the daily plays on Steam games. Achievements could also
|
||
|
be captured.
|
||
|
|
||
|
[Steam API documentation](https://steamcommunity.com/dev). We could capture
|
||
|
"Recently Played Games" and "Get Player Achievements".
|
||
|
|
||
|
## Configuration
|
||
|
|
||
|
The only required configuration is the Steam ID.
|
||
|
|
||
|
## Internals
|
||
|
|
||
|
We need to keep, locally:
|
||
|
|
||
|
- Current list of achievements: We compare this with the new list and find out
|
||
|
the new ones.
|
||
|
- Time in each game "recently played", or some sort of "time played" bootstrap
|
||
|
method. We compare this with the Recently Played list to produce a list of
|
||
|
Time played.
|
||
|
|
||
|
## Output
|
||
|
|
||
|
```
|
||
|
{% for game in played_games %}
|
||
|
Played {{ game.name }} for {{ game.time }}.
|
||
|
{% endfor %}
|
||
|
|
||
|
{% for achievement in new_achievements %}
|
||
|
Completed {{ achievement.name }} in {{ achievement.game }}.
|
||
|
{% endfor %}
|
||
|
```
|