@piko and I just finished 40 days of not eating sugar or sweeteners! Fresh fruit was the only sweet thing that was allowed – seemed unhealthy *not* to eat those.
We searched through the kitchen and put everything that was disallowed into a box. Was surprised by how many food items randomly contain added sugar. Having them out of sight definitely made this easier!
I used to roll my eyes at people who went "sugar-free", but still ate fruit – after all, they contain lots of fructose and glucose! But after trying it, I now think this is a valid thing to do, because *replacing* table sugar with fruit seems strictly more healthy!
Two takeaways from this phase:
1. Sweetening food with fruit works very well! We made coleslaw with cut-up grapes, for example. And in general, if something should taste sweeter, we added some sweet fruit, like banana or apples.
Next, I tried to do some rendering myself! This would give me a lot of control of the result – I could make subway lines more visible, for example!
Unfortunately, this seems to requires the following tower of technologies:
1. Download the raw OSM data. 2. Import it into a Postgres database using osm2pgsql. 3. Compile the "Carto" style using CartoCSS preprocessor (which seems unmaintained 😱). 4. Run the mapnik renderer.
I had trouble fitting all of these pieces together properly, and gave up.
I decided to generate a map at a 1:10000 scale (300 dpi), and then print it at twice the resolution, to have as many details as possible (and a small but readable font size).
So here is my intermediate result: A PNG, to be printed at 600 dpi, showing much of Hamburg at a 1:20000 scale (5 cm = 1 km).
It's 650 MB large :P Take some caution trying to view it!
But… it's really fun scrolling around and seeing what I can find already! :3
I just took this image to the copy shop, to have it printed – when they tried to open it on their Windows computer, it showed an "insufficient memory" error! :'D
I'd like to print a big map of Hamburg in DIN A0 format, based on #openstreetmap data! 🗺️
Does anyone have recommendations for a command-line tool to generate one? Ideally, you could configure it a bit, to include a lot of street names, and the subway network!
Trying what different zoom levels and DPIs look like on paper.
OSM's default tiles are only available in rather low resolution – currently leaning towards a http://printmaps-osm.de export at 1:5000 scale, printed at 600 DPI. That'll have text that's tiny but still readable, and preserve *a lot* of details! :D
I wanted to report on the methods I've tried to get a high-resolution #OpenStreetMap of #Hamburg so far:
https://bigmap.osmz.ru is a bulk downloader for the pre-rendered tiles you see on osm.org. It can even give you a Python script to do that, which you can customize.
Pretty neat tool – but the resolution of the "Standard" layer isn't really high enough for printing, or the text would be *super tiny*!
The new "Tracestack Topo" layer on osm.org has a higher resolution, and would look pretty crisp! But around my preferred map scale of ~1:10000, it doesn't show the outlines of buildings, which I really don't like, so it's not an option. :(
They told me yesterday to send them the file via their web upload – not sure what kind of difference that makes? The PC that couldn't open the file seemed more like a "USB stick handling terminal", so I guess they have more powerful computers in the back…
Anyway, they just told me I could fetch the poster in half an hour! \o/
Yep, my mistake: I didn't number the pins of the chip correctly! SDA and SCL are pins 8 + 7, not 5 and 6! Not sure how I got that wrong, but it teaches me to double-check next time!
Luckily, the fuel gauge is the one component that's a bit optional – just nice to have!
Resoldering it on the board seems difficult, as it's so tiny! How would you approach that? I mean, I could try to cut the wrong traces, and solder teeny tiny wires to the chip? #electronics
Glued and soldered everything together. Now it feels like a real device! I'm super happy! Thanks again to everyone who has helped me to get this far! <3
The CO2 Canary is open hardware, you can find all source files here:
Placed an order for two testing boards at JLCPCB! Very exciting!
I added a solder jumper that can be cut to disable the LiPo charger, in case people want to power the device from some other source.
And I added through-hole pads for the voltage provided by the battery and for ground, to be able to measure power consumption more easily using a Power Profiler Kit II.
On a whim, I made the PCB yellow! Seemed fitting for a "CO2 Canary", which I guess is the name of the device now! 🐦