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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.