Giter Club home page Giter Club logo

debanjum / ai-wallpaper Goto Github PK

View Code? Open in Web Editor NEW
7.0 4.0 0.0 7.47 MB

Get fresh, personal AI painted wallpapers on your phone or computer. Paints by using your current city, weather and even your recent experiences. Powered by Khoj AI

License: GNU General Public License v3.0

Python 100.00%
ai dalle-3 khoj paint wallpaper-app ai-image-generation ai-wallpaper generative-ai dynamic-wallpaper live-wallpaper timed-wallpaper wallpaper-changer wallpaper-manager

ai-wallpaper's Introduction

โœจ AI Wallpaper

Get fresh, personal AI painted wallpapers daily

๐Ÿ’Ž Features

  • Get fresh, personal wallpapers painted for you by khoj ai
  • Automatically weaves your current city, moon phase, weather and (even recent experiences!) into the painting
  • Updates your Android or Mac wallpaper automatically
  • Schedule it to run every day and night
  • Customize the wallpapers by telling khoj what styles and information to use

โœ… Prequisites

โšก๏ธ Quickstart

pip install ai-wallpaper && KHOJ_API_KEY=<YOU_KHOJ_API_KEY> aiwall

๐ŸŽ Showcase

Day Night
Khoj.AI.Wallpaper.App.mp4

๐Ÿชข Customize

Minimal

 KHOJ_API_KEY=<YOUR_KHOJ_API_KEY> aiwall

Uze Custom Prompt

 KHOJ_API_KEY=<YOUR_KHOJ_API_KEY> aiwall "Generate a wallpaper based on the latest news here"

Use Custom Wallpaper Path

 KHOJ_API_KEY=<YOUR_KHOJ_API_KEY> WALLPAPER_PATH="~/Pictures/wallpaper.png" aiwall

Use Self-Hosted Khoj

 KHOJ_HOST="http://localhost:42100" aiwall

๐Ÿš€ Upgrade

Automatically get a fresh and personal wallpaper painted for you every day and night

  • Create a simple shell script to call the AI wallpaper creation command
     echo "#!/bin/sh\nKHOJ_API_KEY=<YOUR_KHOJ_API_KEY> aiwall" > wallpaper.sh
     chmod +x wallpaper.sh
  • On Android: Use termux-job-scheduler on Termux to get yourself a fresh and personal wallpaper painted every 12 hours
     # Install termux-job-scheduler to trigger script at a regular interval
     pkg install termux-job-scheduler
     # Make Khoj paint you a new wallpaper every 12 hours
     termux-job-scheduler -s aiwall --period-ms 43200000 --persisted true
     # Optional, check that the script is active
     # termux-job-scheduler -p
    Note: You can use Tasker + Termux:Tasker or other automations apps to trigger the Wallpaper script as well
  • On Mac: Use Cron to get yourself a fresh and personal wallpaper painted every 12 hours
     # Open crontab in edit mode
     crontab -e
    
     # Add below snippet to your crontab
     # 0 */12 * * /path/to/ai/wallpaper/folder/wallpaper.sh
    
     # Optional, check that the script is active
     # crontab -l

Weave experiences from your notes into the Wallpapers

The AI wallpaper script can automatically incorporate any recent experiences from your notes into it's paintings. To use this you will need to sync your notes with Khoj.

๐Ÿ–ฅ๏ธ Develop

  1. Download and Install

     # Clone the repository
     git clone https://github.com/debajum/ai-wallpaper
    
     # Install dependencies
     cd ai-wallpaper && pip install .
  2. Edit application

  3. Run any of the following commands to paint using your updated application

    # Minimal
    KHOJ_API_KEY=<YOUR_KHOJ_API_KEY> python src/aiwall/paper.py
    
    # With Custom Prompt
    KHOJ_API_KEY=<YOUR_KHOJ_API_KEY> python src/aiwall/paper.py "Generate a wallpaper based on the latest news here"
    
    # With Custom Wallpaper File Path
    KHOJ_API_KEY=<YOUR_KHOJ_API_KEY> WALLPAPER_PATH="~/Pictures/wallpaper.png" python src/aiwall/paper.py
    
    # With Self-hosted Khoj
    KHOJ_HOST="http://localhost:42100" python src/aiwall/paper.py

๐Ÿ”– LICENSE

This program is free software; it is distributed under the GNU General Public License v3.

GPLv3 ยฉ debanjum

ai-wallpaper's People

Contributors

debanjum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ai-wallpaper's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.