# Reset SunMeter Node

**URL:** <https://discourse.nodered.org/t/reset-sunmeter-node/79492>\
**Category:** General\
**Created:** [29 June 2023 19:51 UTC](https://discourse.nodered.org/t/reset-sunmeter-node/79492 "2023-06-29T19:51:47Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harryx99](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/harryx99/32/53539_2.png) [@Harryx99](https://discourse.nodered.org/u/Harryx99)\
**Post date:** [29 June 2023 19:51 UTC](https://discourse.nodered.org/t/reset-sunmeter-node/79492/1 "2023-06-29T19:51:48Z")

</div>

Hello.

how can I reset the SunMeter node? I like to reset the value every day mid night for instance.

The "Power" can be rested by "payload 0" but I have no idea to reset "Energy".

 ![SumMeter](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/b/2bed561d909917a6c7ce22dbca89b02eef554a45.jpeg)

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [29 June 2023 21:03 UTC](https://discourse.nodered.org/t/reset-sunmeter-node/79492/2 "2023-06-29T21:03:14Z")

</div>

What is the full name of that node? (i.e. node-red-contrib-???)  
I don't see anything in the flow library

---

<div class="post-metadata">

**Author:** ![xx\_Nexus\_xx](https://avatars.discourse-cdn.com/v4/letter/x/54ee81/32.png) [@xx\_Nexus\_xx](https://discourse.nodered.org/u/xx_Nexus_xx)\
**Post date:** [30 June 2023 00:33 UTC](https://discourse.nodered.org/t/reset-sunmeter-node/79492/3 "2023-06-30T00:33:12Z")

</div>

# [node-red-contrib-virtualmeter](https://node-red-contrib-virtualmeter)

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [30 June 2023 04:43 UTC](https://discourse.nodered.org/t/reset-sunmeter-node/79492/4 "2023-06-30T04:43:33Z")

</div>

I think this is the URL to that node...

> **[node-red-contrib-virtualmeter](https://flows.nodered.org/node/node-red-contrib-virtualmeter)**
>
> Virtual Meter Node to be used within Corrently Ecosystem (German Electricity Grid)

---

<div class="post-metadata">

**Author:** ![Harryx99](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/harryx99/32/53539_2.png) [@Harryx99](https://discourse.nodered.org/u/Harryx99)\
**Post date:** [30 June 2023 05:05 UTC](https://discourse.nodered.org/t/reset-sunmeter-node/79492/5 "2023-06-30T05:05:32Z")

</div>

Correct it‘s

# node-red-contrib-virtualmeter 0.5.28

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [30 June 2023 10:08 UTC](https://discourse.nodered.org/t/reset-sunmeter-node/79492/6 "2023-06-30T10:08:19Z")

</div>

After a quick look, I didn't see anything showing how you could reset it. You could open an [issue](https://github.com/energychain/node-red-contrib-virtualmeter/issues) with the author of the node.

If you are collecting the data being sent to you, you could use node-red-contrib-cron-plus to trigger a flow (at midnight each night) and then manually reset the value you are collecting.

---

<div class="post-metadata">

**Author:** ![Harryx99](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/harryx99/32/53539_2.png) [@Harryx99](https://discourse.nodered.org/u/Harryx99)\
**Post date:** [13 July 2023 19:37 UTC](https://discourse.nodered.org/t/reset-sunmeter-node/79492/7 "2023-07-13T19:37:52Z")

</div>

Issue is opend to the author.  
You wrote "If you are collecting the data being sent to you", could you tell how to collect the date by myself?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [13 July 2023 21:48 UTC](https://discourse.nodered.org/t/reset-sunmeter-node/79492/8 "2023-07-13T21:48:18Z")

</div>

You could be collecting the data and storing it in a context variable or into a database. If you save it in a database, you can create a query to get all teh data for a single day. If you were to use a contact variable, you could add new input values to the variable and re save it through the day. Then at midnight you could set it back to 0.

However, I don't know how the data comes in - i.e. is it a running total or the total for each timespan.

But if it is resetting something stored by the node itself, you are going to either hope the author will fix it or you can fork the node and see if you can fix it yourself.

---

<div class="post-metadata">

**Author:** ![Harryx99](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/harryx99/32/53539_2.png) [@Harryx99](https://discourse.nodered.org/u/Harryx99)\
**Post date:** [14 July 2023 19:29 UTC](https://discourse.nodered.org/t/reset-sunmeter-node/79492/9 "2023-07-14T19:29:07Z")

</div>

Thanks, I'll try.

---

<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:** [12 September 2023 19:29 UTC](https://discourse.nodered.org/t/reset-sunmeter-node/79492/10 "2023-09-12T19:29:33Z")

</div>

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