-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdash.cgi
More file actions
executable file
·67 lines (58 loc) · 2.22 KB
/
dash.cgi
File metadata and controls
executable file
·67 lines (58 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
. `dirname $0`/inc/dash_inc.sh || exit 1
echo "Content-type: text/html"
echo ""
###
#### ----------------------------------- MAIN -----------------------------------
header "HomeDashboard"
echo '<TABLE WIDTH="100%">'
#################
echo "</TR><TR>"
SHOWDATE='<iframe src="http://free.timeanddate.com/clock/i74k210t/n57/tlau/fn3/fs32/tcbbb/bas2/bat4/bac666/pa8/tt0/tw1/th1/ta1/tb4" frameborder="0" width="384" height="96"></iframe>'
# cell "`weather_forecast2`"
# cell "$SHOWDATE"
# cell "`weather_cam``weather_cam 11550`"
echo "<TD COLSPAN=2><CENTER>"
weather_forecast2
echo "</TD>"
cell "$SHOWDATE"
# cell "`weather_cam``weather_cam 11550`"
#################
echo "</TR><TR>"
# 128km radar
cell "`bom_img IDR403`"
# 128k Wind/Doppler
#cell "`bom_img IDR40I`"
#cell "`imgurl http://www.shopsmart.au.nu/cgi-bin/go.cgi \"\" 400`"
#cell "`imgurl 'http://www.shopsmart.au.nu/cgi-bin/dash/radar/radar2.cgi?X0=-35.663&Y0=149.511&A0=261&B0=261&X1=-35.3042&Y1=149.1903&A1=203&B1=182&X2=-35.157555&Y2=149.346770' 'http://www.shopsmart.au.nu/cgi-bin/dash/radar.cgi' 400`"
#cell "`imgurl 'http://www.shopsmart.au.nu/cgi-bin/dash/radar/radar2.cgi?X0=-35.663&Y0=149.511&A0=255&B0=255&X1=-35.3042&Y1=149.1903&A1=197&B1=176&X2=-35.157555&Y2=149.346770' 'http://www.shopsmart.au.nu/cgi-bin/dash/radar.cgi' 400`"
cell "`imgurl http://www.shopsmart.au.nu/zoom.gif 'http://www.shopsmart.au.nu/cgi-bin/dash/radar/radar2.cgi?X0=-35.663&Y0=149.511&A0=255&B0=255&X1=-35.3042&Y1=149.1903&A1=197&B1=176&X2=-35.157555&Y2=149.346770' 400`"
# 256k
#cell "`bom_img IDR402`"
cell "`abc_news`"
#################
echo "</TR><TR>"
# 12h = 43200 sec
# bom(act) temp,wind,gust
cell "`cacti 49 8,3,4 43200`"
let H=`/bin/date +%H`
if [ $H -gt 6 ] && [ $H -lt 20 ]; then
# solar pv1,pv2
cell "`cacti 552 2,3 43200`"
else
# bom(moruya) temp,wind,gust
cell "`cacti 48 8,3,4 43200`"
fi
cell "`weather_cam 11747``weather_cam 11550`"
#cell "`imgurl http://www.shopsmart.au.nu/cgi-bin/go.cgi``weather_cam 11550`"
#################
echo "</TR><TR>"
cell "`cacti 562 2,3 6030`"
cell "`cacti 568 2,3 6030`"
# 1 week = 604800 sec
#internode perc,days 604800
cell "`cacti 560 4,5 86400`"
#################
echo "</TR><TR>"
echo "</TABLE>"
footer