Use this command to get the UNIX time
date +%s
Create a gauge RRD with a 60 second heartbeat
rrdtool create temperature.rrd --step 60 \
DS:temp:GAUGE:600:-273:5000 \
RRA:AVERAGE:0.5:1:1200 \
<?php | |
$countries = array( | |
'AD' => 'Andorra', | |
'AE' => 'United Arab Emirates', | |
'AF' => 'Afghanistan', | |
'AG' => 'Antigua & Barbuda', | |
'AI' => 'Anguilla', | |
'AL' => 'Albania', | |
'AM' => 'Armenia', | |
'AN' => 'Netherlands Antilles', |
/* | |
Android Breath v0.2 | |
Simulates led breathing found on Android devices. | |
Tested with Arduino Nano ATmega328. | |
Cesar Schneider <[email protected]> | |
https://gist.github.com/cesschneider/7689698 | |
*/ | |
// Pin 13 has an LED connected on most Arduino boards. |
Use this command to get the UNIX time
date +%s
Create a gauge RRD with a 60 second heartbeat
rrdtool create temperature.rrd --step 60 \
DS:temp:GAUGE:600:-273:5000 \
RRA:AVERAGE:0.5:1:1200 \