Search found 154 matches

by elmortero
Monday 19 February 2018 14:52
Forum: LUA
Topic: Read text file and assign value to virtual temp sensor?
Replies: 2
Views: 51

Re: Read text file and assign value to virtual temp sensor?

Maybe post what you have so far here ?
by elmortero
Monday 19 February 2018 0:07
Forum: dzVents Lua Framework
Topic: Rain prediction - weather underground
Replies: 19
Views: 1085

Re: Rain prediction - weather underground

Should be Rain device
by elmortero
Monday 19 February 2018 0:07
Forum: dzVents Lua Framework
Topic: Rain prediction - weather underground
Replies: 19
Views: 1085

Re: Rain prediction - weather underground

Should be Rain device
by elmortero
Sunday 18 February 2018 23:15
Forum: dzVents Lua Framework
Topic: Rain prediction - weather underground
Replies: 19
Views: 1085

Re: Rain prediction - weather underground

ah, my bad! Didn't check very well when pasting the code here.
this is what you need:
'http://api.wunderground.com/api/' .. apikey .. '/hourly/forecast/q/' .. country .. '/' .. city .. '.json'

That should do it!
by elmortero
Sunday 18 February 2018 20:13
Forum: dzVents Lua Framework
Topic: Rain prediction - weather underground
Replies: 19
Views: 1085

Re: Rain prediction - weather underground

Maybe you can put a print(url) just before where it says
elseif (triggerItem.isHTTPResponse) then
That way the log will show the composed url and it might already be clear what is wrong.
by elmortero
Sunday 18 February 2018 20:07
Forum: dzVents Lua Framework
Topic: Rain prediction - weather underground
Replies: 19
Views: 1085

Re: Rain prediction - weather underground

You will have to give more info. Maybe an error message?
by elmortero
Sunday 18 February 2018 10:09
Forum: dzVents Lua Framework
Topic: Rain prediction - weather underground
Replies: 19
Views: 1085

Re: Rain prediction - weather underground

You need to create the virtual devices yourself and put the correct names in the "Variables to customize" part of the script. Also, if your dzVents version is 2.3 or higher this script will not work due to the breaking changes that were announced with the release of 2.3. Updated script below in spoi...
by elmortero
Sunday 18 February 2018 1:45
Forum: dzVents Lua Framework
Topic: Rain prediction - weather underground
Replies: 19
Views: 1085

Re: Rain prediction - weather underground

Well, on weatherunderground pop is the percentage of probability of any precipitation so that could be anything. They do however also have a prediction of the quantity of snowfall (in metric and imperial value) so you could first check if that value is > 0 and assume then that the qpf refers to snow...
by elmortero
Saturday 17 February 2018 13:03
Forum: dzVents Lua Framework
Topic: Fetching and processing SolarEdge JSON data with 2.4
Replies: 13
Views: 361

Re: Fetching and processing SolarEdge JSON data with 2.4

[/quote]
Is it possible to get the revenue rounded at two decimals?
[/quote]

You can use the dzVents round function
by elmortero
Friday 16 February 2018 14:04
Forum: Scripts [cleaning in progress]
Topic: How can I print a table, converted from json
Replies: 2
Views: 51

Re: How can I print a table, converted from json

Copy and paste the response in Notepad++ and select as language JSon (or install the json viewer plugin in chrome) and you will get exactly what you are asking here.
by elmortero
Wednesday 14 February 2018 15:34
Forum: Other questions and discussions
Topic: set dimmer value at certain time without turning on light
Replies: 5
Views: 640

Re: set dimmer value at certain time without turning on light

I don't think you need a second switch, just use setlevel instead of switch on, with the desired level at that time of day. In your the script that switches on put some if the s that determine the level it should be .
by elmortero
Monday 12 February 2018 20:24
Forum: Other questions and discussions
Topic: RPi SD card duplicate
Replies: 17
Views: 558

Re: RPi SD card duplicate

Hi,

What exactly is not working using a copy?
Do you get errors?
And also, you mention addressing, do you mean you get messages about duplicate IPs?
by elmortero
Monday 12 February 2018 20:24
Forum: Other questions and discussions
Topic: RPi SD card duplicate
Replies: 17
Views: 558

Re: RPi SD card duplicate

Hi,

What exactly is not working using a copy?
Do you get errors?
And also, you mention addressing, do you mean you get messages about duplicate IPs?
by elmortero
Friday 09 February 2018 18:35
Forum: dzVents Lua Framework
Topic: HTTPRespons and json
Replies: 8
Views: 197

Re: HTTPRespons and json

My question is though: why have this script in the first place? I'd say that dzVents already gives you all this data. No need to get it from Domoticz from the outside-in. Or is there something missing in dzVents? Well, now that you mention it: Maybe I am overlooking something, but is it possible to...
by elmortero
Tuesday 06 February 2018 23:57
Forum: dzVents Lua Framework
Topic: Live Wildfire Info
Replies: 1
Views: 109

Live Wildfire Info

For those of us who live in areas where forestal fires are a risk I wrote this script to warn of current wildfires. In the posted version there is no geographical filter but you can filter by Country, Province and city (or with some tweaking a radius around coordinates) --[[ some of the used methods...
by elmortero
Tuesday 06 February 2018 23:42
Forum: dzVents Lua Framework
Topic: Get online airquality data
Replies: 0
Views: 91

Get online airquality data

I have no airquality sensor but was interested in getting the info online. This is what I came up with. It provides the general air quality index (AQI), but also separate values for the various polutors that are measured in order to get the index. --[[ data from http://waqi.info/ An API key is requi...
by elmortero
Monday 05 February 2018 23:57
Forum: dzVents Lua Framework
Topic: Newbie help Just send temperature to prowl or email every morning 06:00
Replies: 7
Views: 171

Re: Newbie help Just send temperature to prowl or email every morning 06:00

Assuming that Utetemp01 is the exact name of your outside temperature sensor this should work: return { on = { timer = { 'at 6:00' } }, execute = function(domoticz) local Ute = round(domoticz.devices('Utetemp01').temperature, 1) domoticz.notify('Dagens Utetemperatur!', 'Current value is ' ..Ute, dom...
by elmortero
Monday 29 January 2018 21:12
Forum: Python
Topic: Python Plugin: Most recent Dutch earthquake
Replies: 21
Views: 755

Re: Python Plugin: Most recent Dutch earthquake

blauwebuis wrote:
Saturday 20 January 2018 15:28
Cool! Could there be a way for people in other countries to fill in their datasource?
Hi!
Not Python - I am not very good in that -, but with dzVents, I came up with this

The source I used has world-wide info and allows to use location limits.
by elmortero
Monday 29 January 2018 21:09
Forum: dzVents Lua Framework
Topic: Get earthquake info
Replies: 0
Views: 156

Get earthquake info

Hi all, Inspired by Python Plugin: Most recent Dutch earthquake I wanted to make something simular but with dzVents, and for any location worldwide. This is what I came up with so far. It requires a text sensor to write the output to. --this scripts gets earthquake info from https://earthquake.usgs....
by elmortero
Friday 26 January 2018 12:00
Forum: dzVents Lua Framework
Topic: dzVents 2.4.0 merged into Beta v3.8837+
Replies: 37
Views: 1841

Re: dzVents 2.4.0 merged into Beta v3.8837+

Hi dannybloe,

Is there any chance that checkFirst will be extended to Text sensors too?
That way you can avoid updating a text sensor with the same value over and over (unless the script checks that first of course)