Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Ground Controller Lvl 1
Message 1 of 2

TSL2561 light sensor with raspberry pi zero

Hi Guys,

 

so... i am trying to use the TSL2561 light sensor with the PI zero to then control online and set peramiters for it to activate. i have been following a guide which i will link below but im suuuuper stuck... i can get the light sensor to read correctly but only when im in the sub dir '/lighting/tsl2561/python. trying to test offzone in step 4 'python offzone.py' only works if i am in the /lighting/tsl2561/python sub dir. does this then mean that the file paths for step 5 need editing to reflect the need to be in this sub dir for a reading? i have edited these scripts to reflect and still cannot complete step 5 tests which are using webview. 

 

this is killing me and have been racking my brains for 2 days now haha. if anyone knows of a easier/better build to get a light sensor to activate a relay on the PI zero whilst having remote overide capabilities then im all ears... i need this project running this week as it is being put in service next week i believe! 

thanks again 

 

 

 

 

https://www.makeuseof.com/tag/build-light-sensing-smart-switch-raspberry-pi-ifttt/

1 Reply
Copilot Lvl 2
Message 2 of 2

Re: TSL2561 light sensor with raspberry pi zero

Can i help you?

[edited by moderator]