Skip to content

Commit

Permalink
Added descriptions of existing scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
fredlcore committed Dec 11, 2023
1 parent 7aca865 commit 1c6765c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions BSB_LAN/custom_functions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,27 @@ To use these scripts, you have to do two things:

Theoretically, you can use several of these custom functions at the same time, and sometimes it's as easy as just copy-pasting each code segment one after the other for each file. But do take note that this is similar to writing code for BSB-LAN itself, so be aware of what you are doing.
**Please understand that we cannot give any individual support in case of errors or problems!**

# DHT22_sensor_controls_fan

This script reads the temperatures from two DHT22 sensors (one outside and one inside) and turns on a fan connected to GPIO 6 in case the
absolute inside humidity is higher than the absolute outside humidity and the inside temperature is higher than 15 degrees celsius.

# Map_DS18B20_sensors_to_custom_floats

This script takes the readings of DS18B20 sensors and writes them to the custom floats parameters (20700 and above) for easier access.

# Modbus_Interface

This set of scripts enable BSB-LAN to be accessed via Modbus. Parameters can be read and written. However, take note that no data type
conversion takes place in this script, so only unsigned 16-bit integer values will be transmitted correctly. All other kinds of data
types will have to be encoded/decoded accordingly.

# Send_NTP_time_to_heater

This script connects to an NTP time server and writes the accurate time to the heater's internal clock.

# Send_room_temperature_based_on_MAX_thermostats

This script collects the current temperature of registered MAX! thermostats, calculates an avaerage and sends this average as the current
room temperature to the heater (via parameter 10000).

0 comments on commit 1c6765c

Please sign in to comment.