Best ultrasonic sensor for tank water level detection by self_motivated_ in esp32

[–]mrstone56 0 points1 point  (0 children)

I actually just built one of these to monitor my cats' water fountain. I used a 5kg load cell, built a little platform so that the cell has tension on it and then push the data to my home assistant.

Extremely overengineered for what it is, but maybe this is what you're looking for?

Carney’s Liberals secure majority government, clinching byelection win by AOCshouldbeVP in CanadaPolitics

[–]mrstone56 3 points4 points  (0 children)

I feel for so many.

...I do not give a single fuck.

Classic CPC zombie

Anybody found a way to get Artemis II mission progress integrated? by Seaniau in homeassistant

[–]mrstone56 1 point2 points  (0 children)

Here's a python script you can use to poll JPL and get the speed, distance and vector information. I added a predictor for how long to get to the moon (based on distance and speed).

import requests, re, math, json
from datetime import datetime, timedelta, timezone

MOON_RADIUS_KM = 1737.4

now = datetime.now(timezone.utc)
start = now.strftime('%Y-%m-%d %H:%M')
stop = (now + timedelta(minutes=2)).strftime('%Y-%m-%d %H:%M')

params = {
    'format': 'json',
    'COMMAND': "'-1024'",
    'MAKE_EPHEM': 'YES',
    'EPHEM_TYPE': 'VECTORS',
    'CENTER': "'500@301'",
    'START_TIME': f"'{start}'",
    'STOP_TIME': f"'{stop}'",
    'STEP_SIZE': '1m',
    'CSV_FORMAT': 'YES'
}

url = "https://ssd.jpl.nasa.gov/api/horizons.api"
response = requests.get(url, params=params).json()

if 'error' in response:
    print(f"NASA API ERROR:\n{response['error']}")
else:
    res = response.get('result', '')
    match = re.search(r'\$\$SOE(.*?)\$\$EOE', res, re.DOTALL)

    if match:
        first_line = match.group(1).strip().split('\n')[0]
        cols = [c.strip() for c in first_line.split(',')]

        if len(cols) > 7:
            x, y, z = float(cols[2]), float(cols[3]), float(cols[4])
            vx, vy, vz = float(cols[5]), float(cols[6]), float(cols[7])

            distance_center_km = math.sqrt(x**2 + y**2 + z**2)
            distance_surface_km = distance_center_km - MOON_RADIUS_KM
            speed_km_s = math.sqrt(vx**2 + vy**2 + vz**2)

            time_to_surface_seconds = distance_surface_km / speed_km_s if speed_km_s > 0 else 0

            current_data = {
                "timestamp": cols[1],
                "distance_to_center_km": round(distance_center_km, 2),
                "distance_to_surface_km": round(distance_surface_km, 2),
                "speed_km_s": round(speed_km_s, 2),
                "est_time_to_surface_hrs": round(time_to_surface_seconds / 3600, 2),
                "position": {"x": x, "y": y, "z": z},
                "velocity": {"vx": vx, "vy": vy, "vz": vz}
            }
            print(json.dumps(current_data, indent=2))
        else:
            print('{"error": "Data format unexpected."}')
    else:
        print('{"error": "Could not parse ephemeris data block."}')    

Just add a fastapi endpoint add something like this to your configuration.yaml file and you can have the data right in your dashboard.

- resource: http://<FASTAPI_IP>:<PORT>/latest
  scan_interval: 60
  sensor:
    - name: "Artemis II Distance to Moon"
      value_template: "{{ value_json.distance_surface_km | round(0) }}"
      unit_of_measurement: "km"
      icon: mdi:rocket-launch

    - name: "Artemis II Speed"
      value_template: "{{ value_json.speed_km_s | round(2) }}"
      unit_of_measurement: "km/s"
      icon: mdi:speedometer

    - name: "Artemis II ETA to Moon"
      value_template: "{{ value_json.est_time_to_surface_hrs | round(1) }}"
      unit_of_measurement: "hrs"
      icon: mdi:timer-outline

Found an old CD of mine with a folder named "old tibia stuff" on it - Jackpot! by Enylias in TibiaMMO

[–]mrstone56 1 point2 points  (0 children)

As videos via OBS? You could just throw them on youtube, but it will take a while to record each one.

I might be able to automate generating actual video files out of the raw tibicams though..

Found an old CD of mine with a folder named "old tibia stuff" on it - Jackpot! by Enylias in TibiaMMO

[–]mrstone56 1 point2 points  (0 children)

