-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sunshine hour #65
Comments
Hi lightmaster, Then the data is saved in a database (sunshine) every minute The sunshine.php file is launched by meteobridge every minute. modification of the sun3.php file (daylight/darkness) to display the hours of sunshine. The file accesses the sunshine database and counts the hours:minutes of sunshine. Furthermore, if the sun is shining the graphics will be a strong yellow dot. If the sun is in shade then it will be a semi-transparent yellow dot. edit the setting.php file to make the daylight/darkness pane update every minute. modification to the css/main.light main.dark file to have the word "sunshine" use the sunplot.php file to get the graph of the hours of sunshine. Use the emptySunshine.php file in meteobridge to empty the sunshine database at the end of the day. Things I couldn't do: To get an idea of what I'm talking about you can visit my site I wrote all the code in php so it's possible there are errors or better ways to do the calculations. The only file I got online is sunplot.php. It's a file taken from the weathercat forum. I tried to use the variables used in our settings.php so that there is nothing to configure. Copy the files and everything should work. I also created a sunshineTest.php file that just does a test and presents all the values on the screen, to make sure everything is working well. The mathematical formula inside sunshine.php/sunshineTest.php must be modified by the user to adjust the sun limit. There are three values that can be changed: I would like to share my work. If you or anyone else is interested I can attach the files. Thank you. |
Hey. Firstly, I've got a lot on my plate in my personal life with the holidays coming up. Can we address this after the new year? I did take a look at the sunplot on your site. A couple of things I noticed that would need to be addressed before being implemented, most of which I also notice are missing on your AQI popup. |
Hi,
there is a way to know the sunshine hour for a day/month/year?
I think it's possible with the solar sensor and i really hope that with some script we can have this.
Thank you so much for your work.
The text was updated successfully, but these errors were encountered: