Hello,
OK, I'll try this method.. I'll give you feedback as soon as I check...
Thanks & best regards
Search found 33 matches
- Sat Jul 19, 2014 10:54 pm
- Forum: DomotiGa Forum
- Topic: Clean Database - delete records older than x days
- Replies: 2
- Views: 8753
- Thu Jul 10, 2014 9:17 pm
- Forum: DomotiGa Forum
- Topic: Clean Database - delete records older than x days
- Replies: 2
- Views: 8753
Clean Database - delete records older than x days
Hello, I implemented a OWL device to check power. Working well; I use database saving values and in my web interface, I use highcharts to plot the history (highcharts.com). Now, I have too many records in my database and I'd like to clean it for records older than x days. The idea is to launch an ev...
- Tue Jun 24, 2014 5:41 pm
- Forum: DomotiGa Forum
- Topic: To get GlobalVar
- Replies: 4
- Views: 10707
Re: To get GlobalVar
Hello,
So I tried again and again but I don't find the good PHP code. Nevermind, later, perhpas with more experience, I'll be able to write this code.
Regards.
So I tried again and again but I don't find the good PHP code. Nevermind, later, perhpas with more experience, I'll be able to write this code.
Regards.
- Tue Jun 17, 2014 7:13 pm
- Forum: DomotiGa Forum
- Topic: To get GlobalVar
- Replies: 4
- Views: 10707
Re: To get GlobalVar
Hello,
Thanks.
Further to Capital letter : I tried and no change.
I'll have a look into test-tool... I keep in touch with you... later as busy this week...
Best regards.
Thanks.
Further to Capital letter : I tried and no change.
I'll have a look into test-tool... I keep in touch with you... later as busy this week...
Best regards.
- Mon Jun 02, 2014 10:15 pm
- Forum: DomotiGa Forum
- Topic: To get GlobalVar
- Replies: 4
- Views: 10707
To get GlobalVar
Hello, I use few specific globalvars in Domotiga. I created my own web page to read Domotiga status based on Domotiga PHP page. Working fine. First I use this code (extract from functions.php): function do_xmlrpc($request) { global $rpc_connect; global $use_curl; if ( $use_curl == "yes" ) ...
- Sun Jun 01, 2014 7:06 pm
- Forum: DomotiGa Forum
- Topic: temperature average day
- Replies: 16
- Views: 24525
Re: temperature average day
Post closed
- Sun Jun 01, 2014 2:59 pm
- Forum: DomotiGa Forum
- Topic: temperature average day
- Replies: 16
- Views: 24525
Re: temperature average day
I got it ! for count, I have : " Main.SetglobalVar("Temp_n".str(1+val(Var_temp_n))) " for sum, I have : " Main.setGlobalVar("Temp_somme", str(val(Var_Temp_somme)+val(Dev_36_value1))) " for average, I have : " Main.setGlobalVar("Temp_average", st...
- Sun Jun 01, 2014 12:28 pm
- Forum: DomotiGa Forum
- Topic: temperature average day
- Replies: 16
- Views: 24525
Re: temperature average day
Hello, Yes, I know, but using Val ( Main.setGlobalVar(Var_Temp_n, val(Var_Temp_n) +val(1)) ), I get following message : " Error:type mistmatch Wanted String, Got Integer instead " If I write " Main.setGlobalVar(Var_Temp_n, val(1)) ", I get same message. If I write " Main.set...
- Sat May 31, 2014 9:55 pm
- Forum: DomotiGa Forum
- Topic: temperature average day
- Replies: 16
- Views: 24525
Re: temperature average day
Hello, I created an action and I wrote this script : Main.SetGlobalVar(Var_Temp_n, Var_Temp_n+1) When I check the script (into Editor : Run) I get "True" In action list, I launch the acion (right clic on action and "run action") In GlobalVar Window, I see no change in my globalVa...
- Sat May 31, 2014 6:59 pm
- Forum: DomotiGa Forum
- Topic: temperature average day
- Replies: 16
- Views: 24525
Re: temperature average day
Hello, I tried to convert variable, but the "=" operator is seen as a comparison to do. So, I can' do an operation like : a = a+ 1 or a = a + b If I only write : a+1 in editor field and running it, I can see result. if I write a = a + 1, I get "false". So, I think in fact, it's n...
- Thu May 29, 2014 6:37 am
- Forum: DomotiGa Forum
- Topic: temperature average day
- Replies: 16
- Views: 24525
Re: temperature average day
Hi,
OK, I'll try in coming days.
Thanks again !
OK, I'll try in coming days.
Thanks again !
- Wed May 28, 2014 12:31 pm
- Forum: DomotiGa Forum
- Topic: temperature average day
- Replies: 16
- Views: 24525
Re: temperature average day
Hi OWK, Your idea is nice : to increment a count and to sum temperature... later, to caclculate average. Yes, I found this function "Main.SetGlobalVar" and I can use it, but I can't make a sum and an increment ! I tried : Main.SetGlobalVar ( VarHumidity , Device_value + VarHumidity ) but t...
- Tue May 27, 2014 12:26 pm
- Forum: DomotiGa Forum
- Topic: temperature average day
- Replies: 16
- Views: 24525
Re: temperature average day
Hello OWK, Yes, I like your idea and I tried this : Temp_total : is Global var for sum of temperature Temp_n : is count of measurement. But, in script when I do Temp_n = Temp_n + 1 this give message "False" as comparing (Temp_n) to (Temp_n +1). Same for Temp_total... I should miss somethin...
- Mon May 26, 2014 1:05 pm
- Forum: DomotiGa Forum
- Topic: temperature average day
- Replies: 16
- Views: 24525
Re: temperature average day
Hi Henk, Thanks for your feedback. But I don't wish to buy this kind of automatic equipment especially as my DOMOTIGA with sensors can provide something similar. I have sensors (temperature + humidity + light) and Switches + valve. Further to security, yes, I have a timer prevented valve to stay ope...
- Sun May 25, 2014 5:42 pm
- Forum: DomotiGa Forum
- Topic: temperature average day
- Replies: 16
- Views: 24525
temperature average day
Hello, I wish to implement a valve in my installation for my garden greenhouse. Today, I use an automatic "gardena" device to drive this watering. But, in my greenhouse, when no sunny day, it's not necessary to have wastering. In the opposite, when sunny days, even opening door, temperatur...