Wget from pc

From F256 Foenix
Revision as of 22:33, 26 December 2023 by Gadget (talk | contribs) (Copied content from @Mu0n's post to the Discord's networking technical forum.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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!