Management Commands - ads04r/imouto-viewer GitHub Wiki

The Imouto Viewer currently requires much of the data it can display to be imported into the database, usually via a Django management command.

This document provides an overview for administrators on the commands available. Each command can be run using python manage.py <command_name>. Some of these commands require additional arguments, documentation for which may be viewed with python manage.py help <command_name>.

Available Commands

  • cron

    • Intended for scheduled periodic jobs. This takes no parameters but should be run every 5-10 minutes from cron.
    • Usage:
      python manage.py cron
      
    • Source code
  • jslib

    • Maintains or updates the JavaScript library assets from CDNs. This command was written in order to avoid enormous node_modules directories within the codebase that are common when using npm or yarn.
    • Usage:
      python manage.py jslib
      
    • Source code
  • calculate_journey_distances

    • Computes distances for journeys in the database.
    • Usage:
      python manage.py calculate_journey_distances
      
    • Source code
  • fill_cities

    • Populates the cities database from data sources.
    • Usage:
      python manage.py fill_cities
      
    • Source code
  • fill_countries

    • Populates the countries database from data sources.
    • Usage:
      python manage.py fill_countries
      
    • Source code
  • generate_collage

    • Generates image collages from user data.
    • Usage:
      python manage.py generate_collage
      
    • Source code
  • generate_days

    • Computes or updates daily summaries for the viewer.
    • Usage:
      python manage.py generate_days
      
    • Source code
  • generate_event_collages

    • Creates collages for specific events.
    • Usage:
      python manage.py generate_event_collages
      
    • Source code
  • generate_journey_similarities

    • Calculates similarity metrics for journeys.
    • Usage:
      python manage.py generate_journey_similarities
      
    • Source code
  • generate_loc_events

    • Processes and creates location-based events.
    • Usage:
      python manage.py generate_loc_events
      
    • Source code
  • generate_walk_events

    • Processes and creates walking-related events.
    • Usage:
      python manage.py generate_walk_events
      
    • Source code
  • import_calendar

    • Imports calendar data into the viewer.
    • Usage:
      python manage.py import_calendar
      
    • Source code
  • import_carddav

    • Imports CardDAV contacts and data.
    • Usage:
      python manage.py import_carddav
      
    • Source code
  • import_fit

    • Imports FIT (activity) files.
    • Usage:
      python manage.py import_fit
      
    • Source code
  • import_git

    • Imports data from Git repositories.
    • Usage:
      python manage.py import_git
      
    • Source code
  • import_gps

    • Imports GPS tracking data.
    • Usage:
      python manage.py import_gps
      
    • Source code
  • import_home_assistant

    • Imports data from Home Assistant.
    • Usage:
      python manage.py import_home_assistant
      
    • Source code
  • import_minimoods

    • Imports mood tracking data from MiniMoods.
    • Usage:
      python manage.py import_minimoods
      
    • Source code
  • import_monica

    • Imports data from Monica CRM.
    • Usage:
      python manage.py import_monica
      
    • Source code
  • import_openscale

    • Imports weight and body metrics from OpenScale.
    • Usage:
      python manage.py import_openscale
      
    • Source code
  • import_pebble

    • Imports data from Pebble devices.
    • Usage:
      python manage.py import_pebble
      
    • Source code
  • import_photos

    • Imports photo metadata and images.
    • Usage:
      python manage.py import_photos
      
    • Source code
  • import_pidgin_log

    • Imports logs from Pidgin chat client.
    • Usage:
      python manage.py import_pidgin_log
      
    • Source code
  • import_schema_org

    • Imports and processes Schema.org data.
    • Usage:
      python manage.py import_schema_org
      
    • Source code
  • import_sms

    • Imports SMS messages.
    • Usage:
      python manage.py import_sms
      
    • Source code
  • import_smsbackupplus

    • Imports SMS Backup+ archives.
    • Usage:
      python manage.py import_smsbackupplus
      
    • Source code
  • import_trackandgraph

    • Imports data from the Track and Graph app.
    • Usage:
      python manage.py import_trackandgraph
      
    • Source code
  • import_weather

    • Imports weather data.
    • Usage:
      python manage.py import_weather
      
    • Source code
  • import_wikipedia_onthisday

    • Imports "On This Day" facts from Wikipedia.
    • Usage:
      python manage.py import_wikipedia_onthisday
      
    • Source code
⚠️ **GitHub.com Fallback** ⚠️