Sure:
Thing
UID: speedtest:speedtest:glasfaser
label: Ookla Speedtest
thingTypeUID: speedtest:speedtest
configuration:
refreshInterval: 0
channels:
- id: server
channelTypeUID: speedtest:server
label: Server
description: The remote server that the Speedtest was run against
configuration: {}
- id: timestamp
channelTypeUID: speedtest:timestamp
label: Timestamp
description: Timestamp of the Speedtest run
configuration: {}
- id: pingJitter
channelTypeUID: speedtest:pingJitter
label: Ping Jitter
description: Ping Jitter - the variation in the response time
configuration: {}
- id: pingLatency
channelTypeUID: speedtest:pingLatency
label: Ping Latency
description: Ping Latency - the reaction time of your internet connection
configuration: {}
- id: downloadBandwidth
channelTypeUID: speedtest:downloadBandwidth
label: Download Bandwidth
description: Download bandwidth, e.g. in Mbit/s
configuration: {}
- id: downloadBytes
channelTypeUID: speedtest:downloadBytes
label: Downloaded Bytes
description: Amount of data that was used for the last upload bandwidth test
configuration: {}
- id: downloadElapsed
channelTypeUID: speedtest:downloadElapsed
label: Download Elapsed Time
description: Time spent for the last download bandwidth test
configuration: {}
- id: uploadBandwidth
channelTypeUID: speedtest:uploadBandwidth
label: Upload Bandwidth
description: Upload bandwidth, e.g. in Mbit/s
configuration: {}
- id: uploadBytes
channelTypeUID: speedtest:uploadBytes
label: Uploaded Bytes
description: Amount of data that was used for the last upload bandwidth test
configuration: {}
- id: uploadElapsed
channelTypeUID: speedtest:uploadElapsed
label: Upload Elapsed Time
description: Time spent for the last upload bandwidth test
configuration: {}
- id: isp
channelTypeUID: speedtest:isp
label: ISP
description: Your Internet Service Provider (ISP) as calculated by Ookla
configuration: {}
- id: interfaceInternalIp
channelTypeUID: speedtest:interfaceInternalIp
label: Interface Internal IP
description: IP address of the internal interface that was used for the test
configuration: {}
- id: interfaceExternalIp
channelTypeUID: speedtest:interfaceExternalIp
label: Interface External IP
description: IP address of the external interface that was used for the test
configuration: {}
- id: resultUrl
channelTypeUID: speedtest:resultUrl
label: Result URL
description: The URL to the Speedtest results in HTML on the Ookla webserver
configuration: {}
- id: resultImage
channelTypeUID: speedtest:resultImage
label: Result Image
description: The Speedtest results as image
configuration: {}
- id: triggerTest
channelTypeUID: speedtest:triggerTest
label: Trigger Test
description: Trigger in order to run Speedtest manually
configuration: {}
Items
String OoklaSpeedtestServer "Server" {channel="speedtest:speedtest:glasfaser:server"}
DateTime OoklaSpeedtestTimestamp "Timestamp [%1$td.%1$tm. %1$tH:%1$tM]" {channel="speedtest:speedtest:glasfaser:timestamp"}
Number:Time OoklaSpeedtestPingLatency "Ping latency" {channel="speedtest:speedtest:glasfaser:pingLatency"}
Number:DataTransferRate OoklaSpeedtestDownloadBandwidth "Download bandwidth" {channel="speedtest:speedtest:glasfaser:downloadBandwidth"}
Number:DataTransferRate OoklaSpeedtestUploadBandwidth "Upload bandwidth" (gMariaDB,gRestore) {channel="speedtest:speedtest:glasfaser:uploadBandwidth"}
Switch OoklaSpeedtestTriggerTest "Start" <wss3_speedtest_reload> {channel="speedtest:speedtest:glasfaser:triggerTest"}
Sitemap
Text label="Speedtest" icon="server" {
Default item=OoklaSpeedtestServer
Default item=OoklaSpeedtestTimestamp
Default item=OoklaSpeedtestPingLatency
Default item=OoklaSpeedtestDownloadBandwidth
Default item=OoklaSpeedtestUploadBandwidth
Default item=OoklaSpeedtestTriggerTest
}
Cron triggered rule:
rule "start speedtest on specific times"
when
Time cron "0 15 8,18 ? * * *"
then
OoklaSpeedtestTriggerTest.sendCommand(ON)
end
Icons are from here:
Edit: something weird is going on with formatting in the forum, please shout if something is not working because of bad quotes or similar …