Search found 47 matches

by glsf91
Monday 31 January 2022 7:35
Forum: LUA
Topic: Solved: Problem with LUA script reading from Fronius inverter
Replies: 35
Views: 11763

Re: Solved: Problem with LUA script reading from Fronius inverter

Get the current value of day energie and use this as last value.
domoticz.devices('Fronius_Total_Energy').counterToday
by glsf91
Sunday 30 January 2022 19:43
Forum: LUA
Topic: Solved: Problem with LUA script reading from Fronius inverter
Replies: 35
Views: 11763

Re: Solved: Problem with LUA script reading from Fronius inverter


How would I set the "Fronius_Opbrengst" to 0 in the part after sunset/before sunrise?
Schermafbeelding 2022-01-30 180759.png


Do something like this after "domoticz.log('Sunset in minutes: ' ..timeofday['SunsetInMinutes'] + 60, domoticz.LOG_DEBUG)":
-- set day energie to 0 at start of day
if ...
by glsf91
Sunday 30 January 2022 10:43
Forum: LUA
Topic: Solved: Problem with LUA script reading from Fronius inverter
Replies: 35
Views: 11763

Re: Solved: Problem with LUA script reading from Fronius inverter


2022-01-30 10:39:00.376 "Reason" : "CGI-Args: Invalid parameter '' for attribute 'DeviceId' (must be numeric)",


This is the problem. Look at my post a few above yours. It is caused by a firmware update.
Search for DeviceID and change to DeviceId. It is in the url sended to Fronius inverter.
by glsf91
Friday 20 August 2021 11:38
Forum: LUA
Topic: Solved: Problem with LUA script reading from Fronius inverter
Replies: 35
Views: 11763

Re: Solved: Problem with LUA script reading from Fronius inverter


Does this script still run after updating the Fronius Inverters?
I had some issues with openWB but they fixed it there ;-) However in Domoticz I need to adjust the script. Any idea how?
Thanks
Joachim


There is a change in an url parameter.
I used before "DeviceID". It should be "DeviceId" now.
by glsf91
Wednesday 07 April 2021 19:17
Forum: Examples & Solutions
Topic: Solar Data script : Azimuth, Altitude, Lux
Replies: 39
Views: 12128

Re: Solar Data script : Azimuth, Altitude, Lux


Regarding the source for the cloud cover:
www.ogimet.com give good information but only every hours and with a delay (during the lock-down there were very few update for my site: an airport!)
Other weather services integrated in Domoticz are not so good at the present time as you shown it ...
by glsf91
Wednesday 07 April 2021 19:00
Forum: Examples & Solutions
Topic: Solar Data script : Azimuth, Altitude, Lux
Replies: 39
Views: 12128

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_dzVents_-_Solar_Data:_Azimuth_Altitude_Lux


But under the picture with the devices is stated: "Sun Radiation : Virtual ...
by glsf91
Friday 20 November 2020 14:11
Forum: Speech & Voice Systems
Topic: notifications to chromecast
Replies: 58
Views: 29915

Re: notifications to chromecast

RvD wrote: Friday 18 January 2019 13:49 Now all I need is a way to automatically resume playing what was played before, eg. a Spotify-song or a TuneIn Radio station...
It is a long time ago but did you find a way to resume playing?
by glsf91
Thursday 07 May 2020 19:10
Forum: Android
Topic: Domoticz app 2.0
Replies: 2382
Views: 679304

Re: Domoticz app 2.0



It didn't work at first as it seems it is still trying to open /logincheck first, and since that call fails in my ancient setup, it still failed, so I simply created a empty file logincheck in directory \home\pi\domoticz\www which fixed that. 8-)
Tested this work-around on v3.8793 and v4.1062 ...
by glsf91
Wednesday 06 February 2019 20:39
Forum: LUA
Topic: Solved: Problem with LUA script reading from Fronius inverter
Replies: 35
Views: 11763

Re: Solved: Problem with LUA script reading from Fronius inverter


The script that was posted here, didn’t give me the result I wanted (it didn’t give me a result at all).
It took me a while to get things working for me, as I’m no expert in scripting.

This script runs between sunrise – 30 min and sunset +30 min
After that it looks at the state of the converter ...
by glsf91
Sunday 13 January 2019 16:35
Forum: Speech & Voice Systems
Topic: notifications to chromecast
Replies: 58
Views: 29915

Re: notifications to chromecast



Suggestion 1: Making it faster

Suggestion 2: Releasing the player



Thanks for your improvements.
I also made some improvements and included yours.

Now the volume setting is restored to the previous setting.
Is something was already playing, strange effects are sometimes occurring ...
by glsf91
Saturday 22 September 2018 14:42
Forum: Speech & Voice Systems
Topic: notifications to chromecast
Replies: 58
Views: 29915

Re: notifications to chromecast


Hi have made the change to cc_media_controller.py but still it hangs after the message sending data. I do hear the message.