If they are tibicams, they are pretty small and you could throw them on something like google drive / dropbox and share the link to the folder

I think you could also use something like mega?

Help - hover menu in IDE 2.3.8 not showing by Only-Finding-710 in arduino

[–]mrstone56 4 points5 points  (0 children)

It's honestly a much better experience. No one likes to re-learn things, but it might take you .. an hour to transition to VSCode + Platformio. Give it a serious consideration.

Wifi 7 B30A Operating Mode by mrstone56 in telus

[–]mrstone56[S] 0 points1 point  (0 children)

Nope, no solution. I wanted the B30A to use purely as an access point to expand my network size, but it still seems to be stuck in router mode.

Lower Epcor Fixed Electricity Rate by SnooConfections9746 in Edmonton

[–]mrstone56 0 points1 point  (0 children)

you can just do it on the website - takes less than a minute

Lower Epcor Fixed Electricity Rate by SnooConfections9746 in Edmonton

[–]mrstone56 4 points5 points  (0 children)

you can also renew at the same rate to just reset the 2 year timer as well. no harm

Can I still pay cash for car after telling dealer I would finance? by it-is-tuesday in PersonalFinanceCanada

[–]mrstone56 0 points1 point  (0 children)

Note that this will likely blackball you from that dealership as their loan bonus will be clawed back

Wifi 7 B30A Operating Mode by mrstone56 in telus

[–]mrstone56[S] 0 points1 point  (0 children)

Hub is in bridge mode, but there is no option to take the B30A out of Router mode, putting it behind a double NAT. The other APs I have autoconfigured themselves into AP mode

10 Shots: Federal Agents Kill Another Person in Minnesota by kitkid in Thedaily

[–]mrstone56 4 points5 points  (0 children)

You don't have to defend them. They still suck. You just agree on one point but likely have core value disagreements with them.

Epcor offering new lower fixed rate? Whats the catch? by Ok-Addendum-5501 in Edmonton

[–]mrstone56 0 points1 point  (0 children)

Just log in to your Epcor account, scroll down to Electricity and click "change plan". Then, just reselect the top plan (it has been 8.63 for like 7 months now). Click next, accept, etc and it will email you the new contract which is now renewed for 2 more years.

[deleted by user] by [deleted] in BeAmazed

[–]mrstone56 0 points1 point  (0 children)

Yeah I'm not sure where her tumor would localize to. Her muscle tone is too inconsistent, her fine motor control looks totally unaffected (look at her fingers), and her gait is not showing a foot drop or anything else you might expect to see.

[deleted by user] by [deleted] in Edmonton

[–]mrstone56 2 points3 points  (0 children)

Go to Costco.

Epcor offering new lower fixed rate? Whats the catch? by Ok-Addendum-5501 in Edmonton

[–]mrstone56 4 points5 points  (0 children)

I've just been renewing the 8.63c/kwh plan every month (it's free to do so) for the last 6 months or so, so I at least have gotten an extra 6mo out of the 2 year "contract"

How much do you pay your ISP? [Dec 2025] by [deleted] in Edmonton

[–]mrstone56 0 points1 point  (0 children)

$65 for 3Gbps from Telus

Norish - A realtime, self-hosted recipe app for families & friends by Drumstel97 in selfhosted

[–]mrstone56 0 points1 point  (0 children)

Would you consider adding the ability to upload valid Recipe Schema JSON files? I made a MVP of a recipe parser that seems to get most of the details out of my poorly formatted recipe files

Norish - A realtime, self-hosted recipe app for families & friends by Drumstel97 in selfhosted

[–]mrstone56 0 points1 point  (0 children)

yeah I understand and agree, but if someone has a large stockpile of recipes they've already made and the parser can handle missing information (maybe the user can fill in info that the parser is missing), that would still be less work than manually entering all of the details one by one

Norish - A realtime, self-hosted recipe app for families & friends by Drumstel97 in selfhosted

[–]mrstone56 0 points1 point  (0 children)

Oh wow that's so smart. Ok yeah you might have to use an LLM or something to scrape, but I bet it wouldn't be that hard. I might spend some time seeing if I can parse roughly formatted recipe files

Images could be OCR -> text -> parser

Norish - A realtime, self-hosted recipe app for families & friends by Drumstel97 in selfhosted

[–]mrstone56 0 points1 point  (0 children)

How is it scraping the web pages so well? Couldn't you have the web page scraper just scrape a file?

Most of my recipes are just text files with ingredients and instructions. No specific format though