No description
| koloretsua | ||
| .gitignore | ||
| bisitariak.py | ||
| config.py.example | ||
| LICENSE | ||
| README.md | ||
| requirements.txt | ||
bisitariak & koloretsua
those scripts are used to made a lamp who illuminates with various colors (generated based on visitor's IP address) when someone visit my websites (detection based on nginx logs)
to use them, you need a MQTT broker
if you want to use a public broker: https://www.maqiatto.com/
'bisitariak' means 'visitors' and 'koloretsua' means 'colorful' in Basque
bisitariak
this script monitors nginx access logs and advertises any new visits to a MQTT broker
it comes with it's sibbling script (koloretsua) wich turn on a LED strip for each visitor, using an ESP microcontroller
TODO:
- properly detect any new visits
- FIXME: to test properly
- extract their associated IP address
- generate a color based on this IP address
- advertise new visitors (and their associated color) on the MQTT broker
koloretsua
this script is using CircuitPython and MiniMQTT
install
- flash an ESP card with CircuitPython (i used a Wemos S2 mini)
- put the files from the
koloretsua/libdirectory in thelibdirectory of your ESP card - put the
code.pyfile in the root of your ESP - copy the
settings.toml.examplefile into the root of your ESP, rename it tosettings.tomland configure it