openhab-cloud | Cloud companion for openHAB instances | Continuous Deployment library
kandi X-RAY | openhab-cloud Summary
kandi X-RAY | openhab-cloud Summary
openHAB Cloud is a companion cloud service and backend for the openHAB open-source home automation software. The openHAB Cloud backend provides secure remote access and enables openHAB users to remotely monitor, control and steer their homes through the internet, collect device statistics of their openHABs, receive notifications on their mobile devices or collect and visualize data etc. The main core features of openHAB Cloud are an user-management frontend, secure remote access, remote proxy-access, device registry & management, messaging services and data management & persistence. The openHAB Cloud also serves as core backend integration point for cloud-based features (e.g. IFTTT) and provides an OAuth2 application enablement.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- watch next slot
- Go to the next carousel
- function to animate screenshots
- Initialize Sequence
- Show the carousel behind .
- Update bullet positions
- Initialize the UI elements
- resize image
- Resize image loading
- Hides the heading for a container .
openhab-cloud Key Features
openhab-cloud Examples and Code Snippets
Community Discussions
Trending Discussions on openhab-cloud
QUESTION
It looks like the line below emit 'request' event, supposedly there's callback function to handle the 'request' event. However, I cannot find location of that callback. Can you help for that?
Thank you.
[project] https://github.com/openhab/openhab-cloud
[file] app.js
[line] io.sockets.in(req.openhab.uuid).emit('request', {
[reference] var io = require('socket.io').listen(server, { logger: logger });
...ANSWER
Answered 2017-Jun-29 at 22:51This block of code that you link to here:
QUESTION
On another terminal, $curl localhost:3001
However, on nodejs server side,
I never saw
"sdfsdf"
for
ANSWER
Answered 2017-Jun-30 at 01:21To connect to a socket.io server, you must use a socket.io client - you cannot just use a regular curl or http request.
A socket.io client must be specifically designed to connect to a socket.io server. That means it uses the socket.io message format on top of webSocket and it follows the proper convention that socket.io and webSocket use for connecting.
Here are some client-side examples: https://socket.io/docs/client-api/
The connection can be made either from browser Javascript with the appropriate socket.io library included or using any socket.io client-side library from some other Javascript environment.
To see a bit how webSocket connections (which socket.io uses), you may want to read this: How does WebSockets server architecture work?. And then, socket.io adds its own message layer on top of webSockets.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install openhab-cloud
Node.js - Server-side Javascript-framework
Express.js - Web application framework for Node.js
Nginx - Web server & reverse proxy
MongoDB - NoSQL database
redis - Session Manager & data structure server
Socket.IO - Bi-directional communication between web clients and servers
To install openHAB Cloud in the AWS cloud, you first need to create an account at Amazon Web Services. Sign up for an AWS account here. When you have created an account, you should be able to navigate to the the AWS Management Console which is a simple web interface for managing your virtual server instances. Make sure that your account has access to EC2 and click on Services -> EC2 link to open the EC2 dashboard.
As mentioned before select EC2 (Amazon’s Elastic Compute Cloud) from the list of services:
In the menu bar, on the right corner you will find an item labelled “Region”: Click to select your nearest region or chose a preferred region where you want to locate your virtual server. We will use the AWS Free Tier, which includes services with a free tier available for 12 months following your AWS sign-up date. AWS cost varies between regions (be aware that is only free for the first year).
After choosing your region click the blue “Launch Instance” button:
Select an Amazon Machine Image (AMI) as base for openHAB Cloud node: The AMI is a template that contains the virtual server software configuration (operating system, application server, and applications) required to launch your instance. You can select an Amazon AMI, from the user community or you can select one of your own AMIs.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page