Hello,

I did something similar with the ncftpput command to [shell].
It may be very un-standard indeed but it worked for me and is quite simple.
The example patch generates a textfile in your home directory with some random data and sends it over ftp.
Then refresh the page in your browser to see the updates...
see http://www.timvets.net/software/pd_ncftpput_example.pd

Tim

mami music wrote:
hi
i wanna show some data of a pd patch on a webpage, for monitoring remotely what is going on on the patch. It can have a latency when showing on the webpage. and data would be integrer numbers, that can be refreshed every 500 msec. Im wondering how to create a webpage that receives a remote connection from PD (i have no clue of what sort [netsend]? or [osc]?) and using it´s content to update the data on the page. Which is the direction to look for: programming in javascript the code of the webpage? or using some sort of XML or PHP? (which i have no experience at all) is there any starndar way to do this? thanks for your help daniel
------------------------------------------------------------------------

_______________________________________________
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

#N canvas 28 31 710 571 10;
#X obj 192 297 shell;
#X obj 192 329 print;
#X obj 106 65 until;
#X msg 106 41 500;
#X msg 106 205 add2 \$1;
#X obj 106 412 textfile;
#X obj 103 -15 t b b b b;
#X obj 103 -45 metro 20000;
#X msg 170 17 set;
#X obj 103 -66 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X text 138 -112 this uploads a new version of a test file to;
#X text 256 197 the program ncftp must be installed;
#X text 250 216 (on ubuntu: sudo apt-get install ncftp);
#X obj 106 115 sel 0 1 2 3 4 5 6 7;
#X obj 106 91 random 8;
#X obj 106 179 symbol;
#X msg 144 147 u;
#X msg 178 147 u;
#X msg 214 147 u;
#X msg 249 148 n;
#X msg 286 149 n;
#X msg 323 149 h;
#X msg 357 149 u;
#X msg 106 148 h;
#X text 138 -72 every 20 seconds \, using ncftpput;
#X text 140 -93 the specified location;
#X msg 192 243 ncftpput -u <username> -p <password> <remote_site> 
<remote_folder>
<local_file>;
#X msg 125 373 write /home/testpdftp.txt;
#X text 604 248 < adapt !;
#X text 308 413 example at www.timvets.net/testpdftp.txt;
#X connect 0 0 1 0;
#X connect 2 0 14 0;
#X connect 3 0 2 0;
#X connect 4 0 5 0;
#X connect 6 0 26 0;
#X connect 6 1 27 0;
#X connect 6 2 3 0;
#X connect 6 3 8 0;
#X connect 7 0 6 0;
#X connect 8 0 5 0;
#X connect 9 0 7 0;
#X connect 13 0 23 0;
#X connect 13 1 16 0;
#X connect 13 2 17 0;
#X connect 13 3 18 0;
#X connect 13 4 19 0;
#X connect 13 5 20 0;
#X connect 13 6 21 0;
#X connect 13 7 22 0;
#X connect 14 0 13 0;
#X connect 15 0 4 0;
#X connect 16 0 15 0;
#X connect 17 0 15 0;
#X connect 18 0 15 0;
#X connect 19 0 15 0;
#X connect 20 0 15 0;
#X connect 21 0 15 0;
#X connect 22 0 15 0;
#X connect 23 0 15 0;
#X connect 26 0 0 0;
#X connect 27 0 5 0;
_______________________________________________
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to