Discussions

Ask a Question

the devicehive start error,when dock-compose restart

the devicehive start error with the system log like this: Jun 13 23:14:19 localhost.localdomain dockerd-latest[1387]: 2018-06-14 03:14:19.690 [main] INFO com.devicehive.proxy.AuthProxyClient - Ping WebSocket Proxy Server attempt 1 Jun 13 23:14:22 localhost.localdomain dockerd-latest[1387]: 2018-06-14 03:14:22.633 [main] WARN c.devicehive.proxy.PluginProxyClient - WebSocket Proxy Server didn't respond to ping request Jun 13 23:14:22 localhost.localdomain dockerd-latest[1387]: 2018-06-14 03:14:22.633 [main] INFO c.devicehive.proxy.PluginProxyClient - Ping WebSocket Proxy Server attempt 2 Jun 13 23:14:22 localhost.localdomain dockerd-latest[1387]: 2018-06-14 03:14:22.691 [main] WARN com.devicehive.proxy.AuthProxyClient - WebSocket Proxy Server didn't respond to ping request Jun 13 23:14:22 localhost.localdomain dockerd-latest[1387]: 2018-06-14 03:14:22.691 [main] INFO com.devicehive.proxy.AuthProxyClient - Ping WebSocket Proxy Server attempt 2 Jun 13 23:14:25 localhost.localdomain dockerd-latest[1387]: 2018-06-14 03:14:25.634 [main] WARN c.devicehive.proxy.PluginProxyClient - WebSocket Proxy Server didn't respond to ping request Jun 13 23:14:25 localhost.localdomain dockerd-latest[1387]: 2018-06-14 03:14:25.634 [main] INFO c.devicehive.proxy.PluginProxyClient - Ping WebSocket Proxy Server attempt 3 Jun 13 23:14:25 localhost.localdomain dockerd-latest[1387]: 2018-06-14 03:14:25.693 [main] WARN com.devicehive.proxy.AuthProxyClient - WebSocket Proxy Server didn't respond to ping request Jun 13 23:14:25 localhost.localdomain dockerd-latest[1387]: 2018-06-14 03:14:25.693 [main] INFO com.devicehive.proxy.AuthProxyClient - Ping WebSocket Proxy Server attempt 3 Jun 13 23:14:28 localhost.localdomain dockerd-latest[1387]: 2018-06-14 03:14:28.635 [main] WARN c.devicehive.proxy.PluginProxyClient - WebSocket Proxy Server didn't respond to ping request Jun 13 23:14:28 localhost.localdomain dockerd-latest[1387]: 2018-06-14 03:14:28.635 [main] INFO c.devicehive.proxy.PluginProxyClient - Ping WebSocket Proxy Server attempt 4 Jun 13 23:14:28 localhost.localdomain dockerd-latest[1387]: 2018-06-14 03:14:28.694 [main] WARN com.devicehive.proxy.AuthProxyClient - WebSocket Proxy Server didn't respond to ping request Jun 13 23:14:28 localhost.localdomain dockerd-latest[1387]: 2018-06-14 03:14:28.694 [main] INFO com.devicehive.proxy.AuthProxyClient - Ping WebSocket Proxy Server attempt 4 Jun 13 23:14:31 localhost.localdomain dockerd-latest[1387]: 2018-06-14 03:14:31.636 [main] WARN c.devicehive.proxy.PluginProxyClient - WebSocket Proxy Server didn't respond to ping request Jun 13 23:14:31 localhost.localdomain dockerd-latest[1387]: 2018-06-14 03:14:31.636 [main] INFO c.devicehive.proxy.PluginProxyClient - Ping WebSocket Proxy Server attempt 5 Jun 13 23:14:31 localhost.localdomain dockerd-latest[1387]: 2018-06-14 03:14:31.696 [main] WARN com.devicehive.proxy.AuthProxyClient - WebSocket Proxy Server didn't respond to ping request Jun 13 23:14:31 localhost.localdomain dockerd-latest[1387]: 2018-06-14 03:14:31.696 [main] INFO com.devicehive.proxy.AuthProxyClient - Ping WebSocket Proxy Server attempt 5 Jun 13 23:14:34 localhost.localdomain dockerd-latest[1387]: 2018-06-14 03:14:34.637 [main] WARN c.devicehive.proxy.PluginProxyClient - WebSocket Proxy Server didn't respond to ping request Jun 13 23:14:34 localhost.localdomain dockerd-latest[1387]: 2018-06-14 03:14:34.637 [main] INFO c.devicehive.proxy.PluginProxyClient - Ping WebSocket Proxy Server attempt 6 Jun 13 23:14:34 localhost.localdomain dockerd-latest[1387]: 2018-06-14 03:14:34.697 [main] WARN com.devicehive.proxy.AuthProxyClient - WebSocket Proxy Server didn't respond to ping request

