Skip to content

Instantly share code, notes, and snippets.

View jaakla's full-sized avatar

Jaak Laineste jaakla

  • Sixfold
  • Estonia
  • 18:05 (UTC +02:00)
View GitHub Profile
@jaakla
jaakla / configuration-gist.yaml
Last active October 10, 2023 05:43
home assistant configuration hinnakontrolliks
# kolme seadme kõige odavamate tundide otsimiseks sensorid - maja küte, sooja vee küte ja BEV laadimine
# 1. eeldused:
# - Installi Nordpool HACS extension - hinnainfo
# - EV auto integratsioon (Hyundai Bluelink minul) - annab kui palju hetkel akus ruumi. Kui seda pole, võib ka panna staatilise tundide arvu (nt 4)
# - välistemperatuuri sensor kütte jaoks - "keskminetemp" saadud mul kasutades 'average' HACS extensioni abil mitmest lokaalsest sensorist. Aga võib ka asukohapõhist ilmateadet kasutada.
# - boileri küttevajadus 8 tundi ööpäevas on leitud katsetusega - siis ei jahtu alla 35 kraadi väljas olevatel tundidel
# - dashboardis input_number.ev_laadimine_valmis - mis kellaks peab EV laadimine valmis olema, tavaliselt mul "9" (öiseid tunde võtab), aga kui järgmine päev on ka odav ja on aega oodata, võib optimaalsem panna olla nt 14.
# 2. lisa allolevad sensorid configuration.yaml faili, sensorite nimed võivad vajada kohandamist
@jaakla
jaakla / today.yaml
Created November 23, 2021 18:26
home-assistant nordpool graph
# requires this component (installed with HACS): https://github.com/custom-components/nordpool
type: 'custom:apexcharts-card'
experimental:
color_threshold: true
graph_span: 24h
header:
title: Elektrihind täna
show: true
span:
@jaakla
jaakla / MapsActivity.java
Created October 12, 2018 14:31
LBS 2018
package com.ut.example.jaak.myapplication;
import android.annotation.SuppressLint;
import android.location.Address;
import android.location.Geocoder;
import android.location.Location;
import android.support.annotation.NonNull;
import android.support.v4.app.FragmentActivity;
import android.os.Bundle;
import android.widget.Toast;
@jaakla
jaakla / grid10T.py
Last active September 29, 2018 21:28
Eesti Põhikaardi 1:10000 grid numbri arvutus
# src: https://geoportaal.maaamet.ee/est/Andmed-ja-kaardid/Koordinaatsusteemid-ja-kaardilehtede-jaotused/Kaardilehtede-susteemid-p224.html
# consts for bounds
xmin = 300000
xmax = 800000
square_x = 100000 # 1st level grid size
ymin = 6300000
ymax = 6700000
square_y = 100000
start1 = 4 # grid digit offsets

Keybase proof

I hereby claim:

  • I am jaakla on github.
  • I am jaakl (https://keybase.io/jaakl) on keybase.
  • I have a public key ASD4mZBSvmDIdD_06iGZjNSvuzb29s2qs3pWUlE3ZNuh-Ao

To claim this, I am signing this object:

Preparations for mobile GIS app with CARTO SDK workshop

alt text

Jaak Laineste, @jaakl

Important: please install Android SDK tools as instructed below before workshop. It involves over 1GB download and it saves a lot of time and hassle on-site if you do it beforehand.

Requirements

@jaakla
jaakla / mobile_gis_workshop.md
Last active August 10, 2017 09:34 — forked from Nikituh/mobile_gis_workshop.md
Mobile GIS workshop

Your first native mobile GIS app with CARTO SDK

alt text

Jaak Laineste, @jaakl

Preparation

A computer with:

  • Linux, Mac or Windows
@jaakla
jaakla / vatican.geojson
Created September 20, 2016 10:25
vatican.geojson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jaakla
jaakla / dynaminc_maps.md
Last active August 21, 2016 20:01 — forked from namessanti/dynaminc_maps.md
Workshop: Making Dynamic Maps with CartoDB
@jaakla
jaakla / TwoColorLine.java
Created January 8, 2016 16:26
2 color line with Nutiteq
// Add line with 2 colors
// You need special bitmaps in res/drawable-nodpi folder: line_left.png and line_right.png
// Create line style, and line poses
Bitmap lineBitmapL = BitmapFactory.decodeResource(getResources(), R.drawable.line_left);
Bitmap lineBitmapR = BitmapFactory.decodeResource(getResources(), R.drawable.line_right);
LineStyleBuilder lineStyleBuilder = new LineStyleBuilder();
lineStyleBuilder.setColor(new Color(0xFFFF0000)); // red