Merge pull request #23 from OpzekerIT/dev

Dev
This commit is contained in:
Lanta 2023-09-26 15:39:33 +02:00 committed by GitHub
commit 83d050c599
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 1678 additions and 853 deletions

33
.github/workflows/main.yml vendored Normal file
View file

@ -0,0 +1,33 @@
on:
push:
branches:
- dev
- main
name: Publish Website
jobs:
web-deploy:
name: Deploy based on branch
runs-on: ubuntu-latest
steps:
- name: Get Latest Code
uses: actions/checkout@v3
- name: Set destination path based on branch
id: set-destination
run: |
if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
echo "DESTINATION=/var/www/lantaeu/DTCH//" >> $GITHUB_ENV
else
echo "DESTINATION=/var/www/lantaeu/DTCH_DEV/" >> $GITHUB_ENV
fi
- name: Sync Files from ${{ github.ref }}
uses: SamKirkland/web-deploy@v1
with:
target-server: lanta.eu
remote-user: stats
private-ssh-key: ${{ secrets.SSH_KEY }}
destination-path: ${{ env.DESTINATION }}
rsync-options: --no-times -r --exclude=.git* --exclude=*.json --exclude=.git/ --exclude=.github/ --exclude=config.php

3
.gitignore vendored
View file

@ -1,2 +1,3 @@
config/config.php config/config.php
data/telemetry_cache/* data/telemetry_cache/*
temp/*

View file

@ -3,13 +3,13 @@
"type": "player", "type": "player",
"id": "account.3e75bc1560664817900f3747e2270659", "id": "account.3e75bc1560664817900f3747e2270659",
"attributes": { "attributes": {
"patchVersion": "",
"banType": "Innocent",
"clanId": "clan.d67f3a9805414aa7b78a1f122a7de776",
"name": "Lanta01", "name": "Lanta01",
"stats": null, "stats": null,
"titleId": "pubg", "titleId": "pubg",
"shardId": "steam", "shardId": "steam"
"patchVersion": "",
"banType": "Innocent",
"clanId": "clan.d67f3a9805414aa7b78a1f122a7de776"
}, },
"relationships": { "relationships": {
"assets": { "assets": {
@ -17,6 +17,34 @@
}, },
"matches": { "matches": {
"data": [ "data": [
{
"type": "match",
"id": "bbf981b7-c33e-446a-a1ef-9500bb833621"
},
{
"type": "match",
"id": "1bb8855e-c8ef-411f-91ae-b50bf564b17d"
},
{
"type": "match",
"id": "4929ee06-5e9c-4ebb-a021-3c94ebae0ae9"
},
{
"type": "match",
"id": "a3984796-b23d-4389-b32c-32440dc14d28"
},
{
"type": "match",
"id": "10de7bb5-d2d2-485d-ac7b-b5e6e102b217"
},
{
"type": "match",
"id": "02fb076d-3eed-4867-bfb9-a42581770f0e"
},
{
"type": "match",
"id": "d4ce5799-3d0a-41aa-abf1-53ae2d32a778"
},
{ {
"type": "match", "type": "match",
"id": "ff8b0997-9faf-4e38-b0b2-a8abb85a1684" "id": "ff8b0997-9faf-4e38-b0b2-a8abb85a1684"
@ -301,20 +329,33 @@
"type": "player", "type": "player",
"id": "account.889799e275e94395aa1a9e66ec3e1ff2", "id": "account.889799e275e94395aa1a9e66ec3e1ff2",
"attributes": { "attributes": {
"name": "Petje1972",
"stats": null,
"titleId": "pubg", "titleId": "pubg",
"shardId": "steam", "shardId": "steam",
"patchVersion": "", "patchVersion": "",
"banType": "Innocent", "banType": "Innocent",
"clanId": "clan.d67f3a9805414aa7b78a1f122a7de776", "clanId": "clan.d67f3a9805414aa7b78a1f122a7de776"
"name": "Petje1972",
"stats": null
}, },
"relationships": { "relationships": {
"assets": {
"data": []
},
"matches": { "matches": {
"data": [ "data": [
{
"type": "match",
"id": "206202ac-789a-4cf3-8c71-993de77abba8"
},
{
"type": "match",
"id": "8c866bd5-ebe1-47cb-ac18-34b829047a17"
},
{
"type": "match",
"id": "bbf981b7-c33e-446a-a1ef-9500bb833621"
},
{
"type": "match",
"id": "1bb8855e-c8ef-411f-91ae-b50bf564b17d"
},
{ {
"type": "match", "type": "match",
"id": "2925480f-5732-4c66-8bb0-d03ac212edb6" "id": "2925480f-5732-4c66-8bb0-d03ac212edb6"
@ -508,6 +549,9 @@
"id": "ba1d8044-4c68-4d26-913c-2c941d4e664a" "id": "ba1d8044-4c68-4d26-913c-2c941d4e664a"
} }
] ]
},
"assets": {
"data": []
} }
}, },
"links": { "links": {
@ -519,13 +563,13 @@
"type": "player", "type": "player",
"id": "account.4622686b9d9f44209d64503b18d96a1d", "id": "account.4622686b9d9f44209d64503b18d96a1d",
"attributes": { "attributes": {
"name": "TaGMoM",
"stats": null,
"titleId": "pubg", "titleId": "pubg",
"shardId": "steam", "shardId": "steam",
"patchVersion": "", "patchVersion": "",
"banType": "Innocent", "banType": "Innocent",
"clanId": "clan.d67f3a9805414aa7b78a1f122a7de776" "clanId": "clan.d67f3a9805414aa7b78a1f122a7de776",
"name": "TaGMoM",
"stats": null
}, },
"relationships": { "relationships": {
"assets": { "assets": {
@ -631,17 +675,40 @@
"type": "player", "type": "player",
"id": "account.2322e3d471a5418696b6f14271afd83a", "id": "account.2322e3d471a5418696b6f14271afd83a",
"attributes": { "attributes": {
"stats": null,
"titleId": "pubg",
"shardId": "steam",
"patchVersion": "", "patchVersion": "",
"banType": "Innocent", "banType": "Innocent",
"clanId": "clan.d67f3a9805414aa7b78a1f122a7de776", "clanId": "clan.d67f3a9805414aa7b78a1f122a7de776",
"name": "Masistuta", "name": "Masistuta"
"stats": null,
"titleId": "pubg",
"shardId": "steam"
}, },
"relationships": { "relationships": {
"assets": {
"data": []
},
"matches": { "matches": {
"data": [ "data": [
{
"type": "match",
"id": "4929ee06-5e9c-4ebb-a021-3c94ebae0ae9"
},
{
"type": "match",
"id": "a3984796-b23d-4389-b32c-32440dc14d28"
},
{
"type": "match",
"id": "10de7bb5-d2d2-485d-ac7b-b5e6e102b217"
},
{
"type": "match",
"id": "02fb076d-3eed-4867-bfb9-a42581770f0e"
},
{
"type": "match",
"id": "d4ce5799-3d0a-41aa-abf1-53ae2d32a778"
},
{ {
"type": "match", "type": "match",
"id": "ff8b0997-9faf-4e38-b0b2-a8abb85a1684" "id": "ff8b0997-9faf-4e38-b0b2-a8abb85a1684"
@ -797,23 +864,8 @@
{ {
"type": "match", "type": "match",
"id": "3287ea91-9545-4bde-ac07-c1871330545b" "id": "3287ea91-9545-4bde-ac07-c1871330545b"
},
{
"type": "match",
"id": "9d324c46-62c1-440c-a9f4-d65a9cd9f184"
},
{
"type": "match",
"id": "56f88a51-7c01-4643-8e64-6ac378e20f8a"
},
{
"type": "match",
"id": "2be7878a-fd39-4b0f-9a82-411e301d5cc9"
} }
] ]
},
"assets": {
"data": []
} }
}, },
"links": { "links": {
@ -825,13 +877,13 @@
"type": "player", "type": "player",
"id": "account.275452133d6744d494a1b145da12f75a", "id": "account.275452133d6744d494a1b145da12f75a",
"attributes": { "attributes": {
"patchVersion": "",
"banType": "TemporaryBan",
"clanId": "clan.d67f3a9805414aa7b78a1f122a7de776",
"name": "RalphNorris", "name": "RalphNorris",
"stats": null, "stats": null,
"titleId": "pubg", "titleId": "pubg",
"shardId": "steam" "shardId": "steam",
"patchVersion": "",
"banType": "TemporaryBan",
"clanId": "clan.d67f3a9805414aa7b78a1f122a7de776"
}, },
"relationships": { "relationships": {
"assets": { "assets": {
@ -839,6 +891,38 @@
}, },
"matches": { "matches": {
"data": [ "data": [
{
"type": "match",
"id": "16fdb69f-a891-4a90-8b2e-709c89368c31"
},
{
"type": "match",
"id": "f2739494-7b8f-4a73-9f00-0641e35f5fac"
},
{
"type": "match",
"id": "fbd25217-9b62-40cd-8a5d-bbbde1858166"
},
{
"type": "match",
"id": "b4124311-09cb-4e35-a37c-0e373aa8c172"
},
{
"type": "match",
"id": "4929ee06-5e9c-4ebb-a021-3c94ebae0ae9"
},
{
"type": "match",
"id": "a3984796-b23d-4389-b32c-32440dc14d28"
},
{
"type": "match",
"id": "10de7bb5-d2d2-485d-ac7b-b5e6e102b217"
},
{
"type": "match",
"id": "02fb076d-3eed-4867-bfb9-a42581770f0e"
},
{ {
"type": "match", "type": "match",
"id": "270a18a6-381e-4dea-bf2c-392382e7fbe6" "id": "270a18a6-381e-4dea-bf2c-392382e7fbe6"
@ -1237,13 +1321,13 @@
"type": "player", "type": "player",
"id": "account.56ea56d593e440a48c3eaa5613b7eaa0", "id": "account.56ea56d593e440a48c3eaa5613b7eaa0",
"attributes": { "attributes": {
"banType": "Innocent",
"clanId": "clan.d67f3a9805414aa7b78a1f122a7de776",
"name": "Shepherders",
"stats": null, "stats": null,
"titleId": "pubg", "titleId": "pubg",
"shardId": "steam", "shardId": "steam",
"patchVersion": "", "patchVersion": ""
"banType": "Innocent",
"clanId": "clan.d67f3a9805414aa7b78a1f122a7de776",
"name": "Shepherders"
}, },
"relationships": { "relationships": {
"assets": { "assets": {
@ -1267,8 +1351,8 @@
} }
}, },
"links": { "links": {
"self": "https://api.pubg.com/shards/steam/players/account.56ea56d593e440a48c3eaa5613b7eaa0", "schema": "",
"schema": "" "self": "https://api.pubg.com/shards/steam/players/account.56ea56d593e440a48c3eaa5613b7eaa0"
} }
} }
] ]

View file

@ -1,21 +1,21 @@
[ [
{ {
"playername": "Lanta01", "playername": "Lanta01",
"deaths": 56.0, "deaths": 62.0,
"kills": 215.0, "kills": 241.0,
"humankills": 66.0, "humankills": 70.0,
"matches": 68, "matches": 75,
"KD_H": 1.1785714285714286, "KD_H": 1.1290322580645162,
"KD_ALL": 3.8392857142857144 "KD_ALL": 3.8870967741935485
}, },
{ {
"playername": "Petje1972", "playername": "Petje1972",
"deaths": 42.0, "deaths": 45.0,
"kills": 251.0, "kills": 278.0,
"humankills": 54.0, "humankills": 58.0,
"matches": 48, "matches": 52,
"KD_H": 1.2857142857142858, "KD_H": 1.288888888888889,
"KD_ALL": 5.976190476190476 "KD_ALL": 6.177777777777778
}, },
{ {
"playername": "TaGMoM", "playername": "TaGMoM",
@ -31,27 +31,27 @@
"deaths": 0.0, "deaths": 0.0,
"kills": 6.0, "kills": 6.0,
"humankills": 2.0, "humankills": 2.0,
"matches": 4, "matches": 1,
"KD_H": "Infinity", "KD_H": "Infinity",
"KD_ALL": "Infinity" "KD_ALL": "Infinity"
}, },
{ {
"playername": "Masistuta", "playername": "Masistuta",
"deaths": 31.0, "deaths": 33.0,
"kills": 139.0, "kills": 129.0,
"humankills": 17.0, "humankills": 15.0,
"matches": 42, "matches": 44,
"KD_H": 0.5483870967741935, "KD_H": 0.45454545454545453,
"KD_ALL": 4.483870967741935 "KD_ALL": 3.909090909090909
}, },
{ {
"playername": "RalphNorris", "playername": "RalphNorris",
"deaths": 42.0, "deaths": 49.0,
"kills": 80.0, "kills": 86.0,
"humankills": 10.0, "humankills": 13.0,
"matches": 47, "matches": 55,
"KD_H": 0.23809523809523808, "KD_H": 0.2653061224489796,
"KD_ALL": 1.9047619047619047 "KD_ALL": 1.7551020408163265
}, },
{ {
"playername": "Jimbo_The_One", "playername": "Jimbo_The_One",
@ -72,6 +72,6 @@
"KD_ALL": 1.3333333333333333 "KD_ALL": 1.3333333333333333
}, },
{ {
"updated": "09/25/2023 14:31:54 - Time Zone: W. Europe Standard Time" "updated": "09/25/2023 15:46:45 - Time Zone: W. Europe Standard Time"
} }
] ]

File diff suppressed because it is too large Load diff

View file

@ -2,6 +2,237 @@
{ {
"playername": "Lanta01", "playername": "Lanta01",
"player_matches": [ "player_matches": [
{
"stats": {
"DBNOs": 8,
"assists": 2,
"boosts": 5,
"damageDealt": 886.3064,
"deathType": "alive",
"headshotKills": 3,
"heals": 3,
"killPlace": 3,
"killStreaks": 2,
"kills": 10,
"longestKill": 318.32962,
"name": "Lanta01",
"playerId": "account.3e75bc1560664817900f3747e2270659",
"revives": 0,
"rideDistance": 3246.512,
"roadKills": 2,
"swimDistance": 33.03696,
"teamKills": 0,
"timeSurvived": 1453,
"vehicleDestroys": 0,
"walkDistance": 2613.3604,
"weaponsAcquired": 7,
"winPlace": 1
},
"matchType": "airoyale",
"gameMode": "squad",
"createdAt": "2023-09-25T10:37:37Z",
"mapName": "Baltic_Main",
"winPlace": null,
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/25/11/03/21c118c8-5b93-11ee-8cd4-c6b838739614-telemetry.json"
},
{
"stats": {
"DBNOs": 6,
"assists": 2,
"boosts": 7,
"damageDealt": 712.2809,
"deathType": "suicide",
"headshotKills": 0,
"heals": 4,
"killPlace": 3,
"killStreaks": 1,
"kills": 6,
"longestKill": 255.95636,
"name": "Lanta01",
"playerId": "account.3e75bc1560664817900f3747e2270659",
"revives": 0,
"rideDistance": 3036.7332,
"roadKills": 1,
"swimDistance": 0,
"teamKills": 0,
"timeSurvived": 1349,
"vehicleDestroys": 0,
"walkDistance": 1618.8928,
"weaponsAcquired": 3,
"winPlace": 2
},
"matchType": "airoyale",
"gameMode": "squad",
"createdAt": "2023-09-25T10:11:00Z",
"mapName": "Baltic_Main",
"winPlace": null,
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/25/10/35/2f50125f-5b8f-11ee-990e-026aeadcea5f-telemetry.json"
},
{
"stats": {
"DBNOs": 1,
"assists": 0,
"boosts": 2,
"damageDealt": 130.39995,
"deathType": "byplayer",
"headshotKills": 0,
"heals": 0,
"killPlace": 75,
"killStreaks": 0,
"kills": 0,
"longestKill": 0,
"name": "Lanta01",
"playerId": "account.3e75bc1560664817900f3747e2270659",
"revives": 0,
"rideDistance": 0,
"roadKills": 0,
"swimDistance": 0,
"teamKills": 0,
"timeSurvived": 614,
"vehicleDestroys": 0,
"walkDistance": 355.87756,
"weaponsAcquired": 7,
"winPlace": 15
},
"matchType": "official",
"gameMode": "squad",
"createdAt": "2023-09-24T19:53:53Z",
"mapName": "Kiki_Main",
"winPlace": null,
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/24/20/20/d5a246a7-5b17-11ee-905d-ea3d0a7cd35b-telemetry.json"
},
{
"stats": {
"DBNOs": 0,
"assists": 0,
"boosts": 2,
"damageDealt": 63.950077,
"deathType": "byplayer",
"headshotKills": 0,
"heals": 0,
"killPlace": 93,
"killStreaks": 0,
"kills": 0,
"longestKill": 0,
"name": "Lanta01",
"playerId": "account.3e75bc1560664817900f3747e2270659",
"revives": 0,
"rideDistance": 0,
"roadKills": 0,
"swimDistance": 0,
"teamKills": 0,
"timeSurvived": 179,
"vehicleDestroys": 0,
"walkDistance": 116.12438,
"weaponsAcquired": 2,
"winPlace": 26
},
"matchType": "official",
"gameMode": "squad",
"createdAt": "2023-09-24T19:48:33Z",
"mapName": "Tiger_Main",
"winPlace": null,
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/24/20/16/3050f9b6-5b17-11ee-901a-7ece04cecb67-telemetry.json"
},
{
"stats": {
"DBNOs": 1,
"assists": 0,
"boosts": 4,
"damageDealt": 50.77501,
"deathType": "byplayer",
"headshotKills": 0,
"heals": 1,
"killPlace": 28,
"killStreaks": 1,
"kills": 1,
"longestKill": 26.460617,
"name": "Lanta01",
"playerId": "account.3e75bc1560664817900f3747e2270659",
"revives": 0,
"rideDistance": 6364.86,
"roadKills": 0,
"swimDistance": 0,
"teamKills": 0,
"timeSurvived": 962,
"vehicleDestroys": 0,
"walkDistance": 905.48016,
"weaponsAcquired": 4,
"winPlace": 14
},
"matchType": "official",
"gameMode": "squad",
"createdAt": "2023-09-24T19:30:29Z",
"mapName": "Kiki_Main",
"winPlace": null,
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/24/20/00/fc142200-5b14-11ee-a712-be3d4415d0c7-telemetry.json"
},
{
"stats": {
"DBNOs": 1,
"assists": 3,
"boosts": 3,
"damageDealt": 222.55,
"deathType": "byplayer",
"headshotKills": 0,
"heals": 1,
"killPlace": 82,
"killStreaks": 0,
"kills": 0,
"longestKill": 0,
"name": "Lanta01",
"playerId": "account.3e75bc1560664817900f3747e2270659",
"revives": 0,
"rideDistance": 0,
"roadKills": 0,
"swimDistance": 0,
"teamKills": 0,
"timeSurvived": 649,
"vehicleDestroys": 0,
"walkDistance": 607.5655,
"weaponsAcquired": 6,
"winPlace": 19
},
"matchType": "airoyale",
"gameMode": "squad",
"createdAt": "2023-09-24T19:15:49Z",
"mapName": "Baltic_Main",
"winPlace": null,
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/24/19/38/005d7978-5b12-11ee-8ee5-de5b713e6176-telemetry.json"
},
{
"stats": {
"DBNOs": 6,
"assists": 0,
"boosts": 1,
"damageDealt": 633.63293,
"deathType": "byplayer",
"headshotKills": 0,
"heals": 0,
"killPlace": 2,
"killStreaks": 3,
"kills": 9,
"longestKill": 111.11395,
"name": "Lanta01",
"playerId": "account.3e75bc1560664817900f3747e2270659",
"revives": 0,
"rideDistance": 0,
"roadKills": 0,
"swimDistance": 0,
"teamKills": 0,
"timeSurvived": 511,
"vehicleDestroys": 0,
"walkDistance": 1085.2523,
"weaponsAcquired": 4,
"winPlace": 22
},
"matchType": "airoyale",
"gameMode": "squad",
"createdAt": "2023-09-24T19:03:15Z",
"mapName": "Baltic_Main",
"winPlace": null,
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/24/19/28/99377539-5b10-11ee-8282-1a4ce009acb1-telemetry.json"
},
{ {
"stats": { "stats": {
"DBNOs": 6, "DBNOs": 6,
@ -2247,11 +2478,143 @@
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/11/18/34/e3e42278-50d1-11ee-8cd4-c6b838739614-telemetry.json" "telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/11/18/34/e3e42278-50d1-11ee-8cd4-c6b838739614-telemetry.json"
} }
], ],
"updated": "09/25/2023 12:09:17 - Time Zone: W. Europe Standard Time" "updated": "09/25/2023 15:36:22 - Time Zone: W. Europe Standard Time"
}, },
{ {
"playername": "Petje1972", "playername": "Petje1972",
"player_matches": [ "player_matches": [
{
"stats": {
"DBNOs": 6,
"assists": 0,
"boosts": 3,
"damageDealt": 917.6439,
"deathType": "byplayer",
"headshotKills": 3,
"heals": 2,
"killPlace": 1,
"killStreaks": 3,
"kills": 8,
"longestKill": 320.98984,
"name": "Petje1972",
"playerId": "account.889799e275e94395aa1a9e66ec3e1ff2",
"revives": 0,
"rideDistance": 3611.3938,
"roadKills": 0,
"swimDistance": 0,
"teamKills": 0,
"timeSurvived": 1304,
"vehicleDestroys": 0,
"walkDistance": 1633.88,
"weaponsAcquired": 7,
"winPlace": 7
},
"matchType": "official",
"gameMode": "squad-fpp",
"createdAt": "2023-09-25T11:51:51Z",
"mapName": "Baltic_Main",
"winPlace": null,
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/25/12/17/8b0bcba4-5b9d-11ee-af69-eaab7ee4795a-telemetry.json"
},
{
"stats": {
"DBNOs": 1,
"assists": 0,
"boosts": 0,
"damageDealt": 3.4000015,
"deathType": "byplayer",
"headshotKills": 0,
"heals": 0,
"killPlace": 44,
"killStreaks": 1,
"kills": 1,
"longestKill": 12.956953,
"name": "Petje1972",
"playerId": "account.889799e275e94395aa1a9e66ec3e1ff2",
"revives": 0,
"rideDistance": 0,
"roadKills": 0,
"swimDistance": 0,
"teamKills": 0,
"timeSurvived": 129,
"vehicleDestroys": 0,
"walkDistance": 106.61135,
"weaponsAcquired": 1,
"winPlace": 28
},
"matchType": "official",
"gameMode": "squad-fpp",
"createdAt": "2023-09-25T11:47:45Z",
"mapName": "Kiki_Main",
"winPlace": null,
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/25/12/14/237bea31-5b9d-11ee-abac-3e2f586958d9-telemetry.json"
},
{
"stats": {
"DBNOs": 6,
"assists": 4,
"boosts": 4,
"damageDealt": 873.84094,
"deathType": "alive",
"headshotKills": 0,
"heals": 5,
"killPlace": 1,
"killStreaks": 4,
"kills": 12,
"longestKill": 208.75186,
"name": "Petje1972",
"playerId": "account.889799e275e94395aa1a9e66ec3e1ff2",
"revives": 1,
"rideDistance": 3670.549,
"roadKills": 0,
"swimDistance": 29.682655,
"teamKills": 0,
"timeSurvived": 1453,
"vehicleDestroys": 0,
"walkDistance": 2678.8896,
"weaponsAcquired": 2,
"winPlace": 1
},
"matchType": "airoyale",
"gameMode": "squad",
"createdAt": "2023-09-25T10:37:37Z",
"mapName": "Baltic_Main",
"winPlace": null,
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/25/11/03/21c118c8-5b93-11ee-8cd4-c6b838739614-telemetry.json"
},
{
"stats": {
"DBNOs": 6,
"assists": 1,
"boosts": 5,
"damageDealt": 899.42975,
"deathType": "byzone",
"headshotKills": 4,
"heals": 6,
"killPlace": 2,
"killStreaks": 2,
"kills": 6,
"longestKill": 205.77196,
"name": "Petje1972",
"playerId": "account.889799e275e94395aa1a9e66ec3e1ff2",
"revives": 0,
"rideDistance": 2922.4688,
"roadKills": 0,
"swimDistance": 0,
"teamKills": 0,
"timeSurvived": 1349,
"vehicleDestroys": 0,
"walkDistance": 2104.3938,
"weaponsAcquired": 4,
"winPlace": 2
},
"matchType": "airoyale",
"gameMode": "squad",
"createdAt": "2023-09-25T10:11:00Z",
"mapName": "Baltic_Main",
"winPlace": null,
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/25/10/35/2f50125f-5b8f-11ee-990e-026aeadcea5f-telemetry.json"
},
{ {
"stats": { "stats": {
"DBNOs": 5, "DBNOs": 5,
@ -3837,7 +4200,7 @@
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/12/18/09/90e57fab-5197-11ee-b327-a603fda02b94-telemetry.json" "telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/12/18/09/90e57fab-5197-11ee-b327-a603fda02b94-telemetry.json"
} }
], ],
"updated": "09/25/2023 12:09:17 - Time Zone: W. Europe Standard Time" "updated": "09/25/2023 15:36:22 - Time Zone: W. Europe Standard Time"
}, },
{ {
"playername": "TaGMoM", "playername": "TaGMoM",
@ -4305,7 +4668,7 @@
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/14/11/23/2e20b38c-52f1-11ee-bd79-1a90a50a3402-telemetry.json" "telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/14/11/23/2e20b38c-52f1-11ee-bd79-1a90a50a3402-telemetry.json"
} }
], ],
"updated": "09/25/2023 12:09:17 - Time Zone: W. Europe Standard Time" "updated": "09/25/2023 15:36:22 - Time Zone: W. Europe Standard Time"
}, },
{ {
"playername": "r00tger", "playername": "r00tger",
@ -4344,11 +4707,176 @@
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/14/11/48/a6259b89-52f4-11ee-b3b4-320d412bac21-telemetry.json" "telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/14/11/48/a6259b89-52f4-11ee-b3b4-320d412bac21-telemetry.json"
} }
], ],
"updated": "09/25/2023 12:09:17 - Time Zone: W. Europe Standard Time" "updated": "09/25/2023 15:36:22 - Time Zone: W. Europe Standard Time"
}, },
{ {
"playername": "Masistuta", "playername": "Masistuta",
"player_matches": [ "player_matches": [
{
"stats": {
"DBNOs": 0,
"assists": 0,
"boosts": 0,
"damageDealt": 0,
"deathType": "byplayer",
"headshotKills": 0,
"heals": 0,
"killPlace": 76,
"killStreaks": 0,
"kills": 0,
"longestKill": 0,
"name": "Masistuta",
"playerId": "account.2322e3d471a5418696b6f14271afd83a",
"revives": 0,
"rideDistance": 0,
"roadKills": 0,
"swimDistance": 0,
"teamKills": 0,
"timeSurvived": 324,
"vehicleDestroys": 0,
"walkDistance": 42.33229,
"weaponsAcquired": 2,
"winPlace": 15
},
"matchType": "official",
"gameMode": "squad",
"createdAt": "2023-09-24T19:53:53Z",
"mapName": "Kiki_Main",
"winPlace": null,
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/24/20/20/d5a246a7-5b17-11ee-905d-ea3d0a7cd35b-telemetry.json"
},
{
"stats": {
"DBNOs": 0,
"assists": 0,
"boosts": 0,
"damageDealt": 0,
"deathType": "byplayer",
"headshotKills": 0,
"heals": 0,
"killPlace": 90,
"killStreaks": 0,
"kills": 0,
"longestKill": 0,
"name": "Masistuta",
"playerId": "account.2322e3d471a5418696b6f14271afd83a",
"revives": 0,
"rideDistance": 0,
"roadKills": 0,
"swimDistance": 0,
"teamKills": 0,
"timeSurvived": 210,
"vehicleDestroys": 0,
"walkDistance": 147.18365,
"weaponsAcquired": 3,
"winPlace": 26
},
"matchType": "official",
"gameMode": "squad",
"createdAt": "2023-09-24T19:48:33Z",
"mapName": "Tiger_Main",
"winPlace": null,
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/24/20/16/3050f9b6-5b17-11ee-901a-7ece04cecb67-telemetry.json"
},
{
"stats": {
"DBNOs": 0,
"assists": 1,
"boosts": 1,
"damageDealt": 0,
"deathType": "byplayer",
"headshotKills": 0,
"heals": 0,
"killPlace": 55,
"killStreaks": 0,
"kills": 0,
"longestKill": 0,
"name": "Masistuta",
"playerId": "account.2322e3d471a5418696b6f14271afd83a",
"revives": 1,
"rideDistance": 5978.105,
"roadKills": 0,
"swimDistance": 0,
"teamKills": 0,
"timeSurvived": 962,
"vehicleDestroys": 0,
"walkDistance": 1249.1031,
"weaponsAcquired": 5,
"winPlace": 14
},
"matchType": "official",
"gameMode": "squad",
"createdAt": "2023-09-24T19:30:29Z",
"mapName": "Kiki_Main",
"winPlace": null,
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/24/20/00/fc142200-5b14-11ee-a712-be3d4415d0c7-telemetry.json"
},
{
"stats": {
"DBNOs": 0,
"assists": 1,
"boosts": 3,
"damageDealt": 100.53,
"deathType": "byplayer",
"headshotKills": 0,
"heals": 1,
"killPlace": 81,
"killStreaks": 0,
"kills": 0,
"longestKill": 0,
"name": "Masistuta",
"playerId": "account.2322e3d471a5418696b6f14271afd83a",
"revives": 1,
"rideDistance": 0,
"roadKills": 0,
"swimDistance": 0,
"teamKills": 0,
"timeSurvived": 655,
"vehicleDestroys": 0,
"walkDistance": 451.6171,
"weaponsAcquired": 5,
"winPlace": 19
},
"matchType": "airoyale",
"gameMode": "squad",
"createdAt": "2023-09-24T19:15:49Z",
"mapName": "Baltic_Main",
"winPlace": null,
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/24/19/38/005d7978-5b12-11ee-8ee5-de5b713e6176-telemetry.json"
},
{
"stats": {
"DBNOs": 2,
"assists": 0,
"boosts": 1,
"damageDealt": 325.9016,
"deathType": "byplayer",
"headshotKills": 1,
"heals": 0,
"killPlace": 14,
"killStreaks": 1,
"kills": 2,
"longestKill": 66.0195,
"name": "Masistuta",
"playerId": "account.2322e3d471a5418696b6f14271afd83a",
"revives": 0,
"rideDistance": 0,
"roadKills": 0,
"swimDistance": 0,
"teamKills": 0,
"timeSurvived": 399,
"vehicleDestroys": 0,
"walkDistance": 404.44937,
"weaponsAcquired": 4,
"winPlace": 22
},
"matchType": "airoyale",
"gameMode": "squad",
"createdAt": "2023-09-24T19:03:15Z",
"mapName": "Baltic_Main",
"winPlace": null,
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/24/19/28/99377539-5b10-11ee-8282-1a4ce009acb1-telemetry.json"
},
{ {
"stats": { "stats": {
"DBNOs": 5, "DBNOs": 5,
@ -5635,112 +6163,277 @@
"mapName": "Baltic_Main", "mapName": "Baltic_Main",
"winPlace": null, "winPlace": null,
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/11/13/46/969ff129-50a9-11ee-b4fa-6e5db6ee91ec-telemetry.json" "telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/11/13/46/969ff129-50a9-11ee-b4fa-6e5db6ee91ec-telemetry.json"
}, }
],
"updated": "09/25/2023 15:36:22 - Time Zone: W. Europe Standard Time"
},
{
"playername": "RalphNorris",
"player_matches": [
{ {
"stats": { "stats": {
"DBNOs": 4, "DBNOs": 0,
"assists": 0,
"boosts": 3,
"damageDealt": 799.3536,
"deathType": "byplayer",
"headshotKills": 1,
"heals": 2,
"killPlace": 4,
"killStreaks": 1,
"kills": 6,
"longestKill": 118.27331,
"name": "Masistuta",
"playerId": "account.2322e3d471a5418696b6f14271afd83a",
"revives": 0,
"rideDistance": 2023.1421,
"roadKills": 0,
"swimDistance": 0,
"teamKills": 0,
"timeSurvived": 1356,
"vehicleDestroys": 0,
"walkDistance": 1440.4431,
"weaponsAcquired": 8,
"winPlace": 4
},
"matchType": "airoyale",
"gameMode": "squad",
"createdAt": "2023-09-10T17:55:31Z",
"mapName": "Baltic_Main",
"winPlace": null,
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/10/18/22/105e73e5-5007-11ee-b587-ce82a5679561-telemetry.json"
},
{
"stats": {
"DBNOs": 5,
"assists": 1, "assists": 1,
"boosts": 10, "boosts": 0,
"damageDealt": 535.8851, "damageDealt": 36.472443,
"deathType": "byplayer", "deathType": "alive",
"headshotKills": 3, "headshotKills": 0,
"heals": 2, "heals": 0,
"killPlace": 2, "killPlace": 7,
"killStreaks": 2, "killStreaks": 0,
"kills": 5, "kills": 0,
"longestKill": 104.6342, "longestKill": 0,
"name": "Masistuta", "name": "RalphNorris",
"playerId": "account.2322e3d471a5418696b6f14271afd83a", "playerId": "account.275452133d6744d494a1b145da12f75a",
"revives": 0, "revives": 0,
"rideDistance": 5629.7764, "rideDistance": 195.56102,
"roadKills": 0, "roadKills": 0,
"swimDistance": 0, "swimDistance": 0,
"teamKills": 0, "teamKills": 0,
"timeSurvived": 1202, "timeSurvived": 348,
"vehicleDestroys": 0, "vehicleDestroys": 0,
"walkDistance": 1351.1239, "walkDistance": 771.04376,
"weaponsAcquired": 8, "weaponsAcquired": 0,
"winPlace": 1 "winPlace": 1
}, },
"matchType": "airoyale", "matchType": "event",
"gameMode": "squad", "gameMode": "ibr",
"createdAt": "2023-09-10T17:30:38Z", "createdAt": "2023-09-24T21:51:38Z",
"mapName": "Baltic_Main", "mapName": "Baltic_Main",
"winPlace": null, "winPlace": null,
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/10/17/54/1b667cac-5003-11ee-8fcf-aa78542feff2-telemetry.json" "telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/24/21/59/94807d99-5b25-11ee-9ab1-c2fd02434310-telemetry.json"
},
{
"stats": {
"DBNOs": 0,
"assists": 0,
"boosts": 2,
"damageDealt": 0,
"deathType": "byplayer",
"headshotKills": 0,
"heals": 0,
"killPlace": 12,
"killStreaks": 0,
"kills": 0,
"longestKill": 0,
"name": "RalphNorris",
"playerId": "account.275452133d6744d494a1b145da12f75a",
"revives": 2,
"rideDistance": 531.46826,
"roadKills": 0,
"swimDistance": 0,
"teamKills": 0,
"timeSurvived": 324,
"vehicleDestroys": 0,
"walkDistance": 225.23013,
"weaponsAcquired": 0,
"winPlace": 4
},
"matchType": "event",
"gameMode": "ibr",
"createdAt": "2023-09-24T21:42:59Z",
"mapName": "Kiki_Main",
"winPlace": null,
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/24/21/55/24bbc61d-5b25-11ee-abac-3e2f586958d9-telemetry.json"
},
{
"stats": {
"DBNOs": 0,
"assists": 0,
"boosts": 0,
"damageDealt": 61.424995,
"deathType": "byplayer",
"headshotKills": 0,
"heals": 0,
"killPlace": 9,
"killStreaks": 0,
"kills": 0,
"longestKill": 0,
"name": "RalphNorris",
"playerId": "account.275452133d6744d494a1b145da12f75a",
"revives": 0,
"rideDistance": 0,
"roadKills": 0,
"swimDistance": 0,
"teamKills": 0,
"timeSurvived": 50,
"vehicleDestroys": 0,
"walkDistance": 0,
"weaponsAcquired": 0,
"winPlace": 1
},
"matchType": "event",
"gameMode": "ibr",
"createdAt": "2023-09-24T21:40:42Z",
"mapName": "Baltic_Main",
"winPlace": null,
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/24/21/47/f1527e9c-5b23-11ee-b587-ce82a5679561-telemetry.json"
}, },
{ {
"stats": { "stats": {
"DBNOs": 1, "DBNOs": 1,
"assists": 0, "assists": 0,
"boosts": 0, "boosts": 0,
"damageDealt": 99.99999, "damageDealt": 82.45367,
"deathType": "byplayer", "deathType": "byplayer",
"headshotKills": 0, "headshotKills": 0,
"heals": 0, "heals": 0,
"killPlace": 37, "killPlace": 19,
"killStreaks": 1, "killStreaks": 1,
"kills": 1, "kills": 2,
"longestKill": 31.24933, "longestKill": 164.2975,
"name": "Masistuta", "name": "RalphNorris",
"playerId": "account.2322e3d471a5418696b6f14271afd83a", "playerId": "account.275452133d6744d494a1b145da12f75a",
"revives": 0, "revives": 0,
"rideDistance": 0, "rideDistance": 0,
"roadKills": 0, "roadKills": 0,
"swimDistance": 0, "swimDistance": 0,
"teamKills": 0, "teamKills": 0,
"timeSurvived": 327, "timeSurvived": 757,
"vehicleDestroys": 0, "vehicleDestroys": 0,
"walkDistance": 107.84262, "walkDistance": 1519.2898,
"weaponsAcquired": 2, "weaponsAcquired": 6,
"winPlace": 25 "winPlace": 16
}, },
"matchType": "airoyale", "matchType": "airoyale",
"gameMode": "squad", "gameMode": "squad",
"createdAt": "2023-09-10T17:23:30Z", "createdAt": "2023-09-24T21:23:51Z",
"mapName": "Baltic_Main", "mapName": "Baltic_Main",
"winPlace": null, "winPlace": null,
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/10/17/47/102fa40e-5002-11ee-a4e2-7ebe37b5a259-telemetry.json" "telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/24/21/51/9170b42f-5b24-11ee-8282-1a4ce009acb1-telemetry.json"
} },
], {
"updated": "09/25/2023 12:09:17 - Time Zone: W. Europe Standard Time" "stats": {
}, "DBNOs": 0,
{ "assists": 0,
"playername": "RalphNorris", "boosts": 0,
"player_matches": [ "damageDealt": 0,
"deathType": "byplayer",
"headshotKills": 0,
"heals": 0,
"killPlace": 77,
"killStreaks": 0,
"kills": 0,
"longestKill": 0,
"name": "RalphNorris",
"playerId": "account.275452133d6744d494a1b145da12f75a",
"revives": 0,
"rideDistance": 0,
"roadKills": 0,
"swimDistance": 0,
"teamKills": 0,
"timeSurvived": 207,
"vehicleDestroys": 0,
"walkDistance": 208.38188,
"weaponsAcquired": 4,
"winPlace": 15
},
"matchType": "official",
"gameMode": "squad",
"createdAt": "2023-09-24T19:53:53Z",
"mapName": "Kiki_Main",
"winPlace": null,
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/24/20/20/d5a246a7-5b17-11ee-905d-ea3d0a7cd35b-telemetry.json"
},
{
"stats": {
"DBNOs": 2,
"assists": 0,
"boosts": 0,
"damageDealt": 68.97999,
"deathType": "byplayer",
"headshotKills": 0,
"heals": 0,
"killPlace": 91,
"killStreaks": 0,
"kills": 0,
"longestKill": 0,
"name": "RalphNorris",
"playerId": "account.275452133d6744d494a1b145da12f75a",
"revives": 1,
"rideDistance": 0,
"roadKills": 0,
"swimDistance": 0,
"teamKills": 1,
"timeSurvived": 210,
"vehicleDestroys": 0,
"walkDistance": 238.12502,
"weaponsAcquired": 6,
"winPlace": 26
},
"matchType": "official",
"gameMode": "squad",
"createdAt": "2023-09-24T19:48:33Z",
"mapName": "Tiger_Main",
"winPlace": null,
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/24/20/16/3050f9b6-5b17-11ee-901a-7ece04cecb67-telemetry.json"
},
{
"stats": {
"DBNOs": 0,
"assists": 0,
"boosts": 2,
"damageDealt": 0,
"deathType": "byplayer",
"headshotKills": 0,
"heals": 2,
"killPlace": 56,
"killStreaks": 0,
"kills": 0,
"longestKill": 0,
"name": "RalphNorris",
"playerId": "account.275452133d6744d494a1b145da12f75a",
"revives": 0,
"rideDistance": 5582.118,
"roadKills": 0,
"swimDistance": 0,
"teamKills": 0,
"timeSurvived": 962,
"vehicleDestroys": 0,
"walkDistance": 1231.7125,
"weaponsAcquired": 8,
"winPlace": 14
},
"matchType": "official",
"gameMode": "squad",
"createdAt": "2023-09-24T19:30:29Z",
"mapName": "Kiki_Main",
"winPlace": null,
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/24/20/00/fc142200-5b14-11ee-a712-be3d4415d0c7-telemetry.json"
},
{
"stats": {
"DBNOs": 4,
"assists": 0,
"boosts": 3,
"damageDealt": 372.7671,
"deathType": "byplayer",
"headshotKills": 0,
"heals": 3,
"killPlace": 3,
"killStreaks": 1,
"kills": 4,
"longestKill": 62.41495,
"name": "RalphNorris",
"playerId": "account.275452133d6744d494a1b145da12f75a",
"revives": 1,
"rideDistance": 0,
"roadKills": 0,
"swimDistance": 0,
"teamKills": 0,
"timeSurvived": 719,
"vehicleDestroys": 0,
"walkDistance": 876.65967,
"weaponsAcquired": 4,
"winPlace": 19
},
"matchType": "airoyale",
"gameMode": "squad",
"createdAt": "2023-09-24T19:15:49Z",
"mapName": "Baltic_Main",
"winPlace": null,
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/24/19/38/005d7978-5b12-11ee-8ee5-de5b713e6176-telemetry.json"
},
{ {
"stats": { "stats": {
"DBNOs": 3, "DBNOs": 3,
@ -7293,7 +7986,7 @@
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/11/18/34/e3e42278-50d1-11ee-8cd4-c6b838739614-telemetry.json" "telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/11/18/34/e3e42278-50d1-11ee-8cd4-c6b838739614-telemetry.json"
} }
], ],
"updated": "09/25/2023 12:09:17 - Time Zone: W. Europe Standard Time" "updated": "09/25/2023 15:36:22 - Time Zone: W. Europe Standard Time"
}, },
{ {
"playername": "Jimbo_The_One", "playername": "Jimbo_The_One",
@ -8718,7 +9411,7 @@
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/14/18/37/b6b9fd8a-532d-11ee-a8f4-26212bd29e07-telemetry.json" "telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/14/18/37/b6b9fd8a-532d-11ee-a8f4-26212bd29e07-telemetry.json"
} }
], ],
"updated": "09/25/2023 12:09:17 - Time Zone: W. Europe Standard Time" "updated": "09/25/2023 15:36:22 - Time Zone: W. Europe Standard Time"
}, },
{ {
"playername": "Shepherders", "playername": "Shepherders",
@ -8823,6 +9516,6 @@
"telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/20/21/46/18d3e6b3-57ff-11ee-9e75-4ee4a9ad5f0e-telemetry.json" "telemetry_url": "https://telemetry-cdn.pubg.com/bluehole-pubg/steam/2023/09/20/21/46/18d3e6b3-57ff-11ee-9e75-4ee4a9ad5f0e-telemetry.json"
} }
], ],
"updated": "09/25/2023 12:09:17 - Time Zone: W. Europe Standard Time" "updated": "09/25/2023 15:36:22 - Time Zone: W. Europe Standard Time"
} }
] ]

View file

@ -5,7 +5,7 @@
<li><a href="user_stats.php">User Stats</a></li> <li><a href="user_stats.php">User Stats</a></li>
<li><a href="topstats.php">Top10</a></li> <li><a href="topstats.php">Top10</a></li>
<li><a href="topstatsavg.php">Match % T10</a></li> <li><a href="topstatsavg.php">Match % T10</a></li>
<li><a href="latestmatches.php">Last 10 Matches</a></li> <li><a href="latestmatches.php">Last Matches</a></li>
<li><a href="last_stats.php">Last 14 days %</a></li> <li><a href="last_stats.php">Last 14 days %</a></li>
</ul> </ul>

View file

@ -1,7 +1,8 @@
if($PSScriptRoot.length -eq 0){ if ($PSScriptRoot.length -eq 0) {
$scriptroot = Get-Location $scriptroot = Get-Location
}else{ }
else {
$scriptroot = $PSScriptRoot $scriptroot = $PSScriptRoot
} }
@ -43,13 +44,14 @@ foreach ($player in $all_player_matches) {
$telemetry_content = (Invoke-WebRequest -Uri $match.telemetry_url).content $telemetry_content = (Invoke-WebRequest -Uri $match.telemetry_url).content
$telemetry_content | out-file $telemetryfile $telemetry_content | out-file $telemetryfile
$telemetry = $telemetry_content | ConvertFrom-Json $telemetry = $telemetry_content | ConvertFrom-Json
}else{ }
else {
write-output "Getting from cache $telemetryfile" write-output "Getting from cache $telemetryfile"
$telemetry = get-content $telemetryfile | convertfrom-json $telemetry = get-content $telemetryfile | convertfrom-json
} }
write-output "Analyzing for player $player_name telemetry: $($match.telemetry_url)" write-output "Analyzing for player $player_name telemetry: $($match.telemetry_url)"
$killstats += get-killstats -player_name $player_name -telemetry ($telemetry | where-object {$_._T -eq 'LOGPLAYERKILLV2'}) $killstats += get-killstats -player_name $player_name -telemetry ($telemetry | where-object { $_._T -eq 'LOGPLAYERKILLV2' })
} }
} }
@ -67,13 +69,10 @@ foreach ($player in $all_player_matches.playername) {
deaths = $deaths deaths = $deaths
kills = $kills kills = $kills
humankills = $humankills humankills = $humankills
matches = ($killstats | where-object { $_.playername -eq $player }).count matches = ($all_player_matches | where-object { $_.playername -eq $player }).player_matches.count
KD_H = $humankills / $deaths KD_H = $humankills / $deaths
KD_ALL = $kills / $deaths KD_ALL = $kills / $deaths
} }
} }
$currentDateTime = Get-Date $currentDateTime = Get-Date
@ -87,10 +86,21 @@ $formattedString = "$currentDateTime - Time Zone: $currentTimezone"
# Output the formatted string # Output the formatted string
$playerstats += [PSCustomObject]@{ $playerstats += [PSCustomObject]@{
updated = $formattedString updated = $formattedString
} }
write-output "Writing file"
($playerstats | convertto-json) | out-file "$scriptroot/../data/player_last_stats.json" ($playerstats | convertto-json) | out-file "$scriptroot/../data/player_last_stats.json"
write-output "Cleaning cache"
$files_keep = (($all_player_matches).player_matches.telemetry_url | Select-Object -Unique) | ForEach-Object { $_.split("/")[-1] }
$files_cache = (get-childitem "$scriptroot/../data/telemetry_cache/").name
$difference = (Compare-Object -ReferenceObject $files_keep -DifferenceObject $files_cache | Where-Object { $_.SideIndicator -eq "=>" }).InputObject
foreach ($file in $difference) {
write-output "removing $scriptroot/../data/telemetry_cache/$file"
Remove-Item -Path "$scriptroot/../data/telemetry_cache/$file"
}
write-output "Operation complete"

View file

@ -59,9 +59,9 @@ $playermodes = @(
"solo", "solo",
"duo", "duo",
"squad" "squad"
#"solo-fpp", "solo-fpp",
#"duo-fpp", "duo-fpp",
#"squad-fpp" "squad-fpp"
) )
# Initialize the master hashtable # Initialize the master hashtable
$lifetimestats = @{} $lifetimestats = @{}

View file

@ -32,6 +32,10 @@ error_reporting(E_ALL);
<input type='submit' name='game_mode' value='solo' class='btn'> <input type='submit' name='game_mode' value='solo' class='btn'>
<input type='submit' name='game_mode' value='duo' class='btn'> <input type='submit' name='game_mode' value='duo' class='btn'>
<input type='submit' name='game_mode' value='squad' class='btn'> <input type='submit' name='game_mode' value='squad' class='btn'>
<input type='submit' name='game_mode' value='solo-fpp' class='btn'>
<input type='submit' name='game_mode' value='duo-fpp' class='btn'>
<input type='submit' name='game_mode' value='squad-fpp' class='btn'>
</form><br>"; </form><br>";
// Buttons for each player // Buttons for each player