Page 2 of 2

Re: Adding MySQL fields

Posted: Sun 20 Nov 2022 9:27 pm
by freddie
mcrossley wrote: Sun 20 Nov 2022 9:11 pm I was thinking about this one, and...
Q: When at start-up?
Before station initialisation.
After station initialisation, before catch-up
After station initialisation, after catch-up, before normal running (timers start)
After normal running

In the meantime, could you use the newly added start-up task to run a MySQL command? That would be run at option one above, Before station initialisation.
(Replying with the assumption that you were addressing my static data request).
As soon as Cumulus.ini has been read. I use two "static" tables - one for site data (lat, long, altitude, station name, records began date) and one for station data (station type, log interval, realtime interval, interval graph length, daily graph length, rollover time, the various units of measurement, cumulus version and build, forum url, webcam url) - and I think all of this is available once Cumulus.ini has been read. I could use the startup task provided it will run after Cumulus.ini has been read - which I think it will as this is where the switch for the startup task is kept :)

Thanks for including this functionality - it looks useful.