Re: Dashticz v2.0, custom positioning and multiple screens
Posted: Thursday 04 May 2017 9:39
Is there a way to click on 'currentweather_big' or 'weather' to open webpage like in buttons?
Thanks
Thanks
Open source Home Automation System
https://forum.domoticz.com/
Ok, i got it working! But am too much ashamed to tell the solutionTrigun wrote:Unfortunately not working eitherrobgeerts wrote:Tried adding /index.html ?Trigun wrote: Unfortunately not working
Sent from my iPhone using Tapatalk
Shouldn't be that hard right?
Sent from my iPhone using Tapatalk
Guess a lack of coffee was to blameTrigun wrote:Ok, i got it working! But am too much ashamed to tell the solutionTrigun wrote:Unfortunately not working eitherrobgeerts wrote: Tried adding /index.html ?
Shouldn't be that hard right?
Sent from my iPhone using Tapatalkalright, i missed a ";"
but good to see its working now, now I can start changing it:) thnx for your help guys! Cheers!!
Sent from my iPhone using Tapatalk
Gaat er steeds beter uit zien zo. Zit nog met mijn papier-bak die 1x per maand op zaterdag wordt opgehaald, terwijl de rest om de week op vrijdag is.SwordFish wrote:Still testing the garbage calendar and sofar so good
What isn't working, paper on the last Saturday of the month?EdKo66 wrote:Gaat er steeds beter uit zien zo. Zit nog met mijn papier-bak die 1x per maand op zaterdag wordt opgehaald, terwijl de rest om de week op vrijdag is.SwordFish wrote:Still testing the garbage calendar and sofar so good
What exactly did you change to get the message that tomorrow the paper will be picked up and not 'this week' ?SwordFish wrote:Still testing the garbage calendar and sofar so good
Code: Select all
week = tonumber (os.date( "%V"))
dag = tostring(os.date("%a"));
status = tonumber(otherdevices_svalues['afval'])
print('script bin_selector executed')
-- Elke 4 weken wordt plastic opgehaald, bijv in week 13, week 17, week 21, enz
-- Om de week wordt de groene bak (gft) geleegd, bijv in week 14, week 16, week 18, enz
-- Elke 4 weken wordt de grijze bak (rest) geleegd, bijv in week 15, week 19, week 23, enz
-- In de oneven weken wordt oud papier ingezameld
commandArray = {}
if (dag=='Sat' or dag=='Sun' ) then
weekend = true; weekdag = false
end
if (dag=='Mon' or dag=='Tue' or dag=='Wed' or dag=='Thu' or dag=='Fri') then
weekend = false ; weekdag = true
end
--Grijze bak - Rest afval
if(week==1 or week==3 or week==5 or week==7 or week==9 or week==11 or week==13 or week==15 or week==17 or week==19 or week==21 or week==23 or week==25 or week==27 or week==29 or week==31 or week==33 or week==35 or week==37 or week==39 or week==41 or week==43 or week==45 or week==47 or week==49 or week==51) then
rest = true ; papier = false ; gft = false ; plastic = false
-- ('Rest afval')
end
--Oranje bak - Plastic
if (week==2 or week==4 or week==6 or week==8 or week==10 or week==12 or week==14 or week==16 or week==18 or week==20 or week==22 or week==24 or week==26 or week==28 or week==30 or week==32 or week==34 or week==36 or week==38 or week==40 or week==42 or week==44 or week==46 or week==48 or week==50 or week==52) then
rest = false ; papier = false ; gft = true ; plastic = true
-- ('Plastic')
end
--Groene bak - GFT
if (week==2 or week==4 or week==6 or week==8 or week==10 or week==12 or week==14 or week==16 or week==18 or week==20 or week==22 or week==24 or week==26 or week==28 or week==30 or week==32 or week==34 or week==36 or week==38 or week==40 or week==42 or week==44 or week==46 or week==48 or week==50 or week==52) then
rest = false ; papier = false ; gft = true ; plastic = true
-- ('GFT')
end
--Papier Container - Papier
if (week==22 or week==26 or week==30 or week==35 or week==39 or week==43 or week==48 or week==53) then
rest = false ; papier = true ; gft = false ; plastic = false
-- ('Papier')
end
if (not(rest) and not(papier) and not(gft) and not(plastic)) then
commandArray ['UpdateDevice']= '191|1|Geen ophaaldag'
end
if (rest and weekdag) or (rest and weekend) then
commandArray ['UpdateDevice']= '191|1|Rest afval'
end
if (gft and weekdag) or (gft and weekend) then
commandArray ['UpdateDevice']= '191|1|GFT'
end
if (gft and weekdag) or (gft and weekend) then
commandArray ['UpdateDevice']= '191|1|Plastic'
end
if (papier and weekdag) or (papier and weekend) then
commandArray ['UpdateDevice']= '191|1|Papier - GFT en Plastic'
end
if (plastic and papier and weekdag) or (plastic and papier and weekend) then
commandArray ['UpdateDevice']= '191|1|Plastic en papier'
end
if (rest and papier and weekdag) or (rest and papier and weekend) then
commandArray ['UpdateDevice']= '191|1|Rest afval en papier'
end
if (gft and papier and weekdag) or (gft and papier and weekend) then
commandArray ['UpdateDevice']= '191|1|GFT en papier'
end
return commandArray
Oops.. This should have been in English.EdKo66 wrote:Gaat er steeds beter uit zien zo. Zit nog met mijn papier-bak die 1x per maand op zaterdag wordt opgehaald, terwijl de rest om de week op vrijdag is.SwordFish wrote:Still testing the garbage calendar and sofar so good
I don't know how to put change the script so it does give this.SwordFish wrote:What isn't working, paper on the last Saturday of the month?EdKo66 wrote:Gaat er steeds beter uit zien zo. Zit nog met mijn papier-bak die 1x per maand op zaterdag wordt opgehaald, terwijl de rest om de week op vrijdag is.SwordFish wrote:Still testing the garbage calendar and sofar so good
I had the same problem with today paper and tomorrow plastic. I did combine the in to one see my scriptpvdhelm wrote:my garbage bin script isn't working correct. Everyday of the week he tells me to put the garbage outsite, this must be on mondays. and when the collect day is of GFT and Plastic he only display one item
Code: Select all
week = tonumber (os.date( "%V")) dag = tostring(os.date("%a")); status = tonumber(otherdevices_svalues['afval']) print('script bin_selector executed') -- Elke 4 weken wordt plastic opgehaald, bijv in week 13, week 17, week 21, enz -- Om de week wordt de groene bak (gft) geleegd, bijv in week 14, week 16, week 18, enz -- Elke 4 weken wordt de grijze bak (rest) geleegd, bijv in week 15, week 19, week 23, enz -- In de oneven weken wordt oud papier ingezameld commandArray = {} if (dag=='Sat' or dag=='Sun' ) then weekend = true; weekdag = false end if (dag=='Mon' or dag=='Tue' or dag=='Wed' or dag=='Thu' or dag=='Fri') then weekend = false ; weekdag = true end --Grijze bak - Rest afval if(week==1 or week==3 or week==5 or week==7 or week==9 or week==11 or week==13 or week==15 or week==17 or week==19 or week==21 or week==23 or week==25 or week==27 or week==29 or week==31 or week==33 or week==35 or week==37 or week==39 or week==41 or week==43 or week==45 or week==47 or week==49 or week==51) then rest = true ; papier = false ; gft = false ; plastic = false -- ('Rest afval') end --Oranje bak - Plastic if (week==2 or week==4 or week==6 or week==8 or week==10 or week==12 or week==14 or week==16 or week==18 or week==20 or week==22 or week==24 or week==26 or week==28 or week==30 or week==32 or week==34 or week==36 or week==38 or week==40 or week==42 or week==44 or week==46 or week==48 or week==50 or week==52) then rest = false ; papier = false ; gft = true ; plastic = true -- ('Plastic') end --Groene bak - GFT if (week==2 or week==4 or week==6 or week==8 or week==10 or week==12 or week==14 or week==16 or week==18 or week==20 or week==22 or week==24 or week==26 or week==28 or week==30 or week==32 or week==34 or week==36 or week==38 or week==40 or week==42 or week==44 or week==46 or week==48 or week==50 or week==52) then rest = false ; papier = false ; gft = true ; plastic = true -- ('GFT') end --Papier Container - Papier if (week==22 or week==26 or week==30 or week==35 or week==39 or week==43 or week==48 or week==53) then rest = false ; papier = true ; gft = false ; plastic = false -- ('Papier') end if (not(rest) and not(papier) and not(gft) and not(plastic)) then commandArray ['UpdateDevice']= '191|1|Geen ophaaldag' end if (rest and weekdag) or (rest and weekend) then commandArray ['UpdateDevice']= '191|1|Rest afval' end if (gft and weekdag) or (gft and weekend) then commandArray ['UpdateDevice']= '191|1|GFT' end if (gft and weekdag) or (gft and weekend) then commandArray ['UpdateDevice']= '191|1|Plastic' end if (papier and weekdag) or (papier and weekend) then commandArray ['UpdateDevice']= '191|1|Papier - GFT en Plastic' end if (plastic and papier and weekdag) or (plastic and papier and weekend) then commandArray ['UpdateDevice']= '191|1|Plastic en papier' end if (rest and papier and weekdag) or (rest and papier and weekend) then commandArray ['UpdateDevice']= '191|1|Rest afval en papier' end if (gft and papier and weekdag) or (gft and papier and weekend) then commandArray ['UpdateDevice']= '191|1|GFT en papier' end return commandArray
Code: Select all
week = tonumber (os.date( "%V"))
dag = tostring(os.date("%a"));
status = tonumber(otherdevices_svalues['Afval'])
print('script bin_selector executed')
commandArray = {}
print ('Dag= '..dag)
if (dag=='Sat' or dag=='Sun' ) then
weekend = true; weekdag = false
end
if (dag=='Mon' or dag=='Tue' or dag=='Wed' or dag=='Thu' or dag=='Fri') then
weekend = false ; weekdag = true
end
--Bepalen morgen papier
if(week==2 and dag=='Wed' or week==4 and dag=='Wed' or week==6 and dag=='Wed' or week==8 and dag=='Wed' or week==10 and dag=='Wed' or week==12 and dag=='Wed' or week==14 and dag=='Wed' or week==16 and dag=='Wed' or week==18 and dag=='Wed' or week==20 and dag=='Wed' or week==22 and dag=='Wed' or week==24 and dag=='Wed' or week==26 and dag=='Wed' or week==28 and dag=='Wed'
or week==30 and dag=='Wed' or week==32 and dag=='Wed' or week==34 and dag=='Wed' or week==36 and dag=='Wed' or week==38 and dag=='Wed' or week==40 and dag=='Wed' or week==42 and dag=='Wed' or week==44 and dag=='Wed' or week==46 and dag=='Wed' or week==48 and dag=='Wed' or week==50 and dag=='Wed' or week==52 and dag=='Wed') then
morgenpapier = true; papier = false; plastic = false; niets = false
print ('morgen papier')
end
--Bepalen papier
if(week==2 and dag=='Thu' or week==4 and dag=='Thu' or week==6 and dag=='Thu' or week==8 and dag=='Thu' or week==10 and dag=='Thu' or week==12 and dag=='Thu' or week==14 and dag=='Thu' or week==16 and dag=='Thu' or week==18 and dag=='Thu' or week==20 and dag=='Thu' or week==22 and dag=='Thu' or week==24 and dag=='Thu' or week==26 and dag=='Thu' or week==28 and dag=='Thu'
or week==30 and dag=='Thu' or week==32 and dag=='Thu' or week==34 and dag=='Thu' or week==36 and dag=='Thu' or week==38 and dag=='Thu' or week==40 and dag=='Thu' or week==42 and dag=='Thu' or week==44 and dag=='Thu' or week==46 and dag=='Thu' or week==48 and dag=='Thu' or week==50 and dag=='Thu' or week==52 and dag=='Thu') then
morgenpapier = false; papier = true; plastic = false; niets = false
print ('vandaag papier morgen plastic')
end
--Bepalen plastic
if(week==2 and dag=='Fri' or week==4 and dag=='Fri' or week==6 and dag=='Fri' or week==8 and dag=='Fri' or week==10 and dag=='Fri' or week==12 and dag=='Fri' or week==14 and dag=='Fri' or week==16 and dag=='Fri' or week==18 and dag=='Fri' or week==20 and dag=='Fri' or week==22 and dag=='Fri' or week==24 and dag=='Fri' or week==26 and dag=='Fri' or week==28 and dag=='Fri'
or week==30 and dag=='Fri' or week==32 and dag=='Fri' or week==34 and dag=='Fri' or week==36 and dag=='Fri' or week==38 and dag=='Fri' or week==40 and dag=='Fri' or week==42 and dag=='Fri' or week==44 and dag=='Fri' or week==46 and dag=='Fri' or week==48 and dag=='Fri' or week==50 and dag=='Fri' or week==52 and dag=='Fri') then
morgenpapier = false; papier = false; plastic = true; niets = false
print ('vandaag plastic')
end
--Bepalen geen plastic en geen papier
if(dag=='Mon' or dag=='Tue' or dag=='Sat' or dag=='Sun') then
morgenpapier = false; papier = false; plastic = false; niets = true
print ('vandaag geen afval buiten zetten')
end
if (niets and dag) then
commandArray ['UpdateDevice']= '316|1|Geen ophaaldag'
end
if (morgenpapier and weekdag and dag) then
commandArray ['UpdateDevice']= '316|1|Morgen papier'
end
if (papier and weekdag and dag) then
commandArray ['UpdateDevice']= '316|1|Vandaag papier, morgen plastic'
end
if (plastic and weekdag and dag) then
commandArray ['UpdateDevice']= '316|1|Vandaag plastic'
end
return commandArray
Send you a PMEdKo66 wrote:I don't know how to put change the script so it does give this.SwordFish wrote:What isn't working, paper on the last Saturday of the month?EdKo66 wrote:
Gaat er steeds beter uit zien zo. Zit nog met mijn papier-bak die 1x per maand op zaterdag wordt opgehaald, terwijl de rest om de week op vrijdag is.
Returned one to youSwordFish wrote:Send you a PMEdKo66 wrote:I don't know how to put change the script so it does give this.SwordFish wrote:
What isn't working, paper on the last Saturday of the month?
Would be great if we could set a pickup day for every different collection.pvdhelm wrote:my garbage bin script isn't working correct. Everyday of the week he tells me to put the garbage outsite, this must be on mondays. and when the collect day is of GFT and Plastic he only display one item
HansieNL wrote:Would be great if we could set a pickup day for every different collection.pvdhelm wrote:my garbage bin script isn't working correct. Everyday of the week he tells me to put the garbage outsite, this must be on mondays. and when the collect day is of GFT and Plastic he only display one item
Code: Select all
if(week=12){
groen=true;
grijs=false;
oranje=false;
}
if(week=13){
groen=false;
grijs=true;
oranje=false;
}
Code: Select all
groen=false;
grijs=false;
oranje=false;
if(week=12){
grijs=true
}
if(week=12){
groen=true
}
Hi AllEdKo66 wrote:HansieNL wrote:Would be great if we could set a pickup day for every different collection.pvdhelm wrote:my garbage bin script isn't working correct. Everyday of the week he tells me to put the garbage outsite, this must be on mondays. and when the collect day is of GFT and Plastic he only display one item
I agree with that.