Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
harshaSampath81
Helper II
Helper II

powershell

Hi ,

i need to upload data which i  get through arduino and DHT11 sensor (Temperature and Humidity Sensor) to power bi through powershell. i get the data to powershell but my data won't push to Power bi. can anyone help me with this.

 

This is my simple code .

While($true)
{
$endpoint = "https://api.powerbi.com/beta/120d52a3-29bc-4916-9ce4-b56c8a7756be/datasets/7401907b-2dc3-4f0d-bc45-b271b00aaddb/rows?key=36u89pKq4YNYiSajbUAcdU2S%2FcOF67gozSCTc6SsPdvUzHn%2FmAwp3oGdHEsRDwMTztofvnjMMnIzz%2FRwPPGZeQ%3D%3D"
$Port = new-Object System.IO.Ports.SerialPort COM5,9600,None,8,one
$Port.Open()
$Port.ReadLine()
$Port.Close()

}
Invoke-RestMethod -Method Post -Uri "$endpoint" -Body (ConvertTo-Json $Port.ReadLine())
Write-Host "Temperature :" $Temperature "Humidity :" $Humidity 
 sleep 2

Thanks in advance 

0 REPLIES 0

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.