From Blush Marmoset, 4 Years ago, written in PowerShell.
Embed
  1.  
  2. [xml]$Weather = Get-Content "C:\Users\Morten\Downloads\GetMeasuredWeatherData.xml"
  3.  
  4. #$Weather.d2LogicalModel.payloadPublication.siteMeasurements.Item(207).measuredvalue.measuredvalue.basicdata
  5.  
  6. $Lygna = $Weather.d2LogicalModel.payloadPublication.siteMeasurements | Where-Object { $_.measurementsitereference.id -eq '206' }
  7.  
  8. $LygnaAirTemp = $lygna.measuredValue[3].innertext
  9. $LygnaRoadTemp = $lygna.measuredValue[2].innertext
  10. $LygnaPrecipitation = $lygna.measuredValue[1].innertext
  11.  
  12. Write-Host -BackgroundColor White -ForegroundColor Red "Status RV4 Lygnasæter"
  13. Write-Host -ForegroundColor Yellow "###################################"
  14. Write-Host -ForegroundColor Green "Nåværende lufttemperatur på Lygna er $lygnaairtemp °C"
  15. Write-Host -ForegroundColor Green "Nåværende veibanetemperatur på Lygna er $lygnaroadtemp °C"
  16. Write-Host -ForegroundColor Green "Nåværende nedbørintensitet på Lygna er $lygnaPrecipitation mm/t"
  17.  

Replies to Untitled rss

Title Name Language When
Re: Untitled updated Walloping Bongo powershell 4 Years ago.