After loading the project onto your CLUE with PyLeap, close out of the PyLeap app. This disconnects the CLUE from PyLeap to allow it to connect to File Glider.

You need to close out of PyLeap before connecting to File Glider. The CLUE can only be connected to one app at a time.

Find Your Nominal Baseline Pressure

Use this standard atmosphere calculator to determine your nominal baseline pressure. You'll need to know your location's elevation, which can be found by doing a search online with "[location] elevation".

Enter your elevation in the altitude input box. Then, click CALCULATE. In the output section, you'll use the pressure in mb as your nominal baseline pressure number.

Edit With File Glider

You can edit your code with your nominal baseline pressure by connecting your CLUE to File Glider, select Explorer to view the file directory of your CLUE. Then, select code.py to edit the code file. 

You can edit the NOMINAL_PRESSURE variable to equal your nominal baseline pressure value that you calculated with the atmosphere calculator.

When you're ready to load your updated badge, select Save in the app. You'll see the CLUE reset and begin running the code.

The servo will point to the weather condition according to deviations from the nominal baseline pressure that you've entered into the code.

The CLUE display will show the temperature and air pressure reading from the BMP280. You can press the A button to show the information in metric units (Celsius and hPa) or you can press the B button to show the information in imperial units (Fahrenheit and inHg).

This guide was first published on Oct 19, 2022. It was last updated on Mar 27, 2024.

This page (Usage) was last updated on Mar 08, 2024.

Text editor powered by tinymce.