cwalk / pi-temp Goto Github PK
View Code? Open in Web Editor NEWWeb server using a Raspberry Pi and DHT22 sensor to graph the humidity and temperature in my apartment over time.
Web server using a Raspberry Pi and DHT22 sensor to graph the humidity and temperature in my apartment over time.
Hi, i was wondering if there is an instruction on how to install the code on raspberry pi and set everything up.
Video did not cover anything for installation.
Thanks.
Mr. Walker I like your project!
You have done an excellent work, but I am trying to make it run and I am having these errors.
I am new in this, I would appreciate any help!
Thank you
Traceback (most recent call last):
File "/home/pi/Workspace/Pi-Temp/lab_app/env/bin/flask", line 11, in <module>
sys.exit(main())
File "/home/pi/Workspace/Pi-Temp/lab_app/env/lib/python3.5/site-packages/flask/cli.py", line 906, in main
cli.main(args=args, prog_name=name)
File "/home/pi/Workspace/Pi-Temp/lab_app/env/lib/python3.5/site-packages/flask/cli.py", line 569, in main
return super(FlaskGroup, self).main(*args, **kwargs)
File "/home/pi/Workspace/Pi-Temp/lab_app/env/lib/python3.5/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/pi/Workspace/Pi-Temp/lab_app/env/lib/python3.5/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/pi/Workspace/Pi-Temp/lab_app/env/lib/python3.5/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/pi/Workspace/Pi-Temp/lab_app/env/lib/python3.5/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/pi/Workspace/Pi-Temp/lab_app/env/lib/python3.5/site-packages/click/decorators.py", line 64, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/home/pi/Workspace/Pi-Temp/lab_app/env/lib/python3.5/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/pi/Workspace/Pi-Temp/lab_app/env/lib/python3.5/site-packages/flask/cli.py", line 779, in run_command
app = DispatchingApp(info.load_app, use_eager_loading=eager_loading)
File "/home/pi/Workspace/Pi-Temp/lab_app/env/lib/python3.5/site-packages/flask/cli.py", line 300, in __init__
self._load_unlocked()
File "/home/pi/Workspace/Pi-Temp/lab_app/env/lib/python3.5/site-packages/flask/cli.py", line 324, in _load_unlocked
self._app = rv = self.loader()
File "/home/pi/Workspace/Pi-Temp/lab_app/env/lib/python3.5/site-packages/flask/cli.py", line 381, in load_app
app = locate_app(self, import_name, name)
File "/home/pi/Workspace/Pi-Temp/lab_app/env/lib/python3.5/site-packages/flask/cli.py", line 236, in locate_app
__import__(module_name)
File "/home/pi/Workspace/Pi-Temp/lab_app/lab_app.py", line 85
print "rendering lab_env_db.html with: %s, %s, %s" % (timezone, from_date_str, to_date_str)
^
SyntaxError: invalid syntax
please you can add step by step installation.
i don't know how to use coding so usually i look step by step. if possible you can add installation file.
thanks
thanks before, sir
With the release of the 3.0 version of Python, the print function '()' is essential.
Perhaps written in the previous version, without '()'.
I want to know the latest Python code Plz T.T
How to add multiple DHT22 sensors to this?
your putting the entries into the database in localtimezone not in UTC so the math is off when the data is pulled out.
you should change the values on the env_log.py file to UTC as follows
values(datetime(CURRENT_TIMESTAMP)
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.