In this devlog I:
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.