Multi Tenancy

Hi, I'm curious whether you took multi tenancy into account in DH. Is there a way to e.g. define groups of users connected to the system? Another questions I'm asking myself is: How would apps, 1) maybe installed via an app store (is there one integrated?) be automatically deployed 2) also with MT in mind, how do the apps integrate and access data Thanks Michael

Plugin cassandra

Hello , docker-compose does not want to run any solution please ? [email protected] start /usr/src/app plugin_1 | > node ./plugin/index.js plugin_1 | plugin_1 | Plugin is starting plugin_1 | /usr/src/app/node_modules/devicehive-plugin-core/src/PluginCore.js:21 plugin_1 | request(options, (err, response, body) => err || body.error ? reject(err || body.message) : resolve(body)); plugin_1 | ^ plugin_1 | plugin_1 | TypeError: Cannot read property 'error' of undefined

Devicehive locally configuration issue :

I am trying to set up device hive locally through docker-compose . Steps that i have followed are: 1. Docker & docker-compose both installed 2. git clone done for the official device hive . 3. have made changes in docker-compose.yml - admin_panel: build: ./devicehive-admin-console/Docker ports: - "9000:8080" 1. have downloaded the admin-console and made changes in the docker file(devicehive-admin-console --> docker folder) FROM nginx:alpine MAINTAINER devicehive #installing devicehive admin console RUN apk add --no-cache curl \ && mkdir -p /opt/devicehive/admin \ && cd /opt/devicehive/admin \ && curl -L "https://github.com/devicehive/devicehive-admin-console/archive/stable.tar.gz" | tar -xzf - --strip-components=1 \ && sed -i -e 's/authRestEndpoint.*/authRestEndpoint: location.origin + \"\/auth\/rest\"\,/' /opt/devicehive/admin/scripts/config.js \ && sed -i -e 's/restEndpoint.*/restEndpoint: location.origin + \"\/api\/rest\"\,/' /opt/devicehive/admin/scripts/config.js \ && apk del curl COPY admin-start.sh /opt/devicehive/ COPY nginx.conf /etc/nginx/nginx.conf WORKDIR /opt/devicehive/ EXPOSE 8080 ENTRYPOINT ["/bin/sh"] CMD ["./admin-start.sh"] 2. my nginx.conf file looks like error_log /dev/stdout info; events { worker_connections 60000; } http { access_log /dev/stdout; tcp_nodelay on; tcp_nopush on; include /etc/nginx/mime.types; default_type application/octet-stream; gzip on; gzip_http_version 1.0; gzip_proxied any; gzip_min_length 500; gzip_disable "MSIE [1-6]\."; gzip_types text/plain text/xml text/css text/comma-separated-values text/javascript application/x-javascript application/atom+xml; server { listen 8080; port_in_redirect off; location /admin { sendfile on; root /opt/devicehive; index index.html; } location /api/rest/token { proxy_redirect off; proxy_pass http://localhost:80/api/rest/token; proxy_http_version 1.1; proxy_set_header Connection "upgrade"; } location /api/ { proxy_redirect off; proxy_pass http://localhost:80/api/; proxy_http_version 1.1; proxy_set_header Connection "upgrade"; } location /auth/ { proxy_redirect off; proxy_pass http://localhost:80/api/; proxy_http_version 1.1; proxy_set_header Connection "upgrade"; } } } Note : The admin-console is opening in http://localhost:9000/admin/ but not able to log in with the following credentials , user name : dhadmin password:dhadmin_#911 Many Thanks Subhro

