Close

Experimenting With API's

A project log for MiniPico v1

A tiny handheld dev console, with a 12 button keypad, Pi Pico W inside, piezo buzzer, and 128x64 OLED.

gordonGordon 01/15/2025 at 16:140 Comments

Before I go back to working on the interpreter I decided to add some more system features.

"s.g" can be used to fetch a URL if connected to the internet.

"s.s" Will create a server and allow client to load a web page either over Pico AP or through LAN depending on Pico W's connection state. The web page has a single text area for writing a program and uploading to device. WIP

"s.gw" will call weather API, get the next 48 hours of data. 48 data points of Temperature, Humidity, Cloud Cover, and Chance of Precipitation. The API I am using can be fined tuned for many different weather data points but these were what I thought I would find most useful.

"s.c" will show a graph of this weather data:

In the photo above the randomly scattered data points are from the cloud cover plot line. the lower it is on the screen the sunnier it is. The numbers on left hand side are for % of (clouds, humidity, chance of precipitation) or temperature in Fahrenheit.

Connection to internet over wifi, on initial connection RTC time will be synced with NTP. This can then be retrieved by the command "s.t".

Discussions