OpenHab

OSGI Unresolved requirement: Import-Package: com.pi4j.io.gpio

天大地大妈咪最大 提交于 2020-06-27 08:55:22
问题 I want to write an OSGI Bundle (Eclipse SmartHome Binding) for the GPIO's of a Raspberry Pi. For the GPIO's i need to include the Pi4J libraries. I added them into a lib folder in my project folder and added the pi4j-core.jar to my Build Path. This is my code: /** * Copyright (c) 2014 openHAB UG (haftungsbeschraenkt) and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this

SSE not working in android by using domain name

ぐ巨炮叔叔 提交于 2019-12-08 06:56:18
问题 I am using this URL from Ajax “https://username%40gmail.com:password@home.myopenhab.org/rest/events?topics=smarthome/" to get SSE in client side app using Cordova. its working fine on IOS but its not working on android. for same URL if I give IP like "http://192.168.0.1/rest/events?topics=smarthome/” its working fine on both IOS and android. my code goes like this var eventSource = new EventSource(" +“url”+ /rest/events?topics=smarthome/*"); eventSource.addEventListener(‘message’, function

在Surface上安装Ubuntu 16.04

老子叫甜甜 提交于 2019-12-06 05:44:28
Surface上面可以安装Ubuntu,而且比Windows还快、还省电! 有一个老的Surface Pro,因为换了Macbook Pro的原因,曾经被果断地打入冷宫。最近大扫除,把这货翻出来了,准备装个Ubuntu当服务器使。中间还是费了些周折,写出来帮大家少走点弯路。 需要几个步骤: 下载Ubuntu镜像。 制作Ubuntu的启动U盘。 修改Bios锁定,设为U盘启动。 安装Ubuntu 16.04 LTS。 安装Docker和OpenHab。 1、下载Ubuntu镜像。 先搞了个Ubuntu Desktop 15.04,结果装到一半死掉了。试了几次回复不了,放弃。 在笔记本上,下载Ubuntu 16.04 LTS( http://www.ubuntu.com )64位的,先烧到一个U盘上,做成自动的Ubuntu安装盘。 2、制作Ubuntu的启动U盘。 需要一个全空的U盘,启动U盘制作时会将原来的内容全部擦除!!! 将全空的U盘插入Macbook Pro,首先查看U盘的标识符: diskutil list ** 假设这里是/dev/disk6,一定不要搞错哦!后面的操作会将该盘全部擦除!!!** 卸载U盘,让后面的dd操作独占磁盘,按裸设备写入镜像。 diskutil umountdisk /dev/disk6 不要用MacOS系统的“弹出设备”操作,如果误用了