Domoticz script to get Dyson devices environmental sensor state.
Example python script to monitor traffic between home and company, using google directions api.
Notice: sensor type is alert, and remember to setup cron job to run script every 5 mins.
*/5 * * * * /home/pi/domoticz_scripts/scripts/sensor_traffic_monitor.py
The Capacity field is equal to the length of the underlying array, minus (the index in the array) of (the first element of the slice) (zero in this case)
|Speed and Range|
#!/bin/sh if [ ! $(id -ru) -eq 0 ]; then echo "You must run this as root." exit fi for SERVICE in php5-fpm hhvm nginx varnish mysql memcached do service $SERVICE restart done