haydnw / AirPi

A Raspberry Pi air quality station
27 stars 15 forks source link

Raingauge error #28

Closed chrisf4lc0n closed 8 years ago

chrisf4lc0n commented 8 years ago

TypeError: buckettip() takes exactly 1 argument (2 given)

haydnw commented 8 years ago

Thanks. Do you know where this method is called from? I'm just wondering if we can't amend the call rather than changing the method signature to include a value that we don't then use?

chrisf4lc0n commented 8 years ago

Mate it took me nearly half an hour just to find where does it call them 2 arguments... I am an absolute Python noob, it was more sheer luck that I found it and worked it out, than anything else. I will however try to pick something more from this code up and may come with the answer...

haydnw commented 8 years ago

I've added an argument called "channel" instead, since that seems to be common practice (see links in function docs).