oasis-main / oasis-rpi Goto Github PK
View Code? Open in Web Editor NEWCollection of useful scada/iot tools designed to run on Raspberry Pi and similar embedded linux platforms.
License: GNU General Public License v3.0
Collection of useful scada/iot tools designed to run on Raspberry Pi and similar embedded linux platforms.
License: GNU General Public License v3.0
Hi,
first of all - awesome project!
I stumbled over some minor things here:
https://github.com/oasis-iot/grow-ctrl/blob/b9409719e04754bd89f3abca79bd002c3965d689/lightingElement.py#L32
The file handler is closed twice. Once implicitly in the 'with' clause and once directly afterwards. When using 'with' you do not need to close the handler by yourself (see: https://stackoverflow.com/questions/17459867/file-open-and-close-in-python).
Also you could move the 'GPIO.cleanup()' outside the try-except block as it should be executed anyway (bottom of the file).
Best regards,
Maurice
Edit: The double-close occurs in many of the other files as well
Sometimes when getting packages to download, the connection times out, causing that part of the setup to fail. However, the script continues to run, and it is unclear whether or not the installation has been a success.
Set up some sort of flag that will be tripped upon device deletion, enables the listener to exit gracefully
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.