Skip to content

Instantly share code, notes, and snippets.

View jiristepan's full-sized avatar
🎯
geeging

Jiri Stepan jiristepan

🎯
geeging
  • Etnetera activate a.s.
View GitHub Profile
library(ggplot2)
library(scales)
library(dplyr)
################## parameters ##############
all <- 10000000 # population
sick <- 200000 # number of sick people
sensitivity <- 0.95 # how many SICK people will be detected correctly
specificity <- 0.95 # how many HEALTHY people will be detected correctly
library(ggplot2)
library(dplyr)
library(scales)
library(zoo)
library(rvest)
library(jsonlite)
#seznam dnu v tudnu
weekdays <- c("Po","Ut","St","Ct","Pa","So","Ne")
- id: '1646558426XXX'
alias: 'Reed and Update Local Temp'
description: 'No description'
trigger:
- platform: time_pattern
minutes: /15
condition: []
action:
- service: number.set_value
target:
import argparse
import requests
import logging as log
import pandas as pd
from datetime import datetime
import json
def call_exponea_api(method,path, payload, config):
url = f"{config['api_endpoint']}{path}"
log.debug(url)