Shipping system manager for a Shopify, Shipstation, Freshdesk, and Todoist based workflow.
This system performs the following functions:
- Update a dot matrix display with the last 24 hour's unshipped orders and revenue.
- Update a green/yellow/red light status tower with current shipping status.
- Add a task to Todoist if an Amazon order shipment in Shipstation will soon be late and mark order with Urgent tag.
- Send out of stock notification email to orders tagged as out of stock.
-
Ensure you have python3 installed and working correctly
-
Install requirements using the following command:
pip3 install -r requirements.txt
-
Copy config-sample.py to a new file called config.py. Populate with your Todoist API token and which project you want to add tasks to. You will also need to fill in your API details for shipstation as well as the ship timeframe and tag id.
-
Test by running the following from the project directory.
python3 main.py
- Add as a service so the script will run on startup
cd /lib/systemd/system/
sudo nano stork.service
Copy in from example file
sudo chmod 644 /lib/systemd/system/stork.service
chmod +x /home/pi/shipping-stork/main.py
sudo systemctl daemon-reload
sudo systemctl enable stork.service
sudo systemctl start stork.service
- Reboot and test