services | platforms | author |
---|---|---|
power-bi |
raspberry-pi |
sirui-sun |
This sample code will read from a DHT22 sensor wired to a Raspberry Pi running Raspbian, and send data to a Power BI dashboard for display. Full walkthrough here.
git clone https://github.com/Azure-Samples/powerbi-python-iot-client
sudo apt-get install build-essential python-dev
git clone https://github.com/adafruit/Adafruit_Python_DHT.git && cd Adafruit_Python_DHT && sudo python setup.py install
REST_API_URL = " *** Your Push API URL goes here *** "
python uploadDHT22Data.py