Wget from pc

From F256 Foenix
Jump to navigationJump to search
Serving files w/ Python from your modern computer; getting to them with a F256 with wget
by @Mu0N

Assuming you've installed Python3 on your modern computer, just go to the folder you want to share across your LAN with:

python -m server.http {portnumber}

(suggestion: portnumber=8000) and then, with your Feather equipped F256K or F256Jr, assuming you have wget.pgz (github) in your SD card

/- wget.pgz http://{modern_pc_ip}:{portnumber}/{file_you_want}

example, if you wanted to share mycoolprogram.bas from your modern machine at address 192.168.0.44 using port 8000, you'd do:

python -m server.http 8000

and

/- wget.pgz http://192.16.0.44:8000/mycoolprogram.bas

Pro: avoids the wear and tear of ejecting/inserting the SD card back and forth between machines, easy to set up

Cons: lots of typing for every file that you want, but some simplications are on the way with future revisions of wget!