-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathProjectZomboidReporter-Ingester_unraid.xml
More file actions
138 lines (138 loc) · 5.67 KB
/
ProjectZomboidReporter-Ingester_unraid.xml
File metadata and controls
138 lines (138 loc) · 5.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<?xml version="1.0"?>
<Container version="2">
<Name>ProjectZomboidReporter-Ingester</Name>
<Repository>chrisashtear/zomboid-reporter</Repository>
<Registry>https://hub.docker.com/r/chrisashtear/zomboid-reporter/</Registry>
<Network>bridge</Network>
<MyIP/>
<Shell>sh</Shell>
<Privileged>false</Privileged>
<Support>https://github.com/ChrisAshtear/Zomboid-Server-Stats-Reporter/</Support>
<Project>https://github.com/ChrisAshtear/Zomboid-Server-Stats-Reporter/</Project>
<Overview>This is the ingester which grabs statiscs from your Project Zomboid server files and uploads them to the SQL database for the API to access.

NOTE: if you havnt had a player connect to your server yet, you will get an error.

If you are having issues with the database tables not being autocreated, connect to the database with adminer (or another program of your choice) and create the tables and structure with the following:

USE `Zombo`;

SET NAMES utf8mb4;

CREATE TABLE `Game` (
`id` int NOT NULL AUTO_INCREMENT,
`dayofmonth` int NOT NULL,
`month` int NOT NULL,
`daysSinceStart` int NOT NULL,
`name` text NOT NULL,
`maxPlayers` int NOT NULL,
`startDay` int NOT NULL,
`startMonth` int NOT NULL,
`startYear` int NOT NULL,
`year` int NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;


CREATE TABLE `Players` (
`id` int NOT NULL AUTO_INCREMENT,
`username` text NOT NULL,
`charname` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
`x` float NOT NULL,
`y` float NOT NULL,
`data` blob NOT NULL,
`lastOnline` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;</Overview>
<Category>GameServers:</Category>
<WebUI/>
<TemplateURL/>
<Icon>https://github.com/natcoso9955/unRAID-docker/raw/master/icons/projectzomboid-ingest.png</Icon>
<ExtraParams>--restart=always</ExtraParams>
<PostArgs/>
<CPUset/>
<DateInstalled>1646371221</DateInstalled>
<Requires>Project Zomboid</Requires>
<DonateText/>
<DonateLink/>
<Description>This is the ingester which grabs statiscs from your Project Zomboid server files and uploads them to the SQL database for the API to access.

NOTE: if you havnt had a player connect to your server yet, you will get an error.

If you are having issues with the database tables not being autocreated, connect to the database with adminer (or another program of your choice) and create the tables and structure with the following:

USE `Zombo`;

SET NAMES utf8mb4;

CREATE TABLE `Game` (
`id` int NOT NULL AUTO_INCREMENT,
`dayofmonth` int NOT NULL,
`month` int NOT NULL,
`daysSinceStart` int NOT NULL,
`name` text NOT NULL,
`maxPlayers` int NOT NULL,
`startDay` int NOT NULL,
`startMonth` int NOT NULL,
`startYear` int NOT NULL,
`year` int NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;


CREATE TABLE `Players` (
`id` int NOT NULL AUTO_INCREMENT,
`username` text NOT NULL,
`charname` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
`x` float NOT NULL,
`y` float NOT NULL,
`data` blob NOT NULL,
`lastOnline` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;</Description>
<Networking>
<Mode>bridge</Mode>
<Publish/>
</Networking>
<Data>
<Volume>
<HostDir>/mnt/user/gaming_appdata/ProjectZomboid/Zomboid/</HostDir>
<ContainerDir>/var/www/html/sv</ContainerDir>
<Mode>ro</Mode>
</Volume>
</Data>
<Environment>
<Variable>
<Value>Game_Server</Value>
<Name>ZOMBOID_SERVER_NAME</Name>
<Mode/>
</Variable>
<Variable>
<Value>localhost:3307</Value>
<Name>SQL_HOST</Name>
<Mode/>
</Variable>
<Variable>
<Value>Zombo</Value>
<Name> SQL_DATABASE</Name>
<Mode/>
</Variable>
<Variable>
<Value>SQL_USER</Value>
<Name>SQL_USER</Name>
<Mode/>
</Variable>
<Variable>
<Value>SQL_PASS</Value>
<Name>SQL_PASS</Name>
<Mode/>
</Variable>
</Environment>
<Labels/>
<Config Name="ZOMBOID_SERVER_NAME" Target="ZOMBOID_SERVER_NAME" Default="servertest" Mode="" Description="Container Variable: ZOMBOID_SERVER_NAME" Type="Variable" Display="always" Required="true" Mask="false">Game_Server</Config>
<Config Name="Project Zomboid Server Files" Target="/var/www/html/sv" Default="/mnt/user/appdata/ProjectZomboid/Zomboid/" Mode="ro" Description="Container Path: /var/www/html/sv" Type="Path" Display="always" Required="true" Mask="false">/mnt/user/appdata/ProjectZomboid/Zomboid/</Config>
<Config Name="SQL_HOST" Target="SQL_HOST" Default="serverip:port" Mode="" Description="Container Variable: SQL_HOST" Type="Variable" Display="always" Required="true" Mask="false"></Config>
<Config Name=" SQL_DATABASE" Target=" SQL_DATABASE" Default="Zombo" Mode="" Description="Container Variable: SQL_DATABASE" Type="Variable" Display="always" Required="true" Mask="false">Zombo</Config>
<Config Name="SQL_USER" Target="SQL_USER" Default="" Mode="" Description="Container Variable: SQL_USER" Type="Variable" Display="always" Required="true" Mask="false">SQL_USER</Config>
<Config Name="SQL_PASS" Target="SQL_PASS" Default="" Mode="" Description="Container Variable: SQL_PASSWORD" Type="Variable" Display="always" Required="true" Mask="false">SQL_PASS</Config>
</Container>