Any suggestions?


I also have sometime a hanging script. So I switched to pychromecast .
Warning: the programming below is maybe awfull but it is working (I'am not a ...
by glsf91
Sunday 16 September 2018 17:43
Forum: Speech & Voice Systems
Topic: notifications to chromecast
Replies: 58
Views: 29915

Re: notifications to chromecast


Hi,

same issue here. new google mini.
stream2chromecast stays "sending data" and takes 10 mins to stop.
The file is played well. I also use the french script with google TTS.

I've tried a lot (different versions of the .py files about messages and .py script and all the common solutions found in ...
by glsf91
Monday 09 April 2018 17:29
Forum: Heating/cooling
Topic: Controlling Toon [HACKED] from Domoticz
Replies: 426
Views: 130849

Re: Controlling Toon [HACKED] from Domoticz


But sometimes, my toon is losing it's wifi connection, wich is not a problem for me.
The only thing is that the script is freezing domoticz with this error log: Error: EventSystem: Warning!, lua script GJK_Script_toon_OK has been running for more than 10 seconds.

The biggest problem is, that ...
by glsf91
Friday 23 March 2018 12:33
Forum: Heating/cooling
Topic: Controlling Toon [HACKED] from Domoticz
Replies: 426
Views: 130849

Re: Controlling Toon [HACKED] from Domoticz

Johan1974 wrote: Friday 23 March 2018 12:28

The same error.. :(

Code: Select all

2018-03-23 12:26:26.785 Error: EventSystem: Warning!, lua script ToonGetInfo has been running for more than 10 seconds
What is the printed string ?

And try without this line:

Code: Select all

ThermostatInfo = string.gsub(ThermostatInfo, ",}", "}")
by glsf91
Friday 23 March 2018 12:19
Forum: Heating/cooling
Topic: Controlling Toon [HACKED] from Domoticz
Replies: 426
Views: 130849

Re: Controlling Toon [HACKED] from Domoticz





When I do:

print(string.format('curl http://%s/happ_thermstat?action=getThermostatInfo', ToonIP)))

in the browser, is the resultat:

{"result": "error", "error":"no handler for action 'getThermostatInfo', ToonIP)))'"}


You have to put this print line in the script.
Then wait until the ...
by glsf91
Friday 23 March 2018 11:38
Forum: Heating/cooling
Topic: Controlling Toon [HACKED] from Domoticz
Replies: 426
Views: 130849

Re: Controlling Toon [HACKED] from Domoticz



When I do:

print(string.format('curl http://%s/happ_thermstat?action=getThermostatInfo', ToonIP)))

in the browser, is the resultat:

{"result": "error", "error":"no handler for action 'getThermostatInfo', ToonIP)))'"}


You have to put this print line in the script.
Then wait until the script ...
by glsf91
Friday 23 March 2018 10:29
Forum: Heating/cooling
Topic: Controlling Toon [HACKED] from Domoticz
Replies: 426
Views: 130849

Re: Controlling Toon [HACKED] from Domoticz




-- JSON data from Toon contains a extra "," which should not be there.
ThermostatInfo = string.gsub(ThermostatInfo, ",}", "}")



I don't have these 2 lines. Try without them.

Otherwise add:

print(string.format('curl http://%s/happ_thermstat?action=getThermostatInfo', ToonIP)))

just ...
by glsf91
Friday 23 March 2018 9:24
Forum: Heating/cooling
Topic: Controlling Toon [HACKED] from Domoticz
Replies: 426
Views: 130849

Re: Controlling Toon [HACKED] from Domoticz


But I have a other error:

2018-03-22 22:57:57.860 Error: EventSystem: in ToonGetInfo: [string "-- Time script runs every minute, intended to..."]:32: attempt to index global 'jsonThermostatInfo' (a nil value)
2018-03-22 22:59:31.823 Error: EventSystem: Warning!, lua script ToonGetInfo has been ...
by glsf91
Thursday 22 March 2018 20:03
Forum: Speech & Voice Systems
Topic: notifications to chromecast
Replies: 58
Views: 29915

Re: notifications to chromecast

gijsje wrote: Wednesday 21 March 2018 20:12
freakshock wrote: Tuesday 20 March 2018 21:19 Can someone tell me if this is possible to achieve on Synology? If so, how? :?:
Would like to know as well
If you can run python, give it a try. Start with trying stream2chromecast.
by glsf91
Thursday 22 March 2018 19:33
Forum: Heating/cooling
Topic: Controlling Toon [HACKED] from Domoticz
Replies: 426
Views: 130849

Re: Controlling Toon [HACKED] from Domoticz


Hello,

I used the script:

-- Script used for Toon Thermostaat utility device, upon changing temp in Domoticz, temperature is sent to Toon.
--
commandArray = {}

ToonThermostatSensorName = uservariables['UV_ToonThermostatSensorName'] -- Sensor showing current setpoint
ToonIP = uservariables ...