Is there a REST / JSON API? #1009
hummelmose
started this conversation in
General
Replies: 3 comments 1 reply
-
even I was looking for something similar to get it integrated with HassIO :) |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thanks @twistedsanity ! It helped sensor:
- platform: rest
name: "MySpeed Ping"
resource: "http://yourip:port/api/prometheus/metrics"
scan_interval: 300 # Update every 5 minutes
value_template: >
{% for line in value.split('\n') %}
{% if 'myspeed_ping' in line and not line.startswith('#') %}
{{ line.split()[1] }}
{% endif %}
{% endfor %}
unit_of_measurement: "ms"
- platform: rest
name: "MySpeed Download Speed"
resource: "http://yourip:port/api/prometheus/metrics"
value_template: >
{% for line in value.split('\n') %}
{% if 'myspeed_download' in line and not line.startswith('#') %}
{{ line.split()[1] }}
{% endif %}
{% endfor %}
unit_of_measurement: "Mbps"
- platform: rest
name: "MySpeed Upload Speed"
resource: "http://yourip:port/api/prometheus/metrics"
value_template: >
{% for line in value.split('\n') %}
{% if 'myspeed_upload' in line and not line.startswith('#') %}
{{ line.split()[1] }}
{% endif %}
{% endfor %}
unit_of_measurement: "Mbps" |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there.
Great little tool. Is there a API that I can call from Homey to use it there ?
Vielen dank :-)
Beta Was this translation helpful? Give feedback.
All reactions