I used to say that anyone that hits 200lbs and doesn’t see that as a warning sign, an indication they need to change something in their life, just doesn’t care about their weight. Well, today I stepped on the scale and smiling back at me in bright OLED glory was the figure 245.9lbs… A far sight over that 200lb warning limit.
So, what do we do? Have I stopped caring about the scale, my appearance, my health? In some ways… Yes. Working from home and being in a long-term relationship severely moderates the positive benefits of physical appearance. Being in my 20’s and early 30’s insulated me from the effects of my weight on my health. With the visceral feedback of those elements of my life insulated from me, it was easy to dismiss the scale.
This Saturday though, I turn 35. A child no more, save in the eyes of my Mother, and reality is finally cashing the checks my body has been writing. So it’s time for some accountability, and accounting, when it comes to my food intake.
With that in mind, no more free feeding. I will only be eating at set meal times. No more endless sugar or carbs, I’ll only be consuming proteins, veggies, and dairy if it accompanies a protein (or in my unsweetened coffee).
Planted two more fruit trees today, 4/28/2024. Both are multi-varietal and self-pollinating. So if they survive they should bear fruit.
Additionally, the Mcintosh and Red Delicious varieties can pollinate our existing Wolf River apple tree. One of the grafted branches is actually already in bloom..
The Van and Lambert cherries may be able to pollinate our existing Black Tartarian cherry tree as well.
Now that we are back home and we *gasp* have an actual pantry/kitchen closet for the first time, I’ve gone ahead and harvested some veggies to kick off fermentation season 2023! This year I’m doing a large batch of store bought orange bell pepper and habenero, with a smaller (due to yield) batch of home grown Hungarian wax peppers and tomatillos.
I’m planning to combine those two post ferment to make a kind of hot salsa verde sauce.
Along with the staple hotsauce mixtures I’ve also got a gallon of Kombucha ripening up and waiting to be bottled for second fermentation shortly.
At least, human readable clocks do. There’s so many edge cases to account for and I haven’t even gotten into automatically adjusting my time zone for daylight savings…
Regardless, here’s the code I rapidly tossed together in an impromptu code sprint last night. It includes the following features so far:
WiFi connectivity.
RTC Synchronization over WiFi.
Output to an OLED via SPI.
Multiple displays/application states.
Input via a rotary encoder with rotation and button presses.
My next goals are as follows:
Decide on a battery solution to make the setup portable.
Build out the multiple application states to make them more robust and useful.
I should be able to manage this better by setting a minimum and maximum screen state, equal to the number of possible display states then having the rotation of the encoder be obfuscated as “left” or “right” and incrementing the screen state better.
Solve some more niche time keeping issues, like DST.
//Load the libraries and files we need..
#include <SPI.h>
#include <Wire.h>
#include <Encoder.h>
#include <Adafruit_SSD1306.h>
#include <Adafruit_GFX.h>
#include <WiFi101.h>
#include <WiFiUdp.h>
#include <DHT.h>
#include <RTCZero.h>
RTCZero rtc;
#include "arduino_secrets.h"
#include "bitmaps.h"
//Declare all of our variables..
//Everything used for the rotary encoder:
Encoder myEnc(1, 0);
#define SW 2
unsigned long lastButtonPress = 0;
//Everything Used for Screen
#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 64 // OLED display height, in pixels
#define OLED_3V 7
#define OLED_CS 8
#define OLED_DC 9
#define OLED_RESET 10
#define OLED_MOSI 11
#define OLED_CLK 12
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT,
OLED_MOSI, OLED_CLK, OLED_DC, OLED_RESET, OLED_CS);
//Everything used for DHT22 Temp/Humidty Sensor:
#define DHTPIN 3 // what pin we're connected to
#define DHTTYPE DHT22 // DHT 22 (AM2302)
DHT dht(DHTPIN, DHTTYPE);
//RTC Test Variables:
/* Change these values to set the current initial time */
const byte seconds = 1;
const byte minutes = 1;
const byte hours = 1;
int rssi = WiFi.RSSI();
int status = WL_IDLE_STATUS;
int year;
int month;
int day;
int screen = 1;
int line1 = 0;
int line2 = 8;
int line3 = 16;
int line4 = 24;
int line5 = 32;
int line6 = 40;
int line7 = 48;
int line8 = 56;
int artificialDelay = 2000;
unsigned long lastEpoch;
unsigned long hcurEpoch;
unsigned long tcurEpoch;
unsigned long bootTime;
float h;
float t;
//int hours;
//int minutes;
//int seconds;
//Needed for encoder:
long oldPosition = 100;
///////please enter your sensitive data in the Secret tab/arduino_secrets.h
char ssid[] = SECRET_SSID; // your network SSID (name)
char pass[] = SECRET_PASS; // your network password (use for WPA, or use as key for WEP)
int keyIndex = 0; // your network key Index number (needed only for WEP)
//Set the local timezone offset from GMT
// Eastern Standard Time (EST) = GMT-5
//Eastern Daylight Time (EDT) = GMT-4
const int TIMEZONE = -4;
void setup() {
pinMode(SW, INPUT_PULLUP);
pinMode(OLED_3V, OUTPUT);
digitalWrite(OLED_3V, HIGH);
Serial.begin(115200);
display.begin(SSD1306_SWITCHCAPVCC, 0x3C);
display.clearDisplay();
display.setTextSize(1.5);
display.setTextColor(SSD1306_WHITE);
display.setCursor(8, line1);
display.println("Cyborg Augmentation");
display.setCursor(48, line2);
display.println("v0.7");
display.setTextSize(1);
display.setCursor(32, line4);
display.print("Booting...");
display.display();
dht.begin();
delay(artificialDelay);
// attempt to connect to WiFi network:
while (status != WL_CONNECTED) {
display.setCursor(12, line6);
display.print("WiFi Connecting...");
display.display();
Serial.print("Attempting to connect to SSID: ");
Serial.println(ssid);
// Connect to WPA/WPA2 network. Change this line if using open or WEP network:
status = WiFi.begin(ssid, pass);
// wait 10 seconds for connection:
delay(10000);
}
// you're connected now, so print out the status:
rtc.begin();
unsigned long epoch;
int numberOfTries = 0, maxTries = 20;
do {
display.setCursor(0, line8);
display.print("Synchronizing Epoch..");
epoch = WiFi.getTime();
bootTime = epoch;
numberOfTries++;
display.display();
delay(artificialDelay);
}
while ((epoch == 0) && (numberOfTries < maxTries));
if (numberOfTries == maxTries) {
Serial.print("NTP unreachable!!");
while (1)
;
}
else {
Serial.print("Epoch received: ");
Serial.println(epoch);
rtc.setEpoch(epoch);
Serial.println();
}
}
int monthDays(int y, int m) {
// Fourth, eleventh, ninth, and sixth,
// thirty days to each we fix.
if ((m == 4) || (m == 11) || (m == 9) || (m == 6)) return 30;
// Every other, thirty-one,
// except the second month alone,
if (m != 2) return 31;
// which hath twenty-eight, in fine,
// till leap-year give it twenty-nine.
if ((y % 400) == 0) return 29; // leap year
if ((y % 100) == 0) return 28; // not a leap year
if ((y % 4) == 0) return 29; // leap year
return 28; // not a leap year
}
void print2digits(int number) {
if (number < 10) {
display.print("0"); // print a 0 before if the number is < than 10
}
display.print(number);
}
void printWifi() {
//Print the current WiFi Status:
display.setCursor(0, 0);
display.print("WiFi State:");
display.println(WiFi.status());
rssi = WiFi.RSSI();
if (rssi == -100) {
rssi = 0;
}
display.setTextColor(SSD1306_WHITE);
display.setCursor(76, 0);
display.setTextSize(1);
display.print(rssi);
display.println("dBm");
if (rssi >= -55 && rssi < 0) {
display.drawBitmap(112, 0, wifiSymbolExcellent, 16, 8, SSD1306_WHITE);
}
if (rssi < -55 && rssi >= -67) {
display.drawBitmap(112, 0, wifiSymbolGood, 16, 8, SSD1306_WHITE);
}
if (rssi < -67 && rssi >= -90) {
display.drawBitmap(112, 0, wifiSymbolBad, 16, 8, SSD1306_WHITE);
}
if (rssi < -90 || rssi == 0) {
display.drawBitmap(112, 0, wifiSymbolNone, 16, 8, SSD1306_WHITE);
}
}
void printTime() {
int localHours = rtc.getHours() + TIMEZONE; // add timezone offset
int minutes = rtc.getMinutes();
int seconds = rtc.getSeconds();
if (localHours < 0) { // handle negative values
localHours += 24;
} else if (localHours >= 24) { // handle values over 23
localHours -= 24;
}
display.print("Local Time: ");
if (localHours > 12) {
print2digits(localHours - 12);
} else {
print2digits(localHours);
}
display.print(":");
print2digits(rtc.getMinutes());
display.print(":");
print2digits(rtc.getSeconds());
if (localHours < 12) {
display.println("am");
} else {
display.println("pm");
}
}
void printDate() {
year = rtc.getYear();
month = rtc.getMonth();
if (rtc.getHours() > 24 - TIMEZONE) {
day = (rtc.getDay() - 1);
} else {
day = rtc.getDay();
}
display.print("Local Date: ");
print2digits(month);
display.print("/");
if (rtc.getHours() > 24 - TIMEZONE && rtc.getDay() > 1) {
print2digits(day - 1);
}
if (rtc.getHours() + TIMEZONE < 0 && rtc.getDay() == 1 && rtc.getMonth() > 1) {
print2digits(monthDays(rtc.getYear(), rtc.getMonth() - 1));
}
if (rtc.getHours() + TIMEZONE < 0 && rtc.getDay() == 1 && rtc.getMonth() == 1) {
print2digits(31);
} else {
print2digits(day);
}
display.print("/");
print2digits(year);
display.println(" ");
}
void printHumid() {
hcurEpoch = rtc.getEpoch();
if (hcurEpoch >= lastEpoch + 10) {
display.setCursor(0, line8);
display.println("Reading DHT...");
float h = dht.readHumidity();
lastEpoch = hcurEpoch;
}
display.setCursor(0, line6);
display.print("Humid:");
display.println(h);
// Check if any reads failed and exit early (to try again).
if (isnan(h)) {
display.setCursor(0, line8);
display.println("DHT sensor Failed!");
return;
}
}
void printTemp() {
tcurEpoch = rtc.getEpoch();
if (tcurEpoch >= lastEpoch + 10) {
display.setCursor(0, line8);
display.println("Reading DHT...");
float t = dht.readTemperature();
lastEpoch = tcurEpoch;
}
display.setCursor(72, line6);
display.print("Temp:");
display.println(t);
// Check if any reads failed and exit early (to try again).
if (isnan(t)) {
display.setCursor(0, line8);
display.println("DHT sensor Failed!");
return;
}
}
void printBoot() {
display.print("Runtime:");
display.println(rtc.getEpoch() - bootTime);
}
void manageWiFi() {
display.setCursor(8, 40);
if (WiFi.status() == 3) {
WiFi.end();
display.println("WiFi Disconnected");
} else if (WiFi.status() == 0) {
WiFi.begin(ssid, pass);
display.println("WiFi Connecting");
}
display.display();
}
//Do the cool stuff:
void loop() {
if (screen == 1) {
display.clearDisplay();
display.setTextColor(SSD1306_WHITE);
display.setCursor(0, line1);
printWifi();
display.setCursor(0, line3);
printTime();
display.setCursor(0, line4);
printDate();
display.setCursor(0, line6);
printHumid();
printTemp();
display.display();
}
if (screen == 2) {
display.clearDisplay();
display.setCursor(0, line1);
display.print("Current RTC Epoch");
display.setCursor(0, line2);
display.print(rtc.getEpoch());
display.setCursor(0, line8);
printBoot();
display.display();
}
//Rotary Loop:
long newPosition = myEnc.read();
if (newPosition > oldPosition) {
oldPosition = newPosition;
screen = 2;
Serial.print("screen:");
Serial.println(screen);
}
if (newPosition < oldPosition) {
oldPosition = newPosition;
screen = 1;
Serial.print("screen:");
Serial.println(screen);
}
int btnState = digitalRead(SW);
if (btnState == LOW) {
//if 50ms have passed since last LOW pulse, it means that the
//button has been pressed, released and pressed again
if (millis() - lastButtonPress > 50) {
manageWiFi();
}
// Remember last button press event
lastButtonPress = millis();
}
}
The goal for 2024 will be to create a household robot. One with actual utility that helps solve a household problem for me. Step 1? What do I even have for problems! In order to be useful and carry actual utilitarian merit (and thus justify paying to recharge it’s battery) I first need to identify some potential uses this robot could have.
Additionally, and just as importantly, what is a robot? Sure I could slap a raspberry pi in front of my washer to keep an eye on it and tell me when the tone goes off to indicate it’s done… I’ve done that before.. But is that a “robot”, in the true sense of the term? To me it comes down to how the computer functions that makes it a full fledged robot, vs just a program. Think Roomba vs Gyrobot
Mobility:
Moves under it’s own power.
Moves as a result of it’s own logic.
Logic:
Reports battery status -or- recharges autonomously.
Detects if it’s function must be performed via enviromental sensors/inputs.
This will be a live document to track some potential use cases and robot attributes, as they occur to me.
Sure, it seems like a minor thing and to casual viewers I’m sure they would never even notice. Out of my party of four I’m the only one who even understood the reference, nevermind what was lost as a result.
It’s almost a throw-away line in a movie chock full of them:
“Designated universe 616”
Again, I’m sure that out of everyone who shuffled out to catch this movie on opening night I’m in the VERY small minority of people who would get their panties in a twist over this. But it’s wrong. 100% this is an egregious error in continuity. One with implications that destroys 1 of 2 universes, one of which I care VERY deeply about… The mainline Marvel Comics Universe.
If you aren’t aware, Earth-616 is the designation given to the mainline marvel comics universe. A universe where the x-men were founded in the 60s and their contemporary FF were out galivanting through cosmic rays during the same time period… The MCU, with all it’s pros and cons compared to the comics, is Earth-199999. Canonically. Confirmed. It’s printed in a book from 2008 published by Marvel Comics themselves: “Official Handbook of the Marvel Universe A to Z – Volume 5”.
Why. WHY would they reuse the 616 moniker? Who does that benefit? Casual viewers or fans don’t give a crap what specific universe it is. Yet as a fan of the Comics continuity, I’m incited by the suggestion. Is this a change made for MCU diehards? How does it benefit them to have the two universes share a designation?
As mentioned, I’m much more a fan of the original comics universe and I’ve always felt the idea that we are seeing an alternate universe (199999) explained the differences between the screen and the page.. An excuse I can no longer turn to. When the MCU was effectively an issue of what-if in my mind, seeing a lack of mutants or the FF not show up at the battle against Thanos on earth made sense. They don’t exist in this timeline. But in the 616 timeline, they DO. They WOULD.
The implication here is that the timelines/continuities have been muddied.. Or worse, will be merged. Why not just say 606, or some other number that hasn’t been claimed in an issue of what-if or an animated series somewhere?
For clarification, yes, I know Mysterio dropped the same bomb on us in Far From Home, but he was full of shit and not an actual multiversal traveler with any real knowledge..
Anyways, just a pointless rant into the void of google. Maybe some disney exec will catch wind of this sentiment overall while sipping their LA latte reviewing the responses to Multiverse of Madness and they can correct the issue when FF drops…
Electronics work is nearly complete for the wrist mounted life tracker. It’s achieved 100% functionality, and honestly much quicker than expected.
It was fast enough that I plan to expand functionality beyond initial goals.. Just not sure exactly WHAT to expand it’s capabilities to yet..
Right now functionality of the device includes:
Properly connecting to a given WiFi network.
Pulling down and displaying NTP converted to my local timezone.
Displaying formatted time to user via OLED display.
Presenting user with options of food/activities they want to log, able to be jogged/scrolled through with a rotary encoder.
Ability to upload log entry to webserver. Initiated by pressing the button/stem of the encoder.
Processing of log entry and transfer to “permenant” cloud storage.
Operates as intended via 3.7v battery power.
Without expanding functionality, there’s still a good deal of work to get the device ready for actual use. Primarily, I’ve drafted a new version of the 3D printable housing, it’s the same width but twice as long as v0.1, it also features strap cut outs which should allow for simple straps (velcro?) to hold the device in place on your arm.
v0.1
v0.2
The biggest hold-up for printing at the moment seems to be an exposure setting which is causing surfaces which require supports to become messy and uneven.
I’ll need to run off some print quality tests to see if I can dial in my exposure times and get better dimensional accuracy..
Ok, confession time. My family home burned down back at the end of June and I am just getting back up to speed now.. Sure, I’ve done some pretty sweet shit in the meantime, started a couple of new hobbies, etc.. Will probably post some more details about that later, but there’s also been alot of “wallowing” and “self-pity” and other things that are just uncharacteristic of me..
One of the very worst results of being suddenly out of house and home has been the impact on my diet/fitness. Now, 100% this falls into the ‘excuses’ category, since the very simple rules I was following before disaster struck could be followed by a goose in a top-hat if they tried.. But I let it derail me completely. I haven’t counted a calorie or tracked a macro since the fire. And trust me…. There’s been ALOT of calories since then.
So yeah, I’m off the wagon, wanna fight about it? I’m working myself back up to getting back on board. Will keep you all posted.
Saturdays remain “cheat” days in our household. My chance to set aside my normal low-calorie high-protein diet and strap on the feed bag for whatever I want on my plate. Today, it was a burger.
Not just any burger though, we took the opportunity to try another local establishment that’s new to our family, Black Cow Burger Bar in Turners Ma.
Having never been before, and riding high on the value of a giftcard, we pretty much went all out. Our family of four each ordered our own burgers, then decimated their sides and appetizer menu by picking up the following: Fried Macaroni and Cheese, Fried Pickles, Chicken Tenders, Cajun Fries, Sweet potato Fries, Pastrami toast, and Rueben Egg rolls… It was alot of food. We also each snagged a milkshake to wash it down (except the GF) and mine was even a boozy adult affair.
For a burger I opted for the “Ghosted Maple” burger, sans onions: Angus burger with ghost maple aioli, breaded cheese curds, bacon & caramelized onion.
I promise, the pic doesn’t do the flavor justice…
Bearing in mind this is still in the midst of the CoVID 19 pandemic, we were forced to takeout this feast and eat it in the comfort of our own home, rather than experience the restaurant itself. This seemed to phase the flavor of their burger very little.. It was simply fantastic. The subtle spiciness balanced with the sweetness of the maple, the crispiness of the fried cheese curds (proving the uselessness of the absent onions).. All mouthwateringly good.
My favorite burger on earth has long been the “Westhampton Burger” from Local Burger in Keene, NH. Yes, I know they started out in Northampton, Keene does it better, fight me. However this Black Cow burger, which had to survive a car trip in polystyrene and was thus enjoyed at a less than optimal temperature and texture still managed to give the westhampton a fight for the crown. Had I the opportunity to have eaten this onsite at the Black Cow establishment… The burger monarchy may while have been usurped this day.
Now, all that taste comes with a price tag. Literally, a $15 price tag. It’s worth noting that the westhampton burger blows Black cow away in this regard, coming in at a comparatively cheap $8.49… And it still stands as my personal best burger award winner.
As far as the appetizers and sides are concerned…
[photo from 2021 no longer available]There’s alot going on, and all of it slaps…
My pick of the liter is the Rueben Eggrolls, hands down. Shamefully these appear to be a limited time offering on the menu. However, that’s not to say their perennial snacks are nothing to shake a stick at either. The cajun fries and sweet potato fries both make a perfect compliment to shove down your gullet with a burger (I’d lean Cajun myself, but admittedly their sweet potato fries are the best I’ve ever had). The pastrami toast is an interesting execution.. One which sadly gets blown away by the Ruben Eggroll, which hits many of the same notes but harder. The chicken tenders, while good, suffered the most from their trip home.. Not entirely soggy but no longer crisp enough for me to be objective in their assessment.
Finally, the fried macaroni and cheese… It was serviceable. What I mean by that is it was great, one of the best macaroni and cheese “bites” I’ve had in this form, but my scale on those has long been broken by the stellar mac and cheese bites from Local Burger.. They are perfect and despite my best efforts I just can’t appreciate fried Mac and Cheese from anywhere else the same way anymore. The GF did get this fried Mac in disk form on her burger and for what it’s worth she was a really big fan of it (but also agreed Local Burger’s are objectively better).
What I absolutely can appreciate is the downright AMAZING barbecue sauce this place has come up with. If they are getting this off the shelf somewhere I need to know what shelf, but I highly doubt that’s the case. They opt for a more tangy/savory version of the condiment compared to the saccharine sauces that are so pervasive these days. It is a welcome departure from this new BBQ “norm”. This sauce was bundled with the mac and cheese bites as well as the chicken tenders and boosted both of those, otherwise relatively low notes, well above baseline.
And OMG the shake.. I can’t believe I got this far and haven’t mentioned the shake! I picked the Peanut Butter Bourbon shake and it was hands-down the best decision I’ve ever made in my life. Whoever is mixing these things knows their shit. The bourbon flavors come through heavy at first sip and somehow, without a hint of alcohol, fade perfectly into the peanut butter background that caresses your palate on the way down. That alcohol, well hidden as it is, is certainly still present though. Granted, I’m not the biggest drinker and my consumption has only tapered off further on my diet, but this shake did hit me and the feeling stuck around. I’m including a picture from their facebook page of what COULD be this shake, based on the description, because my own pictures of a to-go cup wouldn’t do this masterpiece justice:
[image no longer available]Maybe this is what it would look like if you ate onsite? Trust me, just buy it.
Overall our family’s impression of Black Cow is very positive. It’s pricey, but that added cost actually seems to be accounted for in the taste. It directly competes with a long-standing favorite restaurant of mine and held it’s own despite it’s CoVID handicap.. 9/10, I’m reserving the 10 for after we can try their grub onsite.
News today in the turtle realm, there’s a new “16-bit”-esque beat’em up coming out for PC and Consoles.
The trailer went for an interesting angle, remixing the ’87 turtles cartoon theme and laying it over all new animation and a tone that’s closer to the ’03 turtles.. I can dig it, but time will tell if they do our tmnt justice with the gameplay.
The trailer isn’t clear if this is just a straight-up remake of turtles in time with a new splash of paint or if it’s an all new title. I’m onboard for either but would enjoy a new take over a remaster. It’s not like it’s difficult to fire up turtles in time or hyperstone heist for those of us who really still want to play the 16-bit classics.. So I’m hoping they opt to build on the foundation of those games instead.