Skip to content

Commit

Permalink
Merge pull request #47 from johnrm174/develop
Browse files Browse the repository at this point in the history
Release 4.1.0
  • Loading branch information
johnrm174 authored Jan 23, 2024
2 parents 9b15e5f + fa5f9cc commit 440ea9d
Show file tree
Hide file tree
Showing 58 changed files with 2,700 additions and 5,995 deletions.
2 changes: 0 additions & 2 deletions MANIFEST.in

This file was deleted.

7 changes: 5 additions & 2 deletions PUBLIC_API.md
Original file line number Diff line number Diff line change
Expand Up @@ -621,8 +621,8 @@ the minimum set needed to support the driving of signals and points via a select
DCC Accessory decoders. Basic CV Programming is also supported - primarily as an aid to testing,
but for full decoder programming the recommendation is to use JRMI DecoderPro or similar.
<pre>
initialise_pi_sprog - Opens/configures the serial comms port to the Pi Sprog and issues
a 'Request Command Station Status' command to confirm connectivity
sprog_connect - Open and configures the serial comms port to the Pi Sprog and issues
a Request Command Station Status command to confirm connectivity
Optional Parameters:
port_name:str - The serial port to use for the Pi-SPROG 3 - Default="/dev/serial0",
baud_rate:int - The baud rate to use for the serial port - Default = 115200,
Expand Down Expand Up @@ -690,6 +690,9 @@ configure_mqtt_client - Configures the local MQTT client and layout network node
node_identifier:str - The name to use for this node on the network (can be any string)
Optional Parameters:
mqtt_enhanced_debugging:bool - 'True' to enable additional debug logging (default = False)
publish_shutdown:bool - Publish a shutdown message on appication exit (default = False)
act_on_shutdown:bool - Make a callback if a shutdown message is received (default = False)
shutdown_callback - Callback to make on reciept of a shutdown message (default = None)

mqtt_broker_connect - Opens a connection to a local or remote MQTT broker
Returns whether the connection was successful or not (True/False)
Expand Down
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,17 @@ without some of the Raspberry-Pi specific interfacing functions).

![Example Screenshot](https://github.com/johnrm174/model-railway-signalling/blob/main/README_screenshot2.png)

## What's new for Release 4.0:
Configured / pre-installed systems are now available to purchase from:
[https://www.model-railway-signalling.co.uk/](https://www.model-railway-signalling.co.uk/)

* Application documentation in the form of a 'quick-start' guide (see below for link)
* 'Arrow keys' will 'nudge' objects in edit mode (or scroll canvas if nothing selected)
* 'Escape' key can be used to cancel 'in progress' object moves and area selections
* 'Cntl-r' will reset the main window to fit the specified canvas size (after user re-sizing)
* 'Cntl-m' is now the keyboard shortcut for toggling Edit/Run mode (for consistency)
* Improvements to layout load - errors/warnings simplified (no more spam messages)
* Text boxes - Ability to add/edit text boxes on the schematic to annotate the layout
* Canvas configuration - Ability to change the grid size and toggle 'snap-to-grid'
* Toggle signal automation - Be an active signalman or just watch the trains go by
* Signals can be overridden (to DANGER) on up to 3 track sections ahead
* Signals can be interlocked with up to 3 occupied track sections ahead
* Basic DCC Programming - 'one touch' and Configuration Variable (CV) programming
* Consolidation of library functions (deprecated library API functions removed)
## What's new for Release 4.1.0:

* Hidden files and folders now supressed in file load and save dialogs
* Network heartbeats and monitering to check the status of other network nodes
* Ability to trigger application shutdown of connected network nodes on application exit
* Support for the Pi-SPROG3 V2 DCC Programmer / Controller (higher baud rate)
* Quickstart guide updated to reflect settings changes for the Pi-SPROG3 V2
* BREAKING CHANGE - GPIO Ports 16 and 17 no longer selectable for track sensors
* Minor bugfixes and application enhancements to improve the overall user experience

Bug reports and feedback are welcome and appreciated:
Expand Down Expand Up @@ -60,10 +56,14 @@ The python package should be run as a module (note underscores):
<pre>
$ python3 -m model_railway_signals
</pre>
If required, a layout schematic can be loaded at startup
If required, a layout schematic can be loaded at startup:
<pre>
$ python3 -m model_railway_signals -f layout_file.sig
</pre>
If required, the logging level can be specified at startup (ERROR, WARNING, INFO or DEBUG)
<pre>
$ python3 -m model_railway_signals -f layout_file.sig -l DEBUG
</pre>

Documentation, in the form of a Quick-Start guide can be found in the 'user_guide' folder:
[https://github.com/johnrm174/model-railway-signalling/tree/main/user_guide](https://github.com/johnrm174/model-railway-signalling/tree/main/user_guide)
Expand Down
Loading

0 comments on commit 440ea9d

Please sign in to comment.