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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote 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
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

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.