Add files via upload

This commit is contained in:
MatMasIt 2021-09-16 23:19:19 +02:00 committed by GitHub
parent 3a4618312e
commit d441b84dd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 59 additions and 0 deletions

6
all.sh Normal file
View File

@ -0,0 +1,6 @@
echo " "$(date)
bash meteo.sh
php feed.php | fold -w 40 | sed 's/^/ /'
echo "-----------------------" | sed 's/^/ /'
echo "Lezioni di oggi: " | sed 's/^/ /'
cat orari/$(date +"%a") | sed 's/^/ /'

25
feed.php Normal file
View File

@ -0,0 +1,25 @@
<?php
$content = file_get_contents("https://www.ansa.it/sito/ansait_rss.xml");
// Instantiate XML element
$a = new SimpleXMLElement($content);
echo "News:\n";
$list=$a->channel->item;
$tot=5;
if(count($list)<$tot) $tot=count($list);
for($i=0;$i<$tot;$i++) {
$entry = $list[$i];
$dt = date("d/m/Y H:i:s",strtotime($entry->pubDate));
echo "* ".$dt." * " . $entry->title . "\n";
}
$content = file_get_contents("http://www.liceococito.edu.it/feed/");
// Instantiate XML element
$a = new SimpleXMLElement($content);
echo "\n---------------\nNews dal Liceo:\n";
$list=$a->channel->item;
$tot=5;
if(count($list)<$tot) $tot=count($list);
for($i=0;$i<$tot;$i++) {
$entry = $list[$i];
$dt = date("d/m/Y H:i:s",strtotime($entry->pubDate));
echo "* ".$dt." * " . $entry->title . "\n";
}

1
meteo.sh Normal file
View File

@ -0,0 +1 @@
curl -s wttr.in/Alba%20CN?1qnTF | sed 's/^/ /'

1
orari/dom Normal file
View File

@ -0,0 +1 @@
Girono Libero

5
orari/gio Normal file
View File

@ -0,0 +1,5 @@
Orazietti
Mazza
Genta
Genta
Gallo

5
orari/lun Normal file
View File

@ -0,0 +1,5 @@
Bori
Mazza
Gallo
Saglietti
Orazietti

5
orari/mar Normal file
View File

@ -0,0 +1,5 @@
Genta
Genta
Ridolfi
Ridolfi
Orazietti

5
orari/mer Normal file
View File

@ -0,0 +1,5 @@
Mazza
Bori
Genta
Genta
Saglietti

1
orari/sab Normal file
View File

@ -0,0 +1 @@
Giorno Libero

5
orari/ven Normal file
View File

@ -0,0 +1,5 @@
Mondini
Mondini
Cerruti
Bori
Mazza