Originally posted by **effgarces** February 4, 2024
I'm trying to implement jbeale script (https://forums.raspberrypi.com/viewtopic.php?p=2096715#p2085037) for removing light polution in a module, but after trying multiple approaches I can never get it to apply. The sh script works perfectly, so I think that the problem lies in the module. For testing I simply duplicated the allsky_script.py to pass on the currentimage as parameter for the script. I'm hoping that someone can give an insight at what I'm doing wrong
[lightpollution.sh](https://gist.github.com/effgarces/02f42074c4a997ee2ec833ec867c0d19)
[allsky_lightpollution.py](https://gist.github.com/effgarces/d79e3941a5b6565810469de173658a9e)
Discussed in https://github.com/AllskyTeam/allsky-modules/discussions/82