Menu

Tree [b69e0b] default tip /
 History

Read Only access


File Date Author Commit
 configurazioni 2021-10-24 M3nt0r3 M3nt0r3 [93a401] primo commit
 dao 2021-11-05 M3nt0r3 M3nt0r3 [89066f] fix vari
 data 2021-11-01 M3nt0r3 M3nt0r3 [b279b9] altro lavoro su biradb
 lib_birradb 2021-11-02 M3nt0r3 M3nt0r3 [6fdae9] fix vari
 web_ui 2021-11-05 M3nt0r3 M3nt0r3 [b69e0b] fix
 .hgignore 2021-10-24 M3nt0r3 M3nt0r3 [93a401] primo commit
 Elenco-comuni-italiani.csv 2021-10-31 M3nt0r3 M3nt0r3 [147ee4] procede
 Environment.py 2021-10-31 M3nt0r3 M3nt0r3 [147ee4] procede
 README 2021-10-24 M3nt0r3 M3nt0r3 [93a401] primo commit
 __init__.py 2021-10-24 M3nt0r3 M3nt0r3 [93a401] primo commit
 birradb.py 2021-10-27 M3nt0r3 M3nt0r3 [3f8baa] aggiunti file
 birrifici.csv 2021-10-31 M3nt0r3 M3nt0r3 [147ee4] procede
 requirements.txt 2021-10-24 M3nt0r3 M3nt0r3 [93a401] primo commit

Read Me

Comando per fare il requirement:
pipreqs .


#################################################

Comando per selezionare il python3 come default su raspberry

$sudo update-alternatives --install $(which python) python $(readlink -f $(which python3)) 3

oppure con :
$sudo update-alternatives
e poi seelzionando il numero della versionie di python che si vuole come default

##########################################################################

CLONE SORGENTI ZERO:
hg clone http://hg.code.sf.net/p/sublima-zero/code zero

################################################################
CRON LINE PIANIFICATORE:

$crontab -e

*/1 * * * *   cd /home/pi/zero && python /home/pi/zero/script_zero_pianificatore.py

###############################################################
CRON LINE ESECUZIONE AUTOMATICA:
$crontab -e

@reboot cd /home/pi/zero && python /home/pi/zero/zero.py >> /home/pi/zero.log 2>&1

CRON LINE AGGIORNAMENTO:

15 23 * * * cd /home/pi/zero && python /home/pi/zero/update_zero.py

##################################################################
creare un file 

sudo nano /etc/logrotate.d/zero

metterci dentro queste righe:

"/home/pi/zero.log" {
       daily
       rotate 7
       compress
       copytruncate
 }

e poi salvare
 con ctrl + x e poi S e poi invio



QUESTO NO!!!!
 crontab -e 

0 1 * * *  /usr/sbin/logrotate -f /etc/logrotate.d/zero
FIN QUI NO!!!

per avviare tutti i giorni all'una di notte la rotazione dei log 
#################################################################





Libreria utilizzata per i dialoghi jquery

https://craftpip.github.io/jquery-confirm/

icone 
https://saeedalipoor.github.io/icono/
MongoDB Logo MongoDB