# RaspberryPi-WeatherStation **Repository Path**: soulnull/RaspberryPi-WeatherStation ## Basic Information - **Project Name**: RaspberryPi-WeatherStation - **Description**: fork 墨水屏天气站 WeatherStation by RaspberryPi - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-28 - **Last Updated**: 2021-04-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 墨水屏天气站 WeatherStation by RaspberryPi ![image](https://github.com/ShaderFallback/RaspberryPi-WeatherStation/blob/master/photo/demo1.jpg) ![image](https://github.com/ShaderFallback/RaspberryPi-WeatherStation/blob/master/photo/demo2.jpg) ### 硬件清单 - **树莓派 ZeroW** - **微雪7.5inch e-Paper 墨水屏(黑白)** - **e-Paper Driver HAT 驱动板** 墨水屏相关资料 [http://www.waveshare.net/wiki/7.5inch_e-Paper_HAT](http://www.waveshare.net/wiki/7.5inch_e-Paper_HAT) ### 树莓派 - **建议使用 官方的 Raspbian 系统** [https://www.raspberrypi.org/downloads/](https://www.raspberrypi.org/downloads/) - **Python 3.0 以上** - **开启 gpio** - **安装 sudo** ### 使用 - **解压文件到 home 目录下** - **修改城市 scripts/ WeatherStation.py 24行 网址末尾代码** ``` python r =requests.get('http://t.weather.sojson.com/api/weather/city/101010100') ``` - **查询城市代码 请查看 scripts/ city_code.json 文件** - **编辑 rc.local 文件 在 Exit 0 之前添加开机 启动项** ``` python su pi -c "exec /home/pi/WeatherStation/startWeather.sh" ``` - **重启树莓派 sudo reboot** ### 3D打印外壳 - **图片中模型使用FDM 打印机,北方冬天请适当提升PLA喷嘴温度,防止挤出困难** - **模型制作的单位为厘米CM(在Cura中缩放为10) 请注意打印尺寸** - **模型分为两种厚度版,1.9CM厚/2.5CM厚 两个版本,驱动板直插的话需要使用2.5CM 厚的版本(内部细节请看photo中图片)** - **Model文件夹中已包含maya(2014及以上)模型源文件,如有特殊需求请自行修改** - **底座有Logo 版和无Logo版 可自行选择** ![image](https://github.com/ShaderFallback/RaspberryPi-WeatherStation/blob/master/photo/demo3.jpg) - **打印参数参考** ![image](https://github.com/ShaderFallback/RaspberryPi-WeatherStation/blob/master/photo/Pla1.png) ![image](https://github.com/ShaderFallback/RaspberryPi-WeatherStation/blob/master/photo/Pla2.png) ![image](https://github.com/ShaderFallback/RaspberryPi-WeatherStation/blob/master/photo/Pla3.png) ![image](https://github.com/ShaderFallback/RaspberryPi-WeatherStation/blob/master/photo/Pla4.png) ### 其他 - **目录中包含PSD文件 方便参考改变布局, PS 显示标尺 视图 > 标尺 ,在标尺上右键切换单位为 “像素” 拉出参考线时就可以很容易确定 坐标位置** - **有任何问题欢迎给我留言 :)**