A MicroPython-based web interface for electricty meters with IR SML interface.
- Raspberry Pi Pico W
- Photodiode connected to GP1
- Thonny IDE or similar for editing and uploading files to Raspberry Pi Pico
Install MicroPython by following the official guides for you specific hardware.
Transfer the following files/folders to the root directory (using Thonny IDE or similar):
config.pylocalemain.py
Create a lib folder within the root directory and copy the following
libraries there:
- microdot:
Copy the files
scr/microdot/__init__.pyandsrc/microdot/microdot.pyinto thelib/microdotdirectory.
Open the file config.py and set your WIFI credentials and hostname.
# Example
WIFI_SSID = "your ssid"
WIFI_PASSWORD = "your password"
HOSTNAME = "meter"
WIFI_COUNTRY = "it"Connect to the device using a web browser at http://<hostname>.
Replace <hostname> with the value set in config.py.
See http://<hostname>/data for JSON data.
Additional diagnostic information can be found at http://<hostname>/raw-data.