Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function to Interpret Fridge Termperature #21

Open
4 tasks
taylor-stevens opened this issue Apr 25, 2022 · 0 comments
Open
4 tasks

Function to Interpret Fridge Termperature #21

taylor-stevens opened this issue Apr 25, 2022 · 0 comments
Labels
Milestone

Comments

@taylor-stevens
Copy link
Owner

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.
@taylor-stevens taylor-stevens added the enhancement New feature or request label Apr 25, 2022
@taylor-stevens taylor-stevens self-assigned this Apr 26, 2022
@taylor-stevens taylor-stevens added this to the Early May milestone Apr 26, 2022
@taylor-stevens taylor-stevens removed their assignment Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant