https://github.com/knutkirkhorn/visma-auto-expense
Check for new Altibox invoice and send to Visma for expense processing
https://github.com/knutkirkhorn/visma-auto-expense
Last synced: 3 months ago
JSON representation
Check for new Altibox invoice and send to Visma for expense processing
- Host: GitHub
- URL: https://github.com/knutkirkhorn/visma-auto-expense
- Owner: knutkirkhorn
- License: mit
- Created: 2025-07-15T16:10:27.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-07-15T20:09:33.000Z (4 months ago)
- Last Synced: 2025-07-16T13:29:28.859Z (4 months ago)
- Language: TypeScript
- Size: 42 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Visma Auto Expense
> Check for new Altibox invoice and send to Visma for expense processing
## Features
- 🤖 Automated browser login to Altibox
- 📄 Automatic invoice detection and download
- 📧 Email forwarding to Visma
## Usage
### Environment variables
See [.env.example](.env.example) for the required environment variables.
### Without Docker
```sh
# Install dependencies
npm install
# Run the script
npm start
# or
npx tsx index.ts
```
### With Docker
```bash
# Build the image
docker build -t visma-auto-expense .
# Run the container
docker run --rm --env-file .env visma-auto-expense
```
### Schedule the cronjob
```bash
crontab -e
```
Add the following line to the crontab to run it 16:37 the 15. every month and output logs to a file:
```sh
37 16 15 * * docker run --rm --env-file /home/knut/visma-auto-expense/.env visma-auto-expense >> /home/knut/visma-auto-expense/logs.txt
```