Shane's AI Memory System & Automation Hub - Angel Cloud Intelligence Platform
LogiBot is a fixed-cost local AI infrastructure designed to replace $1,000/mo variable cloud costs with a self-hosted solution for SRM Trucking dispatch automation.
- Compute: Local Llama 3.2 via Ollama (Ubuntu WSL/USB)
- Persistence: Firestore (Layer 2)
- Data Source: Google Sheets (SRM Operations)
- Security: Domain-wide delegation via logibot-worker service account
- Auth: signInWithCustomToken using __initial_auth_token
✅ Real-time Driver Data Sync - 19 active drivers synced from Google Sheets
✅ Automated Haul Rate Calculation - ($130/60) * RTM / 25 tons, rounded to $0.50, min $6.00
✅ Local AI Integration - Ollama + Llama 3.2 for intelligent dispatch
✅ Webhook Support - Instant sync on Google Sheets updates
✅ Health Monitoring - System health checks and alerts
✅ Docker Support - Containerized deployment
✅ CI/CD Pipeline - Automated testing with GitHub Actions
git clone https://github.com/thebardchat/angel-cloud.git
cd angel-cloudchmod +x setup.sh
./setup.sh# Edit .env with your settings
nano .env
# Add Google service account credentials
cp /path/to/your/credentials.json .source venv/bin/activatepython3 health_monitor.py# One-time sync
python3 google_sheets_sync.py
# Continuous mode
python3 logibot_core.py
# Webhook receiver
python3 webhook_receiver.pyangel-cloud/
├── google_sheets_sync.py # Primary data sync (drivers, plants)
├── life_command_center_sync.py # Personal finance/family sync
├── logibot_core.py # Main orchestrator with Ollama AI
├── webhook_receiver.py # Google Sheets webhook handler
├── health_monitor.py # System health monitoring
├── config.py # Centralized configuration
├── logger.py # Logging utilities
├── test_sync.py # Unit tests
├── requirements.txt # Python dependencies
├── setup.sh # Automated installation
├── Dockerfile # Docker image definition
├── docker-compose.yml # Multi-container setup
├── .env.example # Environment variables template
├── SCHEMA.md # Firestore schema documentation
├── SYNC_README.md # Sync setup guide
├── ai-mission-statement.md # Shanebrain core memory
└── logs/ # Application logs
Syncs SRM Dispatch data to Firestore.
Run:
python3 google_sheets_sync.pyCollections Updated:
/artifacts/logibot/public/data/drivers/artifacts/logibot/public/data/plants
Haul Rate Formula:
Rate = ($130 / 60 mins) * Round Trip Minutes / 25 tons
- Round up to nearest $0.50
- Minimum: $6.00
Main orchestrator with continuous sync and AI integration.
Run:
python3 logibot_core.pyFeatures:
- Continuous sync (configurable interval)
- Ollama AI analysis
- Graceful shutdown handling
- Health monitoring integration
Flask server for Google Sheets change notifications.
Run:
python3 webhook_receiver.pyEndpoints:
POST /webhook/sheets- Google Sheets updatesGET /health- Health checkPOST /webhook/test- Testing endpoint
System health checks and diagnostics.
Run:
python3 health_monitor.pyChecks:
- Firebase/Firestore connectivity
- Google Sheets API access
- Ollama service availability
- Last sync time validation
- Data counts verification
docker build -t logibot:latest .docker-compose up -dServices:
logibot- Main sync orchestratorwebhook- Webhook receiver (port 8080)ollama- Optional local AI service
docker-compose logs -f logibotdocker-compose downpytest test_sync.py -vpytest test_sync.py -v --cov=. --cov-report=term-missingpython3 -c "
from google_sheets_sync import calculate_haul_rate
print(f'RTM 90 → \${calculate_haul_rate(90):.2f}')
print(f'RTM 120 → \${calculate_haul_rate(120):.2f}')
"See .env.example for all configuration options.
Required:
GOOGLE_CREDENTIALS_PATH- Service account JSON fileSRM_DISPATCH_SHEET_ID- Google Sheets ID
Optional:
OLLAMA_BASE_URL- Ollama API endpoint (default: http://localhost:11434)WEBHOOK_SECRET- Webhook signature verificationSYNC_INTERVAL_MINUTES- Auto-sync interval (default: 5)LOG_LEVEL- Logging verbosity (INFO, DEBUG, etc.)
Public Data:
/artifacts/{appId}/public/data/{collectionName}
Private Data:
/artifacts/{appId}/users/{userId}/{collectionName}
See SCHEMA.md for complete schema documentation.
# Run sync every 5 minutes
*/5 * * * * cd /path/to/angel-cloud && /path/to/venv/bin/python3 google_sheets_sync.py >> logs/cron.log 2>&1Create task pointing to:
python.exe C:\path\to\angel-cloud\google_sheets_sync.py
python3 health_monitor.pytail -f logs/logibot.loggrep "Sync complete" logs/logibot.log | tail -1- Verify
credentials.jsonhas both Firebase and Sheets API access - Check domain-wide delegation for logibot-worker service account
# Check if Ollama is running
curl http://localhost:11434/api/tags
# Start Ollama (if needed)
ollama serve- Check Firebase project settings
- Verify Firestore security rules allow service account writes
- Confirm sheet is shared with service account email
- Verify Sheet ID in .env is correct
pip install -r requirements.txt
pip install black flake8 isortflake8 .black .
isort .pytest test_sync.py -v --cov=.
docker build -t logibot:test .Google Sheets (SRM Dispatch)
↓
Google Sheets API
↓
google_sheets_sync.py
↓
Firestore Collections
↓
logibot_core.py → Ollama AI
↓
Intelligent Dispatch Decisions
Google Sheets Edit
↓
Apps Script Trigger
↓
POST /webhook/sheets
↓
webhook_receiver.py
↓
Async Sync Trigger
USPTO Status: Abstract finalized Innovation: Portable cache/co-processor on USB flash drive License: Fixed $499 one-time cost Security: Zero-knowledge session proof via Merkle trees Audit: Pulsar Sentinel immutable audit logs
This is a proprietary project. External contributions are not accepted at this time.
Proprietary - All rights reserved. © 2026 Shane Brazelton / Angel Cloud Intelligence Platform
See ai-mission-statement.md for IP protection details.
For issues and questions:
- Review SYNC_README.md for setup guidance
- Check SCHEMA.md for data structure
- Run health checks:
python3 health_monitor.py - Review logs:
tail -f logs/logibot.log
Last Updated: 2026-01-03 Version: 1.0 Maintainer: Shane Brazelton
Mission: Build fixed-cost local AI infrastructure to replace $1,000/mo variable cloud costs.
|
Claude by Anthropic AI partner and co-builder. claude.ai
|
Raspberry Pi 5 Local AI compute node. raspberrypi.com
|
Pironman 5-MAX NVMe RAID 1 chassis by Sunfounder. sunfounder.com
|
If what I'm building matters to you — local AI for real people, tools for the left-behind — here's how to help:
- Sponsor me on GitHub
- Buy the book — You Probably Think This Book Is About You
- Star the repos — visibility matters for projects like this
Built by Shane Brazelton · Co-built with Claude (Anthropic) · Hazel Green, Alabama
Part of the ShaneBrain Ecosystem · Built under the Constitution
