- 2015-09-13T10:51:21-07:00
+ 2015-09-17T23:41:36-07:00https://home-assistant.io/
@@ -14,79 +14,64 @@
-
-
- 2015-09-13T09:28:00-07:00
- https://home-assistant.io/blog/2015/09/13/home-assistant-meets-ifttt
- Today we announce the release of Home Assistant v0.7.2 which includes brand new support by
-@sfam to integrate with IFTTT. IFTTT stands for If This, Then That and is a
-webservice that integrates with almost every possible webservice out there. Adding Home
-Assistant to this mix means Home Assistant can connect with all via IFTTT.
-
-
It is now possible to disable your irregation system if it is going to be cloudy tomorrow or tweet
-if your smoke alarm goes off.
-
-
-
-
-
-
-
Head over to the setup instructions to get started with IFTTT. Click the
-read more button for some example recipes.
+
+
+ 2015-09-18T02:00:00-07:00
+ https://home-assistant.io/blog/2015/09/18/monitoring-with-glances-and-home-assistant
+
+Inspried by a feature requests I started looking into the available options to do monitoring of remote hosts. The feature request is about displaying system information in a similar way than the systemmonitor sensor does it for the local system. After a while I started to think that it would be a nice addition for a small home network where no full-blown system monitoring setup is present.
-
In each of the following examples, make sure to replace the XXX in the url with your correct
-host address and api password.
+
The basic problem is to get the data from the remote host. Starting with psutil that is used by the systemmonitor sensor, a possible solution is only a click away and named Glances. Glances has a nice curses-based interface and a RESTful API.
-
Turn off irregation system when not needed
+
The Glances sensor sensor uses that API to get all needed data.
+
+
In this post a default Fedora 22 Workstation installation is used on the host that should be monitored. In fact, it doesn’t matter if the system is the local one or a remote one as long as Glances is available. With some adjustments it should work on your own systems too. The difference will be the package and the firewall management tools.
+
+
First some extra packages are needed beside Glances, especially the bottle webserver. I guess that Glances is available for your distribution as well. Otherwise follow those instructions.
+
+
1
+
sudo dnf -y install glances python-bottle
+
+
+
On Fedora the Firewall settings are strict. Let’s open port 61208 to allow other hosts to connect to that port. This is not needed if you just want to observe your local machine.
Another check is to access the API located at http://IP_ADRRESS:61208/api/2/mem/used and to confirm that a detail about your memory usage is provided as a JSON response. If so, you are good to proceed.
curl -X GET http://IP_ADDRESS:61208/api/2/mem/used
+{"used": 203943936}
+
-
Tweet when important events happen
-
-
-
-
-
-
-
This will tweet a message when a MQTT message is received that the smoke alarm has been triggered.
-Setup Maker channel with event name HA_FIRE_ALARM and Twitter channel to tweet the message in
-value1.
+
Add the glances sensor entry to your configuration.yaml file and restart Home Assistant then.
12
@@ -96,127 +81,26 @@ Setup Maker channel with event name HA_FIRE_ALARM and Twitter chann
678
-9
-10
-
# Configuration.yaml entry
-automation:
-alias:Post a tweet when fire alarm is triggered
-
-platform:mqtt
-mqtt_topic:home/alarm/fire
-mqtt_payload:'on'
-
-execute_service:ifttt.trigger
-service_data:{"event":"HA_FIRE_ALARM","value1":"Thefirealarmjusttriggered!"}
+
Glances has a couple of optional dependencies which are extenting the range of provided information. This means that it would be possible to get details about the RAID system, HDD temperature, IP addresses, sensors, etc., please create a Pull request with your additions or a Feature request if you want see more details in your Home Assistant frontend.
diff --git a/blog/2014/12/26/home-control-home-automation-and-the-smart-home/index.html b/blog/2014/12/26/home-control-home-automation-and-the-smart-home/index.html
index fa095c4533..0a0697f302 100644
--- a/blog/2014/12/26/home-control-home-automation-and-the-smart-home/index.html
+++ b/blog/2014/12/26/home-control-home-automation-and-the-smart-home/index.html
@@ -275,7 +275,7 @@ This article will try to explain how they all relate.
diff --git a/blog/2015/02/08/looking-at-the-past/index.html b/blog/2015/02/08/looking-at-the-past/index.html
index e556c8453b..381617d3e0 100644
--- a/blog/2015/02/08/looking-at-the-past/index.html
+++ b/blog/2015/02/08/looking-at-the-past/index.html
@@ -255,7 +255,7 @@ Events are saved in a local database. Google Graphs is used to draw the graph. D
diff --git a/blog/2015/03/01/home-assistant-migrating-to-yaml/index.html b/blog/2015/03/01/home-assistant-migrating-to-yaml/index.html
index 8a3c7af28b..b3aa76cb98 100644
--- a/blog/2015/03/01/home-assistant-migrating-to-yaml/index.html
+++ b/blog/2015/03/01/home-assistant-migrating-to-yaml/index.html
@@ -220,7 +220,7 @@ YAML allows the use of lists, which should make the configuration file a bit mor
diff --git a/blog/2015/03/08/new-logo/index.html b/blog/2015/03/08/new-logo/index.html
index 17c76df95a..b44c924393 100644
--- a/blog/2015/03/08/new-logo/index.html
+++ b/blog/2015/03/08/new-logo/index.html
@@ -221,7 +221,7 @@ The old logo, the new detailed logo and the new simple logo.
diff --git a/blog/2015/03/11/release-notes/index.html b/blog/2015/03/11/release-notes/index.html
index 0e9144c17d..f784620583 100644
--- a/blog/2015/03/11/release-notes/index.html
+++ b/blog/2015/03/11/release-notes/index.html
@@ -267,7 +267,7 @@ An initial version of voice control for Home Assistant has landed. The current i
diff --git a/blog/2015/03/22/release-notes/index.html b/blog/2015/03/22/release-notes/index.html
index 3c511bf948..734cf82a5e 100644
--- a/blog/2015/03/22/release-notes/index.html
+++ b/blog/2015/03/22/release-notes/index.html
@@ -340,7 +340,7 @@ James Cole has also contributed support for the
diff --git a/blog/2015/04/25/release-notes/index.html b/blog/2015/04/25/release-notes/index.html
index 6c425cb81e..ed7d8d0cc9 100644
--- a/blog/2015/04/25/release-notes/index.html
+++ b/blog/2015/04/25/release-notes/index.html
@@ -356,7 +356,7 @@ James has also contributed support for integrating Transmission into Home Assist
diff --git a/blog/2015/05/14/release-notes/index.html b/blog/2015/05/14/release-notes/index.html
index 8f8243a4cd..5715e34796 100644
--- a/blog/2015/05/14/release-notes/index.html
+++ b/blog/2015/05/14/release-notes/index.html
@@ -382,7 +382,7 @@ Before diving into the newly supported devices and services, I want to highlight
diff --git a/blog/2015/06/10/release-notes/index.html b/blog/2015/06/10/release-notes/index.html
index eb0e392527..bc2834c8c6 100644
--- a/blog/2015/06/10/release-notes/index.html
+++ b/blog/2015/06/10/release-notes/index.html
@@ -461,7 +461,7 @@ This switch platform allows you to control your motion detection setting on your
diff --git a/blog/2015/07/11/ip-cameras-arduino-kodi-efergy-support/index.html b/blog/2015/07/11/ip-cameras-arduino-kodi-efergy-support/index.html
index 07811e4237..911e3125b7 100644
--- a/blog/2015/07/11/ip-cameras-arduino-kodi-efergy-support/index.html
+++ b/blog/2015/07/11/ip-cameras-arduino-kodi-efergy-support/index.html
@@ -405,7 +405,7 @@ Fabian has added support for Forecast.io to g
diff --git a/blog/2015/08/09/mqtt-raspberry-pi-squeezebox-asuswrt-support/index.html b/blog/2015/08/09/mqtt-raspberry-pi-squeezebox-asuswrt-support/index.html
index f79320feae..d189d631ac 100644
--- a/blog/2015/08/09/mqtt-raspberry-pi-squeezebox-asuswrt-support/index.html
+++ b/blog/2015/08/09/mqtt-raspberry-pi-squeezebox-asuswrt-support/index.html
@@ -368,7 +368,7 @@ Support for Temper temperature sensors has been contributed by
- Home Assistant meets IFTTT
+ Remote Monitoring with Glances
diff --git a/blog/2015/08/17/verisure-and-modern-tp-link-router-support/index.html b/blog/2015/08/17/verisure-and-modern-tp-link-router-support/index.html
index a190ac7dbf..b397120241 100644
--- a/blog/2015/08/17/verisure-and-modern-tp-link-router-support/index.html
+++ b/blog/2015/08/17/verisure-and-modern-tp-link-router-support/index.html
@@ -246,7 +246,7 @@ Home Assistant support to integrate your Ver
diff --git a/blog/2015/09/11/different-ways-to-use-mqtt-with-home-assistant/index.html b/blog/2015/09/11/different-ways-to-use-mqtt-with-home-assistant/index.html
index c5ead31798..4603cc6f24 100644
--- a/blog/2015/09/11/different-ways-to-use-mqtt-with-home-assistant/index.html
+++ b/blog/2015/09/11/different-ways-to-use-mqtt-with-home-assistant/index.html
@@ -515,7 +515,7 @@ The MQTT support was added to H
Today we announce the release of Home Assistant v0.7.2 which includes brand new support by
-@sfam to integrate with IFTTT. IFTTT stands for If This, Then That and is a
-webservice that integrates with almost every possible webservice out there. Adding Home
-Assistant to this mix means Home Assistant can connect with all via IFTTT.
-
-
It is now possible to disable your irregation system if it is going to be cloudy tomorrow or tweet
-if your smoke alarm goes off.
-
-
-
-
-
-
-
Head over to the setup instructions to get started with IFTTT. Click the
-read more button for some example recipes.
+
+Inspried by a feature requests I started looking into the available options to do monitoring of remote hosts. The feature request is about displaying system information in a similar way than the systemmonitor sensor does it for the local system. After a while I started to think that it would be a nice addition for a small home network where no full-blown system monitoring setup is present.
-
In each of the following examples, make sure to replace the XXX in the url with your correct
-host address and api password.
+
The basic problem is to get the data from the remote host. Starting with psutil that is used by the systemmonitor sensor, a possible solution is only a click away and named Glances. Glances has a nice curses-based interface and a RESTful API.
-
Turn off irregation system when not needed
+
The Glances sensor sensor uses that API to get all needed data.
+
+
In this post a default Fedora 22 Workstation installation is used on the host that should be monitored. In fact, it doesn’t matter if the system is the local one or a remote one as long as Glances is available. With some adjustments it should work on your own systems too. The difference will be the package and the firewall management tools.
+
+
First some extra packages are needed beside Glances, especially the bottle webserver. I guess that Glances is available for your distribution as well. Otherwise follow those instructions.
+
+
1
+
sudo dnf -y install glances python-bottle
+
+
+
On Fedora the Firewall settings are strict. Let’s open port 61208 to allow other hosts to connect to that port. This is not needed if you just want to observe your local machine.
Another check is to access the API located at http://IP_ADRRESS:61208/api/2/mem/used and to confirm that a detail about your memory usage is provided as a JSON response. If so, you are good to proceed.
curl -X GET http://IP_ADDRESS:61208/api/2/mem/used
+{"used": 203943936}
+
-
Tweet when important events happen
-
-
-
-
-
-
-
This will tweet a message when a MQTT message is received that the smoke alarm has been triggered.
-Setup Maker channel with event name HA_FIRE_ALARM and Twitter channel to tweet the message in
-value1.
+
Add the glances sensor entry to your configuration.yaml file and restart Home Assistant then.
12
@@ -225,127 +208,26 @@ Setup Maker channel with event name HA_FIRE_ALARM and Twitter chann
678
-9
-10
-
# Configuration.yaml entry
-automation:
-alias:Post a tweet when fire alarm is triggered
-
-platform:mqtt
-mqtt_topic:home/alarm/fire
-mqtt_payload:'on'
-
-execute_service:ifttt.trigger
-service_data:{"event":"HA_FIRE_ALARM","value1":"Thefirealarmjusttriggered!"}
+
Glances has a couple of optional dependencies which are extenting the range of provided information. This means that it would be possible to get details about the RAID system, HDD temperature, IP addresses, sensors, etc., please create a Pull request with your additions or a Feature request if you want see more details in your Home Assistant frontend.
@@ -372,15 +254,15 @@ Setup Maker channel with event name HA_FIRE_ALARM and Twitter chann
Tweet
+ data-url="https://home-assistant.io/blog/2015/09/18/monitoring-with-glances-and-home-assistant/"
+ data-counturl="https://home-assistant.io/blog/2015/09/18/monitoring-with-glances-and-home-assistant/" >Tweet
@@ -484,8 +366,8 @@ Setup Maker channel with event name HA_FIRE_ALARM and Twitter chann
// var disqus_developer = 1;
- var disqus_identifier = 'https://home-assistant.io/blog/2015/09/13/home-assistant-meets-ifttt/';
- var disqus_url = 'https://home-assistant.io/blog/2015/09/13/home-assistant-meets-ifttt/';
+ var disqus_identifier = 'https://home-assistant.io/blog/2015/09/18/monitoring-with-glances-and-home-assistant/';
+ var disqus_url = 'https://home-assistant.io/blog/2015/09/18/monitoring-with-glances-and-home-assistant/';
var disqus_script = 'embed.js';
(function () {
diff --git a/blog/archives/index.html b/blog/archives/index.html
index 57f9b22950..8fb9e29379 100644
--- a/blog/archives/index.html
+++ b/blog/archives/index.html
@@ -22,7 +22,7 @@
-
+
@@ -117,12 +117,12 @@