Script to adjust scheduled events?

This section covers the Meteobridge PRO, NANO SD and Raspberry Pi units exclusively

Moderator: Mattk

Post Reply
mcl1981
Fresh Boarder
Fresh Boarder
Posts: 10
Joined: Sun Mar 08, 2020 2:46 pm

Script to adjust scheduled events?

Post by mcl1981 »

Hi all. Is there a way (perhaps with a script?) to programmatically adjust scheduled events? For example, I have a "every 5 minutes" event that writes wx data to a mySQL server, which is also used on a public facing website. I would like to script something that will increase the schedule to every minute or every 30 seconds during severe weather such as high wind. Then roll back to 5 minutes in calm conditions.

azchrisf
Senior Boarder
Senior Boarder
Posts: 40
Joined: Thu Aug 17, 2017 5:30 am

Re: Script to adjust scheduled events?

Post by azchrisf »

If Boris is using Cron, then I think yes you could write a script to do it but you would need to be versed in shell scripting and also reading the current values.

User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 6631
Joined: Mon Oct 01, 2007 10:51 pm

Re: Script to adjust scheduled events?

Post by admin »

no cron here.

Post Reply