Problem saving scripts


 

TonyArbuckle

New member
Hey all,

I started playing with scripting tonight. I found that I couldn't save multiple scripts, saving a second script would wipe out the previously saved script. I'm clear on the fact that I can't update multiple script fields at once, so I have been pasting a script into Probe 0 Low, hitting submit, confirming that the script is there and working. Then and only then do I attempt to save a script to Probe 0 High, hit submit and it saves the Probe 0 High script but clears the Probe 0 Low.

Is this expected behavior, only one script allowed at a time?

Thanks,
tony
 
Thanks for checking Steve. I'm not much of a linux hand, but I'll putty into my pi later tonight and see if anything obvious happens in the file system when the submit operation occurs.
 
So I puttied into /usr/share/linkmeter, saw that alarm, alarm-0H, email.txt and user.css exist for me in that directory. The contents of alarm-0H match the script that I pasted into the web GUI and submitted. I added a new script to probe 0 Low through the web GUI. The alarm-0H was gone and replaced by alarm-0L with the script that I had entered.

Okay, now manually copy alarm-0L to alarm-0H through 3H. Refresh the alarm scripts page in the web GUI. all scripts show up. Edit one of them and hit submit. Clears all but the last one edited. Check the filesystem and all the files are gone except the last one edited.

Anyway, no big deal. I can write the files directly over ssh, change file permissions to executable to enable each alarm and have the full functionality. Just wanted to document what I saw for anyone trying to do the same.
 
Last edited:
Does anyone know if its possible to change max fan % from script?

I tried lmclient LMST,fmax,10 and straight up fmax=10 without luck.
 
Steve_M, you are in fact the man! thanks, I was stuck on using fmax from the alarm recipes list of variables. I almost missed the double comma, but realized after the first fail and it worked perfectly.
 

 

Back
Top