Search found 1163 matches

by jvdz
Monday 10 December 2018 23:17
Forum: LUA
Topic: Sharing : Afval kalendar in text sensor
Replies: 84
Views: 12866

Re: Sharing : Afval kalendar in text sensor

There was an pullrequest 2 days ago since the website changed from http:// to https://
https://github.com/jvanderzande/mijnafvalwijzer/pull/1

Think that will fix it for you too.

Jos
by jvdz
Monday 10 December 2018 17:58
Forum: LUA
Topic: LUA script set security status to .. by remote
Replies: 5
Views: 146

Re: LUA script set security status to .. by remote

As I mentioned in my previous post: That second part needs to be done in the script_security_panel-changes.lua script as that is fired when the SecPanel changes. So just create that file and add these lines: commandArray = {} print('SecPanel: status changed to ' .. globalvariables['Security']) retur...
by jvdz
Sunday 09 December 2018 15:54
Forum: Bugs and Problems
Topic: Using Telegram Bot to Send Photos with Curl
Replies: 79
Views: 29063

Re: Using Telegram Bot to Send Photos with Curl

Looks like your second request is wrong and should be:

Code: Select all

curl -s -X POST "https://api.telegram.org/bot<token>/sendPhoto" -F chat_id=-230445047 -F photo="@$SnapFile"
Jos
by jvdz
Friday 07 December 2018 15:12
Forum: LUA
Topic: LUA script set security status to .. by remote
Replies: 5
Views: 146

Re: LUA script set security status to .. by remote

That is because the actual change of the secpanel is done bij domoticz after the LUA script handed the CommandArray back at termination time.
Just make a script called "script_security_panel-changes.lua" and put the print statement in there as this script is only fired when the secpanel changes.

Jos
by jvdz
Wednesday 05 December 2018 13:23
Forum: Third party and supplementary tools
Topic: dtgbot - Domoticz TeleGram BOT
Replies: 323
Views: 52033

Re: dtgbot - Domoticz TeleGram BOT

This is an issue since the last production version of Domoticz where the Selector switch options are encoded with base64, and you are the first one reporting the issue as I haven't upgrade my production system as yet. :) I will have a look at this in the coming days an post the fix. PM me in case yo...
by jvdz
Saturday 01 December 2018 23:34
Forum: LUA
Topic: Get Solar data with lua
Replies: 5
Views: 251

Re: Get Solar data with lua

I have added some print statements to check what is happening and this simple test script works fine for me: JSON = assert(loadfile "JSON.lua")() local connection local contt local lua_value local connection = assert(io.popen("curl https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field...
by jvdz
Saturday 01 December 2018 19:44
Forum: LUA
Topic: Get Solar data with lua
Replies: 5
Views: 251

Re: Get Solar data with lua

Doubt this script ever worked as shown as the lua_value table filled by the JSON:DECODE() is overridden the next line with the raw received data: local lua_value =(raw_json_text) ... and Data1 is never decoded but simply filled with the raw data, so all will be filled with nil (is my guess). :) Jos
by jvdz
Monday 26 November 2018 9:23
Forum: Suggestions
Topic: LCD Support with ESPEasy
Replies: 1
Views: 425

Re: LCD Support with ESPEasy

Why not simply simply use a script (DzVents/LUA/Bash) in stead wanting to do this with a plugin?

Jos
by jvdz
Thursday 22 November 2018 9:59
Forum: Third party and supplementary tools
Topic: dtgbot - Domoticz TeleGram BOT
Replies: 323
Views: 52033

Re: dtgbot - Domoticz TeleGram BOT

That is what you posted earlier and I responded to with:
No idea about that last one.
It seems you downloaded another version of libssl which I guess is causing this. Can't you reverse that action and test again?

Jos
by jvdz
Wednesday 21 November 2018 22:44
Forum: Third party and supplementary tools
Topic: dtgbot - Domoticz TeleGram BOT
Replies: 323
Views: 52033

Re: dtgbot - Domoticz TeleGram BOT

No idea about that last one.
by jvdz
Wednesday 21 November 2018 22:40
Forum: Third party and supplementary tools
Topic: dtgbot - Domoticz TeleGram BOT
Replies: 323
Views: 52033

Re: dtgbot - Domoticz TeleGram BOT

I don't have this in /usr/local/share/lua/5.2/
rwxr-xr-x 1 root root 61293 Jul 5 2015 ssl.so
only in /usr/local/lib/lua/5.2
Could that be the issue?

Jos
by jvdz
Wednesday 21 November 2018 22:12
Forum: Third party and supplementary tools
Topic: dtgbot - Domoticz TeleGram BOT
Replies: 323
Views: 52033

Re: dtgbot - Domoticz TeleGram BOT

So the file seems to be there. Could you show me the result of these commands ran on the PI itself? :
ls -l /usr/local/lib/lua/5.2
ls -l /usr/local/share/lua/5.2/

Jos
by jvdz
Wednesday 21 November 2018 21:53
Forum: Third party and supplementary tools
Topic: dtgbot - Domoticz TeleGram BOT
Replies: 323
Views: 52033

Re: dtgbot - Domoticz TeleGram BOT

The second part of the linked topic should have extracted the files in that folder.
Did you check which files are present in /usr/local/lib/lua/5.2/ ?

Jos
by jvdz
Wednesday 21 November 2018 20:03
Forum: Third party and supplementary tools
Topic: dtgbot - Domoticz TeleGram BOT
Replies: 323
Views: 52033

Re: dtgbot - Domoticz TeleGram BOT

It looks like you missed the part to install the LUA libraries in the Wiki:
https://www.domoticz.com/wiki/Remote_Co ... _Libraries

Jos
by jvdz
Tuesday 20 November 2018 21:26
Forum: LUA
Topic: Average outside temperature with Lua
Replies: 21
Views: 732

Re: Average outside temperature with Lua

Now I use the script for measure the "Gasverbruik per graaddag" in conjunction with the previous script "average temperature" The following error is in the error log " 2018-11-20 20:17:00.475 Error: EventSystem: Lua script Gasverbuik per graaddag did not return a commandArray What do I wrong? This ...
by jvdz
Tuesday 20 November 2018 21:20
Forum: LUA
Topic: Average outside temperature with Lua
Replies: 21
Views: 732

Re: Average outside temperature with Lua

Now I want to use the the real outside temperature measurement, but this one is from the type degree C and Humidity % How do I separate the degree C from Humidity %, so that I only measure the degree C. Have you tried and didn't it work, because as far as I know the JSON result contains field TE co...
by jvdz
Monday 19 November 2018 23:33
Forum: LUA
Topic: Average outside temperature with Lua
Replies: 21
Views: 732

Re: Average outside temperature with Lua

What does the rest of the log messages show as this is the very last part stating it didn't set the value for the variable?
Are you sure about the devicename for temperature_name being "Gemiddelde Temp buiten" (check upper/lower case as well)?

Jos
by jvdz
Sunday 18 November 2018 22:29
Forum: LUA
Topic: Average outside temperature with Lua
Replies: 21
Views: 732

Re: Average outside temperature with Lua

That line should be without "/code]"at the end, but that is not the error you see. I assume you are using user&password to access your domoticz systems and you aren't prvoding the userid&password on the url? The easy way out would be to change the ip asdress to 127.0.0.1 when you run the script on t...
by jvdz
Sunday 18 November 2018 19:54
Forum: LUA
Topic: Average outside temperature with Lua
Replies: 21
Views: 732

Re: Average outside temperature with Lua

Change the JSON.lua line to the one you had as I am testing on a different setup. :roll:
Jos