Search found 29 matches

by gertlind1
Monday 18 February 2019 11:33
Forum: LUA
Topic: Average daily lowest temperature
Replies: 4
Views: 910

Re: Average daily lowest temperature

Works as a charm now, thanks a lot. 2019-02-18 11:32:00.181 Status: dzVents: Info: getMonthlyTemperature: ------ Start external script: daily_temp_average.lua:, trigger: every minute 2019-02-18 11:32:00.197 Status: dzVents: Debug: getMonthlyTemperature: Processing device-adapter for Ute: Temperature ...
by gertlind1
Monday 18 February 2019 9:26
Forum: LUA
Topic: Average daily lowest temperature
Replies: 4
Views: 910

Re: Average daily lowest temperature

Hi waaren Thanks for your effort. I do get an error. I have only HTTPS enabled. Tried to enable HTTP port 8080, no improvement. Also tried to inject user and pw, same problem. WHen i run the query from chrome it works. 2019-02-18 09:23:00.154 Status: dzVents: Info: getMonthlyTemperature ...
by gertlind1
Sunday 17 February 2019 10:45
Forum: LUA
Topic: Average daily lowest temperature
Replies: 4
Views: 910

Average daily lowest temperature

Hi Need some help with a LUA script Im running this query : https://xxxx.com/json.htm?type=graph&sensor=temp&idx=19&range=month Getting below output, this is great so far. I want to get out the "tm" temp for the last 7 days, add them and divide by 7. Where do i start ? { "result ...
by gertlind1
Sunday 08 January 2017 15:59
Forum: Z-Wave
Topic: razberry.z-wave.me
Replies: 4
Views: 1205

Re: razberry.z-wave.me

Ok, i have borrowed the previous model for testing.
Managed to get it included in Domoticz. Looking good so far. A bit bad range though.
I will probably by the version i linked to. Maybe it is some hardware tweak for the antenna (range).
by gertlind1
Sunday 08 January 2017 13:43
Forum: Z-Wave
Topic: razberry.z-wave.me
Replies: 4
Views: 1205

Re: razberry.z-wave.me

Hi geezerrr, great.

How did you add it to domoticz?
Is the antenna good, how far away can you have your devices ?
by gertlind1
Sunday 08 January 2017 11:10
Forum: Z-Wave
Topic: razberry.z-wave.me
Replies: 4
Views: 1205

razberry.z-wave.me

Is it possible to have below tighter with Domoticz?

http://razberry.z-wave.me/index.php?id=9
by gertlind1
Friday 06 January 2017 10:51
Forum: Others
Topic: nexa kct-510 remote
Replies: 4
Views: 1076

Re: nexa kct-510 remote

My Nexa switches works fine. I have AC and ARC enabled.
It is just this remote that doesn't work.
by gertlind1
Thursday 05 January 2017 15:51
Forum: Others
Topic: nexa kct-510 remote
Replies: 4
Views: 1076

Re: nexa kct-510 remote

Hi Stuntteam.

Thanks for your answer. I have an RFXtrx433 USB connected to my PI. Also using a lot of Nexa switches. This remote seems not to be recognized with the same protocol as the switches.
by gertlind1
Thursday 05 January 2017 10:26
Forum: Others
Topic: nexa kct-510 remote
Replies: 4
Views: 1076

nexa kct-510 remote

Hi guys

Anyone that knows how to add a Nexa kct-510 remote to Domoticz?
by gertlind1
Tuesday 13 December 2016 21:16
Forum: Installation, Compiling, Permissions, Security and Starting
Topic: [SOLVED] Configure personal SSL certificate on native Domoticz web server
Replies: 6
Views: 15187

Re: [SOLVED] Configure personal SSL certificate on native Domoticz web server

One thing i just noticed.

After an update https doesn't work.
Luckily i saved the generated server_cert.pem file to another place and copied it back to domoticz folder.
Restarted the service and all good again.

Could have been something else though, will see at the next update.
by gertlind1
Tuesday 13 December 2016 21:02
Forum: Installation, Compiling, Permissions, Security and Starting
Topic: [SOLVED] Configure personal SSL certificate on native Domoticz web server
Replies: 6
Views: 15187

