PDA

View Full Version : Email setup for Profilux4 Sockets



Vega77
06.11.2017, 07:03
Its nice to get periodic email with the status of the sockets.

But is there posible to get the discription for the sockets in the email as well ?
And the current that each socket is using ?
And is there possible to get the status for all sockets ? I have 23 sockets :D

Something like this:

S 1 : On returnpump 0.3A

The message i recive now:


Profilux4 Sockets


S 1 : On
S 2 : On
S 3 : On
S 4 : Off
S 5 : On
S 6 : On
S 7 : On
S 8 : On
S 9 : On
S10 : On
S11 : On
S12 : On
S13 : On
S14 : On
S15 : On
S16 : Off
S17 : On
S18 : Off
S19 : Off
S20 : Off
S21 : On
S22

Bstohrer
06.11.2017, 18:02
Its nice to get periodic email with the status of the sockets.

But is there posible to get the discription for the sockets in the email as well ?
And the current that each socket is using ?
And is there possible to get the status for all sockets ? I have 23 sockets :D

Something like this:

S 1 : On returnpump 0.3A

The message i receive now:

Yes, below is what I receive via e-mail for sockets. I could not get the "loop" function to work, so I had to code each socket. I also was unable to get values for amps. Maybe these bugs are fixed in the most recent update. I'll give the loop and amps a try again when I get time and will post if successful.

VSV Off
Ca Rev. Off
Heater 1 Off
Heater 2 Off
CaOH ATO Off
180 return On
55 return On
Refugium light On
Fan On
CO2 On
รพ

Coding:

$$SWID[0]$$ $$SWIS[0]$$
$$SWID[1]$$ $$SWIS[1]$$
$$SWID[2]$$ $$SWIS[2]$$
$$SWID[3]$$ $$SWIS[3]$$
$$SWID[4]$$ $$SWIS[4]$$
$$SWID[5]$$ $$SWIS[5]$$
$$SWID[6]$$ $$SWIS[6]$$
$$SWID[7]$$ $$SWIS[7]$$
$$SWID[8]$$ $$SWIS[8]$$
$$SWID[9]$$ $$SWIS[9]$$

Best Regards, Bob

Bstohrer
06.11.2017, 18:06
Its nice to get periodic email with the status of the sockets.

But is there posible to get the discription for the sockets in the email as well ?
And the current that each socket is using ?
And is there possible to get the status for all sockets ? I have 23 sockets :D

Something like this:

S 1 : On returnpump 0.3A

The message i recive now:



I used this attached document for coding. note it could be outdated.

Bob

9740

JayHoe
06.11.2017, 22:20
I didn't know anything about that docment and just had some basic stuff setup. I have now messed with it and it seems to work but the email length (not just the legth in GCC is quite limiting. So I have several emails:

1. Switch states

Switch states on $$DATE$$ at $$TIME$$

$$REPS[10][2]$$ $$SWID[x]$$ : $$SWIS[x]$$
$$REPE$$

2. Probe values

Probe Values on $$DATE$$ at $$TIME$$

$$REPS[5][0]$$ $$SENN[x]$$ : $$SENV[x]$$
$$REPE$$


3. Alarms (incl probe values)
* * * A L A R M - $$DATE$$ at $$TIME$$ * * *

$$REPS[10][5]$$ Alarm $$LCTR$$: $$ALMS[x]$$
$$REPE$$

$$REPS[5][0]$$ $$SENN[x]$$ : $$SENV[x]$$
$$REPE$$

I have a duplicate of the switches email set to also send in the event of an alarm so I should get alarms, probes and switches in the event of an alarm.

OzFisho
23.11.2017, 10:30
Thanks very much for the coding document Bstohrer. It is very useful. I can now get much more useful information from my emails on P4.


:o :o :o