I am trying to create a dashboard for our office, and I want to show the occupancy of the meeting rooms (we, unfortunately, do not have a proper meeting room system). I have some sensors which can spit out a CSV of whether the motion is detected or not and I have a plan of the office with the green or red overlays for each room.
Where I am stuck is in how to toggle the visibility of green or blue in the dashboard based on the CSV values. I.e. if the last value is "MotionDetected", show red, if the value is not "MotionDetected" then show green.
I'm very new to any coding, so I only have basic knowledge. Any help would be much appreciated!
Thanks in advance!
The expected output is if the last value in the CSV is "MotionDetected", show red, if the value is not "MotionDetected" then show green.