Skip to content

Instantly share code, notes, and snippets.


Marcel marcelrv

  • Netherlands
View GitHub Profile
View gist:6e3300cd5ac85af66ef2152d60539411
data: {"id":3552,"method":"set_lowpower_autooff","params":[{"lp_autooff":1,"lp_autooff_delay":5,"lp_threshold":2}]}
View dev links
marcelrv /
Last active Mar 31, 2020
Docker to run python-miio

nano Dockerfile add the following to it:

FROM python:3.8
#FROM python:3.7-alpine
RUN apt-get install  libffi-dev libssl-dev
#RUN apt add --no-cache  libffi-dev libssl-dev
RUN pip3 install python-miio
View gist:20509106e97b4c7dd8c9056aefda2332
and for example air purifier 3 cn (zhimi.airpurifier.ma4)
View TSD build error.txt
marcel@docker-server:~/TheSpaghettiDetective$ docker-compose --verbose up --build -d
compose.config.config.find: Using configuration files: ./docker-compose.yml
docker.utils.config.find_config_file: Trying paths: ['/home/marcel/.docker/config.json', '/home/marcel/.dockercfg']
docker.utils.config.find_config_file: Found file at path: /home/marcel/.docker/config.json
docker.auth.load_config: Couldn't find auth-related section ; attempting to interpret as auth-only file
docker.auth.parse_auth: Auth data for auths is absent. Client might be using a credentials store instead.
docker.auth.parse_auth: Auth data for HttpHeaders is absent. Client might be using a credentials store instead.
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.35/version HTTP/1.1" 200 535
compose.cli.command.get_client: docker-compose version 1.24.1, build 4667896b
docker-py version: 3.7.3
marcelrv /
Last active Jul 15, 2019
import urllib.request
import json
url = ''
req = urllib.request.Request(url)
##parsing response
r = urllib.request.urlopen(req).read()
cont = json.loads(r.decode('utf-8'))
counter = 0
print (cont)
marcelrv / Bluez Install.txt
Created Dec 12, 2018
Installation Bluez 5.46 on Ubuntu 16.04
View Bluez Install.txt
Based on
sudo apt-get install debhelper dh-autoreconf flex bison libdbus-glib-1-dev libglib2.0-dev libcap-ng-dev libudev-dev libreadline-dev libical-dev check dh-systemd libebook1.2-dev devscripts
#unless you have already a gpg key
sudo apt-get install rng-tools
gpg --gen-key
marcelrv / nginx.service
Created Jan 12, 2018 — forked from scottslowe/nginx.service
This very simple systemd unit file will launch a Docker container running the Nginx web server.
View nginx.service
Description=Nginx web front-end
ExecStartPre=/usr/bin/docker pull nginx
ExecStart=/usr/bin/docker run --rm --name nginx -p 80:80 nginx
ExecStop=/usr/bin/docker stop nginx
View nefit-commands
All Nefit endpoints
View windcentrale data
Various ways to get windcentrale data:
example data:
You can’t perform that action at this time.