This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# @module: sma.py | |
# @description: Python Class to get data from a SMA unit via pymodbusTCP | |
# Clase Python para tomar datos de un equipo SMA utilizando pymodbusTCP | |
# @autor: Pac0 Arriaza (JanusHL) (except indicated...) | |
# @created: 20/05/2019 | |
# @license: free use of this module class if no changes in the copyright from the autors are made. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MIT License | |
# | |
# Copyright (c) 2022 Dennis Heitmann | |
import sys | |
import time | |
import datetime | |
import socks | |
import socket | |
from icmplib import ping |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MIT License | |
# | |
# Copyright (c) 2022 Dennis Heitmann | |
from icmplib import ping | |
import paho.mqtt.client | |
pingHosts = ['192.168.15.194', '192.168.57.111'] | |
mqttServer = '__SERVER__' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MIT License | |
# | |
# Copyright (c) 2022 Dennis Heitmann | |
import sys | |
import logging | |
import datetime | |
from PyViCare.PyViCare import PyViCare | |
from influxdb import InfluxDBClient |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Check if own MQTT server runs | |
""" | |
import json | |
import paho | |
import boto3 | |
import paho.mqtt.client as mqtt | |
import ssl | |
import time | |
import os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MIT License | |
# | |
# Copyright (c) 2021 Dennis Heitmann | |
import sys | |
def funnyCharacters(inputtext=""): | |
linput = inputtext.lower() | |
def convertChar(inputchar): | |
mapping = {'a': 'α', 'b': 'в', 'c': '¢', 'd': '∂', 'e': 'є', 'f': 'ƒ', 'g': 'g', 'h': 'н', 'i': 'ι', 'j': 'נ', 'k': 'к', 'l': 'ℓ', 'm': 'м', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# | |
# MIT License | |
# | |
# Copyright (c) 2021 Dennis Heitmann | |
import sys | |
import json | |
import hmac | |
import hashlib |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <WiFi.h> | |
#include <ESPmDNS.h> | |
#include <WiFiUdp.h> | |
#include <ArduinoOTA.h> | |
int ota_once = 0; | |
#define HOSTNAME "ESP32TemplateSketch" | |
#include <IotWebConf.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ESP8266WiFi.h> | |
#include <ESP8266mDNS.h> | |
#include <DNSServer.h> | |
#include <ESP8266WebServer.h> | |
#include <WiFiManager.h> | |
#include <WiFiUdp.h> | |
#include <ArduinoOTA.h> | |
//#define LED_BUILTIN 2 | |
//unsigned long previousMillis = 0; |
NewerOlder