Skip to content

dezign999/pxl999

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pxl999

alt text

Pxl999 is a chunky pixel watch face for SQFMI's Watchy. This watch face features live weather updates every 30 minutes and NTP syncing twice a day to account for any time drifting.

When internet access is not available, the RTC will be used for ambient temperature, and is indicated by a microchip as the weather icon.

This watch face was made using the free Arduino IDE, Photoshop CC, image2ccp, Glypher Studio (font creation), Cloud Convert (otf > ttf), and truetype2gfx.

I'm still relatively new to C++ (and rusty), so please excuse the mess. I've taken a lot of David Peer's code from his examples and borrowed much of Symptym's & Aliceafterall's NTP time syncing code.

Please note, that this works on my watchy, your results may vary :P I had a real problem with the watchy crashing if I polled for weather too early at boot, therefore I put a workaround in by forcing a delay and just showing RTC temperature at first boot. If you find a way to fix this, please lmk!

Configuration

Admittedly, there's quite a bit to configure with this (and future) watch face(s). These required configurations have comment descriptions in the source code. Below are the most critical settings that need to be configured in order to run this watch face:

WiFi

Access Points

Pxl999 can store a number of wifi access points to allow syncing from multiple locations. Simply line up your entries in the following arrays starting with your most used access point first. SSIDs: accessPoints[] = {"SSID-NAME-1", "SSID-NAME-2", "SSID-NAME-3"} and their corresponding passwords: apPasswords[] = {"SSID-1-PASS", "SSID-2-PASS", "SSID-3-PASS"}. These settings will not work on access points that have captive pages that require user interaction to grant access.

Weather

API KEY

In order for the watchy to receive weather upates, you'll need an API Key from OpenWeatherMap.org which is completely free. I've included SQFMI's key which is enabled by default. Using this key is not recommended as it will cease to function when minute/daily limits are reached, or if SQFMI simply deletes it. Add your API Key to the APIKEY definition.

City Name or ID

Pxl999 can show the weather for the locations of your defined access points. Weather for these locations is defined by entering the city name in the following array: cityNames[] = {"5143022", "GREENPORT" , "NEW+YORK"}. If the city name has a space in it, be sure to use a + (plus) sign to connect the two words to prevent the URL string used to request weather from breaking.

If the city name is used in other states or provinces, you can also use the city code by looking up a city on openweathermap.org, it'll take you to a page like "https://openweathermap.org/city/5143022". Copy those numbers on the end (ex 5143022) and put them into the array between the quotes. City names should line up with your defined access points, i.e. the first entry is access point 1's location/city etc.

Laslty, You'll also have to define COUNTRY and TEMP. TEMP is used to determine if Imperial temperature is displayed, use "Imperial" or "Metric".

City Abbreviation

You can define abbreviated city names or locations for each of your defined wifi access points. These abbreviations appear above the weather icon, have a max of four letters or numbers and are defined as follows: cityAbbv[] = {"HOME", "GPT" , "PHNE"}.

Pausing Weather Updates

It's possible to pause weather updates when the watch is not in use, i.e. when you're sleeping. By default, its set to pause 30 minutes after midnight, and resume updates at 5:30am. These can be changed by modifying the pauseStart and pauseEnd strings. Setting both strings to the same time will disable the pause updates feature. Pause start and end times must be written in the 24 hour format.

When updates are paused, the weather icon will be represented by a sleeping RTC icon and ambient temperature will be used instead of live weather.

NTP

Timezone

NTP syncs require that you define your timezone, TIMEZONE_STRING which can be found using this resource link. Use the example in the source to determine what is required.

NTP Servers

By default, the NTP server tried first is a pool of servers that should automatically find the best match based on your location. You can leave NTP_SERVER_1 as-is, or specify NTP servers. NTP_SERVER_2 and NTP_SERVER_3 are US based and should be changed to a local server if outside of the US.

Syncing

NTP Syncs happen twice a day, once at Noon and once at Midnight. This can be changed by modifying NTP_TIMER.

Pause Live Updates

By default, pxl999 is set to pause live weather and NTP updates to conserve battery life beginning at 12:30am, pauseStart = "0:30", and resume updates at 5:45am, pauseEnd = "5:45". These settings can be set accordingly. When updates are paused, the RTC will be used for ambient temperature.

About

Chunky pixel watch face for SQFMI's Watchy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published