Imessage On Mac Games Github

A simple bridge between iMessage and Home Assistant's conversation component
app.js
constHomeAssistant=require('homeassistant');
constPino=require('pino');
constconfig=require('config');
consthass=newHomeAssistant(config.get('home_assistant'));
constimessage=require('osa-imessage');
constlogger=Pino();
// TODO package this better
constbridge={
handleMessage: function(sender,text){
logger.info(`from ${sender}: ${text}`);
hass.services._post('/conversation/process', null,{
text: text
})
.then(res=>{
imessage.send(sender,res.speech.plain.speech);
})
.catch(err=>{
logger.error(err);
imessage.send(sender,'Sorry, something broke');
});
}
}
imessage.listen().on('message',(msg)=>{
if(msg.fromMe){
logger.warn(`ignoring message from myself: ${msg.text}`);
return;
}
if( ! config.get('allowed_senders').includes(msg.handle)){
logger.warn(`ignoring message from unknown sender: ${msg.handle}: ${msg.text}`);
return;
}
bridge.handleMessage(msg.handle,msg.text);
});
config-slash-default.yaml
---
allowed_senders:
- 'me@example.com'
home_assistant:
host: 'http://<your home assistant host or ip>'
port: 8123
token: '<your home assistant token>'
package.json

Jul 18, 2016  GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. Sign up Getting iMessage to work in VMWare.

Install Github Mac

{
'name': 'imessage-home-assistant',
'version': '1.0.0',
'description': '',
'main': 'app.js',
'scripts': {
'start': 'node app.js',
'test': 'echo 'Error: no test specified' && exit 1'
},
'author': '',
'license': 'MIT',
'dependencies': {
'config': '3.0.1',
'homeassistant': '0.2.0',
'js-yaml': '3.12.1',
'osa-imessage': '2.4.2',
'pino': '5.11.1'
}
}

commented Feb 19, 2019
edited

Imessage On Mac Games Github Pc

Install github mac

This represents an hour of two of tinkering, so use at your own risk, but here's a simple proof of concept bridge between Home Assistant and iMessage.

Requirements

  1. Node and NPM
  2. An always-on Mac (or Hackintosh?)
  3. A second device that can use iMessage (an iPhone, iPad, or another Mac).

Setup

  1. Configure Home Assistant's conversation component to do something useful for some plain english input.
  2. Create a new Apple ID and sign into it with iMessage on the Mac.
  3. npm install; node app.js on that Mac.
  4. Text that new Apple ID using iMessage, and now you’re having a two-way conversation with your house, with tight Siri integration, from anywhere that has cell service, and without having to poke a hole in your firewall.

PS: The config file goes in config/default.yaml, but GitHub wouldn't let me include a slash in the name.

Imessage On Mac Games Github Update

commented Feb 21, 2019
edited

Thank you for posting this! I've extended this to include a REST notify service that I recently integrated in my setup. Let me know if you want me to post it.

Edit: Forked here

Imessage
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

weMessage is a unified messaging application that brings Apple’s iMessage to Android devices, without reverse engineering or exploits. In addition to being lightning fast and incredibly easy to setup, it comes loaded with many of iMessage's coveted features and even more!

Features:

  • Full support for iMessage group chats and direct messaging
  • SMS and MMS functionality
  • The ability to send image, audio, and video attachments
  • A comprehensive contact system that includes Contact Sync, Do Not Disturb, and Blocking
  • Customize names and photo icons for contacts and group chats
  • iMessage effects (Confetti, Fireworks, Invisible Ink)
  • Encryption (AES Cryptography)
  • Read Receipts

Setup & Contributing

In order to load the project, run:

Then, open the android folder inside Android Studio (from there it will load the other modules).

The weMessage source code is separated into four modules. Compilation instructions for the Android app and weServer are included in the README files of their perspective module folders.

If you have any ideas, language translations, design or user interface changes, code cleaning or refactoring, or improvements you would like to make, please feel free to contribute by submitting a pull request! Any help is welcome and greatly appreciated. If you want to help manage this repository or assisting with leading weMessage's development, please send an email to business@wemessageapp.com. If you would like to report a bug or submit a crash report, open a new issue.

Do note that the source code is largely undocumented. If you wish to add documentation to the source code, feel free to do so!


android is the Android implementation of the weMessage platform. It is the client side interface of the project, and sends messages to and receives messages from the weServer instance. It controls the user interface, stores the messages, and also serves as a standalone SMS and MMS messaging app.

server is the messaging server implementation for the weMessage platform. It processes and forwards iMessages sent from the weMessage app to the Mac host machine, and sends messages received on the Mac to the app. It is the 'bridge' between the user's Mac computer and Android device.

commons is a module that contains shared Java code between the weServer and weMessage application.

firebase is a module that contains code for some of the Firebase Cloud Functions, including version checking and sending notifications.

Donate

weMessage was created because of countless hours of hard work in my free time. If you like using weMessage or it has helped you, please consider donating! Any contribution is greatly appreciated. You can donate at https://wemessageapp.com/donate.

License

Imessage On Mac 10.6.8


weMessage is Free Software: You can use, study share and improve it at your will. Specifically you can redistribute and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.