Page 1 of 1
Missing alarm status
Posted: Sun 04 Aug 2013 11:37 am
by Apagett
I keep on entering alarm states for the various options but whenever I restart Cumulus or my PC they all set to 'off' and 'zero'
Any ideas please?
Re: Missing alarm status
Posted: Sun 04 Aug 2013 12:18 pm
by steve
Do the settings 'take' before you restart Cumulus - are the settings still there if you just close the window and open it again?
Try setting them again, and then copy and paste the [Alarms] section from cumulus.ini. Please also zip up the diags folder and attach it.
Re: Missing alarm status
Posted: Sun 04 Aug 2013 12:32 pm
by beteljuice
Are you editing the .ini with Cumulus running ?
Re: Missing alarm status
Posted: Tue 06 Aug 2013 10:07 pm
by Apagett
My alarm settings from cumulus.ini
I am not sure where all the extra digits come from (eg alarmlowtemp= -12.1)
[Alarms]
alarmlowtemp=-12.1000003814697
LowTempAlarmSet=1
LowTempAlarmSound=1
LowTempAlarmSoundFile=C:\Cumulus\alert.wav
alarmhightemp=35.4000015258789
HighTempAlarmSet=1
HighTempAlarmSound=1
HighTempAlarmSoundFile=C:\Cumulus\alert.wav
alarmtempchange=0
TempChangeAlarmSet=0
TempChangeAlarmSound=0
TempChangeAlarmSoundFile=C:\Cumulus\alert.wav
alarmlowpress=950.299987792969
LowPressAlarmSet=1
LowPressAlarmSound=1
LowPressAlarmSoundFile=C:\Cumulus\alert.wav
alarmhighpress=1041.5
HighPressAlarmSet=1
HighPressAlarmSound=1
HighPressAlarmSoundFile=C:\Cumulus\alert.wav
alarmpresschange=0
PressChangeAlarmSet=0
PressChangeAlarmSound=0
PressChangeAlarmSoundFile=C:\Cumulus\alert.wav
alarmhighraintoday=0
HighRainTodayAlarmSet=1
HighRainTodayAlarmSound=1
HighRainTodayAlarmSoundFile=C:\Cumulus\raining.wav
alarmhighrainrate=0
HighRainRateAlarmSet=0
HighRainRateAlarmSound=0
HighRainRateAlarmSoundFile=C:\Cumulus\alert.wav
alarmhighgust=37.4000015258789
HighGustAlarmSet=1
HighGustAlarmSound=1
HighGustAlarmSoundFile=C:\Cumulus\alert.wav
alarmhighwind=0
HighWindAlarmSet=0
HighWindAlarmSound=0
HighWindAlarmSoundFile=C:\Cumulus\alert.wav
SensorAlarmSet=1
SensorAlarmSound=1
SensorAlarmSoundFile=C:\Cumulus\alert.wav
Re: Missing alarm status
Posted: Tue 06 Aug 2013 10:21 pm
by sfws
Computers store numbers in binary - for our decimals (like your -12.1) there is not an exact binary equivalent. Equally for a stored binary number, with bits representing a fraction of one binary unit, conversion back to decimals for display to you appears to generate lots of extra decimal places.
Re: Missing alarm status
Posted: Wed 07 Aug 2013 2:32 am
by uncle_bob
Could also be that Cumulus isn't running as Administrator (and can't file to the .ini file due to permissions).
Re: Missing alarm status
Posted: Wed 07 Aug 2013 6:59 am
by steve
It's writing the values to cumulus.ini OK, so it's presumably not a permissions problem. I pasted your settings into my cumulus.ini, and the values displayed correctly, and an alarm actually went off. So I'm afraid I have no idea what it is about your system that would stop it reading the values back in again. It's apparently reading other settings correctly.
I do notice that it's using those long decimal values when it displays the values again, and it should round them. I'll fix that, but I don't think that can anything to do with your problem. The edit controls I use on that screen have caused problems on a very few systems, and I've replaced them elsewhere in Cumulus, so I should really do the same with the alarms screen. That might be the problem in your case, but the usual symptoms are that the values can't be entered correctly in the first place, and yours work OK until you restart, so I think it unlikely that's the problem. You didn't answer my question - do the values appear again if you open the settings window before restarting Cumulus?
One thought occurs to me, that there might be a problem in your cumulus.ini file with the settings that it reads before the alarm settings, which might stop it going on to read the alarm settings. I'd need a copy of your cumulus.ini file to investigate that; if there are no passwords in it, you could just zip it and attach it here, otherwise you could send it to me by PM. Normally I would ask people to send a copy with passwords edited out, but I really need the file to be intact in this case.