Заметки электроника
Простое - надёжнее!
Меню
  • Главная
  • Погода
  • Заметки
  • Календарь
  • Фотогалерея
  • Песни
  • Чтиво
  • Программы
  • Скачать
  • Связь и ссылки
  • Чехия
  • Lavka

Живёшь в Чехии?

Telegram: collect all users from a group (using python and telethon)

  • Печать
  • E-mail
Информация о материале
Автор: Super User
Родительская категория: Заметки
Категория: Программирование
Создано: 12 июня 2022
Обновлено: 12 июня 2022
Просмотров: 3981

Рейтинг: 4 / 5

Звезда активнаЗвезда активнаЗвезда активнаЗвезда активнаЗвезда не активна
from telethon.sync import TelegramClient
from telethon.tl.functions.messages import GetDialogsRequest
from telethon.tl.types import InputPeerEmpty
import csv
 
api_id = xxxxxxx
api_hash = 'xxxxxxxxxxxxxxxxxxxxxxxxxx'
phone = '+7xxxxxxxxxxx'
client = TelegramClient(phone, api_id, api_hash)
 
client.connect()
if not client.is_user_authorized():
    client.send_code_request(phone)
    client.sign_in(phone, input('Enter the code: '))
 
 
chats = []
last_date = None
chunk_size = 200
groups=[]
 
result = client(GetDialogsRequest(
             offset_date=last_date,
             offset_id=0,
             offset_peer=InputPeerEmpty(),
             limit=chunk_size,
             hash = 0
         ))
chats.extend(result.chats)
 
for chat in chats:
    try:
        if chat.megagroup== True:
            groups.append(chat)
    except:
        continue
 
print('Choose a group to scrape members from:')
i=0
for g in groups:
    print(str(i) + '- ' + g.title)
    i+=1
 
g_index = input("Enter a Number: ")
target_group=groups[int(g_index)]
 
print('Fetching Members...')
all_participants = []
all_participants = client.get_participants(target_group, aggressive=True)
 
print('Saving In file...')
with open("members.csv","w",encoding='UTF-8') as f:
    writer = csv.writer(f,delimiter=",",lineterminator="\n")
    writer.writerow(['username','user id', 'access hash','name','group', 'group id'])
    for user in all_participants:
        if user.username:
            username= user.username
        else:
            username= ""
        if user.first_name:
            first_name= user.first_name
        else:
            first_name= ""
        if user.last_name:
            last_name= user.last_name
        else:
            last_name= ""
        name= (first_name + ' ' + last_name).strip()
        writer.writerow([username,user.id,user.access_hash,name,target_group.title, target_group.id])      
print('Members scraped successfully.')

Tracking: LoRaWAN+GPS and BLE/WiFi fingerprinting with HERE Tracking, i-KNN algorithm

  • Печать
  • E-mail
Информация о материале
Автор: Super User
Родительская категория: Заметки
Категория: Лаборатория
Создано: 11 июня 2022
Обновлено: 11 июня 2022
Просмотров: 952
Звезда не активнаЗвезда не активнаЗвезда не активнаЗвезда не активнаЗвезда не активна
Collect:
1.https://www.researchgate.net/profile/Loizos-Kanaris/publication/315839931_Fusing_Bluetooth_Beacon_Data_with_Wi-Fi_Radiomaps_for_Improved_Indoor_Localization/links/58eb6ce24585153b60c95e13/Fusing-Bluetooth-Beacon-Data-with-Wi-Fi-Radiomaps-for-Improved-Indoor-Localization.pdf?origin=publication_detail
2. https://lora-alliance.org/lora_products/abeeway-micro-tracker/
3. https://www.u-blox.com/en/blogs/tech/ultra-low-power-gps-u-blox-m10 (ULP GPS)
4. https://eu.mouser.com/new/maxim-integrated/maxim-max2769c-receiver/ (ULP GPS)
5.occupancy detection https://www.thethingsnetwork.org/device-repository/devices/elsys/ems-desk/

ARPA TRCVR collection: preparation

  • Печать
  • E-mail
Информация о материале
Автор: Super User
Родительская категория: Заметки
Категория: Электроника / cхемотехника
Создано: 10 июня 2022
Обновлено: 10 июня 2022
Просмотров: 1081
Звезда не активнаЗвезда не активнаЗвезда не активнаЗвезда не активнаЗвезда не активна
1. POWER AMPLIFIER
a. 144MHz Gain 24dB DC 5V Ultra Low Noise Amplifier LNA SMA-K Connector Module (30 dB), 10mW
b. MMZ09332BT1 RF Amplifier, InGaP HBT, 2 Stages, 130MHz to 1000MHz, 30db Gain, 3V to 5V, HVQFN-12
c. https://www.mouser.in/datasheet/2/976/CMX902_ds-1591679.pdf
d. https://www.mouser.in/datasheet/2/609/643120f-1271368.pdf (max gain close  needed F., 0.15W)
e.https://www.mouser.in/datasheet/2/976/CMX901_ds-1591670.pdf   (temperature dem - more power in lower T)

