fechu / pitemp Goto Github PK
View Code? Open in Web Editor NEWCheck your Raspberry Pi's temperature in your browser!
Check your Raspberry Pi's temperature in your browser!
PHP Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in /mnt/data/www/PiTemp/monitor.php:11
Stack trace:
#0 /mnt/data/www/PiTemp/monitor.php(11): DateTime->__construct()
#1 {main}
thrown in /mnt/data/www/PiTemp/monitor.php on line 11
Using date_default_timezone_set(UTC) gets round this.
However that then causes.
PHP Parse error: syntax error, unexpected '$temp' (T_VARIABLE) in /mnt/data/www/PiTemp/monitor.php on line 8
Any ideas?
The plotly information in the README should be integrated in "nice" way into the rest of the content.
Hello !
First of all, thanks for this script, been looking toward monitoring my Pi temperature .. :)
Second, I think there is a little typo in your config,
// Example is for apache only.
// Replace /var/www/ with the webroot of your webserver
cd /var/www
git clone https://github.com/fechu/PiTemp
This creates a PiTemp folder in your /var/www/ folder, am I right ?
And in the rest of the configuration, you seem to refere to it as /var/www/ monitor /, as we can see in the cron tab line */15 * * * * root /var/www/monitor/monitor.php
Is there a configuration that I missed ?
Thx again :)
[EDIT] : and I can't try if this works, the page is not rendered .. It's just displaying the code :( (I'm accessing through ssh from a remote place, not through my network, but I have port forwarding which works great .. )
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.