[block] "Current time block" request - query via NTP or WoT library?

Issue #24 resolved
Kathy Giori created an issue

As a developer I might want to show the current time on the micro:bit "scroll text" display. Or I might want to show the current time on a small LCD or other TFT display connected to some other MCU such as ESP32. It would be nice to have a block that knows the time.

In the IDE, the back end of the block could be synced via NTP (network time protocol). Running independent, NTP queries should still work assuming it is an IP-based device. But if not IP-based, maybe it can query for the current time using the Mozilla Web of Things library connected to the Mozilla WebThings Gateway Adapter.

Comments (1)

  1. John Maloney repo owner

    MicroBlocks 0.4.0 includes support for HTTP (on WiFi-enabled boards) and includes an example that gets the time from a server.

  2. Log in to comment