UV Meter
Published by Martin on July 28, 2020
So the Light Sensor worked so well, but Weather Underground actually wants UV not Lumins. So back to Ebay and AUSCOM again

VEML6075 3.3V UVA UVB Light I2C Interface Sensor Module
Feature:
GY-VEML6075 is a mikroBUS add-on board with a VEML6075 UVA and UVB light sensor. VEML6075 is a CMOS chip that incorporates a photodiode, amplifiers, and analog/digital circuits.
With VEML6075, Solar ultraviolet light intensity is converted to 16-bit digital values. UVA and UVB are in separate channels. To keep a stable output in changing temperature conditions, the chip has temperature compensation capabilities. This ensures reliable performance under long term UV exposure.
The board communicates with the target MCU through the mikroBUS I2C interface. Designed to use a 3.3 power supply only.
Package Included:
1 x 3.3V I2C interface mikroBUS Board Based on VEML6075 UVA UVB Light Sensor Module
This guy will ned to be connected to the I2c Bus for it to be running.
My Choice has been to install it in a Transparent case mounted on the Foxtel Satelite mount. I installed the Light Sensor and have ordered a Lightning Sensor for it as well.
The UV Sensor is called a veml6075 and needs a library to be added.
pip3 install adafruit-circuitpython-veml6075
!/usr/bin/python3
import time
import board
import busio
import adafruit_veml6075
i2c = busio.I2C(board.SCL, board.SDA)
veml = adafruit_veml6075.VEML6075(i2c, integration_time=100)
print("UV Index: %s " % (veml.uv_index))
time.sleep(1)
import paho.mqtt.client as mqtt
import os
hostname = os.getenv("HOSTNAME", "weatherst")
broker_address="10.0.1.3"
client = mqtt.Client("P1")
client.connect(broker_address)
client.publish("/sensors/"+hostname+"/uv", "{\"site\":\"Mogwai Test Sensor\",\"name\":\""+hostname+"\",\"use\":\"tenant\",\"lpp\":1,\"type\":\"sensor\",\"uv\":\""+str(veml.uv_index)+"\"}")