Weather Prediction Electric Cushion
Raspberry pi Pico + W5100S / Chat GPT + Web Crawling
2
Components
Hardware componentsSoftware Apps and online services
Project description
Story
My butt was always cold.What if AI always sets my butt to the right temperature.I'll be able to concentrate on my work without having to wear it on my butt.
Hardware





Firmware
The basics are as shown in the project below.
In this project, you only need to get the expected weather information through Web Crawling.
The firmware was taken from the project above.
Web Crawling
GPT does not currently support real-time data services. So I decided to read it on Naver as WebCrawling.It started implementing in a Python environment that is relatively light and easy to implement.
from bs4 import BeautifulSoup
def getweather() :
html = requests.get('http://search.naver.com/search.naver?query=수내+날씨')
soup = BeautifulSoup(html.text, 'html.parser')
global weather
weather = ''
address = "Bundang Sunae"
weather += address + '*'
weather_data = soup.find('div', {'class': 'weather_info'})
# Current Temperature
temperature = (str(weather_data.find('div', {'class': 'temperature_text'}).text.strip()[5:])[:-1])
weather += temperature + '*'
# Weather Status
weatherStatus = weather_data.find('span', {'class': 'weather before_slash'}).text
if weatherStatus == '맑음':
weatherPrint = 'Sunny'
elif '흐림':
weatherPrint = 'Cloud'
weather += weatherPrintWebCrawling can be done simply with a package called BeautifulSoup.

Let me deal with Crawling briefly.









Review

For the burning butt
Thanks




