ai-wallpaper


Nameai-wallpaper JSON
Version 0.1.dev14 PyPI version JSON
download
home_pageNone
SummaryCreate fresh, personal AI painted wallpapers
upload_time2024-04-27 18:57:21
maintainerNone
docs_urlNone
authorDebanjum Singh Solanky
requires_python>=3.9
licenseNone
keywords ai images khoj
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <p align="center">
   <h1 align="center">✨ AI Wallpaper</h1>
</p>
<p align="center">
   <a href="https://github.com/khoj-ai/khoj"><img src="https://badgen.net/badge/powered by/%E2%9C%A8khoj%20ai/27c2d8/" /></a>
   <a href="LICENSE"><img src="https://badgen.net/github/license/debanjum/ai-wallpaper" /></a>
</p>

<p align="center">
   Get fresh, personal AI painted wallpapers daily
</p>

Features
--------
- Get fresh, personal wallpapers painted for you by [khoj ai](https://github.com/khoj-ai/khoj)
- 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

![](./assets/sample_khoj_wallpaper_2.png)


Prequisites
------------

- Generate a (free) [Khoj API Key](https://app.khoj.dev/config#clients) or [setup a self-hosted Khoj](https://docs.khoj.dev/get-started/setup/)
- Install [Termux](https://f-droid.org/en/packages/com.termux/) to use on Android
- Requires a Mac or Android Operating System. *Windows, Linux support if enough demand*

Install
------------

1. Download and Install
   ```shell
    # Clone the repository
    git clone https://github.com/debajum/ai-wallpaper

    # Install dependencies
    cd ai-wallpaper && pip install .
   ```

2. Run any of the following commands to paint and update your wallpaper
   ```shell
   # 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
   ```

Extensions
------------
### 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
    ```shell
     cd /path/to/ai/wallpaper/folder/
     echo "#!/bin/sh\nKHOJ_API_KEY=<YOUR_KHOJ_API_KEY> python $PWD/src/aiwall/paper.py" > wallpaper.sh
     chmod +x wallpaper.sh
    ```
  - On Android: Use [termux-job-scheduler](https://wiki.termux.com/wiki/Termux:API#:~:text=termux-job-scheduler) on Termux to get yourself a fresh and personal wallpaper painted every 12 hours
    ```shell
     # 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 /path/to/ai/wallpaper/folder/wallpaper.sh --period-ms 43200000 --persisted true
     # Optional, check that the script is active
     # termux-job-scheduler -p
    ```
    Note: *You can use [Tasker](https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm&hl=en&gl=US) + [Termux:Tasker](https://wiki.termux.com/wiki/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
    ```shell
     # 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.


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

[GPLv3](LICENSE) © debanjum

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "ai-wallpaper",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "AI, images, khoj",
    "author": "Debanjum Singh Solanky",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/21/d8/74b3d00ec26895803e8c946e1b3b859b41f816c6a3976d72fe78b3a93a74/ai_wallpaper-0.1.dev14.tar.gz",
    "platform": null,
    "description": "<p align=\"center\">\n   <h1 align=\"center\">\u2728 AI Wallpaper</h1>\n</p>\n<p align=\"center\">\n   <a href=\"https://github.com/khoj-ai/khoj\"><img src=\"https://badgen.net/badge/powered by/%E2%9C%A8khoj%20ai/27c2d8/\" /></a>\n   <a href=\"LICENSE\"><img src=\"https://badgen.net/github/license/debanjum/ai-wallpaper\" /></a>\n</p>\n\n<p align=\"center\">\n   Get fresh, personal AI painted wallpapers daily\n</p>\n\nFeatures\n--------\n- Get fresh, personal wallpapers painted for you by [khoj ai](https://github.com/khoj-ai/khoj)\n- Automatically weaves your current city, moon phase, weather and (even recent experiences!) into the painting\n- Updates your Android or Mac wallpaper automatically\n- Schedule it to run every day and night\n- Customize the wallpapers by telling khoj what styles and information to use\n\n![](./assets/sample_khoj_wallpaper_2.png)\n\n\nPrequisites\n------------\n\n- Generate a (free) [Khoj API Key](https://app.khoj.dev/config#clients) or [setup a self-hosted Khoj](https://docs.khoj.dev/get-started/setup/)\n- Install [Termux](https://f-droid.org/en/packages/com.termux/) to use on Android\n- Requires a Mac or Android Operating System. *Windows, Linux support if enough demand*\n\nInstall\n------------\n\n1. Download and Install\n   ```shell\n    # Clone the repository\n    git clone https://github.com/debajum/ai-wallpaper\n\n    # Install dependencies\n    cd ai-wallpaper && pip install .\n   ```\n\n2. Run any of the following commands to paint and update your wallpaper\n   ```shell\n   # Minimal\n   KHOJ_API_KEY=<YOUR_KHOJ_API_KEY> python src/aiwall/paper.py\n\n   # With Custom Prompt\n   KHOJ_API_KEY=<YOUR_KHOJ_API_KEY> python src/aiwall/paper.py \"Generate a wallpaper based on the latest news here\"\n\n   # With Custom Wallpaper File Path\n   KHOJ_API_KEY=<YOUR_KHOJ_API_KEY> WALLPAPER_PATH=\"~/Pictures/wallpaper.png\" python src/aiwall/paper.py\n\n   # With Self-hosted Khoj\n   KHOJ_HOST=\"http://localhost:42100\" python src/aiwall/paper.py\n   ```\n\nExtensions\n------------\n### Automatically get a fresh and personal wallpaper painted for you every day and night\n  - Create a simple shell script to call the AI wallpaper creation command\n    ```shell\n     cd /path/to/ai/wallpaper/folder/\n     echo \"#!/bin/sh\\nKHOJ_API_KEY=<YOUR_KHOJ_API_KEY> python $PWD/src/aiwall/paper.py\" > wallpaper.sh\n     chmod +x wallpaper.sh\n    ```\n  - On Android: Use [termux-job-scheduler](https://wiki.termux.com/wiki/Termux:API#:~:text=termux-job-scheduler) on Termux to get yourself a fresh and personal wallpaper painted every 12 hours\n    ```shell\n     # Install termux-job-scheduler to trigger script at a regular interval\n     pkg install termux-job-scheduler\n     # Make Khoj paint you a new wallpaper every 12 hours\n     termux-job-scheduler -s /path/to/ai/wallpaper/folder/wallpaper.sh --period-ms 43200000 --persisted true\n     # Optional, check that the script is active\n     # termux-job-scheduler -p\n    ```\n    Note: *You can use [Tasker](https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm&hl=en&gl=US) + [Termux:Tasker](https://wiki.termux.com/wiki/Termux:Tasker) or other automations apps to trigger the Wallpaper script as well*\n  - On Mac: Use Cron to get yourself a fresh and personal wallpaper painted every 12 hours\n    ```shell\n     # Open crontab in edit mode\n     crontab -e\n\n     # Add below snippet to your crontab\n     # 0 */12 * * /path/to/ai/wallpaper/folder/wallpaper.sh\n\n     # Optional, check that the script is active\n     # crontab -l\n    ```\n\n### Weave experiences from your notes into the Wallpapers\nThe 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.\n\n\nLICENSE\n------------\nThis program is free software; it is distributed under the GNU General Public License v3.\n\n[GPLv3](LICENSE) \u00a9 debanjum\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Create fresh, personal AI painted wallpapers",
    "version": "0.1.dev14",
    "project_urls": {
        "Homepage": "https://github.com/debanjum/ai-wallpaper"
    },
    "split_keywords": [
        "ai",
        " images",
        " khoj"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b076f05339f5bd2ffd369e5354eecb95edbec00738b7ae36074f9d67976a2d07",
                "md5": "ec561f33a21f7851e5f939bbb44f5992",
                "sha256": "cbe5cabc1a123d5f868d6ab5522400db9b6b538ffa21f1686be180bf3996c918"
            },
            "downloads": -1,
            "filename": "ai_wallpaper-0.1.dev14-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ec561f33a21f7851e5f939bbb44f5992",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 20827,
            "upload_time": "2024-04-27T18:57:20",
            "upload_time_iso_8601": "2024-04-27T18:57:20.701455Z",
            "url": "https://files.pythonhosted.org/packages/b0/76/f05339f5bd2ffd369e5354eecb95edbec00738b7ae36074f9d67976a2d07/ai_wallpaper-0.1.dev14-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "21d874b3d00ec26895803e8c946e1b3b859b41f816c6a3976d72fe78b3a93a74",
                "md5": "a07ad7ac50e9059502f07b22482df8a8",
                "sha256": "2f6fbe1e911e192efd60a7e185d6a056639479af01149dc955e1e8fb612bc274"
            },
            "downloads": -1,
            "filename": "ai_wallpaper-0.1.dev14.tar.gz",
            "has_sig": false,
            "md5_digest": "a07ad7ac50e9059502f07b22482df8a8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 20379,
            "upload_time": "2024-04-27T18:57:21",
            "upload_time_iso_8601": "2024-04-27T18:57:21.733324Z",
            "url": "https://files.pythonhosted.org/packages/21/d8/74b3d00ec26895803e8c946e1b3b859b41f816c6a3976d72fe78b3a93a74/ai_wallpaper-0.1.dev14.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-27 18:57:21",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "debanjum",
    "github_project": "ai-wallpaper",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "ai-wallpaper"
}
        
Elapsed time: 0.29826s