In this devlog I:
In this devlog I:
things i’ve yet to add:
In this devlog I:
Stuff added since the last devlog:
2.0.2 to 3.0.2 though I’m pretty sure it works with 3.0.0 3.0.1
3.0
Things that have yet to be added (from the roadmap)
options.json through Flask or Bun (preferrably something self contained though)Comment Box Generator is a super lightweight site for making unicode boxes to put in comments in your code that are centred, for example:
# ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
# ▓ EXAMPLE ▓
# ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
(which looks centred if you are using a monospace font)
This is probably the last devlog for this project, meaning all these changes are finishing touches. For example:
monospace fontWill be shipping it soon!
Comment Box Generator is a super lightweight site for making unicode
boxes to put in comments in your code that are centred, for example:
/*
╔════════════════════════════════════╗
║ EXAMPLE ║
╚════════════════════════════════════╝
*/
(trust me this looks normal in a code editor)
It’s made with Bun on the backend, so it builds and hosts fast. When
distributed, it loads super fast as it’s only 50KB minified. This is
done by removing all whitespace in HTML, CSS and JS and removing
unnecessary glyphs in the one font that’s bundled, Stack Sans.
Things that have been added since the previous devlog:
= because there are far fewer of those that work withThings yet to come:
Updated the README to have clear instructions on how to install the app before shipping
Fixed some bugs that were mentioned earlier, I’m pretty sure it’s ready to ship now! I’ve added f-droid metadata to the project, however I tried to add it there but they haven’t got back to me.
Also made this cool banner image which is attached:
Comment Box Generator is a small site that lets you generate comment boxes with text inside for various programming languages:
# ======================================
# = like so =
# ======================================
(which is centred when you are using a monospace font)
In this devlog I’ve rewritten the “backend” in Bun so in package.json there are several scripts for various purposes:
bun run build.js which minifies whats in src/ and puts it out to dist/
vps.sh which is primarily just meant for me to run on my VPS (hosted at https://commentboxgenerator.lemonsite.uk/ ). It kills whatever process is on the port used by CBG (always 3054), builds the project and deploys. It uses nohup to log to a file and to run in the background. It then restarts nginx.src/
On the frontend I’ve added the option to use different languages’ comment syntax, to use single line or multiline comments, and to change what symbol is used for the box.
Things that are coming soon:
Was trying to write one of those centred box comments in one of my projects, like:
# ======================================
# = HELPER FUNCTIONS =
# ======================================
(which is centred in monospace font)
But I couldn’t find any tool online that could centre a box comment online, so I’m making one myself.
Here’s just a minimal prototype for Python, but I will be updating and making it look nicer; and most importantly adding new features like other language support and custom box characters.
Stuff added in this devlog:
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.
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.
Added an option to use Fahrenheit or Kelvin instead of Celsius by editing options.json on the computer
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?
Added a custom range feature to my RNG WearOS app, so users can now pick a range between 1-100 for random numbers. The reason I didn’t make it fully custom, allowing any number is because support for custom input in WearOS is limited, so I settled for using 2 Pickers.
However, just while writing this devlog, I realised that if the first number was bigger than the second number, the app crashes! Fortunately I’ve realised this before shipping.
I’ve started working on my first WearOS and my first Android app in general. It’s a pretty small utility app that lets users generate random numbers, by flipping a coin, rolling a die or using a custom range. It’s made in Android Studio using Jetpack Compose, so the UI looks native to WearOS.
So far I’ve made a coin flip and a dice roll, next up is a custom range mode, and possibly options to customise the die and coin icons.