Code Monkey home page Code Monkey logo

pimatic-mail's Introduction

pimatic

Build Status NPM version Mentioned in Awesome SmartHome

This project is no longer maintained!

pimatic is a home automation framework that runs on node.js. It provides a common extensible platform for home control and automation tasks.

Read more at pimatic.org or visit the forum.

Join the chat at https://gitter.im/pimatic/pimatic

Screenshots

Screenshot 1 Screenshot 2 Screenshot 3 Screenshot 4

Getting Started

Installation instructions can be found on pimatic.org. If you need any help, please ask at the forum.

Donation

Happy with pimatic and using it every day? Consider a donation to support development and keeping the website and forum up: PayPal donate button

We promise, that pimatic will always be free to use and its code be open sourced.

Get Involved

pimatic is your opportunity to contribute to a growing OpenSource-Project.

Architecture Overview

+-------------------------------------------+
| mobile-  | rest- | cron | homeduino | ... |  Plugins (Views, Device-/Preidcates-
| frontend | api   |      |           |     |  Action-Provider, Services)
|-------------------------------------------|
| pimatic (framework)                       |  Framework
|-------------------------------------------|
| rule   | device    | (core)     | (core)  |  Model
| system | schemata  | predicates | actions |
|-------------------------------------------|
| node.js (non-blocking, async IO,          |  Low-Level Infrastructure
| event-loop, v8)                           |
+-------------------------------------------+

Extensions and Hacking

The framework is built to be extendable by plugins. If you have devices that are currently not supported please add a plugin for your devices. As well, if you have nice ideas for plugins or need support for special devices you are welcome to create an issue or submit a patch.

For plugin development take a look at the development guide and plugin template.

Feel free to ask development questions at the plugin template repository.

Copyright / License

Copyright (C) 2014-2019 Oliver Schneider <[email protected]>
and contributors


pimatic is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

pimatic is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with pimatic.  If not, see <http://www.gnu.org/licenses/>.

pimatic-mail's People

Contributors

mwittig avatar sweetpi avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pimatic-mail's Issues

Without Login

Is it possible to send mails with this plugin without login?

All recipients were rejected

error [pimatic]: Error on evaluation of rule condition of rule pimatic-config-backup-e-mail: Can't send mail - all recipients were rejected

After upgrade to node.js V4.9.1 not working anymore (TypeError: tls.convertNPNProtocols is not a function)

16:29:40.020 [pimatic] error: An uncaught exception occurred: TypeError: tls.convertNPNProtocols is not a function
16:29:40.020 [pimatic] error:>    at Object.TLSSocket._init.ssl.onclienthello.ssl.oncertcb.exports.connect (_tls_wrap.js:1018:7)
16:29:40.020 [pimatic] error:>    at SMTPClient._upgradeConnection (/home/pi/pimatic-app/node_modules/pimatic-mail/node_modules/nodemailer/node_modules/simplesmtp/lib/client.js:250:23)
16:29:40.020 [pimatic] error:>    at SMTPClient._actionSTARTTLS (/home/pi/pimatic-app/node_modules/pimatic-mail/node_modules/nodemailer/node_modules/simplesmtp/lib/client.js:789:10)
16:29:40.020 [pimatic] error:>    at SMTPClient._onData (/home/pi/pimatic-app/node_modules/pimatic-mail/node_modules/nodemailer/node_modules/simplesmtp/lib/client.js:354:29)
16:29:40.020 [pimatic] error:>    at emitOne (events.js:77:13)
16:29:40.020 [pimatic] error:>    at Socket.emit (events.js:169:7)
16:29:40.020 [pimatic] error:>    at Socket.emit (/home/pi/pimatic-app/node_modules/pimatic/startup.coffee:63:24)
16:29:40.020 [pimatic] error:>    at readableAddChunk (_stream_readable.js:153:18)
16:29:40.020 [pimatic] error:>    at Socket.Readable.push (_stream_readable.js:111:10)
16:29:40.020 [pimatic] error:>    at TCP.onread (net.js:540:20)
16:29:40.020 [pimatic] error:> This is most probably a bug in pimatic or in a module, please report it!

rule errors

I'm getting following errors:
error [pimatic]: Error on evaluation of rule condition of rule sendmail: __ is not defined error [pimatic]: rule sendmail error executing an action: __ is not defined

Rule:
"rules": [ { "id": "sendmail", "name": "SendTestmail", "rule": "when relais-2 is turned on then send mail", "active": true, "logging": true } ],

mail config:
"plugin": "mail", "transport": "sendmail", "transportOptions": { "host": "mail.smtp.com", "port": "465", "secureConnection": true, "requiresAuth": true, "auth": { "user": "[email protected]", "pass": "*************" } }, "from": "[email protected]", "to": "[email protected]", "active": true

Sending an email fails: error executing an action: spawn ENOENT

When I setup an email rule in pimatic, like the one shown in the example. I get the following error:
'error executing an action: spawn ENOENT' at the moment an email had to be sent.

I am using:
pimatic version 0.8.66
"pimatic-mail" (0.8.3)
nodemailer 1.3.4
Linux raspberrypi 3.18.7+ #755 PREEMPT Thu Feb 12 17:14:31 GMT 2015 armv6l GNU/Linux

Am I missing a dependency?

Attachment not complete

I am trying to use a rule to send an email including an attached image. I receive the image at the target email address, however it is only 1kb and cannot be opened.

Rule: send mail to:"address" subject:"topic" text:"some text" file:"/home/pi/webcam/image.jpg"

At the moment I can't any send any email with an attachment due to error: ECONNRESET
I assume the connection gets closed before the attachment has been transferred.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.