So I've installed v3.13.1 and I've got an interesting quirk with the NO-WAIT feature. In the entry below, if I use NO-WAIT:2, it never appears, if I use NO-WAIT:1, I get the "Loading, please wait..." message, but it times out in about 20-30s and vanishes. If I take NO-WAIT out of the line, it works, but it of course pauses the load until it finishes the section. I tried adding the THREAD-TIMEOUT option to see if it was ignoring the listed default, but made no difference.
EDIT: It seems to drop and not return data once the request is finished processing.
CMD=interval:300,color:55cc77,text:WAN Address,onload,no-wait:1,thread-timeout:60,read-as-csv:1,csv-header:1,file:powershell.exe, \ parameters:-Command "& { %wan-ip-lookup% }",trim:1,show-window:0,hide-no-result:1, \ display:{{{IPv4: %wan_ipv4%}}}{{{ IPv6: %wan_ipv6%}}}{{{ |Reverse DNS: %wan_rdns%}}} [wan-ip-lookup.ps1] ## Output headers Write-Host wan_ipv4 ',' wan_rdns ',' wan_ipv6 Try { $IPv4_addr = (Invoke-RestMethod -Uri https://ip4.seeip.org/ -UseBasicParsing -ErrorAction "Stop") } Catch { Try { $IPv4_addr = (Invoke-RestMethod -Uri https://4.tnedi.me/ -UseBasicParsing -ErrorAction "Stop") } Catch { $IPv4_addr = 'n/a' } } Try { $IPv6_addr = (Invoke-RestMethod -Uri https://ip6.seeip.org/ -UseBasicParsing -ErrorAction "Stop") } Catch { Try { $IPv6_addr = (Invoke-RestMethod -Uri https://6.tnedi.me/ -UseBasicParsing -ErrorAction "Stop") } Catch { $IPv6_addr = 'n/a' } } Try { $IPv4_rdns = (Invoke-RestMethod -Uri https://ipinfo.io/$IPv4_addr/hostname -UseBasicParsing -ErrorAction "Stop").Trim() If ( -not $IPv4_rdns ) { $IPv4_rdns = 'No record found' } } Catch { $IPv4_rdns = 'n/a' } Write-Host $IPv4_addr ',' $IPv4_rdns ',' $IPv6_addr
it's working for me. did you remember the SET-SECTION command?
SET-SECTION=key:wan-ip-lookup,value:wan-ip-lookup.ps1
i take that back... I found the bug. I'll do a new build this arvo...
@glenn Yes, I had the SET-SECTION, I just forgot to post it in my snippet of code. I'm glad you found the bug and I wasn't going crazy. 🙂