Hi,
Short version:
I want to do a HTTP POST with curl. I have learned here I cannot use the WebParser for this.
I also found a Plugin but I was not able to get it running (error 126?).
My curl is working in a cmd.I put it with a RunCommand in Rainmeter and it will not work.
RunCommand with Parameter calc.exe will also do nothing.
Where is my fault?
--------------------------------------------------
Long version. Maybe somebody will say stop a skin for this is already there.
I am a big fan from the Gadgets Skins from SilverAzide. I saw he is also active here.
I want to have something like his Network Meter but I want to see the download and upload speed from my router (AVM FRITZ!Box) over UPnP. My current tool for this is FB-Traffic. Then I can see the speeds in my Taskbar (only Windows 10). I can use it with Windows 11 because I have the ExplorerPatcher running and "downgrade" my Taskbar to Windows 10. But ExplorerPatcher will avoid the Windows 11 24H2 Update.
I want to have it in my Rainmeter. I found nothing and said to myself I try to create a skin for this. Rainmeter is the perfect tool for this.
I tested a lot with TR-064 where you need a login and with UPnP where no login is required. When I use Wireshark I can see the tool FB-Traffic is also using UPnP with exact the same URL I have above in my curl. This should be the right way.
I started with the WebParser Tutorial. I use WebParser to grab information about the box. That is working well.
Now I need the same with the HTTP POST (see above) to get (RegExp?) the correct values (I think NewByteSendRate and NewByteReceiveRate).
I have no idea where my fault is. Also a calc.exe will not start.
Thanks.
Andreas
Short version:
I want to do a HTTP POST with curl. I have learned here I cannot use the WebParser for this.
I also found a Plugin but I was not able to get it running (error 126?).
My curl is working in a cmd.
Code:
C:\Users\Andreas>curl -4 --request POST --header "Content-Type: text/xml; charset='utf-8'" --header "SoapAction:urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1#GetAddonInfos" --data "<?xml version='1.0' encoding='utf-8'?><s:Envelope s:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'><s:Body><u:GetAddonInfos xmlns:u='schemas-upnp-org:service:WANIPConnection:1#GetAddonInfos'></u:GetAddonInfos></s:Body></s:Envelope>" http://fritz.box:49000/igdupnp/control/WANCommonIFC1<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:GetAddonInfosResponse xmlns:u="urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1"><NewByteSendRate>13569</NewByteSendRate><NewByteReceiveRate>7936</NewByteReceiveRate>...</u:GetAddonInfosResponse></s:Body></s:Envelope>
Code:
[measureTest]Measure=PluginPlugin=RunCommandParameter=curl -4 --request POST --header "Content-Type: text/xml; charset='utf-8'" --header "SoapAction:urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1#GetAddonInfos" --data "<?xml version='1.0' encoding='utf-8'?><s:Envelope s:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'><s:Body><u:GetAddonInfos xmlns:u='schemas-upnp-org:service:WANIPConnection:1#GetAddonInfos'></u:GetAddonInfos></s:Body></s:Envelope>" http://192.168.33.1:49000/igdupnp/control/WANCommonIFC1State=ShowDynamicVariables=1
Where is my fault?
--------------------------------------------------
Long version. Maybe somebody will say stop a skin for this is already there.
I am a big fan from the Gadgets Skins from SilverAzide. I saw he is also active here.
I want to have something like his Network Meter but I want to see the download and upload speed from my router (AVM FRITZ!Box) over UPnP. My current tool for this is FB-Traffic. Then I can see the speeds in my Taskbar (only Windows 10). I can use it with Windows 11 because I have the ExplorerPatcher running and "downgrade" my Taskbar to Windows 10. But ExplorerPatcher will avoid the Windows 11 24H2 Update.
I want to have it in my Rainmeter. I found nothing and said to myself I try to create a skin for this. Rainmeter is the perfect tool for this.
I tested a lot with TR-064 where you need a login and with UPnP where no login is required. When I use Wireshark I can see the tool FB-Traffic is also using UPnP with exact the same URL I have above in my curl. This should be the right way.
I started with the WebParser Tutorial. I use WebParser to grab information about the box. That is working well.
Code:
[Rainmeter]Update=1000DynamicWindowSize=1AccurateText=1[Metadata]Name=FritzboxAuthor=ElDiablo666[MeasureSite]Measure=PluginPlugin=WebParserURL=http://fritz.box:49000/tr64desc.xmlRegExp=(?siU)<Buildnumber>(.*)</Buildnumber>.*<Display>(.*)</Display>.*<manufacturer>(.*)</manufacturer>.*<modelName>(.*)</modelName>UpdateRate=60000[MeasureBuildnumber]Measure=WebParserURL=[MeasureSite]StringIndex=1[MeasureDisplay]Measure=WebParserURL=[MeasureSite]StringIndex=2[MeasureManufacturer]Measure=WebParserURL=[MeasureSite]StringIndex=3[MeasureModelName]Measure=WebParserURL=[MeasureSite]StringIndex=4[MeterBackground]Meter=ImageW=320H=207SolidColor=20,20,20,255[MeterHeader]Meter=StringX=160Y=5W=300H=15FontSize=11FontColor=255,225,181,255SolidColor=47,47,47,255Padding=5,5,5,5FontWeight=700StringAlign=CenterAntiAlias=1Text=Box Information[MeterBoxLabel]Meter=StringX=5Y=3RW=300H=15FontSize=11FontColor=255,225,181,255SolidColor=47,47,47,255Padding=5,5,5,5AntiAlias=1Text=Box:[MeterBox]Meter=StringMeasureName=MeasureManufacturerMeasureName2=MeasureModelNameText=%1 %2X=315Y=0rW=300H=15FontSize=11FontColor=252,251,202,255SolidColor=0,0,0,1Padding=5,5,5,5StringAlign=RightAntiAlias=1[MeterVersionLabel]Meter=StringX=5Y=3RW=300H=15FontSize=11FontColor=255,225,181,255SolidColor=47,47,47,255Padding=5,5,5,5AntiAlias=1Text=Version:[MeterVersion]Meter=StringMeasureName=MeasureDisplayMeasureName2=MeasureBuildnumberText=%1 (%2)X=315Y=0rW=300H=15FontSize=11FontColor=252,251,202,255SolidColor=0,0,0,1Padding=5,5,5,5StringAlign=RightAntiAlias=1
I have no idea where my fault is. Also a calc.exe will not start.
Thanks.
Andreas
Statistics: Posted by ElDiablo666 — Yesterday, 8:13 pm