Search found 12 matches

by hansonexperience
Wednesday 25 March 2020 16:05
Forum: dzVents
Topic: Update of Lua to version 5.3 in domoticz V4.11439. with potential effects on Lua and dzVents scripts
Replies: 20
Views: 3755

Re: Update of Lua to version 5.3 in domoticz V4.11439. with potential effects on Lua and dzVents scripts

I am using lua script now and want to use this script in dzVents. Never did that. I have solar power in a device coming in how can I change the script so that this also uploaded? And were exactly do I have to store the api and password? When not yet familiar with dzVents please start with reading ...
by hansonexperience
Wednesday 25 March 2020 13:12
Forum: dzVents
Topic: Update of Lua to version 5.3 in domoticz V4.11439. with potential effects on Lua and dzVents scripts
Replies: 20
Views: 3755

Re: Update of Lua to version 5.3 in domoticz V4.11439. with potential effects on Lua and dzVents scripts

Is a http request to upload my P1-meter output to pvoutput.org I only need b as a return value, which should be "OK 200: Added Status" from pvoutput.org Maybe this example can already put you on the right track. I use this script to send my energy data to pvoutput every 5 minutes. I stored my user ...
by hansonexperience
Wednesday 25 March 2020 11:54
Forum: dzVents
Topic: Update of Lua to version 5.3 in domoticz V4.11439. with potential effects on Lua and dzVents scripts
Replies: 20
Views: 3755

Re: Update of Lua to version 5.3 in domoticz V4.11439. with potential effects on Lua and dzVents scripts

EddyG wrote: Friday 31 January 2020 10:01 Tnx, I converted my script to openURL, but I will look into your script because it looks more simple then my script. :D
Hi I have the same issue. How did you convert your script to openURL? Could you share your script so I can use it? I have the same script.
by hansonexperience
Wednesday 25 March 2020 11:45
Forum: LUA
Topic: Lua version problem domoticz
Replies: 42
Views: 3747

Re: Lua version problem domoticz

I skipped the ---local http = require("socket.http") line and I thought it was working now. I did not get the error of the socket But I have this error now: EventSystem: in /home/pi/domoticz/scripts/lua/script_time_upload_to_PVoutput.lua: .../domoticz/scripts/lua/script_time_upload_to_PVoutput.lua ...
by hansonexperience
Wednesday 25 March 2020 11:40
Forum: LUA
Topic: Lua script for uploading energy values to PVoutput
Replies: 129
Views: 40313

Re: Lua script for uploading energy values to PVoutput

Hi, I upgraded my rpi with domomoticz to buster (new version debian) and new version of domoticz. Now this does not work anymore: local http = require("socket.http") I am using the pvoutput upload script which was functioning great but now I have errors that it cannot find the socket a.s.o. Can ...
by hansonexperience
Wednesday 25 March 2020 9:12
Forum: LUA
Topic: lua socket require socket.http and socket.core problem and solution
Replies: 7
Views: 9829

Re: lua socket require socket.http and socket.core problem and solution

I have the same problem after updating to buster. How can I use your solution?
by hansonexperience
Tuesday 24 March 2020 19:06
Forum: LUA
Topic: Lua version problem domoticz
Replies: 42
Views: 3747

Re: Lua version problem domoticz

I skipped the ---local http = require("socket.http") line and I thought it was working now. I did not get the error of the socket But I have this error now: EventSystem: in /home/pi/domoticz/scripts/lua/script_time_upload_to_PVoutput.lua: .../domoticz/scripts/lua/script_time_upload_to_PVoutput.lua ...
by hansonexperience
Tuesday 24 March 2020 18:41
Forum: LUA
Topic: Lua version problem domoticz
Replies: 42
Views: 3747

Re: Lua version problem domoticz

I have the same problem and error messages after upgrading to the new version.
I have:

-- Require parameters
----------------------------------------------------------------------------------------------------------
local http = require("socket.http")
by hansonexperience
Thursday 26 October 2017 18:10
Forum: Python
Topic: Ginlong, Omnik Solar, Solarman and Trannergy Inverters
Replies: 231
Views: 89187

Re: Ginlong, Omnik Solar, Solarman and Trannergy Inverters

sincze wrote: Friday 20 October 2017 10:55 well actually the scripts don't know.
you have to know.

call a v2.7 python script with: python27 <script.name>
and a v3 python script with: python3 <script.name>
I installed python 3 but the scripts do not work for solarman.
by hansonexperience
Friday 20 October 2017 8:38
Forum: Python
Topic: Ginlong, Omnik Solar, Solarman and Trannergy Inverters
Replies: 231
Views: 89187

Re: Ginlong, Omnik Solar, Solarman and Trannergy Inverters

Oké. Thx! How do the scripts know which version to use?
by hansonexperience
Thursday 19 October 2017 19:45
Forum: Python
Topic: Ginlong, Omnik Solar, Solarman and Trannergy Inverters
Replies: 231
Views: 89187

Re: Ginlong, Omnik Solar, Solarman and Trannergy Inverters

Installed the scripts, but got errors on both files. I use solarmanportal stationid.py gives this error: File "/home/pi/domoticz/scripts/stationid.py", line 4, in <module> from urllib.request import urlopen ImportError: No module named request Solarman.py gives: File "/home/pi/domoticz/scripts ...
by hansonexperience
Thursday 19 October 2017 14:29
Forum: Python
Topic: Ginlong, Omnik Solar, Solarman and Trannergy Inverters
Replies: 231
Views: 89187

Re: Ginlong, Omnik Solar, Solarman and Trannergy Inverters

Installed the scripts, but got errors on both files. I use solarmanportal stationid.py gives this error: File "/home/pi/domoticz/scripts/stationid.py", line 4, in <module> from urllib.request import urlopen ImportError: No module named request Solarman.py gives: File "/home/pi/domoticz/scripts ...