Save device and notification mqtt

Hello , i want save device with mqtt api , after save new device it shows me that the request went well except that I do not see the device in the admin ! and other problem ,r when I want to insert a notification for a device he tells me that there is no device with this identifier while there is

MQTT in docker

I performed the steps outlined for docker-compose and it looks like MQTT container is running on port 1883. I was trying to use MQTT.fx client just to test if I can connect but it fails to connect. Is this normal? Do I need to have the access token just to connect to the server?

display real-time device information

Hello , is it possible with your solution to create an application in angular that can display real-time device information ? Thank you
ANSWERED

devicehive-proxy version3.4.5 keep restarting

I setup devicehive server on Linuxmint 17.3 64-bit (based on Ubuntu trusty) using devicehive-docker version 3.4.5 After downloading finished all containers run normally except devicehive-proxy which keep restarting every couple of seconds. However, devicehive-docker version 3.4.3 work fine on the same machine. Please help. Thanks. kkan

i burn esp m3 with devicehive

how can i start after burn? device not started... How pins connect to GND and VCC?

Setup problem with docker-compose

Hi, I setup Devicehive on a Ubuntu 16.04 VM using docker-compose. All containers seem to be up and running. However, when accessing my-devicehive-host-url/admin url I get a "Oops! Something went wrong on server!". Looking into the error in more detail I noticed: Uncaught TypeError: app.parseJwt is not a function at G.d.initialize (JwtToken.js:29) jQuery.Deferred exception: app.Models.OAuthConfig is not a constructor TypeError: app.Models.OAuthConfig is not a constructor Uncaught TypeError: app.Models.OAuthConfig is not a constructor at r.Application.<anonymous> (application.js:115) Is there something that I m doing wrong? FYI, I had a previous version (docker standalone) up and running without problems. I now wanted to move the new version of the DeviceHive platform. Thanks, Yannis

Device Status (onLine/offLine)

Dear all, How can I know whether a device is on the line? Devices list no one field is used to indicate whether Device online,I know device will send a notification, executes Command feedback, but I just wanted to see whether device online directly from the device list Can you please explain me how to fulfill this requirement?

Alexa on rpi...

Well I like the idea, but I could not even get the commands in the article to work on my pi. In particular, "sudo snap install --devmode pulseaudio" and "sudo snap install --channel beta alexa" did not work. The " --" was not recognised. I played with many combinations but nothing worked. So the core of the project turned out to be impossible. Nonetheless, I like the approach so I am hoping we have a version problem or something similar. Can anyone advise how I can get this project working?

Device MQTT connection

Dear all, In chapter Three Steps To IoT section 2 - Connect, i saw this quote "Connect any device via REST API, WebSockets or MQTT" but after the installation of standalone platform i can't see default mqtt port open (usually 1883) and in documentation i cannot find any tips on how to publish values gathered on the field through MQTT. Can you please explain me how to fulfill this requirement? Best regards Stefano

Scaling of nodes

Hello, I investigate the scalability of different Open Source IoT platforms. After a longer search I only find the following information: "Mit seiner hochmodernen Lambda-Architektur, die es ermöglicht, die Kapazität linear zu erhöhen, mehr Geräte zu unterstützen und den Systemdurchsatz zu erhöhen, indem einfach zusätzliche DeviceHive-Anwendungsknoten, ein Nachrichtenbus (Apache Kafka) und Speicher (Cassandra) Knoten hinzugefügt werden." Is there a detailed documentation or example? I would be interested in how the scaling process works, is there a work balancing and how the nodes are connected to each other. Thanks for answeres :)