Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

The data gathered by the log module will be written to the "MY_DATA.HTM" file in the designated location.

You can view the log data in a browser. For example, in my case (Linux Mint, Firefox), it (URL) would be:

file:///media/sharil/MICROBIT/MY_DATA.HTM

The "MY_DATA.HTM" file contains all the HTML, CSS, and JavaScript necessary to render the logged data properly. You can use the command cat MY_DATA.HTM in a terminal to see what it looks like.

Try this script:

from microbit import run_every, sleep, temperature
import log

@run_every(s=10)
def log_temp():
    log.add(temp=temperature())

while True:
    sleep(100) # prevent script ending

I use mpremote to access the REPL.
+e (copy(<ctrl+shi…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jonnor
Comment options

You must be logged in to vote
4 replies
@shariltumin
Comment options

@kevinjwalters
Comment options

@shariltumin
Comment options

@shariltumin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants