The worst Your Nectar Prices manager ever
https://pollen.squarebowl.club
- Python 51.6%
- JavaScript 22.3%
- HTML 14%
- CSS 12.1%
| pollen | ||
| systemd | ||
| .gitignore | ||
| config.example.json | ||
| pyproject.toml | ||
| README.md | ||
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 useradd-card <last 11 digits> [nickname]- add a card. nickname optionalupdate- update offers for all cards. ideally run this every friday, i included a timer in thesystemddirectory if you care