# Cost Calculation

**URL:** <https://discourse.nodered.org/t/cost-calculation/66321>\
**Category:** General\
**Created:** [11 August 2022 11:42 UTC](https://discourse.nodered.org/t/cost-calculation/66321 "2022-08-11T11:42:57Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [11 August 2022 16:49 UTC](https://discourse.nodered.org/t/cost-calculation/66321/4 "2022-08-11T16:49:56Z")

</div>

not looked at any of these but:

> [@Best strategy for Reading & Sorting Electricity Cost Array](https://discourse.nodered.org/t/best-strategy-for-reading-sorting-electricity-cost-array/7929):
>
> Hi I have just switched electricity suppliers to Octopus Energy who I think are maybe one of the first to have variable half hour rates in the UK depending on wholesale price. Naturally I want to make some switching decisions based on future electricity cost. There is an example curl statement that gets the results in file attache.[result.txt](https://discourse.nodered.org/uploads/short-url/ekN0sYYiaByIOjpUV0kIddTUcEt.txt) (11.6 KB) This gives the pricing for the next 24 hours. I am no programmer but I have Node-RED successfully controlling all sorts of devices mainly by c…

> [@Daily energy usage plus costs](https://discourse.nodered.org/t/daily-energy-usage-plus-costs/4648):
>
> Hi, I have a hassio running with node-red with an usb cable attached to my kamstrup 162 smart meter. This is configured in home assistant and I can see the data and display it on the ui. What I want to do is make a function: Start measuring gas usage on 0:00 and end at 23:59, and display this on the ui on daily basis. Calculate the costs from the start at 0:00 and also display that. e.g. 0:00 gas meter: 10000m3 0:20 gas meter: 10030m3 calc delta, multiply by costs per m3, display usage …

> [@Electricity buy/sell logic](https://discourse.nodered.org/t/electricity-buy-sell-logic/65841/4):
>
> I do something very similar here in Australia with a company called Amber electric They expose us to the Wholesale spot price market on a 5 minute basis with 30 minute settlement periods. We have a large Solar and battery system and arbitrage the grid with the batteries. During winter (now in Australia) we actually change to a fixed price provider and then in Spring Change back to Amber again Basically their API provides pricing data similar to what you have outlined. What i did was work o…

> [@Energy calculation](https://discourse.nodered.org/t/energy-calculation/11851):
>
> Hi all. I try to work out how to make a function javascript to calculate cost ow energy. I have daily data coming through mqtt, which is zero itself every day at 00:00 I managed to store the data to the flow, and I managed to access it and zero this value via inject node. What I try to work out to set a secondary and third flow. Weekly and monthly cost. So ideally I have daily flow stored and I wish to add this value to another flow called weekly and the daily flow should be added to weekly e…

I think there are many more. I searched just for "cost" but "energy cost" probably better.

---

_[View the full topic](https://discourse.nodered.org/t/cost-calculation/66321)._
