Skip to content

Instantly share code, notes, and snippets.

/*
This sketch uses the MKRFox1200 SigFox module to check the input from a sensor and send a message if a threshold is crossed.
*/
#include <SigFox.h>
#include <ArduinoLowPower.h>
int ldr = A1; //set input pin
void setup() {
Serial.begin(9600);
@ajax0
ajax0 / RSDF_injection.py
Created May 27, 2021 15:21
RSDF Injection
import os
import re
import pyhdb
import pandas as pd
import xxx_dbconfig as config
from lxml import html
from bs4 import BeautifulSoup
def get_inputhtml(base_path, print_on):
input_path = base_path + '/input_html/'
@ajax0
ajax0 / Automating Outlook.py
Last active February 29, 2024 08:48
Automating Outlook.py
import win32com.client, datetime
from datetime import date
from dateutil.parser import *
import calendar
import pandas as pd
# Step 1, block 1 : access Outlook and get the events from the calendar
Outlook = win32com.client.Dispatch("Outlook.Application")
ns = Outlook.GetNamespace("MAPI")
appts = ns.GetDefaultFolder(9).Items