Search found 192 matches

by jmleglise
Sunday 02 October 2022 16:43
Forum: Python
Topic: Python plugin: DomoticzLinky
Replies: 13
Views: 2138

Re: Python plugin: DomoticzLinky

Thank you for your plugins. Very helpful in these troubled times.

Winter is coming :-)
by jmleglise
Friday 21 January 2022 18:34
Forum: dzVents
Topic: How to script an Authorization header for OpenUrl
Replies: 4
Views: 1874

Re: How to script an Authorization header for OpenUrl

Solution 1 : You have a login/password for your external URL ? You can write them like this : domoticz.openURL('http://username:[email protected]/path/to/something?withparameters=1') Solution 2 : write your CURL command in a shell script and execute it with dzventz " search "Asynchronous shell ...
by jmleglise
Sunday 02 January 2022 11:00
Forum: Examples & Solutions
Topic: Solar Data script : Azimuth, Altitude, Lux
Replies: 39
Views: 8928

Re: Solar Data script : Azimuth, Altitude, Lux

Hi,

Version 3.1 already includes (since v1.5) the necessary adaptations.

Code: Select all

function math.pow(x, y)                                         -- Function math.pow(x, y) has been deprecated in Lua 5.3. 
	return x^y 
end
https://github.com/jmleglise/mylittle-d ... /SolarData
by jmleglise
Thursday 18 February 2021 15:41
Forum: Examples & Solutions
Topic: Solar Data script : Azimuth, Altitude, Lux
Replies: 39
Views: 8928

Re: Solar Data script : Azimuth, Altitude, Lux

Many of you make the mistake. Look at the wiki for the creation of the devices. There is even a screenshot for the devices to be created.

https://www.domoticz.com/wiki/Lua_dzVen ... titude_Lux
by jmleglise
Monday 15 February 2021 10:37
Forum: Examples & Solutions
Topic: Solar Data script : Azimuth, Altitude, Lux
Replies: 39
Views: 8928

Re: Solar Data script : Azimuth, Altitude, Lux

Thank you. I cleaned up a bit and rewrote the wiki that had disappeared. The lux is the part I'm least satisfied with. The quality really depends on the source you use for the cloud cover. It changes everything. - In the beginning we used ogimet.com but this source is losing weather stations ...
by jmleglise
Sunday 14 February 2021 22:05
Forum: Examples & Solutions
Topic: Get solar data without API [SOLVED]
Replies: 2
Views: 2470

Re: Get solar data without API [SOLVED]

░██████╗████████╗░█████╗░██████╗░ ██╔════╝╚══██╔══╝██╔══██╗██╔══██╗ ╚█████╗░░░░██║░░░██║░░██║██████╔╝ ░╚═══██╗░░░██║░░░██║░░██║██╔═══╝░ ██████╔╝░░░██║░░░╚█████╔╝██║░░░░░ ╚═════╝░░░░╚═╝░░░░╚════╝░╚═╝░░░░░ Please stop using this old thread. The new one is here : https://domoticz.com/forum/viewtopic.php ...
by jmleglise
Sunday 14 February 2021 22:00
Forum: Examples & Solutions
Topic: dzVents version of the Solar Data Script [SOLVED]
Replies: 175
Views: 50686

Re: dzVents version of the Solar Data Script [SOLVED]

░██████╗████████╗░█████╗░██████╗░ ██╔════╝╚══██╔══╝██╔══██╗██╔══██╗ ╚█████╗░░░░██║░░░██║░░██║██████╔╝ ░╚═══██╗░░░██║░░░██║░░██║██╔═══╝░ ██████╔╝░░░██║░░░╚█████╔╝██║░░░░░ ╚═════╝░░░░╚═╝░░░░╚════╝░╚═╝░░░░░ Please stop using this old thread. The new one is here : https://domoticz.com/forum/viewtopic.php ...
by jmleglise
Sunday 14 February 2021 21:54
Forum: Examples & Solutions
Topic: Solar Data script : Azimuth, Altitude, Lux
Replies: 39
Views: 8928

Solar Data script : Azimuth, Altitude, Lux

NB : Since its creation in 2015, this script has evolved into several forks and is discussed in several threads of this forum. So I merged the forks, clean up the version, rewrite again the wiki that had disappeared, and I close the other threads to centralize here the best version. ------ This LUA ...
by jmleglise
Wednesday 03 February 2021 13:49
Forum: dzVents
Topic: device.lastupdate in a device script
Replies: 3
Views: 353

