Posts

Showing posts with the label docker

How and why I read my apartment energy usage?

Let's start with why I have no good answer other than that I want to. It's 99% for fun, since I live in an apartment with district heating and good insulation, and the energy consumption does not really correlate with heating or cooling. Energy usage is tied mostly to cooking, the dishwasher and other appliances that we use consciously. I just want to get the wattage into Home Assistant in a way I can understand and/or manage myself. But how do you measure it? That's been quite the journey. The go-to way of reading the energy usage (here in Norway at least) is using a device that plugs into the HAN-port in the fuse box, and Wifi. Tibber Pulse is a good example of this. My problem with this is that my HAN-port is in the basement, four concrete stories below my apartment, way out of reach of my Wifi.  There are HAN-devices that work over ZigBee, and I did contemplate sneakily replacing lightbulbs down the stairwell with ZigBee-bulbs, to extend my ZigBee-network all the way d...

Automated Grocery Shopping

Image
I want to share a project I worked on a while ago, that I still use from time to time.  Basically all my grocery shopping is done at Kolonial.no, which is a Norwegian online grocery store that has an api for the shopping cart and products.  I am a cheapskate in many fields, including grocery shopping. And how I shop is somewhat robotic, very predictable and some might say boring and uninspired. But the thought process when I select items, can easily be automated, so I did. The code is on my github .  All the docs are there, so I won't bore you with that here.  But the idea and process is quite simple: I need eggs. Eggs are not a product. Eggs are a category of products . So my shopping list in this code is the category ID of eggs at kolonial.no.  On the same line in my shopping list I can also specify words that should or should not appear in the product name. For example "frittgående" should be in the name. (Norwegian for "free range") Next filter is whether or...