You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure the json information is changed the Fridge objects before starting this
Currently the information in the Fridge object holds the temperature of a given fridge based on the temperature sensors (or what they would show in the future) or a null/other value if there is not a temperature sensor in place. Create a function that interprets this numerical value into information that a user can understand:
Research the appropriate range of temperatures that are safe for a fridge and a freezer to have.
with this information, create a function that will take in the numerical values and produce a string that tells the user what the numbers mean (for example if the fridge last measured at 60 degrees, the function should produce a string that says "Fridge Temperature Too High", or if there is no sensor data it should produce "Fridge Temperature Unavailable", or if the freezer is measured at 5 degrees, it should produce "Freezer Temperature is in Safe Range"... these don't have to be word for word)
The function should return a tuple, or two item list including this text, and a color that the text should be displayed in (red if the temperature is unsafe, green if it is safe, yellow if it is unrecorded, etc)
implement this function to show this string within the FridgeInformation.js for the given fridge and display this text in a color that denotes its meaning as created above.
The text was updated successfully, but these errors were encountered:
Make sure the json information is changed the
Fridge
objects before starting thisCurrently the information in the
Fridge
object holds the temperature of a given fridge based on the temperature sensors (or what they would show in the future) or a null/other value if there is not a temperature sensor in place. Create a function that interprets this numerical value into information that a user can understand:FridgeInformation.js
for the given fridge and display this text in a color that denotes its meaning as created above.The text was updated successfully, but these errors were encountered: