Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 14:12
    sophokles73 closed #3345
  • 12:23

    sophokles73 on 2.2.x

    Bump version to 2.2.1-SNAPSHOT … (compare)

  • 12:18

    sophokles73 on master

    Add 2.2.0 artifacts to Download… Add 2.2.x to supported versions… (compare)

  • 11:30
    n-deliyski commented #3448
  • 09:14

    eclipse-hono-bot on 2.2.0

    (compare)

  • 09:14

    eclipse-hono-bot on master

    Release 2.2.0 Bump version to 2.3.0-SNAPSHOT (compare)

  • 08:49

    sophokles73 on master

    [#3427] Fix text formatting of … Prepare 2.2.0 release Signed-o… (compare)

  • 08:30

    sophokles73 on master

    [#3439] Update to Quarkus 2.13.… (compare)

  • 07:03
    BanDianMan commented #3448
  • 07:03
    BanDianMan commented #3448
  • 07:03
    BanDianMan commented #3448
  • 07:02
    BanDianMan commented #3448
  • 07:02
    BanDianMan commented #3448
  • Nov 28 13:25
    n-deliyski commented #3448
  • Nov 28 07:57
    BanDianMan opened #3448
  • Nov 28 06:50
    sophokles73 demilestoned #3084
  • Nov 25 10:02
    sophokles73 labeled #3447
  • Nov 25 10:02
    sophokles73 demilestoned #3447
  • Nov 25 10:02
    sophokles73 demilestoned #3447
  • Nov 25 10:02
    sophokles73 labeled #3446
Naveeneeraboina
@Naveeneeraboina
@sophokles73 when i building and pushing images into docker,i have got the below error, can you help me
sudo mvn clean install -Pbuild-docker-image,metrics-prometheus,docker-push-image -Ddocker.registry-name=index.docker.io -Ddocker.image.org-name=naveen -Ddocker.username=naveen -Ddocker.password=Naveen@1, this is the cmd
Screenshot from 2022-10-28 16-41-42.png
Bob Claerhout
@BobClaerhout
Hi all, I was wondering when the next release is planned. We would like to add another LNS to hono and I would like to plan this properly so this is included in the next release.
Felice Coppola
@Felice-Copp56
Hi. when i try to run this command helm install eclipse-hono eclipse-iot/hono -n hono --wait I get this messages Service does not have load balancer ingress IP address: hono/eclipse-hono-kafka-0-external and Deployment is not ready: hono/eclipse-hono-adapter-amqp. 0 out of 1 expected pods are ready. Any help? I don't know how to resolve by myself
Kai Hudalla
@sophokles73
@Naveeneeraboina the relevant information about the problem encountered by the Maven build will be higher up in the output produced (before the build overview). Can you post that output as formatted text, i.e. put it between separate lines containing only of three back ticks (```)?
And BTW: you should NEVER post credentials to public forums.
@BobClaerhout I am inclined to tell you if you promise to also provide a User and Admin Guide for the Lora adapter this time :-)
2 replies
@Felice-Copp56 What type of K8s cluster are you installing to? Minikube?
Felice Coppola
@Felice-Copp56
@sophokles73 Now I'm using a k8s cluster on DigitalOcean but after the installation I can't create any tenant and the prompt doesn't give me an output (for example 404 or 200). How I can resolve?
Kai Hudalla
@sophokles73
@Felice-Copp56 it is hard to help based on this very limited amount of information. Can you describe what you are trying to do (commands that you have run) and what the result of that is (output from the commands being run)?
akhilveramalli
@akhilveramalli
I am using hono to get IoT Data to my Jhipster-Ionic Application. How to i a) send http get request to hono api, to fetch data and show it on my echarts dashboard. b) How do i send commands back to Hono using my application to control my IoT devices? c) how do i send hono data into postgres database (my application database) for showing historic data). THANKS
Kai Hudalla
@sophokles73
Hi @akhilveramalli
a) you can't. Hono writes telemetry and event messages it receives from devices to Kafka topics. Applications that want to process the messages therefore need to create a corresponding Kafka Consumer an can then do with the data whatever they see fit. See https://www.eclipse.org/hono/docs/api/telemetry-kafka/#northbound-operations for details regarding the topic structure and message format.
b) You can use Hono's (Kafka topic based) north bound Command & Control API for this. See https://www.eclipse.org/hono/docs/api/command-and-control-kafka/
c) see a)
Felice Coppola
@Felice-Copp56
@sophokles73 Thanks for helping me, I resolved the problem! But the readme
on github https://github.com/eclipse/packages/blob/master/charts/hono/README.md#using-kafka-based-messaging doesn't work properly for me about chart installation. I used the cloud2edge installation charts and everything is ok
Kai Hudalla
@sophokles73
@Felice-Copp56 glad you resolved your issues. The target of the link you have provided does not exist on the master branch (anymore), so I wonder where you got it from and which instructions you have been trying to follow. By default, the (current version of the) Hono chart uses Kafka based messaging so there is nothing special that needs to be done. Would you mind sharing what you have tried to do and what has not worked out so that we can try to improve the instructions?
Felice Coppola
@Felice-Copp56
@sophokles73 I found this link on the Eclipse Hono Getting Started Guide. Now I notice that there is another branch "develop" and the instructions are really different.
I tried to install the chart in the master branch, but I had error such as CrashLoopBackOff. I found this https://www.eclipse.org/packages/packages/cloud2edge/installation/ and I have installed everything without problem. Anyway, I need to follow the guide in the develop branch or this guide is correct for the installation, because there are Hono and Ditto together. Let me know, and thanks in advance
Kai Hudalla
@sophokles73
@Felice-Copp56 The installation instructions at https://github.com/eclipse/packages/blob/master/charts/hono/README.md should always work with the latest chart version.
Would you mind posting the chart version you have been using? You can figure out by running helm list -n YOUR_NAMESPACE.
Felice Coppola
@Felice-Copp56
@sophokles73 At moment I have the cluster down. I have another question: as I said I used the cloud2edge installation that contains Hono + Ditto and messaging:type is kafka. Now, my question is: How I can connect kafka to InfluxDB to send data? I saw that kafka, mongodb and other services are already installed on the charts so I think that I need a .conf file to do that
Do you have materials about that?
Naveeneeraboina
@Naveeneeraboina
@sophokles73 i have created customImages.yaml file inside hono folder for pulling the custom images from repo, when i hit this cmd: helm install eclipse-hono eclipse-iot/hono -n hono --wait -f customImages.yaml,
i have got the net/http: TLS handshake timeout, http2: client connection lost errors. can you help me ?
Screenshot from 2022-11-03 16-40-10.png
Felice Coppola
@Felice-Copp56
@Naveeneeraboina try to use --timeout 15m in helm install ..
Naveeneeraboina
@Naveeneeraboina
@Felice-Copp56 tried but got the same Error: INSTALLATION FAILED: Get "https://192.168.39.182:8443/apis/apps/v1/namespaces/hono/deployments/eclipse-hono-adapter-amqp": http2: client connection lost
Kai Hudalla
@sophokles73
@Naveeneeraboina what's the output of kubectl get pod -n hono? Please post the textual output, formatted as code, not a screenshot ...
Naveeneeraboina
@Naveeneeraboina
@sophokles73 kubectl get pods -n hono
NAME READY STATUS RESTARTS AGE
eclipse-hono-adapter-amqp-6d68b74bd-ktxbc 1/1 Running 0 7m16s
eclipse-hono-adapter-http-8586bf8b95-z6278 1/1 Running 0 7m16s
eclipse-hono-adapter-mqtt-975c589f6-cj7jc 0/1 Running 0 7m16s
eclipse-hono-kafka-0 0/1 PodInitializing 0 7m16s
eclipse-hono-service-auth-66f67ff98b-fbf4z 0/1 Running 1 (22s ago) 7m16s
eclipse-hono-service-command-router-6db5f446f4-wd45m 0/1 Running 1 (20s ago) 7m16s
eclipse-hono-service-device-registry-0 0/1 ImagePullBackOff 0 7m16s
eclipse-hono-zookeeper-0 0/1 Pending 0 7m16s
32 replies
Kai Hudalla
@sophokles73
you can properly format the output by putting it between two lines that only consist of three back ticks (```) ...
also refer to the markdown help (the little button on the lower right in the text entry field)
Felice Coppola
@Felice-Copp56
Hi guys, I'm trying to use this example https://github.com/eclipse-ditto/ditto-examples/tree/master/arduino-via-hono but it doesn't work, any of you have tried to use it with arduino uno wifi rev2? Thanks
Felice Coppola
@Felice-Copp56
@sophokles73 I can't establish the connection between hono and ditto with c2e package, can you help me?
Kai Hudalla
@sophokles73
@Felice-Copp56 I can try if you tell me what you are doing and what exactly it is that does not work as expected ...
4 replies
Felice Coppola
@Felice-Copp56
Yes, I'm trying to use kafka protocol binding with this file
curl -X POST -i -u devops:${DITTO_DEVOPSPWD} -H 'Content-Type: application/json' -d '{
"targetActorSelection": "/system/sharding/connection",
"headers": {
"aggregate": false
},
"piggybackCommand": {
"type": "connectivity.commands:createConnection",
"connection": {
"id": "MyKafkaConnection1",
"connectionType": "kafka",
"connectionStatus": "open",
"uri": "tcp://hono:hono-secret@143.244.197.234:9094",
"specificConfig": {
"bootstrapServers": "143.244.197.234:9094",
"saslMechanism": "plain"
},
"failoverEnabled": true,
"targets": [
{
"address": "digital-twins",
"topics": [
"
//things/twin/events",
"
/_/things/live/messages"
],
"authorizationContext": ["ditto:outbound-auth-subject"]
}],
"mappingContext": {
"mappingEngine": "JavaScript",
"options": {
"incomingScript": "function mapToDittoProtocolMsg(\n headers,\n textPayload,\n bytePayload,\n contentType\n) {\n\n if (contentType !== \"application/json\") {\n return null;\n }\n\n var jsonData = JSON.parse(textPayload);\n var temperature = jsonData.temp;\n var humidity = jsonData.hum;\n \n var path;\n var value;\n if (temperature != null && humidity != null) {\n path = \"/features\";\n value = {\n temperature: {\n properties: {\n value: temperature\n }\n },\n humidity: {\n properties: {\n value: humidity\n }\n }\n };\n } else if (temperature != null) {\n path = \"/features/temperature/properties/value\";\n value = temperature;\n } else if (humidity != null) {\n path = \"/features/humidity/properties/value\";\n value = humidity;\n }\n \n if (!path || !value) {\n return null;\n }\n\n return Ditto.buildDittoProtocolMsg(\n \"org.eclipse.ditto\",\n headers[\"device_id\"],\n \"things\",\n \"twin\",\n \"commands\",\n \"modify\",\n path,\n headers,\n value\n );\n}"
}
}
}
}
}' http://143.244.197.236:8080/devops/piggyback/connectivity?timeout=8s
but connection doesn't work
Katkuri Ramesh Netha
@rameshkatkuri:matrix.org
[m]
Hi guys, I try to establish connection b/w hono and ditto via kafka type and connection is established but getting ssl hand shacking failed issue in kafka logs
could you please help on this
Kai Hudalla
@sophokles73
@/all I would like to prepare the 2.2.0 release with a target release date of Nov 29th, 2022. Please make sure to finish up any PRs you want in there ...
Bob Claerhout
@BobClaerhout
It would be nice if eclipse/packages#416 could end up in the packages repository. I know it's strictly not in the hono release but it has been open for some time now.
suryasanku
@suryasanku
hi guys, i want to know whether there is any possibility to add users to tenant(tenant->user(one to many)) and then let the user add the devices instead of directly adding devices to tenant...is there any possibility in hono for this?? . Kindly reply.
Kai Hudalla
@sophokles73
@suryasanku Devices are always registered in the scope of a Tenant (see https://www.eclipse.org/hono/docs/concepts/tenancy/ for details).
Michelle Franke
@m.franke_gitlab
Hi guys, I want to add a new environment variable to the helm chart, which I then need to access in the code. Can someone explain the process to me?
Bob Claerhout
@BobClaerhout
@sophokles73 : yet another LNS version: eclipse-hono/hono#3447, would be nice if this could also be in the release. Ticket created: eclipse-hono/hono#3446
Kai Hudalla
@sophokles73
@m.franke_gitlab I assume you are talking about the Helm chart for installing Hono. What code are you referring to by I then need to access in the code? Are you talking about a Helm chart template? It would help if you could explain what you are actually trying to achieve ...
Michelle Franke
@m.franke_gitlab
@sophokles73 I want to make some changes to the AbstractProtocolAdapterApplication class where I need a new attribute. This attribute should be configurable on every deployment, so I want to have a new string attribute in the values.yaml. In the AbstractProtocolAdapterApplication class I then want to read the value for the newly added attribute from the values.yaml.
Kai Hudalla
@sophokles73
So, this will be a property that will be applicable/relevant to all protocol adapters, right? If so, then you should add the property to the org.eclipse.hono.adapter.ProtocolAdapterOptions class and adapt org.eclipse.hono.adapter.ProtocolAdapterProperties accordingly.
The AbstractProtocolAdapterApplication class gets injected an instance of ProtocolAdapterProperties and can thus read the configuration property.
Michelle Franke
@m.franke_gitlab
@sophokles73 ah great, thank you for the explanation!
Kai Hudalla
@sophokles73
@m.franke_gitlab may I ask what kind of property you plan to add?
Michelle Franke
@m.franke_gitlab
@sophokles73 Sure, I'm currently working on the implementation for this issue: #3442 where I need a new property for the GCP Project-Id. In org/eclipse/hono/adapter/AbstractProtocolAdapterApplication I then need to initialize the new Pub/Sub Sender with the respective ProjectId.
Kai Hudalla
@sophokles73
@m.franke_gitlab Ok, so if I am not mistaken, then you will create a GCP Pub/Sub specific implementation of org.eclipse.hono.client.telemetry.EventSender and org.eclipse.hono.client.telemetry.TelemetrySender. You might want to take a look at how the AMQP and Kafka specific implementations work and, in particular, how they are being configured with the relevant properties, e.g. host name, credentials etc.
From the top of my head I guess that these properties will not be set at the protocol adapter level but at the TelemetrySender level ...
Kai Hudalla
@sophokles73
@/all I have re-scheduled #3084 and #1276 to the 2.3.0 and 3.0.0 projects respectively, as nobody was actually working on them.
Kai Hudalla
@sophokles73
@/all I will now prepare and start the 2.2.0 release build ...