0
Request with parameters Unix timestamp and HMAC SHA-256 value on http driver get command for weatherlink
Is there a possibility to include parameters like UNIX timestamp and HMAC SHA-256 computed values on a get HTTP request?
I am trying to connect weatherlink api v2 https://weatherlink.github.io/v2-api/ which in https://weatherlink.github.io/v2-api/tutorial describes the need of timestamps and hashed strings on the call.
Thanks in advance
Customer support service by UserEcho
Bumping up the question. Is there a way to calculate SHA256 value?
Not at this point. I've used online converters or if the hash is not changing in time I do it locally but not in bOS. https://emn178.github.io/online-tools/sha256.html
WINDOWS CMD SHA256 hash: echo|set /p="PASSWORD" > %TMP%/hash.txt |certutil -hashfile %TMP%/hash.txt SHA256 | findstr /v "hash"
WINDOWS PowerShell: $stringAsStream = [System.IO.MemoryStream]::new()
$writer = [System.IO.StreamWriter]::new($stringAsStream)
$writer.write("PASSWORD")
$writer.Flush()
$stringAsStream.Position = 0
Get-FileHash -InputStream $stringAsStream | Select-Object Hash
Also for Unix timestamp - I've tried different methods calculating it locally in bOS and from web but it seems they are not lasting long. There was a online open api unix calculator that worked well for me but it went down. Unix timestamp is needed in my projects too. So far i've been able to make some workarounds. But would be good if these functions were supported natively.