User:Tancre/Others/How to set a live collective webpage (Raspberry Pi+Etherpad): Difference between revisions
< User:Tancre | Others
Line 11: | Line 11: | ||
The html file can be accessed online through the server. | The html file can be accessed online through the server. | ||
== What | == Where and What == | ||
/var/www/html/liveHTML | /var/www/html/liveHTML | ||
*README.txt | *README.txt |
Revision as of 19:04, 23 January 2019
How to set a 'live' collective webpage
What do you need?
- web server (Rapberry pi + apache2)
- etherpad
- Wget
How does it work?
Looping wget is possible to download every x sexonds the text from a pad into a html file.
The html file can be accessed online through the server.
Where and What
/var/www/html/liveHTML
- README.txt
- live.sh
How
live.sh
#!/bin/bash
while true # run a loop
do
wget -O live.tmp https://pad.xpub.nl/p/test/export/txt # download the txt of a pad's link into a file.tmp
mv live.tmp live.html # rename .tmp into .html
sleep 5 # 5 seconds delay
done # restart the loop