You are browsing as a guest. Sign up (or log in) to start making projects!

Badgeware Tufty WeatherStation

  • 10 Devlogs
  • 28 Total hours

A weather app that both pulls from a multisensor strip, and/or the internet for the Badgeware Tufty!

Open comments for this post

2h 23m 10s logged

Devlog #10 of the Badgeware Tufty Weatherstation

In this devlog I:

  • added some more effective error handling
  • moved a bunch of functions out of __init__.py into their own files to make the code cleaner
  • add an attribution screen (pictured) to be legally compliant with copyright
0
0
8
Open comments for this post

6h 30m 43s logged

Devlog #9 of the Badgeware Tufty Weatherstation

In this devlog I:

  • stripped down the fork of the badgeware web emulator to onl have the badge screen and console log
  • then added content to the homepage talking about the app
  • added a new page with installation instructions for users unfamiliar with the badgeware tufty
  • in that tutorial page i made a tool that generates options.json configurations where you can set temperature unit and pick out coordinates on a map
0
0
23
Open comments for this post

1h 26m 15s logged

Devlog #8 of the Badgeware Tufty Weatherstation

In this devlog I:

  • forked the badgeware web simulator with permission
  • modified the backend slightly to “work on my machine”
  • also modified the actual badge code to use badgeware libraries instead of micropython libraries to let it work on the emulator
  • added a github action to automatically update whats on the simulator repo when a new weatherstation release comes out

things i’ve yet to add:

  • automatic time zone setting in the simulator: will add that by overriding secrets.py somehow
  • reskinning the whole site to be a weatherstation homepage
0
0
10
Open comments for this post

2h 20m 14s logged

Devlog #7 of the Badgeware Tufty Weatherstation

In this devlog I:

  • Made it that the A button allows refetching weather data
  • Automatically refresh weather data every 10 minutes
  • Have a text display that shows when the weather was last updated (respecting TIMEZONE setting in secrets.py)
  • Fixed some issues so now most of the time you can plug and replug the multisensor stick. Doesn’t work very reliably though due to issues where the cable is half-connected yet the badge is trying to read from the sensor.
0
0
5
Open comments for this post

18m 21s logged

Devlog #6 of the Badgeware Tufty Weatherstation

In this devlog I:

  • removed unused functions that were replaced by native 3.0 functions
  • made it so that the app works without internet so you can just use it as a sensor
0
0
4
Open comments for this post

4h 39m 32s logged

Devlog #5 of the Badgeware Tufty Weatherstation

Stuff added since the last devlog:

  • Updated firmware version: While I was working on a side project Pimoroni made new firmware versions so I ported it from 2.0.2 to 3.0.2 though I’m pretty sure it works with 3.0.0 3.0.1
  • Along with that I changed some functions to native ones like word wrapping and centering text that came with 3.0
  • I added a temperature icon to the internet weather, and added precipitation and wind direction both with icons (pictured)
  • I modified someone else’s screenshot code to work on windows and have a few extra features, which is how the screenshot attached was taken.
  • Added comment boxes generated by one of my side projects, https://commentboxgenerator.lemonsite.uk/
  • Write a readme and roadmap

Things that have yet to be added (from the roadmap)

  • Offline support
  • internet is optional just like sensor
  • Update weather every 1 hour or on request- Some basic forecast information (e.g. weather icons per day of the week) in another screen
  • Web editor for options.json through Flask or Bun (preferrably something self contained though)
  • Badge diagnostics page (e.g. storage space, RAM, battery)
  • Fork badgeware web simulator to work with weatherstation by adding proxy
0
0
15
Open comments for this post

2h 43m 42s logged

Devlog #4 of the Badgeware Tufty Weatherstation

Stuff added in this devlog:

  • Indicator to show how many pages there are and which one you’re on
  • 16 weather icons that map to the WMO codes that openmeteo gives
  • Temperature display (that respects units set in options.json)

Potentially next I’ll code a precipitation levels display, and maybe some charts that show temperature and precipitation throughout the day when you press B.

0
0
6
Open comments for this post

4h 37m 54s logged

Devlog #3 of the Badgeware Tufty Weatherstation

The Badgeware Tufty is this cool conference badge from Pimoroni that is programmable with MicroPython. I’ve been making a Weather Station app for it, which can use a Pimoroni multisensor kit to show temperature, humidity and air pressure, but soon it will be able to fetch weather data around the world from the internet.

In the previous devlogs I added the multisensor screen. Now I’ve started working on the weather from the internet part. So far it gets coordinates from options.json, and can show the suburb/neighbourhood and the city from Openstreetmap Nominatim. You can also optionally set a nickname for a location.

Next up I’ll actually be putting the weather info in.
That’ll involve getting data from Openmeteo, drawing a bunch of pixel art icons for each (~80) weather codes and rendering out the data.

0
0
4
Open comments for this post

2h 51m 40s logged

I’m making a weather app for the Badgeware Tufty, a cool badge wearable that’s programmable with MicroPython!

First step that I’ve done for my app is coding a screen that shows the temperature, humidity and air pressure sensed from the multisensor strip that comes with the Badgeware Tufty STEM kit. I’ve made 30 pixel art icons so far that scale with the values.

Next up I’ll be adding the option to grab weather data from the internet using Openmeteo API for the weather data and Openstreetmap nominatim to get a place name. The locations would have to be configured through a JSON config file on the computer as the 5 buttons on the Tufty aren’t really enough for this kind of input. Maybe there could be some web UI to pick coordinates off a map and update the config file?

0
0
4

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…