maxklos / weatherprojekt Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Try and Except should be inplemented as often as possible in order to achieve usefull error messages.
for example:
We could change the code like this, so we can get at least some readings and can better determent where the error is. Just add Finally like this:
ReadData.py line: 20-35
def writeDATA(s):
try:
temp = sensor.read_temperature()
pascals = sensor.read_pressure()
press = pascals / 100
hum = sensor.read_humidity()
except:
print 'Sensor Error. Please try again.'
finally:
print str(temp)
print str(press)
print str(hum)
We need a way to reset the TCP port before we establish a connection.
So we can close and reconnect to the server as often as we wish with out the need of an reboot.
We need a config file.
as mentioned in the title, we need a config file for an easy setup process. There should be a config file for the Server and for the Client and should contain:
Client: - Server ip + Port
Custom PiIp
Some information about the sensor or which Data should be send to the server
Server:
His own ip + port
Database
Sensor and PiIp whitelist
Both should have an option to toggle the output completely
Hello,
The program needs to commit the data into the DB every time it receives data.
With the current setup the program wouldn't submit any Data to the db when it's running in infinity mode.
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.