Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8082

General discussion • Re: Raspberry Pi Pico WH main.py

$
0
0
I added:

"weather_api_key":"",
"city":"",
"country_code":""

You can output print statements and errors to a file using:

Code:

import oslogfile = open('log.txt','a')os.dupterm(logfile)

Statistics: Posted by rpiMike — Fri Mar 07, 2025 6:22 pm



Viewing all articles
Browse latest Browse all 8082

Trending Articles