https://github.com/zewelor/ps_events
https://github.com/zewelor/ps_events
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zewelor/ps_events
- Owner: zewelor
- Created: 2025-05-14T08:58:30.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2026-04-03T06:44:46.000Z (2 months ago)
- Last Synced: 2026-04-04T10:52:45.100Z (2 months ago)
- Language: Ruby
- Size: 15.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Agents: AGENTS.md
Awesome Lists containing this project
README
# Readme
[Link to ics](https://raw.githubusercontent.com/zewelor/ps_events/refs/heads/main/events.ics)
## Setup
- cp .env.example .env
- source dockerized.sh
- lefthook install -f
Run hooks via the dockerized aliases:
```bash
source dockerized.sh; lefthook run pre-commit
```
## Usage
### API Authentication (OCR)
Endpoint `/events_ocr` pode ser chamado com Bearer token em vez de Google OAuth.
**Configurar no .env:**
```bash
API_KEYS=token1:email1@example.com,token2:email2@partner.pl
```
**Gerar um token (CLI):**
```bash
just gen_api_key
```
**Exemplo de chamada:**
```bash
curl -X POST http://localhost:4567/events_ocr \
-H "Authorization: Bearer SEU_TOKEN" \
-F "event_image=@plakat.jpg"
```
Generate an ICS file from the default Google Sheets CSV:
```bash
./bin/spreadsheet_to_ical > events.ics
```
Generate with a custom CSV URL:
```bash
./bin/spreadsheet_to_ical "https://example.com/events.csv" > events.ics
```
Use the CLI for options:
```bash
./bin/cli -u "https://example.com/events.csv" -o events.ics
```