Jump to content
View in the app

A better way to browse. Learn more.

Tinkerunity

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Geschrieben

Hi

Ich überlege den Stromzähler zu überwachen. Meiner hat ja eine kleine LED, die bei hohem Verbrauch schneller blinkt.

 

Um das zu machen fallen mir folgende Bricklets ein

1) Ambient Light

2) Color Bricklet

3) Line Bricklet (unterschiedliche Reflektivität)

 

Hat das jemand schonmal gemacht oder Erfahrungen damit?

 

Geschrieben

Ambient Light sollte reichen, wenn du es nahe genug an die LED hältst. Es ist halt nicht sehr empfindlich.

Geschrieben

Hallo,

 

ich mache genau das mit einem Ambient-Light Bricklet. Läuft seit Monaten sehr stabil.

 

Ist ebenfalls ein digitaler Stromzähler mit LED (1000 Impulse pro kWh) mit angeklebtem Ambient-Light Bricklet.

 

Um möglichst genaue Messwerte zu ermitteln, messe ich inzwischen die Zeit zwischen den einzelnen Impulsen und berechne so den aktuellen Stromverbrauch.

 

#!/bin/bash

LAST=`tail -n 2 /tmp/strom_timer | head -n 1`
NOW=`tail -n 1 /tmp/strom_timer`
DATE_NOW=`date +%s%N`

TIMEDIFF=`echo "scale=5; ($NOW-$LAST) / 1000000000" | bc`

if [ $NOW -lt $(($DATE_NOW - 120000000000)) ] ; then
echo "0"
else
echo "scale=2; 3600/$TIMEDIFF" | bc
fi

 

Ein Callback loggt hierbei immer den Zeitpunkt nach /tmp/strom_timer.

date +%s%N >> /tmp/strom_timer

 

Alternativ könnte man auch die Anzahl der "Blinks" pro Zeitintervall (z.B. 5 Minuten messen) und alle 5 Minuten den Durchschnittsverbrauch ermitteln. Ist mir aber zu träge und etwas komplexer.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Reply to this topic...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.