The worst Your Nectar Prices manager ever https://pollen.squarebowl.club
  • Python 51.6%
  • JavaScript 22.3%
  • HTML 14%
  • CSS 12.1%
Find a file
2026-05-23 16:03:40 +01:00
pollen static/index: add warning to barcode popup 2026-05-23 16:03:40 +01:00
systemd add WIP systemd units 2026-04-24 01:14:40 +01:00
.gitignore WIP: separate card management from __init__ 2026-04-10 13:25:38 +01:00
config.example.json clarify setup instructions and remove config footguns 2026-04-03 10:08:13 +01:00
pyproject.toml version reset 2026-04-24 16:29:53 +01:00
README.md readme: lol i share a name with the company itself 2026-04-27 06:59:16 -04:00

pollen

not to be confused with Nectar360 Pollen.

pollen is a server to keep track of Your Nectar Prices for multiple Nectar cards. also shows the card's barcode for use with SmartShop. now you can have more than 10 personalised discounts!

you can try it but i will not help you. this thing is still taking shape, has bad code, and caters to me mainly, lol.

setup

git clone https://git.squarebowl.club/plate/pollen
cd pollen
python -m venv venv
source venv/bin/activate
pip install .

# using waitress causes the instance dir to move
# here for some reason. unsure why
mkdir -p venv/var/pollen-instance
# don't skip this or cli commands will break.
ln -s venv/var/pollen-instance instance

sed -e "s/REPLACE_KEY/$(openssl rand -hex 64)/" \
	-e "s/REPLACE_REG/$(openssl rand -hex 5)/" \
	config.example.json > instance/config.json
flask --app pollen init-db
flask --app pollen add-user username password
waitress-serve pollen

management

first, make sure you're in the venv:

cd path/to/pollen
source venv/bin/activate

now you can use commands:

flask --app pollen help

reference:

  • add-user <username> <password> - add a user
  • add-card <last 11 digits> [nickname] - add a card. nickname optional
  • update - update offers for all cards. ideally run this every friday, i included a timer in the systemd directory if you care