I was working on a rainmeter skin for myself
I made a skin for rainmeter that reads the chat for latest post and checks the number of players on the server (gametracker.com info so it's not absolutely accurate)
[img width=320 height=1080]http://i.imgur.com/sErCay7.png[/img]
Here is the skin file
If you want to use this skin you have to edit the gmail meter (fill in username and password converted to html code and inside layout edit your steamID url to your url + "?xml=1")
Code
;----------measures------------------------------------------------------------------------------------------------
;=======GermanDayzChat=============================================================================================
;this will grab the 2 last posts from the germandayz.de chat
[MeasureShoutbox]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=http://board.germandayz.de/index.php?action=shoutbox;sa=get;xml;row=0;restart
;RegExp=(?siU).*?<a.*>(.*)</a>.*<span.*>.*<span.*>(.*)</div>
RegExp=(?siU).*?<a.*>(.*)</a>.*<span.*>.*<span.*>(.*)</div>.*<a.*>.*<a.*>(.*)</a>.*<span.*>.*<span.*>(.*)</div>
UpdateRate=1
;will grab the Name of the poster
[MeasureProfile]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureShoutbox]
StringIndex=1
DecodeCharacterReference=1
;grabs the text that was chatted
[MeasurePost]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureShoutbox]
StringIndex=2
DecodeCharacterReference=1
RegExpSubstitute=1
Substitute="(?siU)<img(.*)/>":"","(?siU)<a(.*)>":"","(?siU)</a>":""
;will grab the Name of the second poster
[MeasureProfile1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureShoutbox]
StringIndex=3
DecodeCharacterReference=1
;grabs the second text that was chatted
[MeasurePost1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureShoutbox]
StringIndex=4
DecodeCharacterReference=1
RegExpSubstitute=1
Substitute="(?siU)<img(.*)/>":"","(?siU)<a(.*)>":"","(?siU)</a>":""
;=======================GermanDayzServers==================================================================
;this measures the gametracker it starts with the Teamspeak server and ends with server 4
;it will be saved as stringindex=1 --> "Teamspeak"
;stringindex=2 --> "15/650"
;stringindex=3 --> "Dayz server 1"
;look at the URL and you will see
;If they decide to add more servers (or remove servers) add/remove the following line at the end of RegExp
;</tr>.*<tr>.*<td>.*</td>.*<td>.*</td>.*<td>(.*)</td>.*<td>.*</td>.*<td>(.*)</td>.*<td>.*</td>.*<td>.*</td>.*</tr>.*
[MeasureServer]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=http://www.gametracker.com/clan/germandayz/
RegExp=(?siU)(?siU)<table class="table_lst table_lst_scp">.*<tr>.*</tr>.*<tr>.*<td>.*</td>.*<td>.*</td>.*<td>.*<a.*>(.*)</a>.*</td>.*<td>.*</td>.*<td>(.*)</td>.*<td>.*</td>.*<td>.*</td>.*</tr>.*<tr>.*<td>.*</td>.*<td>.*</td>.*<td>.*<a.*>(.*)</a>.*</td>.*<td>.*</td>.*<td>(.*)</td>.*<td>.*</td>.*<td>.*</td>.*</tr>.*<tr>.*<td>.*</td>.*<td>.*</td>.*<td>.*<a.*>(.*)</a>.*</td>.*<td>.*</td>.*<td>(.*)</td>.*<td>.*</td>.*<td>.*</td>.*</tr>.*<tr>.*<td>.*</td>.*<td>.*</td>.*<td>.*<a.*>(.*)</a>.*</td>.*<td>.*</td>.*<td>(.*)</td>.*<td>.*</td>.*<td>.*</td>.*</tr>.*</table>
UpdateRate=1
;------measures the second name/number of players block
[MeasureServer1N]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureServer]
StringIndex=3
DecodeCharacterReference=1
RegExpSubstitute=1
Substitute="\s\s+":""," - whitelist.germandayz.de":""
[MeasureServer1P]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureServer]
StringIndex=4
DecodeCharacterReference=1
RegExpSubstitute=1
Substitute="\s\s+":""
;------measures the third name/number of players block
[MeasureServer2N]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureServer]
StringIndex=5
DecodeCharacterReference=1
RegExpSubstitute=1
Substitute="\s\s+":""," - whitelist.germandayz.de":""
[MeasureServer2P]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureServer]
StringIndex=6
DecodeCharacterReference=1
RegExpSubstitute=1
Substitute="\s\s+":""
;------measures the fourth name/number of players block
[MeasureServer3N]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureServer]
StringIndex=7
DecodeCharacterReference=1
RegExpSubstitute=1
Substitute="\s\s+":""," - whitelist.germandayz.de":""
[MeasureServer3P]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureServer]
StringIndex=8
DecodeCharacterReference=1
RegExpSubstitute=1
Substitute="\s\s+":""
Alles anzeigen