Re: device.lastupdate in a device script

Hi waaren, thank you very much, This drived me crazy ...

I m in 2020.2.11995

So you advice to me to update with the beta channel ? (now : 2020.2.12913)

There is no strange behavior in this one ? :-)
by jmleglise
Wednesday 03 February 2021 13:35
Forum: dzVents
Topic: Xiaomi sensor:attempt to index a nil value (field 'lastUpdate')
Replies: 8
Views: 431

Re: Xiaomi sensor:attempt to index a nil value (field 'lastUpdate')

=> devices = {'Schuursensor'}
=> local Schuur = dz.devices('Schuur')

is it the same device ? So what is the right name ?
by jmleglise
Wednesday 03 February 2021 12:21
Forum: dzVents
Topic: device.lastupdate in a device script
Replies: 3
Views: 353

device.lastupdate in a device script

Hi, I don't understand the use of lastupdate. I thought that on a device script, for the device which trigger the script, it was supposed to return the last modification date before the execution of the script. (not the one which trigger the script). Look : return { on = { devices = { 'Door3 ...
by jmleglise
Sunday 28 April 2019 18:59
Forum: Other questions and discussions
Topic: a page error in the wiki
Replies: 0
Views: 374

a page error in the wiki

Hi, Do you know why this page returns a 404 now ? (I was the former author and it worked before), https://www.domoticz.com/wiki/Real-time_solar_data_without_any_hardware_sensor_:_azimuth,_Altitude,_Lux_sensor... It's indexed in the main page. If the name of the page is the problem, do you know how ...
by jmleglise
Sunday 02 September 2018 12:43
Forum: Speech & Voice Systems
Topic: Control Domoticz with your Alexa / Amazon Echo - simplest Way
Replies: 2
Views: 5054

Control Domoticz with your Alexa / Amazon Echo - simplest Way

This is the easiest method (and free) for everyone who knows how to deal with the Domoticz API. Only 5 clics to define an order like 'Alexa trigger the opening of the blind" or "Alexa trigger the alarm." This trigger fires every time you say "Alexa trigger" + the phrase that you have defined. In ...
by jmleglise
Thursday 20 April 2017 22:20
Forum: LUA
Topic: Real-time solar data : azimuth, Altitude, Lux sensor... [closed]
Replies: 245
Views: 69057

Re: Real-time solar data : azimuth, Altitude, Lux sensor...

Hi mike, With the script in Lua of this thread, you may have the Sun altitude and azimuth too. The good point is that all the formulae are inside the script. So It may be standalone and not depend of an Internet Service. So, if you don't need the Lux, you may delete all reference to ...
by jmleglise
Wednesday 21 December 2016 23:04
Forum: LUA
Topic: Vocal announcement - Good Morning Script
Replies: 73
Views: 21739

Re: Vocal announcement - Good Morning Script

Hi dijon :-) This script is not "ready to use". If you don't understand and don't have the skill to complete the script , just delete the part line 26 to 30. If you want to persist for the "weather vigilance", then you have to implement this another script (only for France): https://easydomoticz.com ...
by jmleglise
Saturday 17 December 2016 22:39
Forum: LUA
Topic: Vocal announcement - Good Morning Script
Replies: 73
Views: 21739

Re: Vocal announcement - Good Morning Script

Hi,

You have the right json.lua file.

Did you named your script : "script_time_presence.lua" ?!? Our vocal script shall be a device script.
Are you sure that you aren't mixing everything ?
by jmleglise
Thursday 17 November 2016 22:00
Forum: Other questions and discussions
Topic: Watermeter with ESP8266
Replies: 31
Views: 18661

Re: Watermeter with ESP8266

Bravo !

Do you know the power consumption of your card ?
And do you think it's possible to use battery ?
by jmleglise
Thursday 17 November 2016 21:54
Forum: Others
Topic: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Replies: 325
Views: 103565

Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor

You may find here some information to use Bluetooth low energy with raspberry.

http://www.domoticz.com/wiki/Presence_d ... gy_Beacon)
by jmleglise
Thursday 17 November 2016 21:34
Forum: LUA
Topic: Yes , another Alarm script ...
Replies: 2
Views: 2077

Re: Yes , another Alarm script ...

Thank you for your feed back,
place security status (arm away/arm home/disarm) inside the script.
I don't understand. what do you mean ?

And what do you advice in case of power outage ? (I have my domotic + internet box + siren backed up on an UPC. And I can detect a power outage with the upc)