# Display data from DFRobot Digital Wattmeter

**URL:** <https://discourse.nodered.org/t/display-data-from-dfrobot-digital-wattmeter/66010>\
**Category:** General\
**Tags:** function-node\
**Created:** [4 August 2022 10:57 UTC](https://discourse.nodered.org/t/display-data-from-dfrobot-digital-wattmeter/66010 "2022-08-04T10:57:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexandru89](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@Alexandru89](https://discourse.nodered.org/u/Alexandru89)\
**Post date:** [4 August 2022 10:57 UTC](https://discourse.nodered.org/t/display-data-from-dfrobot-digital-wattmeter/66010/1 "2022-08-04T10:57:39Z")

</div>

Dear makers,

I have in mind a project for power consumption monitoring and I decided to use one of this sensor:  
[Gravity: I2C Digital Wattmeter SKU: SEN0291-DFRobot](https://wiki.dfrobot.com/Gravity%3A%20I2C%20Digital%20Wattmeter%20SKU%3A%20SEN0291#More_Documents)  
My initial idea was to use a pythonshell block and point to the location of the example python script provided by DFRobot on their github page: [DFRobot\_INA219/Python/RespberryPi/examples/get\_voltage\_current\_power at master · DFRobot/DFRobot\_INA219 · GitHub](https://github.com/DFRobot/DFRobot_INA219/tree/master/Python/RespberryPi/examples/get_voltage_current_power)

In pythonshell block I'm using this location of the .py file: **/home/pi/DFRobot\_INA219/Python/RespberryPi/examples/get\_voltage\_current\_power/get\_voltage\_current\_power.py**

Trying to run, I have no output displayed in the debug block. Do you have any idea why or any advice how to implement this in a different way?  
 ![Metter2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/d/0d7aef80c4994d2f37c6c166373ec8232d94f527.png)

If I'm running the script directly on Raspberry Pi console, the output is this:

 ![Metter](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/d/1d0da77d55680ce960a86c078d9a7b3874b2e716.png)

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![edje11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/edje11/32/572_2.png) [@edje11](https://discourse.nodered.org/u/edje11)\
**Post date:** [4 August 2022 18:31 UTC](https://discourse.nodered.org/t/display-data-from-dfrobot-digital-wattmeter/66010/2 "2022-08-04T18:31:52Z")

</div>

Have a look a this node [node-red-contrib-easybotics-ina219-sensor (node) - Node-RED](https://flows.nodered.org/node/node-red-contrib-easybotics-ina219-sensor)  
No need for python with this node.

---

<div class="post-metadata">

**Author:** ![Alexandru89](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@Alexandru89](https://discourse.nodered.org/u/Alexandru89)\
**Post date:** [4 August 2022 19:23 UTC](https://discourse.nodered.org/t/display-data-from-dfrobot-digital-wattmeter/66010/3 "2022-08-04T19:23:39Z")

</div>

Hi Edje11,

Thank you a lot for your advice! I couldn't find this dedicate node because I was searching after the board supplier name (DFrobot).  
I can confirm that the measurements for both voltage and current are working well.

PS: There is no load connected to the wattmeter

 ![Voltage_current](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/8/986c51b3357410eeaceffa612957716a579c263c.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [18 August 2022 19:24 UTC](https://discourse.nodered.org/t/display-data-from-dfrobot-digital-wattmeter/66010/4 "2022-08-18T19:24:33Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
