Did a little experiment on coding LUA, got no real nolage on this lagnue, some in bacic, minor.
Started with some keywords in word (just as a notepad for myself), some pieces on code I knew was working.
The goal was to read a TXT file
Find the line that corresponded with today’s date, if the month ...
Search found 43 matches
- Tuesday 25 February 2025 8:16
- Forum: LUA
- Topic: LUA Copilot, experiment..
- Replies: 0
- Views: 3158
- Monday 17 February 2025 16:41
- Forum: Other questions and discussions
- Topic: Cannot upload Custom Icons
- Replies: 4
- Views: 1329
Re: Cannot upload Custom Icons
You got all files, but "Domoticz.png" is empty, 0KB
Domoticz.png
Domoticz48_On.png
Domoticz48_Off.png
icons.txt
I have used it lately, I used a graphics program and made a16x16 pixels of the image fil myself, just renamed it "domoticz.png" and dropped it into the zip file containing the other ...
Domoticz.png
Domoticz48_On.png
Domoticz48_Off.png
icons.txt
I have used it lately, I used a graphics program and made a16x16 pixels of the image fil myself, just renamed it "domoticz.png" and dropped it into the zip file containing the other ...
- Saturday 15 February 2025 16:41
- Forum: LUA
- Topic: Need Lua help here, no programer
- Replies: 9
- Views: 4796
Re: Need Lua help here, no programer
I am doing some small simple scripts in Lua, mainly to learn something, asked before but never got any answers.
What exactly can be done with a text device ?
where can I find more deeper info about the different devices in Domoticz ?
Maybe how to program some other devises too??
I learned that a ...
What exactly can be done with a text device ?
where can I find more deeper info about the different devices in Domoticz ?
Maybe how to program some other devises too??
I learned that a ...
- Sunday 12 January 2025 16:04
- Forum: Z-Wave
- Topic: Some issues with Z-wave sensor, 2
- Replies: 3
- Views: 1173
Re: Some issues with Z-wave sensor, 2
Yes, with a NEW usb-Silicon_Labs_CP2102N_USB_to_UART_Bridge_Controller.
zwave-js-ui: 9.27.7.d3d7049
zwave-js: 14.3.6
Arne Kjetil
zwave-js-ui: 9.27.7.d3d7049
zwave-js: 14.3.6
Arne Kjetil
- Sunday 12 January 2025 15:36
- Forum: Z-Wave
- Topic: Some issues with Z-wave sensor, 2
- Replies: 3
- Views: 1173
Some issues with Z-wave sensor, 2
First Issue.
Aeotec Ltd. MultiSensor 7 ZWA024
Got FW: v1.4.1 , Z-Wave JS says new is v1.6.7 [stable] is available but I can’t upgrade ?
Or other way to upgrade, newer is usually better?, and I got problems with the sensor looking up/slow at updating its values, issue motion, although might ...
Aeotec Ltd. MultiSensor 7 ZWA024
Got FW: v1.4.1 , Z-Wave JS says new is v1.6.7 [stable] is available but I can’t upgrade ?
Or other way to upgrade, newer is usually better?, and I got problems with the sensor looking up/slow at updating its values, issue motion, although might ...
- Sunday 12 January 2025 11:30
- Forum: Zigbee
- Topic: Best Zigbee USB ?
- Replies: 6
- Views: 2169
Re: Best Zigbee USB ?
First
The ubuntu install
The Mosquitto install
The Domoticz Install
The Z-wave install, Z-Wave JS
A couple of other Mqtt sensors
Was and is working
The USB stick was unreadable, managed to get it back to life, reflashes it with a known good image, not the right one but it made the USB stick ...
The ubuntu install
The Mosquitto install
The Domoticz Install
The Z-wave install, Z-Wave JS
A couple of other Mqtt sensors
Was and is working
The USB stick was unreadable, managed to get it back to life, reflashes it with a known good image, not the right one but it made the USB stick ...
- Tuesday 07 January 2025 15:16
- Forum: Zigbee
- Topic: Best Zigbee USB ?
- Replies: 6
- Views: 2169
Re: Best Zigbee USB ?
Half of the log is me turning off/on the plugin, just to trigger some sort of responce...
Have tried several ways to intall Sigbee, this was the best responce.
For the USB device, I do suspect it's not 100%, thats why I want a new one, preferible ready to use right out of the box.
No flashing ...
Have tried several ways to intall Sigbee, this was the best responce.
For the USB device, I do suspect it's not 100%, thats why I want a new one, preferible ready to use right out of the box.
No flashing ...
- Monday 06 January 2025 19:51
- Forum: Zigbee
- Topic: Best Zigbee USB ?
- Replies: 6
- Views: 2169
Re: Best Zigbee USB ?
Got a Sonoff Zigbee 3.0 USB Dongle Plus, and I can't get to work, that's why I want to get a USB that's ready to use, so I am 100% shure it's working.
No flashing, no update,ready to use.
I got all kind of errors, but it seams most of them can be traced back to the stick..
like this one
2025-01-06 ...
No flashing, no update,ready to use.
I got all kind of errors, but it seams most of them can be traced back to the stick..
like this one
2025-01-06 ...
- Sunday 05 January 2025 19:11
- Forum: Zigbee
- Topic: Best Zigbee USB ?
- Replies: 6
- Views: 2169
Best Zigbee USB ?
Best ready to use Zigbee USB stick to use in Domoticz ?
Which one ?
Where to bye ?
Have been trying to get something to work for mounts now, whant to elimenate something..
Arne Kjetil
Which one ?
Where to bye ?
Have been trying to get something to work for mounts now, whant to elimenate something..
Arne Kjetil
- Thursday 26 December 2024 10:46
- Forum: LUA
- Topic: Need Lua help here, no programer
- Replies: 9
- Views: 4796
Re: Need Lua help here, no programer
Sometime have gone by, A HD has crashed, new install of Domoticz/Z-wave.
Still working on this script, it's working, but I want more ;)
At the moment in LUA..
Is it possible to dynamically change icon bases on a value ?
Is it possible to remove or adjust "Last seen xx.xx.xxx. "
Is it possible ...
Still working on this script, it's working, but I want more ;)
At the moment in LUA..
Is it possible to dynamically change icon bases on a value ?
Is it possible to remove or adjust "Last seen xx.xx.xxx. "
Is it possible ...
- Saturday 07 December 2024 20:58
- Forum: Z-Wave
- Topic: Help/addvice setting up Domoticz/Zwave-JS-UI on linux
- Replies: 2
- Views: 1472
Re: Help/addvice setting up Domoticz/Zwave-JS-UI on linux
Nothing helped..
Started with a new (upgraded) USB stick, resetting every Z-wave device, and including in the new controller.
Was an Aeotec USB Z-Stick 5, could read it, not upgrade it, since I couldn’t upgrade , I couldn’t transfer it to a new stick...
Still some left to include..
Arne Kjetil
Started with a new (upgraded) USB stick, resetting every Z-wave device, and including in the new controller.
Was an Aeotec USB Z-Stick 5, could read it, not upgrade it, since I couldn’t upgrade , I couldn’t transfer it to a new stick...
Still some left to include..
Arne Kjetil
- Sunday 24 November 2024 13:39
- Forum: Z-Wave
- Topic: Help/addvice setting up Domoticz/Zwave-JS-UI on linux
- Replies: 2
- Views: 1472
Help/addvice setting up Domoticz/Zwave-JS-UI on linux
Have been putting the update on the Z-Wave on hold, but faith stroke..
Hard disk failure, can't be read on seen, got a backup of Domoticz..
Ok, new disk, installed ubuntu, MTTQ broker, Z-Wave JS UI..
I can see my devices in Z-Wave JS UI, but it's on interview state now for some days, only 4/70 ...
Hard disk failure, can't be read on seen, got a backup of Domoticz..
Ok, new disk, installed ubuntu, MTTQ broker, Z-Wave JS UI..
I can see my devices in Z-Wave JS UI, but it's on interview state now for some days, only 4/70 ...
- Saturday 16 November 2024 14:55
- Forum: Blockly
- Topic: Blockly scripts display distorted
- Replies: 26
- Views: 29362
Re: Blockly scripts display distorted
Just to inform, got the same on my Domoticz, havent used THIS blocky in years...
It's not on all, just some..
Skjermbilde 2024-11-16 144156.png
Win 11,Firefox 132.0.2
Older Linux Ubuntu, Ubuntu 20.04.6 LTS (GNU/Linux 5.4.0-200-generic x86_64)
Version: 2024.7 (build 16325), not newest because of ...
It's not on all, just some..
Skjermbilde 2024-11-16 144156.png
Win 11,Firefox 132.0.2
Older Linux Ubuntu, Ubuntu 20.04.6 LTS (GNU/Linux 5.4.0-200-generic x86_64)
Version: 2024.7 (build 16325), not newest because of ...
- Tuesday 29 October 2024 17:55
- Forum: LUA
- Topic: Need Lua help here, no programer
- Replies: 9
- Views: 4796
Re: Need Lua help here, no programer
Started with some ideas, roughly put together, mostly wrong code...
Got some experience with Basic (Bascom), Lua (Domoticz) and basic Excel.
But nothing advance...n
Will let it run for some time, find some bugs :lol:, and eventually put together some hardware
commandArray = {}
local MaxUse ...
Got some experience with Basic (Bascom), Lua (Domoticz) and basic Excel.
But nothing advance...n
Will let it run for some time, find some bugs :lol:, and eventually put together some hardware
commandArray = {}
local MaxUse ...
- Monday 28 October 2024 23:48
- Forum: LUA
- Topic: Need Lua help here, no programer
- Replies: 9
- Views: 4796
Re: Need Lua help here, no programer
Got something I think will work, probably not the prettyest, but it does do the simple task I want it to do...
Still some bug in the programming....
local virtualMeterValue = otherdevices_svalues['AMS strom forbruk']
local extractedValue = tonumber(string.match(virtualMeterValue or "", "%d+%.?%d ...
Still some bug in the programming....
local virtualMeterValue = otherdevices_svalues['AMS strom forbruk']
local extractedValue = tonumber(string.match(virtualMeterValue or "", "%d+%.?%d ...
- Sunday 27 October 2024 19:31
- Forum: LUA
- Topic: Need Lua help here, no programer
- Replies: 9
- Views: 4796
Re: Need Lua help here, no programer
There is something in the line below.
local AMS_strom_forbruk = (string.match(uservariables['AMS strøm forbruk'], "%d+%.?%d*")) -- extract and convert to number
1691 2024-10-27 18:43:37 AMS strom forbruk 3796.0;73721888 0/3796.0;73721888
I want the 3796,0 part, in number.
But it's somewhat a ...
local AMS_strom_forbruk = (string.match(uservariables['AMS strøm forbruk'], "%d+%.?%d*")) -- extract and convert to number
1691 2024-10-27 18:43:37 AMS strom forbruk 3796.0;73721888 0/3796.0;73721888
I want the 3796,0 part, in number.
But it's somewhat a ...
- Sunday 27 October 2024 17:33
- Forum: LUA
- Topic: Need Lua help here, no programer
- Replies: 9
- Views: 4796
Re: Need Lua help here, no programer
First.. I have never used a MS browser, ecept to install another..
But it gave me a working code, sort of
Need to figure out what the output there is on "local AMS_strom_forbruk", it's a textdevice updated from MQTT from a HAN plug on my meter..
https://www.amsleser.no/
-- script_device_text.lua ...
But it gave me a working code, sort of
Need to figure out what the output there is on "local AMS_strom_forbruk", it's a textdevice updated from MQTT from a HAN plug on my meter..
https://www.amsleser.no/
-- script_device_text.lua ...
- Sunday 27 October 2024 13:47
- Forum: LUA
- Topic: Need Lua help here, no programer
- Replies: 9
- Views: 4796
Need Lua help here, no programer
Got some ideas, but I don't know if it work, or if there is a better way..
Not new to Domoticz, but scrips are not my language :? .
Running linux, on a Pc, Ubuntu, SSD harddrive.
About Domoticz
Version: 2024.7 (build 16297)
Build Hash: 85e28226f
Compile Date: 2024-10-26 09:19:44
dzVents Version: 3 ...
Not new to Domoticz, but scrips are not my language :? .
Running linux, on a Pc, Ubuntu, SSD harddrive.
About Domoticz
Version: 2024.7 (build 16297)
Build Hash: 85e28226f
Compile Date: 2024-10-26 09:19:44
dzVents Version: 3 ...
- Monday 27 December 2021 22:35
- Forum: Other questions and discussions
- Topic: USB memory stick with WIFI ?
- Replies: 2
- Views: 490
Re: USB memory stick with WIFI ?
Yes something like this one, but with read accessible on the wifi ALL the time.
I got a couple of these, as a plan B, but it's limitation are that they have 2 modes
Wifi mode
USB memory stick mode
In USB mode the wifi is disabled and vice versa...
There has been something like this on the marked ...
I got a couple of these, as a plan B, but it's limitation are that they have 2 modes
Wifi mode
USB memory stick mode
In USB mode the wifi is disabled and vice versa...
There has been something like this on the marked ...
- Saturday 25 December 2021 18:28
- Forum: Other questions and discussions
- Topic: USB memory stick with WIFI ?
- Replies: 2
- Views: 490
USB memory stick with WIFI ?
Are there any gizmo out there that can do what I want ??
A USB memory stick (fat 32 ), connected to a machine (Siemens pls...)
and at the same time readable from a computer over WIFI ( read only )
Is this possible ??
Finished product or DIY
Arne Kjetil
A USB memory stick (fat 32 ), connected to a machine (Siemens pls...)
and at the same time readable from a computer over WIFI ( read only )
Is this possible ??
Finished product or DIY
Arne Kjetil