The Great Game in Central Asia

With the advent of China’s Belt and Road Initiative I found it necessary to learn about the involved regions and histories. I’m curious. Grown up in Germany during the Cold War I was teached that Russians were always mostly the evil ones and people from the West are usually the “better ones”. I never believed it but …

The post The Great Game in Central Asia appeared first on Hagen Graf.

Need Help … #blockchain #healthcare #questionaire #family … please share

My daughter Phyllis asked me today via messenger if I could participate in a questionnaire she needs for her Master Thesis. I did and you should do so too, wherever you are on this planet! WHAT IS IT ABOUT?  Master Thesis at Maastricht University with the topic “Blockchain Technology in Healthcare”.   WHY?  You support interesting …

The post Need Help … #blockchain #healthcare #questionaire #family … please share appeared first on Hagen Graf.

United Kingdom

The Wikipedia page for UK starts with this sentence: The United Kingdom of Great Britain and Northern Ireland, commonly known as the United Kingdom (UK) or Britain. After visiting the country for the first time for a longer time (2 weeks) I learned so much about the history (William the conqueror, Oliver Cromwell, the parliament, …), that …

The post United Kingdom appeared first on Hagen Graf.

Why Twitter blocked and deleted our @ibcoco1 Twitter Account

We are running the not for profit iron blogger project. The aim of the project is to motivate people to blog once a week. If you are interested in the project (and you should 😉 ), have a look at our website https://ibcoco.net/we-want-you-to-blog-because/. Beside the website, the project had a Twitter account. Last week I received …

The post Why Twitter blocked and deleted our @ibcoco1 Twitter Account appeared first on Hagen Graf.

How to use FHEM with Home Assistant

I have started several years ago using FHEM to automate some of my devices. Last year though, I discovered Home Assistant. It fits much better my technology stack as it's written in Python instead of Perl, so I started to migrate to it.

As always I'm running against some walls. It was impossible to get my IR-bridge (which switches on the amp) running in Home Assistant, so I needed a way to use the existing FHEM within Home Assistant.

First I opened a new FHEMWEB port (bind only on localhost) with csrfToken check switched off:

fhem.cfg:

define WEBapi FHEMWEB 8086 global
attr WEBapi csrfToken none
attr WEBapi allowFrom 127.0.0.1

Now it's possible to add shell commands to Home Assistant, it could look like this:

configuration.yaml:

shell_command:
fhem_shutdown_all: /usr/bin/wget -q http://127.0.0.1:8086/fhem?cmd.Stop_mediacenter=set%20Stop_mediacenter%20on
fhem_start_first: /usr/bin/wget -q http://127.0.0.1:8086/fhem?cmd.wz_XBMC=set%20wz_XBMC%20on

As I use homeatic I need to wire everything together in scripts.yaml:

# Use scripts with homeatic keypress as there is no delay
# https://github.com/danielperna84/pyhomematic/issues/106
turn_all_off:
sequence:
- service: light.turn_off
entity_id: light.living_room
- service: shell_command.fhem_shutdown_all

And here I bind the turn_all_off to my Homematic Switch:

- alias: "Alle Geraete Aus"
trigger:
platform: event
event_type: homematic.keypress
event_data:
name: WohnzimmerSchalter
channel: 1
param: PRESS_SHORT
action:
- service: script.turn_on
entity_id: script.turn_all_off

This is my second post of my home automation series, I hope it helps someone :)

CloudFest: Become a Partner for the Joomla Project and I’ll make you happy

Next week I’m going to CloudFest.  CloudFest itself is hard to describe. It is an Event and the successor of World Hosting Days. So a large part of the worlds hosting industry will be “there”. The first time I was there was in 2016. I’m writing a weekly blog post for NovaTrend, a hosting company from …

The post CloudFest: Become a Partner for the Joomla Project and I’ll make you happy appeared first on Hagen Graf.

WordPress Single Sign On … aber wie/but how?

Sorry for the language mix but I thought it’s better to have it in both languages 🙂 Heute habe ich mal keine Lösung, sondern ein Problem. Ich will in WordPress etwas programmieren. Eine Authentifizierung gegenüber einem Altsystem. Today I have no solution, but a problem. I want to program something in WordPress. An authentication to …

The post WordPress Single Sign On … aber wie/but how? appeared first on Hagen Graf.

Building a Central Bank – Part 1

Last week I asked if someone has an idea what Ethereum is about. Dick Olsson told me in a comment that it’s possible to create a kind of blockchain for our iron blogger project. What I know so far is the wikipedia article about Ethereum, some content of the website of the Swiss foundation Ethereum.org and a few videos from 2014 …

The post Building a Central Bank – Part 1 appeared first on Hagen Graf.

Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future

It’s “the biography” about Elon Musk, his family and the story behind

  • PayPal (make banking easy)
  • Tesla Motors (about cars, super chargers, production plants and batteries)
  • SpaceX (about reusable rockets that can start AND land)
  • SolarCity (about creating electricity).

After being disappointed with so many dark dystopian Science Fiction stories he basically decided to make the future bright again, solve the worlds energy problem and colonise the planet Mars.

It’s an impressive story!

 

Ted Talk

National Geographic: Tesla Motors Documentary

(Almost) Every SpaceX Landing, In Order

The post Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future appeared first on Hagen Graf.