ethan-mccarthy / ems-display Goto Github PK
View Code? Open in Web Editor NEWCode running on the Raspberry Pi Zero W powering the UCLA EMS E-Ink Display
License: MIT License
Code running on the Raspberry Pi Zero W powering the UCLA EMS E-Ink Display
License: MIT License
On the DW shift of the first day of the month maintenanceData.py attempts to get the maintenance for the shift the night before (EM on the last day of the previous month) -- this causes an error relating to the index being out of range.
I think this is because the calculation to get the maintenance duty for the prior shift involves something along the lines of: (current shift - 1). This index normally functions fine, but on the first shift of the month, the subtraction results in the program attempting to get a dataframe entry that is at position "-1" which doesn't exist.
There's a logic issue where after midnight the program will get the maintenance data for the current date. Since the program is aware that it is still an EM (current time < 0700) the program will print the "EM" maintenance from the maintenance dataframe. However, since the current date has changed, the "EM" maintenance entry is actually the maintenance duty for the next EM crew.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.