Search found 15 matches
- Friday 31 January 2020 1:27
- Forum: Utility
- Topic: Reporting maximum usage Watt's at any time
- Replies: 14
- Views: 1822
Re: Reporting maximum usage Watt's at any time
Thanks a lot for solution and explanation. It works. I'm not expert enough in LUA to diagnose that. For Info, here is my version : lua -v Lua 5.2.4 Copyright (C) 1994-2015 Lua.org, PUC-Rio on DomoticZ v4.11605 Thanks a lot again for your help, I saw a few posts from you with LUA exemples. It's ...
- Thursday 30 January 2020 8:23
- Forum: Utility
- Topic: Reporting maximum usage Watt's at any time
- Replies: 14
- Views: 1822
Re: Reporting maximum usage Watt's at any time
2020-01-30 08:22:02.799 Error: dzVents: Error: (2.5.5) maxWatt has type string and value 5346 2020-01-30 08:22:02.799 Error: dzVents: Error: (2.5.5) max has type number and value 0 2020-01-30 08:22:02.799 Error: dzVents: Error: (2.5.5) maxWatt has type string and value 5472 2020-01-30 08:22:02.799 ...
- Wednesday 29 January 2020 20:02
- Forum: Utility
- Topic: Reporting maximum usage Watt's at any time
- Replies: 14
- Views: 1822
Re: Reporting maximum usage Watt's at any time
I just commented your timer line to add mine (line 6)
Line 60 for me :
and when I tested it, there was maxWatt at around 11000 and max at 0
Line 60 for me :
Code: Select all
if maxWatt > max then
- Wednesday 29 January 2020 5:26
- Forum: Utility
- Topic: Reporting maximum usage Watt's at any time
- Replies: 14
- Views: 1822
Re: Reporting maximum usage Watt's at any time
Hi, I have a problem with this script : 2020-01-29 05:24:02.270 Error: dzVents: Error: (2.5.5) An error occurred when calling event handler report_max_watts 2020-01-29 05:24:02.270 Error: dzVents: Error: (2.5.5) ...z/scripts/dzVents/generated_scripts/report_max_watts.lua:60: attempt to compare ...
- Saturday 25 January 2020 2:33
- Forum: Utility
- Topic: Power meter reset leads to incorrect historical records
- Replies: 1
- Views: 354
Re: Power meter reset leads to incorrect historical records
I believe I'm having the same kind of problem. I'm living in France, where National Electricity Company is replacing all Electricity Meter for everybody. When it's done, the tech which does this has to inject old indexes into new meter. I'm assuming this because of the value which has been added (85 ...
- Thursday 30 March 2017 3:01
- Forum: LUA
- Topic: Traffic with waze in Domoticz
- Replies: 110
- Views: 32372
Re: Traffic with waze in Domoticz
anyone know how to get device coordinates? i want to modify that script to get ETA device > home Just checkout waze.com typ in the adres you are looking for than click on the "permalink" I think it is called and in the url there are the coordinates. Did you mean this? No, i mean that i want to have ...
- Wednesday 22 March 2017 7:54
- Forum: LUA
- Topic: Traffic with waze in Domoticz
- Replies: 110
- Views: 32372
Re: Traffic with waze in Domoticz
Stupid, yes ofcourse. I was thinking a check through the commandline :) I am actually not running the script 24/7 through crontab because I was scared for the amount of request being send to waze.com and that maybe my ip gets blacklisted for this reason. But I see you do not have any problems. Hoe ...
- Wednesday 22 March 2017 7:34
- Forum: LUA
- Topic: Traffic with waze in Domoticz
- Replies: 110
- Views: 32372
Re: Traffic with waze in Domoticz
like this : click on "log" on the dummy sensorkrizzz wrote:No.lemassykoi wrote:do any of you have a minus sign in one of his coordinates ?
How did you check what were the results over a certain period?
Verzonden vanaf mijn iPhone met Tapatalk
- Tuesday 21 March 2017 23:51
- Forum: LUA
- Topic: Traffic with waze in Domoticz
- Replies: 110
- Views: 32372
Re: Traffic with waze in Domoticz
do any of you have a minus sign in one of his coordinates ?
- Tuesday 21 March 2017 22:23
- Forum: LUA
- Topic: Traffic with waze in Domoticz
- Replies: 110
- Views: 32372
Re: Traffic with waze in Domoticz
It seems to be JQ/JSON related.
http://stackoverflow.com/questions/3479 ... 1-column-9
try to play with switch R and r, maybe Waze is not full JSON.
I checked my queries, and I don't have any "0 minutes" during past 48 hours.
http://stackoverflow.com/questions/3479 ... 1-column-9
try to play with switch R and r, maybe Waze is not full JSON.
I checked my queries, and I don't have any "0 minutes" during past 48 hours.
- Tuesday 21 March 2017 18:17
- Forum: LUA
- Topic: Traffic with waze in Domoticz
- Replies: 110
- Views: 32372
Re: Traffic with waze in Domoticz
I found this : https://github.com/stedolan/jq/issues/501
Try to replace this line :
by this one :
Try to replace this line :
Code: Select all
/usr/local/bin/jq -r .response.results[].crossTime
Code: Select all
/usr/local/bin/jq -r '.response.results[].crossTime'
- Tuesday 21 March 2017 9:02
- Forum: LUA
- Topic: Traffic with waze in Domoticz
- Replies: 110
- Views: 32372
Re: Traffic with waze in Domoticz
I build JQ from source, and I put my script in a CRON, that's why I specified all the binary paths.
You can install it from apt :
then locate the binary :
then update the script to the correct path
You can install it from apt :
Code: Select all
sudo apt-get install jq
Code: Select all
whereis jq
- Sunday 19 March 2017 20:56
- Forum: LUA
- Topic: Yet another presence detection method
- Replies: 135
- Views: 39048
Re: Yet another presence detection method
The "Off" comes from the switchcmd which is not recognized because of your idx variable. I had to play with quotes to get it to work : (both methods are ok for me) if [ $device_present = "On" ]; then urlOn="http://192.168.2.31:8080/json.htm?type=command¶m=switchlight&idx="$idx"&switchcmd=On ...
- Monday 13 March 2017 19:44
- Forum: LUA
- Topic: [Noob, so help needed] Sending Telegram message when variable has changed
- Replies: 14
- Views: 2951
Re: [Noob, so help needed] Sending Telegram message when variable has changed
If your script is in LUA, maybe you should remove all the ; you put everywhere ?
also, you should use :
to update your user variable
also, you should use :
Code: Select all
commandArray[1]={['Variable:userVarContent'] = userVar}
- Monday 13 March 2017 19:27
- Forum: LUA
- Topic: Traffic with waze in Domoticz
- Replies: 110
- Views: 32372
Traffic with Waze in Domoticz (LUA/BASH)
Hi all, I slightly adapted this script for my use, and it's perfect. I can monitor, as someone write earlier, traffic time, and see at which time it's better to leave. Before first run, you need to : Create two User Variables : (settings --> more --> user variables) debug_general (type "String ...