Skip to content

Instantly share code, notes, and snippets.

@sorryusernameisalreadytaken
sorryusernameisalreadytaken / main.py
Created October 28, 2024 15:24
kleinanzeigen.de - check for item - POC for testing there services against scraping
import requests
from bs4 import BeautifulSoup
import time
# your query as a parameter
search_term = "quasi-modo" # just "quasi-modo" with your search query
search_url = f"https://www.kleinanzeigen.de/s-suchanfrage.html?keywords={search_term}&categoryId=&locationStr=&locationId=0&radius=0&sortingField=SORTING_DATE&adType=&posterType=&pageNum=1&action=find&maxPrice=&minPrice=&buyNowEnabled=false&shippingCarrier="
def scrape_kleinanzeigen():
response = requests.get(search_url)
@sorryusernameisalreadytaken
sorryusernameisalreadytaken / configuration.yaml
Created September 6, 2024 13:41
HomeAssistant Rest Call for Zendure AIO 2400 - Balcony power station storage unit - This allows you to get many, but not all, of your values, which can also be seen in the Zendure app. For my buddy, the “electricity” was mainly important, which probably shows the battery level. He can now write automations for this. Why all this when there is a …
template:
# Simply delete all the ones you don't want or which are zero. But you can also leave them all in, they will all be retrieved anyway
# In this case, in addition to the Zendure AIO, there is also an integrated shelly_em3. Attention: if you only have one aio2400,
# the all shelly_em3 sensor must be removed here and all sensors aio2400 should point to [0] instead of [1]
- sensor:
- name: "shelly_em3_id"
state: "{{ state_attr('sensor.zendure_device_infos', 'data')[0].id }}"
- name: "shelly_em3_deviceKey"
state: "{{ state_attr('sensor.zendure_device_infos', 'data')[0].deviceKey }}"
@sorryusernameisalreadytaken
sorryusernameisalreadytaken / gist:3200c356cddc708795b01793f93d39bd
Created January 9, 2024 19:16
traefik docker-compose simple with homeassistant networkmode host
version: "3.5"
services:
traefik:
image: traefik:latest
container_name: traefik
command:
- --api.insecure=true
- --providers.docker=true
- --providers.docker.exposedbydefault=false
- --entrypoints.web.address=:80
@sorryusernameisalreadytaken
sorryusernameisalreadytaken / revip.py
Created March 13, 2023 11:22 — forked from ayoubfathi/revip.py
Using YouGetSignal API to get domains hosted on the same IP - Reverse IP
import requests
import json
import sys
import argparse
_strip = ['http://', 'https://', 'www']
G = '\033[92m'
Y = '\033[93m'
@sorryusernameisalreadytaken
sorryusernameisalreadytaken / sync_trv_with_external_temp_sensor.yaml
Last active December 13, 2022 14:53 — forked from bruvv/sync_trv_with_external_temp_sensor.yaml
Sync TRV SEA802-Z01 with external sensor blueprint
blueprint:
name: Sync TRV temperature for SEA802-Z01
description: Sync external temperature sensor with TRV temperature for SEA802-Z01 with a temp-calibration range of -6 to +6.
domain: automation
input:
ieeeaddressoftrv:
name: IEEE Address
description: This is the address of the TRV found in your zigbee database. Example 0x459877fffe1f2e83
external_temp:
name: Select the external temp sensor