Wget from pc: Difference between revisions

From F256 Foenix
Jump to navigationJump to search
(Copied content from @Mu0n's post to the Discord's networking technical forum.)
 
(Corrected python syntax.)
 
Line 4: Line 4:
Assuming you've installed Python3 on your modern computer, just go to the folder you want to share across your LAN with:
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}  
:python -m http.server {portnumber}


(suggestion: portnumber=8000)
(suggestion: portnumber=8000)
Line 13: Line 13:
example, if you wanted to share mycoolprogram.bas from your modern machine at address 192.168.0.44 using port 8000, you'd do:
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
:python -m http.server 8000


and
and

Latest revision as of 19:21, 28 January 2025

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 http.server {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 http.server 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!