Weather station with ModBus over RS-485
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
marcel 4d9767edda Tweaked settings heater algorithm 11 months ago
..
__pycache__ Tweaked settings heater algorithm 11 months ago
README.md First commit 12 months ago
config.json First commit 12 months ago
epever_control.py Tweaked settings heater algorithm 11 months ago
weather_station_rs485_client.py Added heather algorithm 11 months ago

README.md

Python ModBus test program

A simple test program to test ModBus peripherals connected to a serial port. It is a copy/paste job based on the ModBus client which runs on the Solar Generator (https://www.meezenest.nl/mees-elektronica/solar-generator.html). Therefore, it is a bit rough around the edges. Works fine though...

It reads all known registers of the weather_station and displays its values.

Configuration

Edit config.json. Only the two values given below are needed.


  "RS485_port": "/dev/ttyACM0",
  "RS485_address": 14,

Serial settings are hard coded in the source: 9600bd 8N1

As the program is just a quick hack based on the Solar Generator software you can only run the program with the following command. All other options do not work!


  python3 ./weather_station_rs485_client.py --c config.json

Requirements

  • Python3
  • minimalmodbus
  • retrying

License

Copyright (C) 2023 M.T. Konstapel

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.