This file contains hidden or 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
| #You should use https://github.com/lancer73/ha-weather-uploader instead | |
| blueprint: | |
| name: 'CWOP Upload' | |
| description: > | |
| Periodically uploads weather station data from Home Assistant to CWOP | |
| (Citizen Weather Observer Program) via APRS-IS, whenever any of the | |
| configured trigger entities change state. | |
| Setup: | |
| Add the following shell_command to configuration.yaml. This pipes the |
This file contains hidden or 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
| import re | |
| import argparse | |
| import concurrent.futures | |
| import string | |
| from collections import namedtuple | |
| from urllib.request import urlopen | |
| from urllib.parse import urlencode, urljoin | |
| from bs4 import BeautifulSoup |