And that is working?
Why is no one using open weather map??
https://openweathermap.org/
Moderator: leecollings
Could it be related to the switch from Lua 5.2 to Lua 5.3 in domoticz ?Toulon7559 wrote: ↑Saturday 30 November 2019 13:03 If 'normally' running the script, then the error report in the Log refers to component 'pow' in this line
M0 = math.sqrt(1229 + math.pow(614 * sinusSunAltitude,2)) - 614 * sinusSunAltitude
Puzzled, because nothing changed in the script, and the uservariable 'octa' is not nil
jmleglise wrote: ↑Tuesday 19 January 2016 22:23 This script is documented in the wiki : http://www.domoticz.com/wiki/Real-time_ ... _sensor...
Edit 19 March 2016 - V1.4 - Take the last version of this script in the wiki. http://www.domoticz.com/wiki/Real-time_ ... structions
Edit 3 sept 2017 - V2 - The script is now translated in dzevent framework http://www.domoticz.com/forum/viewtopic ... 59&t=19220
------
Hi everyone,
This LUA script calculates in real-time a lot of usefull solar data without any hardware sensor. The result is very satisfactory. I hope you will enjoy it.
Data :
Azimuth : Angle between the Sun and the north, in degree. (north vector and the perpendicular projection of the sun down onto the horizon)
Altitude : Angle of the Sun with the horizon, in degree.
Lux : radiation of the sun with real time cloud layer
and many more
The calculation is based on the theoretical radiations of the sun according to its location in the sky, calculated according to the time and the number of day in the year, plus the real-time cloud layer and the real-time weather (pressure) :
- Geographical address
- Altitude of the geographical point
- Atmospheric pressure of the place / from api.wunderground.com
- The cloudiness in Octa (1/8) / from ogimet.com
-- What is it For ? ------------------------------------------------------
Manage exactly roller blinds and venetian blind. both to optimise the heating and to prevent dazzle.
Manage your light according to the Luminosity
Use civil twilight dawn and dusk (-6 deg altitude) instead of sunrise and sunset.
Some calculation about photovoltaic production ?
Automate the heating of swimming pool
Personally I use a roller blind to wake up instead of an alarm clock, with a progressive opening of the roller blind to prevent dazzle.
-- History ------------------------------------------------------
I have improved the huge work of Sébastien Joly (on an another automation system) that Neutrino has migrated to Domoticz.
I deeply encourage you to visit the very interesting, original post in French : http://www.domotique-info.fr/2015/09/ou ... ecenter-2/
And the others documentations and source of the formulae :
http://www.plevenon-meteo.info/techniqu ... ement.html
http://herve.silve.pagesperso-orange.fr/solaire.htm
https://en.wikipedia.org/wiki/Azimuth
https://en.wikipedia.org/wiki/Dawn
There was even already a first implementation of these formulae here http://www.domoticz.com/forum/viewtopic.php?f=23&t=6793, but I choose to complete the other implementation.
Users browsing this forum: No registered users and 0 guests