hamishmb wrote: ↑30/09/2019, 16:53We could just have the ID as "NAS" and I don't mind what the hostname is.
NAS It is and the hostname is nasbox.
hamishmb wrote: ↑30/09/2019, 16:53It won't need a socket ID or port number, but Sump Pi will do eventually - the NAS box will eventually be the thing that dictates the reading interval and tick etc.
I've allocated SOCK2 as the socket ID and 30002 as the Port Number.
I'll publish the Software Design Spec on the Fileserver in due course. I want to include the algorithms for the Lady Hanham and Stage Butts segments when you are ready.
Last edited by TerryJC on 30/09/2019, 17:07, edited 1 time in total.
I just had a quick go at running the river control system software on the NAS box, in case there are any glaring issues. It seems to be fine, apart form I need to get the python library for database access installed. It needs to be compiled as there's a C extension, so that'll be fun
I just checked to see if my 1 TB drive can be used with a 500 GB drive in RAID 1 with our NAS box, and it turns out it can, so it will work as a spare once I no longer need it. Apparently the remaining capacity on the larger drive would be formatted as a JBOD disk, which we could just ignore.
After this afternoon's Video Conference we came to the following decisions:
The System Tick value would be generated by the NAS Box and sent to all the Pis in the system.
At the same time the System Tick and the 'master' System Time would be recorded in the 'System Tick' Table.
If for some reason the NAS Box went down, then the NAS Box would determine the new value of Tick to start incrementing from, by looking at the last Tick value in the 'System Tick' Table.
Pis (such as the SUMP, G4, etc), would send their latest readings to the database, together with the time from the local clock (eg the 'Measurement Time').
At the same time each Pi would record the latest readings to the database, together with the time from the local clock on the SD Card as they do now.
The 'System Status Table' would always show the current status of each device.
The 'System Event Log' would record events for each device in chronological order as the logfiles do currently.
The 'Control Tables' would record the state of the valves and pumps at any given time.