This is an MQTT sensor to send NOAA space weather data to Home Assistant. Fetching the data requires a login to NASA's EarthData which is done through Selenium and the Chrome browser. ![](dashboard/dashboard.png) ## Install 1. Create an account at 2. `pip install -r requirements.txt` 3. `sudo apt-get install redis-server` 4. `sudo systemctl enable --now redis-server` ## Run The lat/lon range is used to pick the region of the planet for generating statistics, for example your home state. To ```shell LAT_RANGE_MIN= \ LAT_RANGE_MAX= \ LON_RANGE_MIN= \ LON_RANGE_MAX= \ MQTT_BROKER_HOST="" MQTT_BROKER_PORT=1883 MQTT_USERNAME="user" MQTT_PASSWORD="" \ python3 mqtt.py ``` Example systemd service files are provided. ### Home Assistant MQTT Config ```yaml - state_topic: "space-weather/glotec" name: "GloTEC" unit_of_measurement: "(10^16) / m^-2" state_class: measurement unique_id: space_weather_glotec ``` ## Data ### GloTEC Unit: `(10^16) / m^-2` Updated hourly.