Try something like:
--Extract Wind Gust speed from SValue Wind
local wind = otherdevices_svalues['Wind_Zeeland']
print("Metingen Zeeland: "..wind)
local windgust = string.sub(f,1,string.find(f,';',1,true)-1)
-- print("Windgust Zeeland: "..windgust)
g = string.sub(f,string.find(f,';',1,true)+1 ...
Search found 25 matches
- Wednesday 20 March 2019 12:14
- Forum: LUA
- Topic: LUA script does fetch value but does not update device
- Replies: 3
- Views: 1858
- Tuesday 05 March 2019 19:33
- Forum: Other questions and discussions
- Topic: Wind Beaufort conversion
- Replies: 0
- Views: 346
Wind Beaufort conversion
Hi,
in the History.txt file I found a line regarding: Implemented: Wind Beaufort scale, updated Version 3.4834 (March 2nd 2016)
I wonder if there is some information available how to use this in order to convert windspeed into Beaufort.
Do you need a lua scripts or a dzVents or maybe by adding a ...
in the History.txt file I found a line regarding: Implemented: Wind Beaufort scale, updated Version 3.4834 (March 2nd 2016)
I wonder if there is some information available how to use this in order to convert windspeed into Beaufort.
Do you need a lua scripts or a dzVents or maybe by adding a ...
- Wednesday 06 February 2019 13:11
- Forum: LUA
- Topic: Problem Lua script for import separate winddata from Buienradar
- Replies: 2
- Views: 798
Re: Problem Lua script for import separate winddata from Buienradar
Hi Jos,
thanks for your reply.
at the end I wasn't satisfied with the results and I found some new code, which I've extended to produce also windforce data in Beaufort format.
thanks for your reply.
at the end I wasn't satisfied with the results and I found some new code, which I've extended to produce also windforce data in Beaufort format.
- Sunday 20 January 2019 11:16
- Forum: LUA
- Topic: Problem Lua script for import separate winddata from Buienradar
- Replies: 2
- Views: 798
Problem Lua script for import separate winddata from Buienradar
Hi,
I'm trying to create a Lua script to split data from a combined virtual sensor into several virtual sensors in order to display just the info to fit in a single frontpage.html cell.
.
Schermafbeelding 2019-01-18 om 16.56.18.png
.
So all the requested information is available in a virtual ...
I'm trying to create a Lua script to split data from a combined virtual sensor into several virtual sensors in order to display just the info to fit in a single frontpage.html cell.
.
Schermafbeelding 2019-01-18 om 16.56.18.png
.
So all the requested information is available in a virtual ...
- Sunday 02 December 2018 19:15
- Forum: Blockly
- Topic: Blocky script not working any more after update 4.9700
- Replies: 14
- Views: 4739
Re: Blocky script not working any more after update 4.9700
I also do have a similar situation. I have 2 systems running, 1 is V3.8153 with running events and visual events overview and working blocky mode and a second system running V 4.9700 with event problems. After importing the database from V3.8153 into V4.9700 the old events are running well, but the ...
- Wednesday 04 April 2018 19:23
- Forum: Installation, Compiling, Permissions, Security and Starting
- Topic: Domoticz on Raspberry Pi 3B+ (Jessy won't install)
- Replies: 12
- Views: 4920
Re: Domoticz on Raspberry Pi 3B+ (Jessy won't install)
Hi, have you installed RASPBIAN STRETCH WITH DESKTOP or RASPBIAN STRETCH LITE?
- Tuesday 19 September 2017 16:38
- Forum: Bash / PowerShell / Batch etc.
- Topic: Scripts reading your Plugwise stretch and smile
- Replies: 8
- Views: 7816
Re: Scripts reading your Plugwise stretch and smile
I wonder if someone can help me with a small detail.
I've created a swap file:
df
tempPlugwiseRead 1024 0 1024 0% /var/tmp/ram0/tempPlugwiseRead
but by running the default Plugwise_prod script I get an error:
./plugwise_prod: line 37: /var/tmp/ram0/tempPlugwiseRead.sensors: Permission denied ...
I've created a swap file:
df
tempPlugwiseRead 1024 0 1024 0% /var/tmp/ram0/tempPlugwiseRead
but by running the default Plugwise_prod script I get an error:
./plugwise_prod: line 37: /var/tmp/ram0/tempPlugwiseRead.sensors: Permission denied ...
- Wednesday 16 March 2016 23:56
- Forum: Other questions and discussions
- Topic: installing node.js
- Replies: 1
- Views: 2299
Re: installing node.js
thanks,
I've made an upgrade from Wheezy image to Jessie and now everything seems to be ok
https://www.raspberrypi.org/forums/view ... 6&t=121880
I've made an upgrade from Wheezy image to Jessie and now everything seems to be ok
https://www.raspberrypi.org/forums/view ... 6&t=121880
- Wednesday 16 March 2016 19:46
- Forum: Other questions and discussions
- Topic: installing node.js
- Replies: 1
- Views: 2299
installing node.js
It’s hard to admit but I’m not able to install node.js
Despite the fact that the installation seems to be error free I’m still having a GLIBCXX problem
What I noticed is that it refuses to create in /usr/lib/arm-linux-gnueabihf/
a file libstdc++.so.6: version `GLIBCXX_3.4.20
or
/libc.so.6
pi ...
Despite the fact that the installation seems to be error free I’m still having a GLIBCXX problem
What I noticed is that it refuses to create in /usr/lib/arm-linux-gnueabihf/
a file libstdc++.so.6: version `GLIBCXX_3.4.20
or
/libc.so.6
pi ...
- Wednesday 16 March 2016 19:45
- Forum: Other questions and discussions
- Topic: installing node.js
- Replies: 0
- Views: 714
installing node.js
It’s hard to admit but I’m not able to install node.js
Despite the fact that the installation seems to be error free I’m still having a GLIBCXX problem
What I noticed is that it refuses to create in /usr/lib/arm-linux-gnueabihf/
a file libstdc++.so.6: version `GLIBCXX_3.4.20
or
/libc.so.6
pi ...
Despite the fact that the installation seems to be error free I’m still having a GLIBCXX problem
What I noticed is that it refuses to create in /usr/lib/arm-linux-gnueabihf/
a file libstdc++.so.6: version `GLIBCXX_3.4.20
or
/libc.so.6
pi ...
- Tuesday 15 March 2016 11:55
- Forum: Other questions and discussions
- Topic: JQ autotools install error
- Replies: 1
- Views: 991
JQ autotools install error
For https://www.domoticz.com/wiki/Mindergas.nl
I need to install autotools to execute JQ and without autotools it seems I have a situation.
./post-mindergas.sh: line 8: jq: command not found
Unfortunately
$:sudo apt-get install autotools –y gives an error:
Reading package lists... Done ...
I need to install autotools to execute JQ and without autotools it seems I have a situation.
./post-mindergas.sh: line 8: jq: command not found
Unfortunately
$:sudo apt-get install autotools –y gives an error:
Reading package lists... Done ...
- Wednesday 09 March 2016 16:16
- Forum: Other questions and discussions
- Topic: Setup device
- Replies: 0
- Views: 373
Setup device
Is it a good idea to make it possible to change the text presented in a device in the DB directly of with a JSON command?
This will give a lot of people the freedom to choose what they like to see. It's their own responsibility if the data itself is correct.
In my case I like to change the text ...
This will give a lot of people the freedom to choose what they like to see. It's their own responsibility if the data itself is correct.
In my case I like to change the text ...
- Tuesday 08 March 2016 19:42
- Forum: Utility
- Topic: Create virtual hardware
- Replies: 10
- Views: 8607
Re: Create virtual hardware - kWh instead of Watt
Thanks, almost everything is now working fine. :D
The only thing I like is to change is the text : "Watt" into "kWh" for a regular Usage type device with Electric subtype
(I use these settings because this gives me the overall and correct information from my P1 Smart Meter and no daily incemental ...
The only thing I like is to change is the text : "Watt" into "kWh" for a regular Usage type device with Electric subtype
(I use these settings because this gives me the overall and correct information from my P1 Smart Meter and no daily incemental ...
- Thursday 25 February 2016 11:05
- Forum: Utility
- Topic: Create virtual hardware
- Replies: 10
- Views: 8607
Re: Create virtual hardware
I'm created a dummy hardware with a device. I can see that the data is displayed as data in the list.
Schermafbeelding 2016-02-25 om 10.36.36.png
In utility the data is displayed only in small characters in the second line and in my dashboard not at all.
Schermafbeelding 2016-02-25 om 10.35.47 ...
Schermafbeelding 2016-02-25 om 10.36.36.png
In utility the data is displayed only in small characters in the second line and in my dashboard not at all.
Schermafbeelding 2016-02-25 om 10.35.47 ...
- Monday 22 February 2016 13:02
- Forum: Show your projects
- Topic: Get weather info from internet to Domoticz !
- Replies: 10
- Views: 4132
Re: Get weather info from internet to Domoticz !
It's running
without using .sh
so use /home/pi/domoticz/scripts/plugwise_read instead of /home/pi/domoticz/scripts/plugwise_read.sh
and use chmod +x /home/pi/domoticz/scripts/plugwise_read instead of chmod +x /home/pi/domoticz/scripts/plugwise_read.sh
so use /home/pi/domoticz/scripts/plugwise_read instead of /home/pi/domoticz/scripts/plugwise_read.sh
and use chmod +x /home/pi/domoticz/scripts/plugwise_read instead of chmod +x /home/pi/domoticz/scripts/plugwise_read.sh
- Monday 22 February 2016 12:46
- Forum: Show your projects
- Topic: Get weather info from internet to Domoticz !
- Replies: 10
- Views: 4132
Re: Get weather info from internet to Domoticz !
/home is clear
but then the next one:
chmod: cannot access `/home/pi/domoticz/scripts/plugwise_read.sh': No such file or directory
but then the next one:
chmod: cannot access `/home/pi/domoticz/scripts/plugwise_read.sh': No such file or directory
- Monday 22 February 2016 12:30
- Forum: Show your projects
- Topic: Get weather info from internet to Domoticz !
- Replies: 10
- Views: 4132
crontab script not found error
After some starting problems I’ve managed to implement a Plugwise read script successfully which I can run manual.
Unfortunately I’m still not able to let it run as a crontab.
Some background information:
The scripts starts with:
#!/bin/bash
#Parameters section
#Folders and files
Scriptfolder ...
Unfortunately I’m still not able to let it run as a crontab.
Some background information:
The scripts starts with:
#!/bin/bash
#Parameters section
#Folders and files
Scriptfolder ...
- Sunday 21 February 2016 12:02
- Forum: Bash / PowerShell / Batch etc.
- Topic: Scripts reading your Plugwise stretch and smile
- Replies: 8
- Views: 7816
Re: Scripts reading your Plugwise stretch and smile
Hi,
I'm implementing a Plugwise Smile and until know everything including scripts etc. are running fine.
To complete this I have to automate this with cron job and are struggling to setup a RAM disk on my Raspberry.
To avoid mistakes I hope that somebody is so kind to give some support and give me ...
I'm implementing a Plugwise Smile and until know everything including scripts etc. are running fine.
To complete this I have to automate this with cron job and are struggling to setup a RAM disk on my Raspberry.
To avoid mistakes I hope that somebody is so kind to give some support and give me ...
- Tuesday 16 February 2016 14:45
- Forum: Utility
- Topic: Create virtual hardware
- Replies: 10
- Views: 8607
Re: Create virtual hardware
This has basically nothing to do with a setup of Plugwise itself. It is a the way to setup in general new dummy hardware and needed and correct device in Domoticz what troubles me .
- Tuesday 16 February 2016 12:54
- Forum: Utility
- Topic: Create virtual hardware
- Replies: 10
- Views: 8607
Re: Create virtual hardware + device
Hi,
I’m a little bit confused about how to setup a hardware and device to connect a Plugwise Smile and Stretch to my Domoticz server.
In order to do this I can setup a dummy device or I can add new hardware as P1 Smart Meter with LAN interface and complete this with IP and port. So far so good ...
I’m a little bit confused about how to setup a hardware and device to connect a Plugwise Smile and Stretch to my Domoticz server.
In order to do this I can setup a dummy device or I can add new hardware as P1 Smart Meter with LAN interface and complete this with IP and port. So far so good ...