Blog

Withings WS-50 Smart Body Analyzer

Home Automation… Waage? Ja, ich finde das gehört da dazu… denn es automatisiert das Wiegen… naja zumindest die Datenerfassung. Ich war es leid immer mein Gewicht / Körperfett in einer App einzutragen. Da war der Preis von 150€ für mich auch gerechtfertigt. Nette Nebenfunktion, es wird auch der Puls erfasst.

11

Die Waage wird per Bluetooth und/oder WLAN gepaired und trägt eigenständig die Daten ein. Es muss die App nicht geöffnet werden. Schön ist auch das Interface von Withings (App oder auch über Browser) in dem man schön den Gewichtsverlauf sehen kann.

2

Automatisch wird erkannt, wer gerade auf der Waage steht, denn auch die Benutzung von mehreren Personen ist möglich. Hier können unterschiedliche Profile genutzt werden.

1

Die Waage kann per Amazon (Affiliate-Link) oder direkt bei Withings bestellt werden.

Von |2014-12-17T18:25:54+01:002014-12-17|Home Automation|

Ankündigung: Home Automation Kategorie

Komm der Zeit nicht viel zum Schreiben, aber an Ideen fehlt es mir nicht :^)
Als Ankündigung vorweg: Ich möchte gerne mehr über Heimautomatisierung schreiben, wenn jemand Ideen hat, was man sich auf alle Fälle anschauen sollte, bin ich über Vorschläge dankbar.

Ich hab im letzten Jahr einiges an Hardware angesammelt, was definitiv hier Erwähnung finden sollte.
Vielleicht Hoffentlich finde ich um die Feiertage Zeit, hier bisl mehr zu Schreiben!

Von |2014-12-12T13:51:43+01:002014-12-14|Home Automation|

EPLAN Pong

Der Preis für die beste EPLAN Erweiterung geht an Daniel Papp!

Das ganze funktioniert als API-Addin und ist auf Github zu finden. Einfach klasse :^)

Von |2017-11-09T12:23:54+01:002014-11-26|EPLAN, EPLAN-API|

GetProjectProperty

Info: Es gibt eine neue Version von diesem Script.

Mit diesem Script könnt ihr einzelne Projekteigenschaften lesen.

Als Parameter habe ich mich für string entschieden, da zum Setzen der Projekteigenschaft die ID auch als String übergeben werden muss.

Verwendung:

string value = GetProjectProperty(Id, Index);

Die Methode muss im verwendeten Script vorhanden sein:

private static string GetProjectProperty(string id, string index)
{
	string value = null;
	ActionCallingContext actionCallingContext = new ActionCallingContext();
	actionCallingContext.AddParameter("id", id);
	actionCallingContext.AddParameter("index", index);
	new CommandLineInterpreter().Execute("GetProjectProperty", actionCallingContext);
	actionCallingContext.GetParameter("value", ref value);
	return value;
}

Das Script GetProjectProptery.cs laden und das Schema (GetProjectProperty_Template.xml) im Ordner Scripte/GetProjectProperty abspeichern.
Anbei das ganze Script + Download.

/* Usage
	private static string GetProjectProperty(string id, string index)
	{
		string value = null;
		ActionCallingContext actionCallingContext = new ActionCallingContext();
		actionCallingContext.AddParameter("id", id);
		actionCallingContext.AddParameter("index", index);
		new CommandLineInterpreter().Execute("GetProjectProperty", actionCallingContext);
		actionCallingContext.GetParameter("value", ref value);
		return value;
	}
*/

using System;
using System.Windows.Forms;
using Eplan.EplApi.ApplicationFramework;
using Eplan.EplApi.Base;
using Eplan.EplApi.Scripting;
using System.IO;

class GetProjectProperty
{
    [DeclareAction("GetProjectProperty")]
    public void Action(string id, string index, out string value)
    {
        string pathTemplate = Path.Combine(PathMap.SubstitutePath("$(MD_SCRIPTS)"),
            "GetProjectProperty", "GetProjectProperty_Template.xml");
        string pathScheme = Path.Combine(PathMap.SubstitutePath("$(MD_SCRIPTS)"),
            "GetProjectProperty", "GetProjectProperty_Scheme.xml");

        try
        {
            // Set scheme
            string content = File.ReadAllText(pathTemplate);
            content = content.Replace("GetProjectProperty_ID", id);
            content = content.Replace("GetProjectProperty_INDEX", index);
            File.WriteAllText(pathScheme, content);

            new Settings().ReadSettings(pathScheme);

            string pathOutput = Path.Combine(
                PathMap.SubstitutePath("$(MD_SCRIPTS)"), "GetProjectProperty",
                "GetProjectProperty_Output.txt");

            // Export
            ActionCallingContext actionCallingContext = new ActionCallingContext();
            actionCallingContext.AddParameter("configscheme", "GetProjectProperty");
            actionCallingContext.AddParameter("destinationfile", pathOutput);
            actionCallingContext.AddParameter("language", "de_DE");
            new CommandLineInterpreter().Execute("label", actionCallingContext);

            // Read
            value = File.ReadAllLines(pathOutput)[0];
        }
        catch (Exception exception)
        {
            MessageBox.Show(exception.Message, "GetProjectProperty", MessageBoxButtons.OK,
                MessageBoxIcon.Error);
            value = "[Error]";
        }
    }
}

GetProjectProperty auf GitHub

Von |2018-08-17T12:30:10+02:002014-11-12|EPLAN, EPLAN-Scripts|
Nach oben