It is currently September 20th, 2019, 8:24 am

PingPlugin problem using WebParser to get DestAddress

Help with creating, editing & fixing problems with skins
Miyako
Posts: 23
Joined: November 10th, 2009, 4:17 pm
Location: Antwerp, Belgium

PingPlugin problem using WebParser to get DestAddress

Miyako » June 6th, 2010, 2:26 pm

Hi, I'm making a skin that will get several server-ips from a website. Those server-ips should all be pinged.
Now I'm testing this for 1 server but I'm having problems with it.

This is what I have:

Code: Select all

[Rainmeter]
Author=Miyako
AppVersion=3.1
Update=1000

[MeasureServer]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=http://miyakotest.hostzi.com/slv2.php
RegExp="(?siU).*<server>unreal://(.*):.*</server>.*"
UpdateRate=60

[MeasureServer1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureServer]
StringIndex=1

[MeasurePing]
Measure=Plugin
Plugin=Plugins\PingPlugin
DestAddress=MeasureServer1
UpdateRate=60

[MeterPing]
Meter=STRING
X=0
Y=0
W=500
H=15
MeasureName=MeasurePing
MeasureName2=MeasureServer1
Text="%2 : %1"
The problem is that it won't ping it like it should. It seems the IP-addresses are interpreted as a number because when I look at the About I can see this:

212.187.10.232
Range: 0 - 212.2

Anyone an idea how I can fix this? I tried making hosts from those IP's but not all servers could resolve their hostname (in PHP), so that's no solution.

It's also making my rainmeter crash.
poiru
Developer
Posts: 2877
Joined: April 17th, 2009, 12:18 pm

Re: PingPlugin problem using WebParser to get DestAddress

poiru » June 6th, 2010, 3:09 pm

Download Rainmeter 1.2 r430 from http://code.google.com/p/rainmeter/downloads/list
It should partially fix the issue.
Miyako
Posts: 23
Joined: November 10th, 2009, 4:17 pm
Location: Antwerp, Belgium

Re: PingPlugin problem using WebParser to get DestAddress

Miyako » June 6th, 2010, 6:55 pm

It's still crashing sometimes but the ping-thing still doesn't work.
It seems the pingplugin-measure can't recognize dynamic variables even if "DynamicVariables=1" is there.
User avatar
JamesAC
Developer
Posts: 327
Joined: July 14th, 2009, 5:57 pm

Re: PingPlugin problem using WebParser to get DestAddress

JamesAC » June 6th, 2010, 7:03 pm

Miyako wrote:It's still crashing sometimes but the ping-thing still doesn't work.
It seems the pingplugin-measure can't recognize dynamic variables even if "DynamicVariables=1" is there.
Currently plugins do not work with DynamicVariables.
+++ Divide By Cucumber Error. Please Reinstall Universe And Reboot +++
Quis custodiet ipsos custodes?
Miyako
Posts: 23
Joined: November 10th, 2009, 4:17 pm
Location: Antwerp, Belgium

Re: PingPlugin problem using WebParser to get DestAddress

Miyako » June 6th, 2010, 9:00 pm

JamesAC wrote: Currently plugins do not work with DynamicVariables.
And using other measures?