Skip to content

This is an (early stages) in-progress project to integrate an AdaFruit MagTag with an analog wall clock to display indoor/outdoor temperature and humidity, indoor air quality, weather forecast, and maybe some other stuff.

License

Notifications You must be signed in to change notification settings

avendesora/magtag-weather-station

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MagTag Clock and Weather Station

Pytest

This is an (early stages) in-progress project to integrate an AdaFruit MagTag with an analog wall clock to display indoor/outdoor temperature and humidity, indoor air quality, weather forecast, and maybe some other stuff.

Pressing different buttons on the MagTag will display different information.

Here are some articles/tutorials/guides that we might end up using for instruction and inspiration:

Requirements

The following hardware and software are required for this project.

Hardware

This project uses the following hardware:

Software

In addition to the code in this repository, the following software is required.

CircuitPython

We're using CircuitPython on an AdaFruit MagTag. For information on how to get CircuitPython installed and ready-to-use on the MagTag, follow the instructions in the AdaFruit MagTag guide up through the "Welcome to CircuitPython" steps.

CircuitPython Libraries

There are many optional libraries available for CircuitPython. They are all available at https://circuitpython.org/libraries.

The following CircuitPython libraries are required by this project (just copy them into the "lib" folder on the MagTag):

Folders
  • adafruit_bitmap_font
  • adafruit_display_text
  • adafruit_imageload
  • adafruit_io
  • adafruit_magtag
  • adafruit_portalbase
Files
  • adafruit_bme680.mpy
  • adafruit_fakerequests.mpy
  • adafruit_miniqr.mpy
  • adafruit_requests.mpy
  • adafruit_sgp30.mpy
  • neopixel.mpy
  • simpleio.mpy

Configuration

This code repository includes a secrets.py file with mostly blank values for secrets that will need to be configured/populated in order for the code in code.py to work properly.

Network Credentials and Settings

Secret Name Secret Description
ssid Your wireless network name
password Your wireless network password

AdaFruit IO Credentials and Settings

This project uses io.adafruit.com to get the current date and time based on the set timezone

Secret Name Secret Description
aio_username Your username for your io.adafruit.com account
aio_key Your API key for your io.adafruit.com account
timezone Your local timezone (see http://worldtimeapi.org/timezones)

OpenWeather Credentials and Settings

This project uses the OpenWeather API to get current weather and forecast information. For the basic functionality that this project uses, a free account is sufficient. You can set that up at https://openweathermap.org/api.

Secret Name Secret Description
openweather_token Your openweather API token
latitude Your local latitude value
longitude Your local longitude value

About

This is an (early stages) in-progress project to integrate an AdaFruit MagTag with an analog wall clock to display indoor/outdoor temperature and humidity, indoor air quality, weather forecast, and maybe some other stuff.

Topics

Resources

License

Stars

Watchers

Forks

Languages