<\/span><\/h4>\nThe ability of KookaBlockly to show the MicroPython script behind the blocks and to access the debugging editor associated with the onboard MicroPython code compiler allows a user to debug a KookaBlockly programme in real time. This is an example…<\/p>\n
Suppose that you made an error whilst coding the MEDIUM RISK If-Do statement in Resource 3. You are working with two temperature variables – one a string (Temp) and one an object (Temp2) – and you mix them up when defining the temperature range as shown below<\/p>\n
<\/p>\n
Make sure that the Kookaberry is still connected to a PC or Mac running KookaBlockly when you are creating and debugging your programmes.<\/em><\/p>\nWhen the temperature of the sensor is raised (use a hair dryer) above 24 degrees, and the MEDIUM RISK conditions are met, the programme stops and the following code error message appears in the KookaBlockly window. It indicates a string\/object conversion error on line 40 of the underlying MicroPython code.<\/p>\n
Click in the Show script box at the top right of the screen and expand to full page where you will see that Line 40 contains both the Temp2 and Temp variables It should only contain the one Temp2 variable.<\/p>\n
Return to the KookaBlockly window by exiting the script page and correct your programme. You will need to disconnect and reconnect your Kookaberry after you have made the change.<\/p>\n
<\/p>\n
<\/span>Resource 5: Build and programme an indicator showing the new AFDRS<\/span><\/h4>\n<\/span>Overview<\/span><\/h5>\nOn the 1st September 2022 a new 4-stage Fire Danger Rating System (AFRDS) was introduced which replaced the old 6-stage system. The levels are<\/p>\n
\n- MODERATE<\/strong><\/span>: Plan and prepare<\/li>\n
- HIGH<\/strong><\/span>: Be ready to act<\/li>\n
- EXTREME<\/strong><\/span>: Take action now to protect life and property<\/li>\n
- CATASTROPHIC<\/strong><\/span>: For your survival, leave bushfire risk areas.<\/li>\n<\/ul>\n
Read more about this change, and the reasons for it at these links<\/p>\n