Fetch local weather from Dark Sky API.
https://wthr.ml/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
342 B
14 lines
342 B
#!/bin/bash
|
|
|
|
echo "<table>" ;
|
|
print_header=true
|
|
while read INPUT ; do
|
|
if $print_header;then
|
|
# echo "<tr><th>$INPUT" | sed -e 's/:[^,]*\(,\|$\)/<\/th><th>/g'
|
|
echo "<tr><th>${INPUT//,/</th><th>}</th></tr>" ;
|
|
print_header=false
|
|
else
|
|
echo "<tr><td>${INPUT//,/</td><td>}</td></tr>" ;
|
|
fi
|
|
done < dark-sky.csv ;
|
|
echo "</table>"
|