I'm very new to this sort of stuff so please be patient. This is my problem: I'm trying to run a script on my digital loggers webpage on windows powershell using curl but I keep getting errors, as such.
Invoke-WebRequest : Cannot bind parameter 'Uri'. Cannot convert value
"http://admin:MyPassword@MyIp:MyPort/script?run001=run" to type "System.Uri". Error: "Invalid URI: The hostname
could not be parsed."
At line:1 char:6
+ curl http://admin:MyPassword@MyIp:MyPort/script?run001=run
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Invoke-WebRequest], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
I'm more than happy to provide whatever information that is necessary
When i run http://admin:MyPassword@MyIp:MyPort/script?run001=run on chrome it runs the script but i cant get it to work on powershell. The whole purpose of this is so I can have control of my outlets on Home Assistant.
Home assistant does not find any devices for digital loggers on the network so i thought i could just run a script to turn on/off the outlet using curl but I'm struggling
MyPortliterally?curlis an alias for the built-inInvoke-WebRequestcmdlet. If you want to call the stand-alonecurlexecutable you’ll need to usecurl.exeto disambiguate it.