You are viewing a plain text version of this content. The canonical link for it is here.
Posted to iot@apache.org by Julian Feinauer <j....@pragmaticminds.de> on 2019/07/16 06:20:41 UTC
Presenting first ideas of Edgent NEXT
Hi all,
as this project clearly slowed down I think now its the time to revive it a bit.
As things have shifted quite a lot since the beginning of the project I want to propose a way of starting to repopulate it AND slightly start to change the aims of the project.
I call it EDGENT NEXT and created a branch for that (and a submodule).
My idea is to create some kind of Camel for the edge and especially for IoT / IIoT.
I created several small snippets to give you an idea on how I think it should look like:
```
// Example 1 - Generic handler
27 from("s7://192.168.167.210/0/0")
28 .scrape(10, TimeUnit.SECONDS)
29 .field("%DB500.DBX10:BOOL")
30 .field("%DB500.DBX10:BOOL", Boolean.class)
31 .handle((field, result, clazz) -> System.out.println(field + ": " + result));
32
33 // Example 2 - Store to JDBC
34 from("s7://192.168.167.210/0/0")
35 .scrape(10, TimeUnit.SECONDS)
36 .field("%DB500.DBX10:BOOL")
37 .field("%DB500.DBX10:BOOL", Boolean.class)
38 .transform(new JsonTransformer())
39 .to(new JdbcSink());
40
41 // Example 3 - Store to InfluxDB
42 from("s7://192.168.167.210/0/0")
43 .scrape(10, TimeUnit.SECONDS)
44 .field("%DB500.DBX10:BOOL")
45 .field("%DB500.DBX10:BOOL", Boolean.class)
// Example 4 - CRUNCH
49 from("s7://192.168.167.210/0/0")
50 .scrape(10, TimeUnit.SECONDS)
51 .field("%DB500.DBX10:BOOL", Boolean.class).analyze()
52 .flank(UP).handle(...)
```
So this should wire several of our Apache “IoT” projects (or podlings) together in a nice and easy manner.
I also plan to integrate our own (Apache 2.0 Licensed) framework CRUNCH [1] nicely.
What do you think of that?
Julian
[1] https://github.com/pragmaticminds/crunch
Re: Presenting first ideas of Edgent NEXT
Posted by Julian Feinauer <j....@pragmaticminds.de>.
As I'm an evil genius... it was on BOTH :D
Am 16.07.19, 10:38 schrieb "Christofer Dutz" <ch...@c-ware.de>:
Lol... Just ignore my last post. I thought it was on the Edgent list ;-)
Holen Sie sichOutlook für Android<https://aka.ms/ghei36>
________________________________
From: Christofer Dutz
Sent: Tuesday, July 16, 2019 10:37:18 AM
To: dev@edgent.apache.org; iot@apache.org
Cc: iot@apache.org
Subject: Re: Presenting first ideas of Edgent NEXT
And how about reaching out to people on iot@apache.org?
Holen Sie sichOutlook für Android<https://aka.ms/ghei36>
________________________________
From: Christofer Dutz <ch...@c-ware.de>
Sent: Tuesday, July 16, 2019 10:19:32 AM
To: iot@apache.org; Edgent
Cc: iot@apache.org
Subject: Re: Presenting first ideas of Edgent NEXT
Hi Julian,
Think I will have the time to respond after my holidays.
Crud
Holen Sie sichOutlook für Android<https://aka.ms/ghei36>
________________________________
From: Julian Feinauer <j....@pragmaticminds.de>
Sent: Tuesday, July 16, 2019 8:20:41 AM
To: Edgent
Cc: iot@apache.org
Subject: Presenting first ideas of Edgent NEXT
Hi all,
as this project clearly slowed down I think now its the time to revive it a bit.
As things have shifted quite a lot since the beginning of the project I want to propose a way of starting to repopulate it AND slightly start to change the aims of the project.
I call it EDGENT NEXT and created a branch for that (and a submodule).
My idea is to create some kind of Camel for the edge and especially for IoT / IIoT.
I created several small snippets to give you an idea on how I think it should look like:
```
// Example 1 - Generic handler
27 from("s7://192.168.167.210/0/0")
28 .scrape(10, TimeUnit.SECONDS)
29 .field("%DB500.DBX10:BOOL")
30 .field("%DB500.DBX10:BOOL", Boolean.class)
31 .handle((field, result, clazz) -> System.out.println(field + ": " + result));
32
33 // Example 2 - Store to JDBC
34 from("s7://192.168.167.210/0/0")
35 .scrape(10, TimeUnit.SECONDS)
36 .field("%DB500.DBX10:BOOL")
37 .field("%DB500.DBX10:BOOL", Boolean.class)
38 .transform(new JsonTransformer())
39 .to(new JdbcSink());
40
41 // Example 3 - Store to InfluxDB
42 from("s7://192.168.167.210/0/0")
43 .scrape(10, TimeUnit.SECONDS)
44 .field("%DB500.DBX10:BOOL")
45 .field("%DB500.DBX10:BOOL", Boolean.class)
// Example 4 - CRUNCH
49 from("s7://192.168.167.210/0/0")
50 .scrape(10, TimeUnit.SECONDS)
51 .field("%DB500.DBX10:BOOL", Boolean.class).analyze()
52 .flank(UP).handle(...)
```
So this should wire several of our Apache “IoT” projects (or podlings) together in a nice and easy manner.
I also plan to integrate our own (Apache 2.0 Licensed) framework CRUNCH [1] nicely.
What do you think of that?
Julian
[1] https://github.com/pragmaticminds/crunch
Re: Presenting first ideas of Edgent NEXT
Posted by Julian Feinauer <j....@pragmaticminds.de>.
As I'm an evil genius... it was on BOTH :D
Am 16.07.19, 10:38 schrieb "Christofer Dutz" <ch...@c-ware.de>:
Lol... Just ignore my last post. I thought it was on the Edgent list ;-)
Holen Sie sichOutlook für Android<https://aka.ms/ghei36>
________________________________
From: Christofer Dutz
Sent: Tuesday, July 16, 2019 10:37:18 AM
To: dev@edgent.apache.org; iot@apache.org
Cc: iot@apache.org
Subject: Re: Presenting first ideas of Edgent NEXT
And how about reaching out to people on iot@apache.org?
Holen Sie sichOutlook für Android<https://aka.ms/ghei36>
________________________________
From: Christofer Dutz <ch...@c-ware.de>
Sent: Tuesday, July 16, 2019 10:19:32 AM
To: iot@apache.org; Edgent
Cc: iot@apache.org
Subject: Re: Presenting first ideas of Edgent NEXT
Hi Julian,
Think I will have the time to respond after my holidays.
Crud
Holen Sie sichOutlook für Android<https://aka.ms/ghei36>
________________________________
From: Julian Feinauer <j....@pragmaticminds.de>
Sent: Tuesday, July 16, 2019 8:20:41 AM
To: Edgent
Cc: iot@apache.org
Subject: Presenting first ideas of Edgent NEXT
Hi all,
as this project clearly slowed down I think now its the time to revive it a bit.
As things have shifted quite a lot since the beginning of the project I want to propose a way of starting to repopulate it AND slightly start to change the aims of the project.
I call it EDGENT NEXT and created a branch for that (and a submodule).
My idea is to create some kind of Camel for the edge and especially for IoT / IIoT.
I created several small snippets to give you an idea on how I think it should look like:
```
// Example 1 - Generic handler
27 from("s7://192.168.167.210/0/0")
28 .scrape(10, TimeUnit.SECONDS)
29 .field("%DB500.DBX10:BOOL")
30 .field("%DB500.DBX10:BOOL", Boolean.class)
31 .handle((field, result, clazz) -> System.out.println(field + ": " + result));
32
33 // Example 2 - Store to JDBC
34 from("s7://192.168.167.210/0/0")
35 .scrape(10, TimeUnit.SECONDS)
36 .field("%DB500.DBX10:BOOL")
37 .field("%DB500.DBX10:BOOL", Boolean.class)
38 .transform(new JsonTransformer())
39 .to(new JdbcSink());
40
41 // Example 3 - Store to InfluxDB
42 from("s7://192.168.167.210/0/0")
43 .scrape(10, TimeUnit.SECONDS)
44 .field("%DB500.DBX10:BOOL")
45 .field("%DB500.DBX10:BOOL", Boolean.class)
// Example 4 - CRUNCH
49 from("s7://192.168.167.210/0/0")
50 .scrape(10, TimeUnit.SECONDS)
51 .field("%DB500.DBX10:BOOL", Boolean.class).analyze()
52 .flank(UP).handle(...)
```
So this should wire several of our Apache “IoT” projects (or podlings) together in a nice and easy manner.
I also plan to integrate our own (Apache 2.0 Licensed) framework CRUNCH [1] nicely.
What do you think of that?
Julian
[1] https://github.com/pragmaticminds/crunch
Re: Presenting first ideas of Edgent NEXT
Posted by Christofer Dutz <ch...@c-ware.de>.
Lol... Just ignore my last post. I thought it was on the Edgent list ;-)
Holen Sie sichOutlook für Android<https://aka.ms/ghei36>
________________________________
From: Christofer Dutz
Sent: Tuesday, July 16, 2019 10:37:18 AM
To: dev@edgent.apache.org; iot@apache.org
Cc: iot@apache.org
Subject: Re: Presenting first ideas of Edgent NEXT
And how about reaching out to people on iot@apache.org?
Holen Sie sichOutlook für Android<https://aka.ms/ghei36>
________________________________
From: Christofer Dutz <ch...@c-ware.de>
Sent: Tuesday, July 16, 2019 10:19:32 AM
To: iot@apache.org; Edgent
Cc: iot@apache.org
Subject: Re: Presenting first ideas of Edgent NEXT
Hi Julian,
Think I will have the time to respond after my holidays.
Crud
Holen Sie sichOutlook für Android<https://aka.ms/ghei36>
________________________________
From: Julian Feinauer <j....@pragmaticminds.de>
Sent: Tuesday, July 16, 2019 8:20:41 AM
To: Edgent
Cc: iot@apache.org
Subject: Presenting first ideas of Edgent NEXT
Hi all,
as this project clearly slowed down I think now its the time to revive it a bit.
As things have shifted quite a lot since the beginning of the project I want to propose a way of starting to repopulate it AND slightly start to change the aims of the project.
I call it EDGENT NEXT and created a branch for that (and a submodule).
My idea is to create some kind of Camel for the edge and especially for IoT / IIoT.
I created several small snippets to give you an idea on how I think it should look like:
```
// Example 1 - Generic handler
27 from("s7://192.168.167.210/0/0")
28 .scrape(10, TimeUnit.SECONDS)
29 .field("%DB500.DBX10:BOOL")
30 .field("%DB500.DBX10:BOOL", Boolean.class)
31 .handle((field, result, clazz) -> System.out.println(field + ": " + result));
32
33 // Example 2 - Store to JDBC
34 from("s7://192.168.167.210/0/0")
35 .scrape(10, TimeUnit.SECONDS)
36 .field("%DB500.DBX10:BOOL")
37 .field("%DB500.DBX10:BOOL", Boolean.class)
38 .transform(new JsonTransformer())
39 .to(new JdbcSink());
40
41 // Example 3 - Store to InfluxDB
42 from("s7://192.168.167.210/0/0")
43 .scrape(10, TimeUnit.SECONDS)
44 .field("%DB500.DBX10:BOOL")
45 .field("%DB500.DBX10:BOOL", Boolean.class)
// Example 4 - CRUNCH
49 from("s7://192.168.167.210/0/0")
50 .scrape(10, TimeUnit.SECONDS)
51 .field("%DB500.DBX10:BOOL", Boolean.class).analyze()
52 .flank(UP).handle(...)
```
So this should wire several of our Apache “IoT” projects (or podlings) together in a nice and easy manner.
I also plan to integrate our own (Apache 2.0 Licensed) framework CRUNCH [1] nicely.
What do you think of that?
Julian
[1] https://github.com/pragmaticminds/crunch
Re: Presenting first ideas of Edgent NEXT
Posted by Christofer Dutz <ch...@c-ware.de>.
Lol... Just ignore my last post. I thought it was on the Edgent list ;-)
Holen Sie sichOutlook für Android<https://aka.ms/ghei36>
________________________________
From: Christofer Dutz
Sent: Tuesday, July 16, 2019 10:37:18 AM
To: dev@edgent.apache.org; iot@apache.org
Cc: iot@apache.org
Subject: Re: Presenting first ideas of Edgent NEXT
And how about reaching out to people on iot@apache.org?
Holen Sie sichOutlook für Android<https://aka.ms/ghei36>
________________________________
From: Christofer Dutz <ch...@c-ware.de>
Sent: Tuesday, July 16, 2019 10:19:32 AM
To: iot@apache.org; Edgent
Cc: iot@apache.org
Subject: Re: Presenting first ideas of Edgent NEXT
Hi Julian,
Think I will have the time to respond after my holidays.
Crud
Holen Sie sichOutlook für Android<https://aka.ms/ghei36>
________________________________
From: Julian Feinauer <j....@pragmaticminds.de>
Sent: Tuesday, July 16, 2019 8:20:41 AM
To: Edgent
Cc: iot@apache.org
Subject: Presenting first ideas of Edgent NEXT
Hi all,
as this project clearly slowed down I think now its the time to revive it a bit.
As things have shifted quite a lot since the beginning of the project I want to propose a way of starting to repopulate it AND slightly start to change the aims of the project.
I call it EDGENT NEXT and created a branch for that (and a submodule).
My idea is to create some kind of Camel for the edge and especially for IoT / IIoT.
I created several small snippets to give you an idea on how I think it should look like:
```
// Example 1 - Generic handler
27 from("s7://192.168.167.210/0/0")
28 .scrape(10, TimeUnit.SECONDS)
29 .field("%DB500.DBX10:BOOL")
30 .field("%DB500.DBX10:BOOL", Boolean.class)
31 .handle((field, result, clazz) -> System.out.println(field + ": " + result));
32
33 // Example 2 - Store to JDBC
34 from("s7://192.168.167.210/0/0")
35 .scrape(10, TimeUnit.SECONDS)
36 .field("%DB500.DBX10:BOOL")
37 .field("%DB500.DBX10:BOOL", Boolean.class)
38 .transform(new JsonTransformer())
39 .to(new JdbcSink());
40
41 // Example 3 - Store to InfluxDB
42 from("s7://192.168.167.210/0/0")
43 .scrape(10, TimeUnit.SECONDS)
44 .field("%DB500.DBX10:BOOL")
45 .field("%DB500.DBX10:BOOL", Boolean.class)
// Example 4 - CRUNCH
49 from("s7://192.168.167.210/0/0")
50 .scrape(10, TimeUnit.SECONDS)
51 .field("%DB500.DBX10:BOOL", Boolean.class).analyze()
52 .flank(UP).handle(...)
```
So this should wire several of our Apache “IoT” projects (or podlings) together in a nice and easy manner.
I also plan to integrate our own (Apache 2.0 Licensed) framework CRUNCH [1] nicely.
What do you think of that?
Julian
[1] https://github.com/pragmaticminds/crunch
Re: Presenting first ideas of Edgent NEXT
Posted by Christofer Dutz <ch...@c-ware.de>.
And how about reaching out to people on iot@apache.org?
Holen Sie sichOutlook für Android<https://aka.ms/ghei36>
________________________________
From: Christofer Dutz <ch...@c-ware.de>
Sent: Tuesday, July 16, 2019 10:19:32 AM
To: iot@apache.org; Edgent
Cc: iot@apache.org
Subject: Re: Presenting first ideas of Edgent NEXT
Hi Julian,
Think I will have the time to respond after my holidays.
Crud
Holen Sie sichOutlook für Android<https://aka.ms/ghei36>
________________________________
From: Julian Feinauer <j....@pragmaticminds.de>
Sent: Tuesday, July 16, 2019 8:20:41 AM
To: Edgent
Cc: iot@apache.org
Subject: Presenting first ideas of Edgent NEXT
Hi all,
as this project clearly slowed down I think now its the time to revive it a bit.
As things have shifted quite a lot since the beginning of the project I want to propose a way of starting to repopulate it AND slightly start to change the aims of the project.
I call it EDGENT NEXT and created a branch for that (and a submodule).
My idea is to create some kind of Camel for the edge and especially for IoT / IIoT.
I created several small snippets to give you an idea on how I think it should look like:
```
// Example 1 - Generic handler
27 from("s7://192.168.167.210/0/0")
28 .scrape(10, TimeUnit.SECONDS)
29 .field("%DB500.DBX10:BOOL")
30 .field("%DB500.DBX10:BOOL", Boolean.class)
31 .handle((field, result, clazz) -> System.out.println(field + ": " + result));
32
33 // Example 2 - Store to JDBC
34 from("s7://192.168.167.210/0/0")
35 .scrape(10, TimeUnit.SECONDS)
36 .field("%DB500.DBX10:BOOL")
37 .field("%DB500.DBX10:BOOL", Boolean.class)
38 .transform(new JsonTransformer())
39 .to(new JdbcSink());
40
41 // Example 3 - Store to InfluxDB
42 from("s7://192.168.167.210/0/0")
43 .scrape(10, TimeUnit.SECONDS)
44 .field("%DB500.DBX10:BOOL")
45 .field("%DB500.DBX10:BOOL", Boolean.class)
// Example 4 - CRUNCH
49 from("s7://192.168.167.210/0/0")
50 .scrape(10, TimeUnit.SECONDS)
51 .field("%DB500.DBX10:BOOL", Boolean.class).analyze()
52 .flank(UP).handle(...)
```
So this should wire several of our Apache “IoT” projects (or podlings) together in a nice and easy manner.
I also plan to integrate our own (Apache 2.0 Licensed) framework CRUNCH [1] nicely.
What do you think of that?
Julian
[1] https://github.com/pragmaticminds/crunch
Re: Presenting first ideas of Edgent NEXT
Posted by Julian Feinauer <j....@pragmaticminds.de>.
Isnt that what holidays are for... doing the important things? __
Just kidding.. have a nice holiday!
Am 16.07.19, 10:19 schrieb "Christofer Dutz" <ch...@c-ware.de>:
Hi Julian,
Think I will have the time to respond after my holidays.
Crud
Holen Sie sichOutlook für Android<https://aka.ms/ghei36>
________________________________
From: Julian Feinauer <j....@pragmaticminds.de>
Sent: Tuesday, July 16, 2019 8:20:41 AM
To: Edgent
Cc: iot@apache.org
Subject: Presenting first ideas of Edgent NEXT
Hi all,
as this project clearly slowed down I think now its the time to revive it a bit.
As things have shifted quite a lot since the beginning of the project I want to propose a way of starting to repopulate it AND slightly start to change the aims of the project.
I call it EDGENT NEXT and created a branch for that (and a submodule).
My idea is to create some kind of Camel for the edge and especially for IoT / IIoT.
I created several small snippets to give you an idea on how I think it should look like:
```
// Example 1 - Generic handler
27 from("s7://192.168.167.210/0/0")
28 .scrape(10, TimeUnit.SECONDS)
29 .field("%DB500.DBX10:BOOL")
30 .field("%DB500.DBX10:BOOL", Boolean.class)
31 .handle((field, result, clazz) -> System.out.println(field + ": " + result));
32
33 // Example 2 - Store to JDBC
34 from("s7://192.168.167.210/0/0")
35 .scrape(10, TimeUnit.SECONDS)
36 .field("%DB500.DBX10:BOOL")
37 .field("%DB500.DBX10:BOOL", Boolean.class)
38 .transform(new JsonTransformer())
39 .to(new JdbcSink());
40
41 // Example 3 - Store to InfluxDB
42 from("s7://192.168.167.210/0/0")
43 .scrape(10, TimeUnit.SECONDS)
44 .field("%DB500.DBX10:BOOL")
45 .field("%DB500.DBX10:BOOL", Boolean.class)
// Example 4 - CRUNCH
49 from("s7://192.168.167.210/0/0")
50 .scrape(10, TimeUnit.SECONDS)
51 .field("%DB500.DBX10:BOOL", Boolean.class).analyze()
52 .flank(UP).handle(...)
```
So this should wire several of our Apache “IoT” projects (or podlings) together in a nice and easy manner.
I also plan to integrate our own (Apache 2.0 Licensed) framework CRUNCH [1] nicely.
What do you think of that?
Julian
[1] https://github.com/pragmaticminds/crunch
Re: Presenting first ideas of Edgent NEXT
Posted by Christofer Dutz <ch...@c-ware.de>.
And how about reaching out to people on iot@apache.org?
Holen Sie sichOutlook für Android<https://aka.ms/ghei36>
________________________________
From: Christofer Dutz <ch...@c-ware.de>
Sent: Tuesday, July 16, 2019 10:19:32 AM
To: iot@apache.org; Edgent
Cc: iot@apache.org
Subject: Re: Presenting first ideas of Edgent NEXT
Hi Julian,
Think I will have the time to respond after my holidays.
Crud
Holen Sie sichOutlook für Android<https://aka.ms/ghei36>
________________________________
From: Julian Feinauer <j....@pragmaticminds.de>
Sent: Tuesday, July 16, 2019 8:20:41 AM
To: Edgent
Cc: iot@apache.org
Subject: Presenting first ideas of Edgent NEXT
Hi all,
as this project clearly slowed down I think now its the time to revive it a bit.
As things have shifted quite a lot since the beginning of the project I want to propose a way of starting to repopulate it AND slightly start to change the aims of the project.
I call it EDGENT NEXT and created a branch for that (and a submodule).
My idea is to create some kind of Camel for the edge and especially for IoT / IIoT.
I created several small snippets to give you an idea on how I think it should look like:
```
// Example 1 - Generic handler
27 from("s7://192.168.167.210/0/0")
28 .scrape(10, TimeUnit.SECONDS)
29 .field("%DB500.DBX10:BOOL")
30 .field("%DB500.DBX10:BOOL", Boolean.class)
31 .handle((field, result, clazz) -> System.out.println(field + ": " + result));
32
33 // Example 2 - Store to JDBC
34 from("s7://192.168.167.210/0/0")
35 .scrape(10, TimeUnit.SECONDS)
36 .field("%DB500.DBX10:BOOL")
37 .field("%DB500.DBX10:BOOL", Boolean.class)
38 .transform(new JsonTransformer())
39 .to(new JdbcSink());
40
41 // Example 3 - Store to InfluxDB
42 from("s7://192.168.167.210/0/0")
43 .scrape(10, TimeUnit.SECONDS)
44 .field("%DB500.DBX10:BOOL")
45 .field("%DB500.DBX10:BOOL", Boolean.class)
// Example 4 - CRUNCH
49 from("s7://192.168.167.210/0/0")
50 .scrape(10, TimeUnit.SECONDS)
51 .field("%DB500.DBX10:BOOL", Boolean.class).analyze()
52 .flank(UP).handle(...)
```
So this should wire several of our Apache “IoT” projects (or podlings) together in a nice and easy manner.
I also plan to integrate our own (Apache 2.0 Licensed) framework CRUNCH [1] nicely.
What do you think of that?
Julian
[1] https://github.com/pragmaticminds/crunch
Re: Presenting first ideas of Edgent NEXT
Posted by Christofer Dutz <ch...@c-ware.de>.
Hi Julian,
Think I will have the time to respond after my holidays.
Crud
Holen Sie sichOutlook für Android<https://aka.ms/ghei36>
________________________________
From: Julian Feinauer <j....@pragmaticminds.de>
Sent: Tuesday, July 16, 2019 8:20:41 AM
To: Edgent
Cc: iot@apache.org
Subject: Presenting first ideas of Edgent NEXT
Hi all,
as this project clearly slowed down I think now its the time to revive it a bit.
As things have shifted quite a lot since the beginning of the project I want to propose a way of starting to repopulate it AND slightly start to change the aims of the project.
I call it EDGENT NEXT and created a branch for that (and a submodule).
My idea is to create some kind of Camel for the edge and especially for IoT / IIoT.
I created several small snippets to give you an idea on how I think it should look like:
```
// Example 1 - Generic handler
27 from("s7://192.168.167.210/0/0")
28 .scrape(10, TimeUnit.SECONDS)
29 .field("%DB500.DBX10:BOOL")
30 .field("%DB500.DBX10:BOOL", Boolean.class)
31 .handle((field, result, clazz) -> System.out.println(field + ": " + result));
32
33 // Example 2 - Store to JDBC
34 from("s7://192.168.167.210/0/0")
35 .scrape(10, TimeUnit.SECONDS)
36 .field("%DB500.DBX10:BOOL")
37 .field("%DB500.DBX10:BOOL", Boolean.class)
38 .transform(new JsonTransformer())
39 .to(new JdbcSink());
40
41 // Example 3 - Store to InfluxDB
42 from("s7://192.168.167.210/0/0")
43 .scrape(10, TimeUnit.SECONDS)
44 .field("%DB500.DBX10:BOOL")
45 .field("%DB500.DBX10:BOOL", Boolean.class)
// Example 4 - CRUNCH
49 from("s7://192.168.167.210/0/0")
50 .scrape(10, TimeUnit.SECONDS)
51 .field("%DB500.DBX10:BOOL", Boolean.class).analyze()
52 .flank(UP).handle(...)
```
So this should wire several of our Apache “IoT” projects (or podlings) together in a nice and easy manner.
I also plan to integrate our own (Apache 2.0 Licensed) framework CRUNCH [1] nicely.
What do you think of that?
Julian
[1] https://github.com/pragmaticminds/crunch
Re: Presenting first ideas of Edgent NEXT
Posted by Googlemail OS <se...@googlemail.com.INVALID>.
Looks Good to me
Sebastian
> Am 16.07.2019 um 08:20 schrieb Julian Feinauer <j....@pragmaticminds.de>:
>
> Hi all,
>
> as this project clearly slowed down I think now its the time to revive it a bit.
> As things have shifted quite a lot since the beginning of the project I want to propose a way of starting to repopulate it AND slightly start to change the aims of the project.
>
> I call it EDGENT NEXT and created a branch for that (and a submodule).
> My idea is to create some kind of Camel for the edge and especially for IoT / IIoT.
>
> I created several small snippets to give you an idea on how I think it should look like:
>
> ```
> // Example 1 - Generic handler
> 27 from("s7://192.168.167.210/0/0")
> 28 .scrape(10, TimeUnit.SECONDS)
> 29 .field("%DB500.DBX10:BOOL")
> 30 .field("%DB500.DBX10:BOOL", Boolean.class)
> 31 .handle((field, result, clazz) -> System.out.println(field + ": " + result));
> 32
> 33 // Example 2 - Store to JDBC
> 34 from("s7://192.168.167.210/0/0")
> 35 .scrape(10, TimeUnit.SECONDS)
> 36 .field("%DB500.DBX10:BOOL")
> 37 .field("%DB500.DBX10:BOOL", Boolean.class)
> 38 .transform(new JsonTransformer())
> 39 .to(new JdbcSink());
> 40
> 41 // Example 3 - Store to InfluxDB
> 42 from("s7://192.168.167.210/0/0")
> 43 .scrape(10, TimeUnit.SECONDS)
> 44 .field("%DB500.DBX10:BOOL")
> 45 .field("%DB500.DBX10:BOOL", Boolean.class)
> // Example 4 - CRUNCH
> 49 from("s7://192.168.167.210/0/0")
> 50 .scrape(10, TimeUnit.SECONDS)
> 51 .field("%DB500.DBX10:BOOL", Boolean.class).analyze()
> 52 .flank(UP).handle(...)
> ```
>
> So this should wire several of our Apache “IoT” projects (or podlings) together in a nice and easy manner.
> I also plan to integrate our own (Apache 2.0 Licensed) framework CRUNCH [1] nicely.
>
> What do you think of that?
>
> Julian
>
> [1] https://github.com/pragmaticminds/crunch
Re: Presenting first ideas of Edgent NEXT
Posted by Christofer Dutz <ch...@c-ware.de>.
Hi Julian,
Think I will have the time to respond after my holidays.
Crud
Holen Sie sichOutlook für Android<https://aka.ms/ghei36>
________________________________
From: Julian Feinauer <j....@pragmaticminds.de>
Sent: Tuesday, July 16, 2019 8:20:41 AM
To: Edgent
Cc: iot@apache.org
Subject: Presenting first ideas of Edgent NEXT
Hi all,
as this project clearly slowed down I think now its the time to revive it a bit.
As things have shifted quite a lot since the beginning of the project I want to propose a way of starting to repopulate it AND slightly start to change the aims of the project.
I call it EDGENT NEXT and created a branch for that (and a submodule).
My idea is to create some kind of Camel for the edge and especially for IoT / IIoT.
I created several small snippets to give you an idea on how I think it should look like:
```
// Example 1 - Generic handler
27 from("s7://192.168.167.210/0/0")
28 .scrape(10, TimeUnit.SECONDS)
29 .field("%DB500.DBX10:BOOL")
30 .field("%DB500.DBX10:BOOL", Boolean.class)
31 .handle((field, result, clazz) -> System.out.println(field + ": " + result));
32
33 // Example 2 - Store to JDBC
34 from("s7://192.168.167.210/0/0")
35 .scrape(10, TimeUnit.SECONDS)
36 .field("%DB500.DBX10:BOOL")
37 .field("%DB500.DBX10:BOOL", Boolean.class)
38 .transform(new JsonTransformer())
39 .to(new JdbcSink());
40
41 // Example 3 - Store to InfluxDB
42 from("s7://192.168.167.210/0/0")
43 .scrape(10, TimeUnit.SECONDS)
44 .field("%DB500.DBX10:BOOL")
45 .field("%DB500.DBX10:BOOL", Boolean.class)
// Example 4 - CRUNCH
49 from("s7://192.168.167.210/0/0")
50 .scrape(10, TimeUnit.SECONDS)
51 .field("%DB500.DBX10:BOOL", Boolean.class).analyze()
52 .flank(UP).handle(...)
```
So this should wire several of our Apache “IoT” projects (or podlings) together in a nice and easy manner.
I also plan to integrate our own (Apache 2.0 Licensed) framework CRUNCH [1] nicely.
What do you think of that?
Julian
[1] https://github.com/pragmaticminds/crunch