FHEM Forum

FHEM => English Corner => Thema gestartet von: Lectere am 17 November 2015, 07:31:11

Titel: unknown module MSG
Beitrag von: Lectere am 17 November 2015, 07:31:11
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'...
Titel: Antw:unknown module MSG
Beitrag von: fruit am 17 November 2015, 08:09:02
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 :(
Titel: Antw:unknown module MSG
Beitrag von: Lectere am 17 November 2015, 08:27:13
So... I use it, how should I write mails than?
Titel: Antw:unknown module MSG
Beitrag von: fruit am 17 November 2015, 08:59:33
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.
Titel: Antw:unknown module MSG
Beitrag von: marvin78 am 17 November 2015, 09:04:02
Well MSG ist deprecated for a long time now. And this was documented in the commandref. You can use MSGMail for sending mails.
Titel: Antw:unknown module MSG
Beitrag von: Lectere am 17 November 2015, 09:24:27
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?
Titel: Antw:unknown module MSG
Beitrag von: marvin78 am 17 November 2015, 09:54:04
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>
Titel: Antw:unknown module MSG
Beitrag von: Lectere am 17 November 2015, 10:00:37
that, and replace very occurance of MSG to the MsgMail one...