Flint2 email notifications is it possible?

Hi,
Is it possible to get the flint2 to email me when it needs a firmware upgrade or for any other important events ?
thanks
Mike

Unfortunately not.

You can use GoodCloud for most important messages like WAN-down:

1 Like

I guess someone who knows what they're doing could write a plug-in for this of thing
But that's not me :smile:

It's possible if you can script.

The event system is like most of the linux distribution afaik.

That is under /etc/hotplug.d and then it categorizes which the event type is, you preferly want to write a script in /etc/hotplug.d/iface which triggers when a interface goes down or up.

Then you can read up some documentation for the mail client though i have no experience in them.

OpenWrt seems to have some documentation about mail-mini, but you can also try dovecot or postfix.

The idea is to first have a script running when that event happens and then you can invoke or source functions to a other script which sents the mail :slight_smile:

Just a small caution although i don't think it is super dangerous for this, but i gonna say it anyway:

Windows don't use LF endings, so if you use visual studio you need to set this, and the same counts for tabs and spaces you want them to be tabs although about the tabs this is more generally targeted when i was using uci-defaults in a compile environment OpenWrt listens very strict, likely a non issue on hotplug events :slight_smile:

But just in case if you ever gonna make your own images and touching uci-defaults that can easily brick routers :+1:

1 Like

I've worked out how to send an email from SSH, if I could check if a newer version of the firmware exists I could schedule a cronjob to test once a day.

OK I used gemini AI to write the checking bit for me , so now good to go I think !

2 Likes