A.I. Generated Photo Of Current Weather In A Random City - Real City, Real Weather, Generated Image - Stable Diffusion | OpenAI Dall-E2 | Midjourney
This code is powering the Weather Window AI Twitter Account
This code will
- pick a random city
- query for the weather
- save the query in firebase
- Python Stable Diffusion file grabs the PENDING query
- Generates Stable Diffusion Image
- Generates OpenAI Image
- Generates Midjourney Image
- Upload and Tweets images to the fans
There are also files for casting the new images to a eink display
Clone Repo
cd into repo
run npm i
run the command mv .envExample .env
add env vars as needed to .env
also
run pip install -r requirements.txt
Main Files:
node setQuery.jswill set the new querypython genStableDiffusion.pywill generate the stable diffusion based on the querynode genOpenAIImage.jswill generate the openAI imagenode tweetImages.jswill tweet to all the fans
You'll need to adjust some pathways and add keys in order to run on your own
- 4AM - 2PM
- 4PM - 10PM
Sometime I have to reconnect keystroke accessiblity Settings > Privacy > Accessibility
Cities Data list from Simplemaps Showing Cities at or over 1M population
Wonders of the World Showing most of these
Points of Interest I grabbed places from here too
Custom list is in /data/