# \[OH3\] New Binding - Speedtest

**URL:** <https://community.openhab.org/t/oh3-new-binding-speedtest/114242>\
**Category:** Bindings\
**Tags:** binding\
**Created:** [January 15, 2021, 2:01pm UTC](https://community.openhab.org/t/oh3-new-binding-speedtest/114242 "2021-01-15T14:01:38Z")\
**Posts on this page:** 1\
**Showing post:** 133

<div class="post-metadata">

**Author:** ![tommycw10](https://community.openhab.org/letter_avatar_proxy/v4/letter/t/4491bb/32.png) [@tommycw10](https://community.openhab.org/u/tommycw10)\
**Post date:** [January 25, 2022, 8:45pm UTC](https://community.openhab.org/t/oh3-new-binding-speedtest/114242/133 "2022-01-25T20:45:33Z")

</div>

Hi @Alexollon

Yes, I do things after speedtests are run too. In my example below, I trigger on the download rate being updated, I then create a datetime item to timestamp when the test was run, and I calculate the 7 day averages.

```auto
rule "Speedtest last run"
	when
		Item downlinkRate received update
	then
		postUpdate(speedTestLastCompleted, new DateTimeType())	//sets new date/time stamp
		postUpdate(downlinkRate7DAve, downlinkRate.averageSince(now.minusDays(7), "influxdb")as Number)
		postUpdate(uplinkRate7DAve, (uplinkRate.averageSince(now.minusDays(7), "influxdb")as Number))
	end

```

---

_[View the full topic](https://community.openhab.org/t/oh3-new-binding-speedtest/114242)._
