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.
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.
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.
Text editor powered by tinymce.