Thanks, take your time, i’m in no rush
Basically it is the part where you have to enter your postalcode stops the party.
I need to find out how to get past that landingsite in a smart way.
If they have thought about security it might not be possible at all this way without entering your details manual
If i juste have visited the site and the cooky or session is placed with you details the script works fine.
But after it expires we have a problem
note : for privacy reasons i stripped the details from goldwing in the below links and script.
the url i got by using another site of your city :
http://afvalkalender.alphenaandenrijn.n ... ERIC_CODE>
i just refest and deleted history and that links seems to be correct !
That could be the clue we needed.
Code: Select all
commando='curl -s http://afvalkalender.alphenaandenrijn.nl/login/<UNIQUENUMERIC_CODE>'
if string.find(result,"rror") then
WriteToFile("Error >>> function 640"..commando,"url")
-- Beperk string tot infoblock van de site
local start=string.find(result,'<ul id="ophaaldata">')
local eind=string.find(result,'<i>Papier en karton</i></a>',start)
local nData=string.sub(result, start, eind)
nData contains the date for 3 different types of waiste.
It is unkown for me how you want to implement... you can split them in any way you want and update 3 diff text devices or make a nice string in one text device.
the print(nDate) above prints the plain HTML code, so it looks a bit odd this way, I put it there to have something to show/debug
Are you able to work with this to make it working in your system ?
Note for others of the same city :
There is a second government site for waiste for you where you can fill in you postal code
If you do it on that site it will redirect you to the site goldwing was using but this time with a unique numeric code in the url for you postal code,
so it lands directly on the waiste page
Rpi & Win x64. Using : cam's,Nest,RFXCom,Kaku,LaCrosse,RFY,IsAlive,Dummy,Wether Underground, standard Lua, Curl on windows,Domoticz Android App & Tasker,
"The only source of knowledge is experience (A.Einstein)"