LoraWAN alternatives SigFox, ARPA, SWARM

  • Печать
  • E-mail
Информация о материале
Автор: Super User
Родительская категория: Заметки
Категория: Лаборатория
Создано: 08 июня 2022
Обновлено: 08 июня 2022
Просмотров: 1066
Звезда не активнаЗвезда не активнаЗвезда не активнаЗвезда не активнаЗвезда не активна

https://swarm.space/
https://www.sigfox.com/en/coverage
tracking:
https://tracker.habhub.org/#!mt=roadmap&mz=7&qm=1_day&mc=51.57655,2.02663&f=icspace17&q=icspace17
https://ttn-slsp2020.gospace.sk/LoRaWanBalloon/01_map.php

Baloon:
eval:
https://www.thethingsnetwork.org/forum/t/balloon-tracking-using-ttn/33928/6
https://www.thethingsnetwork.org/labs/story/tracking-a-stratospheric-balloon-with-iot

Iridium : https://www.iridium.com/products/iridium-9603/

http://www.aprs.org/aprs-messaging.html

ARPS:
APRS must work everywhere to be a true resource to the mobile ham radio operator. In North America, 144.39 MHz is dedicated throughout the continent. In Europe, use 144.80 and in Australia use 145.175 MHz..
http://www.aprs.org/
https://hackaday.com/tag/aprs/

https://hackaday.com/2015/03/24/aprs-tracking-system-flies-your-balloons/

AMSAT
https://www.amsat.org/wordpress/xtra/Getting%20Started%201.pdf
https://www.youtube.com/watch?v=AaquOMPkf3Y

PICO ARPS
https://www.google.com/search?q=DB1NTO+PicoARPS&rlz=1C1GCEA_enDE974DE974&oq=DB1NTO+PicoARPS&aqs=chrome..69i57.5276j0j7&sourceid=chrome&ie=UTF-8

AVRT5 APRS Tracker VHF with GPS/Bluetooth/Thermometer/TF Card Support APRSdroid
https://www.eham.net/reviews/view-product?id=13407
(I came across this device last year online, took the chance and purchased one. After reading the forums and seeing several others having problems with the USB interface, I noted the following:

- The device comes with a USB cable that has compatibility problems with Win10 (WinXP is better)
- users *MUST MUST first upload the firmware to the device before it will boot. This is a case of RTFM, and requires the USB cable (above) to work correctly.
Once you overcome these initial hurdles, it does work great! Simple, accurate, and extremely useful.
I have used this running 1W and a 5/8w on the roof of the car, with pretty decent results around South Texas. I added a 25w 2m amp to it I purchased used at a hamfest, and have experimented with both a 1/4w and 5/8w magmount with excellent results with daily use and for public service events. This unit has an internal battery that will run for several hours, but using a Mini-USB cable and 12v adapter it will run indefinitely. There are a few people on the forums who have replaced the expired battery with a set of electrolytic capacitors with good results.

Also, for high altitude balloon launches, there is a modification available for altitude limitations.)


https://www.byonics.com/microtrak

Must read book about ARPA: https://digitalcommons.calpoly.edu/cgi/viewcontent.cgi?article=1156&context=eesp copy
 




 

LiteVNA - connection to PC

  • Печать
  • E-mail
Информация о материале
Автор: Super User
Родительская категория: Заметки
Категория: Лаборатория
Создано: 08 июня 2022
Обновлено: 08 июня 2022
Просмотров: 2621
Звезда не активнаЗвезда не активнаЗвезда не активнаЗвезда не активнаЗвезда не активна
1. Download and install National Instruments 2021 SP1 64-bit runtime and NIVISA
2. Download and install NanoVNA Solver 64
3. Install NI-Serial driver (https://www.ni.com/cs-cz/support/downloads/drivers/download.ni-serial.html#442809)


4. Install NI-VISA (https://www.ni.com/cs-cz/support/downloads/drivers/download.ni-visa.html#442805) (optional)

  1. PCB manufacturers in EU
  2. Оплодотворение 3D анимация
  3. Save money, build you LoraWAN antenna yourself!
  4. Antenna matching circuitries

Страница 59 из 198

  • 54
  • ...
  • 56
  • 57
  • 58
  • 59
  • ...
  • 61
  • 62
  • 63

Back to Top

© 2026 Заметки электроника

Top.Mail.Ru