ai wallpaper
1.0.0
每天獲得新鮮的,個人AI的彩繪壁紙
pip install ai-wallpaper && KHOJ_API_KEY= < YOU_KHOJ_API_KEY > aiwall| 天 | 夜晚 |
|---|---|
![]() | ![]() |
![]() | ![]() |
![]() | ![]() |
KHOJ_API_KEY= < YOUR_KHOJ_API_KEY > aiwall KHOJ_API_KEY= < YOUR_KHOJ_API_KEY > aiwall " Generate a wallpaper based on the latest news here " KHOJ_API_KEY= < YOUR_KHOJ_API_KEY > WALLPAPER_PATH= " ~/Pictures/wallpaper.png " aiwall KHOJ_HOST= " http://localhost:42100 " aiwall echo " #!/bin/shnKHOJ_API_KEY=<YOUR_KHOJ_API_KEY> aiwall " > wallpaper.sh
chmod +x wallpaper.sh # 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 # 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 -lAI壁紙腳本可以自動將筆記中的任何最新經歷納入其繪畫中。要使用此功能,您需要將筆記與Khoj同步。
下載並安裝
# Clone the repository
git clone https://github.com/debajum/ai-wallpaper
# Install dependencies
cd ai-wallpaper && pip install .編輯應用程序
運行以下任何命令使用您的更新應用程序繪畫
# 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該程序是免費軟件;它根據GNU通用公共許可證V3分發。
GPLV3©Debanjum