Search found 15 matches
- Wednesday 02 October 2019 10:56
- Forum: Utility
- Topic: USB RFID reader help wanted
- Replies: 0
- Views: 369
USB RFID reader help wanted
Hi, I've got this usb rfid reader, which i've connected to my PI. It is recognised by the pi. What it needs to do is scan RFID tags and put them in a global var, for use in access control (if rfid tag = 2 user 2 entered/left. However, i can't get it to talk with domoticz. Have no clue how. Trying to ...
- Thursday 05 April 2018 10:14
- Forum: Design, usability and languages
- Topic: Aurora theme
- Replies: 466
- Views: 177820
Re: Aurora theme
Hello, is it possible to have the dashboard data visualisation graphs to show the monthly by default? Or hourly...? I find those options far more usefull.
- Thursday 22 March 2018 22:42
- Forum: LUA
- Topic: Lua 3D array
- Replies: 21
- Views: 2492
Re: Lua 3D array
forgot the capital letter G. But now the problem is that it writes 7.418 m3 as 0.007 m3 and i doublechecked the data, the data is 7 m3 per day i got the clever idea to multiply the value by 1000 by doing commandArray['UpdateDevice']=otherdevices_idx['Gas']..'|0|'..(jsonData.result[1].CounterToday ...
- Thursday 22 March 2018 22:36
- Forum: LUA
- Topic: Lua 3D array
- Replies: 21
- Views: 2492
Re: Lua 3D array
Code: Select all
Error: EventSystem: in Gas_Update: [string "print('setting Gas')..."]:8: attempt to concatenate field 'gas' (a nil value)
- Thursday 22 March 2018 22:31
- Forum: LUA
- Topic: Lua 3D array
- Replies: 21
- Views: 2492
Re: Lua 3D array
What about?: commandArray['UpdateDevice']=otherdevices_idx['gas']..'|0|'..jsonData.result[1].CounterToday I think these devices need to SValue. What I don't understand is why you call it gas while it is a kWh value for electricity. The other thing to consider is that you probably only want the ...
- Thursday 22 March 2018 22:05
- Forum: LUA
- Topic: Lua 3D array
- Replies: 21
- Views: 2492
Re: Lua 3D array
Was het maar zo'n feest....
Code: Select all
commandArray['Gas'] = jsonData.result[1].CounterToday

- Thursday 22 March 2018 21:47
- Forum: LUA
- Topic: Lua 3D array
- Replies: 21
- Views: 2492
Re: Lua 3D array
DAT WAS HEM
explains the straight to google search when entering the url in the browser...
I tried a different way tho, i base64encoded the username and pass, voilla. It works
which is kinda the same right? thanks for the help Jos! <3

explains the straight to google search when entering the url in the browser...
I tried a different way tho, i base64encoded the username and pass, voilla. It works

- Thursday 22 March 2018 21:36
- Forum: LUA
- Topic: Lua 3D array
- Replies: 21
- Views: 2492
Re: Lua 3D array
I don't know where you have stored the JSON.lua lib but this is what works for me: json = (loadfile "/usr/local/share/lua/5.2/JSON.lua") () local config=assert(io.popen('curl "http://forum:[email protected]:8080/json.htm?type=devices&rid=19"')) -- notice double quotes local Stringjson = config:read ...
- Thursday 22 March 2018 20:20
- Forum: LUA
- Topic: Lua 3D array
- Replies: 21
- Views: 2492
Re: Lua 3D array
Think the URL needs to be: local config=assert(io.popen('curl "http://forum:[email protected]:8080/json.htm?type=devices&rid=20"')) -- notice double quotes it works for me with: local config=assert(io.popen('curl "http://forum:[email protected]:8080/json.htm?type=devices&rid=19"')) -- notice ...
- Thursday 22 March 2018 20:02
- Forum: LUA
- Topic: Lua 3D array
- Replies: 21
- Views: 2492
Re: Lua 3D array
English is fine ...no worries. ;) This should work to decode: local jsonData = json:decode(Stringjson) print(jsonData.result[1].CounterToday) Jos This now makes print(' test gas') commandArray = {} json = (loadfile "/home/michel/domoticz/scripts/lua/JSON.lua") -- For Linux local config=assert(io ...
- Thursday 22 March 2018 19:38
- Forum: LUA
- Topic: Lua 3D array
- Replies: 21
- Views: 2492
Re: Lua 3D array
https://imgur.com/a/C8h2F <- imgur link with screenshots made from the browser of the kwh meter.
it has both values. CounterToday and Usage.
regards, michel
it has both values. CounterToday and Usage.
regards, michel
- Thursday 22 March 2018 19:14
- Forum: LUA
- Topic: Lua 3D array
- Replies: 21
- Views: 2492
Re: Lua 3D array
http://forum:forum:ip:port/json.htm?type=devices&rid=19 Is the url, it has viewing rights on the utilities page. However, when i try it, it goes straight to google. I am probably looking at a typo here, but the ip is 84.81.105.118:8080 the pass is forum the user is forum and the idx is 19 for the ...
- Thursday 22 March 2018 18:22
- Forum: LUA
- Topic: Lua 3D array
- Replies: 21
- Views: 2492
Re: Lua 3D array
print(' test gas') commandArray = {} json = (loadfile "/home/pi/domoticz/scripts/lua/JSON.lua")() -- For Linux local config=assert(io.popen('curl "http://username:password:192.168.2.15:8080/json.htm?type=devices&rid=20"')) -- notice double quotes local data = config:read('*all') config:close() local ...
- Thursday 22 March 2018 17:28
- Forum: LUA
- Topic: Lua 3D array
- Replies: 21
- Views: 2492
Re: Lua 3D array
Ah ik zag dat je nederlands bent. Die P1 meter geeft dus een mooie array, maar ik wil dus alleen de currentvalue hebben met de GasMeter heet 'ie CounterToday, Als het een php array was zou je gaan zo van $data[result[0][CounterToday] die wil ik in een virtuele gasmeter stoppen. Bij de stroommeter is ...
- Thursday 22 March 2018 17:04
- Forum: LUA
- Topic: Lua 3D array
- Replies: 21
- Views: 2492
Lua 3D array
Hello, i am trying to assing the value from my p1 meter, which is a json array ActTime 1521732455 AstrTwilightEnd "20:48" AstrTwilightStart "04:37" CivTwilightEnd "19:26" CivTwilightStart "05:59" DayLength "12:19" NautTwilightEnd "20:06" NautTwilightStart "05:19" ServerTime "2018-03-22 16:27:35 ...