unknown module MSG

Begonnen von Lectere, 17 November 2015, 07:31:11

Vorheriges Thema - Nächstes Thema

Lectere

I'm busy migrating FHEM from a old Raspi to a new one.

Copied the old config file to the new one, and a lot of things stopped working for me. Fhem web is not able to run in https see other thread on this forum, and sending mail does not work anymore; in the logfile I get 'unknown module MSG', again when I try to search for information I only get it in german;

Zitat
msg

msg [<type>] [<@device>|<e-mail address>] [<priority>] [|<title>|] <message>

No documentation here yet, sorry.
FHEM Forum

Again I'm busy for DAYS and DAYS to get FHEM working because of poor documentation, and the things I do are really not that rare. The link there goes to a forum, which is only in German...

Apperntly things just changed, without the documentation updated, so far for German 'Pünktlichkeit'...
SMSPassword redundant two-factor authentication for Netscaler, Vmware View, Cisco, Juniper, etc via SMS

http://www.smspassword.com

fruit

There has been a lot of discussion about this, it does help to scan the forum regularly.

The MSG module has been replaced - as obsolete. I haven't taken much notice as I don't use it.
ZitatNo documentation here yet, sorry.
That is unfortuante , I noticed it too.
Zitatwhich is only in German...
A problem for others too but that's the way it is.
Unfortunately google translate can sometimes be more of a hindrance than help :(
Feel free to follow up in German if you prefer

Lectere

So... I use it, how should I write mails than?
SMSPassword redundant two-factor authentication for Netscaler, Vmware View, Cisco, Juniper, etc via SMS

http://www.smspassword.com

fruit

I believe, from my very brief look at some of the threads in the recent past, that the replacement allows for sending messages using a number of different methods, not just mail, one reason that it was considered an improvement - but I could be wrong :)

Hopefully someone with more knowledge of its usage will be along soon.
Feel free to follow up in German if you prefer

marvin78

Well MSG ist deprecated for a long time now. And this was documented in the commandref. You can use MSGMail for sending mails.

Lectere

I had;

define myMsg MSG
define myMail MSGMail mail@mail.com mail@mail.com smtp.gmail.com /home/pi/maf
attr myMail CR 0
attr myMail authfile /home/pi/maf


And that was working, what should it be now? How can I make it working again?
SMSPassword redundant two-factor authentication for Netscaler, Vmware View, Cisco, Juniper, etc via SMS

http://www.smspassword.com

marvin78

#6
There is no MSG Device necessary. You only need the MSGMail Device. This was mentioned in the commandref for a long time in the documentation of MSG module. MSG is deprecated for this long time now.

It seems like you only need to delete the MSG Device (myMsg) and everything works fine (commandref).

define <name> MSGMail <from> <to> <smtphost> <authfile>

Lectere

that, and replace very occurance of MSG to the MsgMail one...
SMSPassword redundant two-factor authentication for Netscaler, Vmware View, Cisco, Juniper, etc via SMS

http://www.smspassword.com