Re: [SOLVED] Configure personal SSL certificate on native Domoticz web server

Very nice.
Works perfectly, good job.

I think you should add this to the WIKI.

---
Gert
by gertlind1
Saturday 19 November 2016 10:56
Forum: PHP and all others
Topic: Need help sorting out some values with script
Replies: 1
Views: 675

Need help sorting out some values with script

Hi Anyone that can show me how to sort out below values from a text file? "signalstrength":"30 % (4G)" ,"wanstatus":"CONNECTED" I want to make a check of my mobile internet connection in our cottage. I can get a file out from the 3/4G modem using curl, above information is in this file. I want to ...
by gertlind1
Monday 07 November 2016 9:38
Forum: LUA
Topic: How to get status of a group
Replies: 20
Views: 8280

Re: How to get status of a group

It is not a script its a function: Below is a part of my script script_device_motion.lua The function checks if a group if switches is on, off or mixed. GroupState(sArray) -- v1.0. 2016-01-18 -- Checks the state of a group of swithces. -- USAGE : GroupState({'Switch1','Switch2','Switch3','Switch4 ...
by gertlind1
Saturday 05 November 2016 10:15
Forum: LUA
Topic: How to get status of a group
Replies: 20
Views: 8280

Re: How to get status of a group

Hmm. Remove the libs.

Make it look like this :
function GroupState(sArray)

I have my functions scripts in a singel libs file.
by gertlind1
Thursday 03 November 2016 20:39
Forum: LUA
Topic: How to get status of a group
Replies: 20
Views: 8280

Re: How to get status of a group

It changes state only when I open the floorplan. Is there a way to changes every x seconds? I don't get you? It just checks the state of a group of devices. I use it as below: if (devicechanged['Rörelse'] == 'On' and libs.GroupState(aLivingroom) == 'Off') then If the "Group" of switches is "Off" ...
by gertlind1
Thursday 03 November 2016 20:04
Forum: LUA
Topic: How to get status of a group
Replies: 20
Views: 8280

Re: How to get status of a group

Try this and let me know how it works function libs.GroupState(sArray) -- v1.0. 2016-01-18 -- Checks the state of a group of swithces. -- USAGE : GroupState({'Switch1','Switch2','Switch3','Switch4','Switch5',more switches}) -- RETURNS : 'On' if all switches are on. -- : 'Off' if all switches are off ...
by gertlind1
Saturday 12 March 2016 16:12
Forum: PHP and all others
Topic: LUA, include file
Replies: 8
Views: 4131

Re: LUA, include file

Scripts created through the script editor are stored in the database but the only difference is how they are loaded by Domoticz prior to being handed to the Lua engine. Functionally external file inclusion should work the same way regardless of where the script is stored. Yes, works fine. Added a ...
by gertlind1
Saturday 12 March 2016 11:59
Forum: PHP and all others
Topic: LUA, include file
Replies: 8
Views: 4131

Re: LUA, include file

Forget it.
I cannot read or my glasses are dirty.

missed this
function lGroupState(sArray)

Did not add the "libs."GroupsState(sArray)

Works fine now.
Will move all my functions to libs.lua.

Tanks for the tip and the instruction.
by gertlind1
Saturday 12 March 2016 11:53
Forum: PHP and all others
Topic: LUA, include file
Replies: 8
Views: 4131

Re: LUA, include file

:-( Of course I can't get it to work. Created the /usr/local/share/lua/lua5.2/ Created a file there named libs.lua local libs = {}; function GroupState(sArray) -- v1.0. 2016-01-18 -- Checks the state of a group of swithces. -- USAGE : GroupState({'Switch1','Switch2','Switch3','Switch4','Switch5 ...
by gertlind1
Saturday 05 March 2016 15:48
Forum: Other questions and discussions
Topic: Water leakage sensor for RFXtrx433E
Replies: 17
Views: 5386

Re: Water leakage sensor for RFXtrx433E

Ok, got it to work. Created a dummy switch that the sensor switch can turn on. I hided the sensor switch with the $ sign. A lua turns on the dummy switch the a leakage is detected and sens an Prowl message. if (devicechanged['$Vattenlarm']) then print "VattenLarm AKUT" commandArray['Läcka Kök']='On' ...