Skip to content

HWHardsoft/AZ-Touch-Pi0-Weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AZ-Touch-Pi0-Weather

a weather display for a raspberry pi zero and our AZ-Touch Pi0 wall mount touch screen (ili9341 display). This project based on the WeatherPi_TFT project by LoveboatCaptain

AZ-Touch Pi0

Installation

  1. Download the latest release (2020-12-09)
  2. Unzip the downloaded file
  3. Write the image to your SD card. See here for details.
  4. Boot your Raspberry Pi and wait for WeatherPi_TFT to start.

Configuration

Wifi settings

You can follow this tutorial to setting the Wifi headless.

or you can use a Raspberry Pi (2/3/4) connected to Ethernet via Putty and SSH:

sudo raspi-config
--> 2 Network Options
--> N2 Wi-fi

Localisation

sudo raspi-config
--> 4 Localisation Options
--> I1 Change Locale 
--> change your language ISO-8859-1 locales

Please note you can choose under 4 Localisation Options your time zones too!

Weatherbit.io account

get an api key from weatherbit.io:

  • go to weatherbit.io
  • and register to get an API key
  • choose the free version of the API

Edit config file

cd
cd WeatherPi_TFT
sudo nano config.json
  • replace xxxxxxxxxxxxxxxxxxxxxxxxx in "WEATHERBIT_IO_KEY": "xxxxxxxxxxxxxxxxxxxxxxxxx" with your own API key
  • replace de in "WEATHERBIT_COUNTRY": "de" with your country code
  • replace en in "WEATHERBIT_LANGUAGE": "en" with your preferred language
  • replace 10178 in "WEATHERBIT_POSTALCODE": "10178" with the postal (zip) code of your city (default loaction is Berlin)
  • for language-support, please refer to -> Weather.io API Docs

reboot your Pizero!

sudo reboot

Notes about

Because the wiring of the TFT is different to the overlay rpi-display it was needed to recompile the original rpi-display overlay. You will find the changed source and the new compiled file here.

I've tried to run the sources of WeatherPi_TFT on the latest version of Raspbian OS but without any success. It looks like Pygame will not be able to redirect the video output to /dev/fb1 .

License

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.