Home > Forum > SlimLine (Raspberry) > Monitoring with e-mail sending
- This topic has 1 replies, 2 participants and was last updated 4 years, 6 months ago da Sergio Bertana.
-
AuthorPost
-
October 15, 2019 at 12: 37 pm #50211AuthorlessIdle
I saw on the site that you sell solutions with HW Raspberry Pi, I have a request from a customer who asked to be able to monitor through two inputs:
1) the voltage of a battery and in case it falls below a threshold send an email via network
2) an on / off contact and also here in case of switching from on / off or vice versa send an emailAnd then have a web page that allows you to view these data and in the future, I thought I would handle it via Python,
The vs. solution allows you to manage programmatically in custom mode? or should I use the pre-installed software?
October 15, 2019 at 12: 52 pm #50213Sergio BertanaAdministrator ForumTo do what you need in addition to the form CPU SlimLine Raspberry, you need an extension module Mixed I / O to acquire the battery voltage analog input and the control digital input.
It is possible to manage the extension modules through a dynamic library .so callable from C ++ and Python, although my advice is to implement the I / O management program in IEC61131 using the development environment LogicLab.
For data exchange between the LogicLab environment and the Python program you can do it using a TCP communication in localhost. Since you mention the possibility of having a web page why not use Node-RED instead of Python? (See example).
If you use an SNMP server on a local network without connection in TSL you can do everything you need using the module only CPU SlimLine CortexM7 which already has on board 2 analogue inputs and 2 digital inputs. It has the HTTP server for any web pages and with the FB EMailSend you can send the email.
PS. All programs developed on CPU Cortex M7 can also be run on the CPU module SlimLine Raspberry in competition with any other C ++ application, Python, Node-RED, etc.
-
AuthorPost
- You must be logged in to reply to this topic.