komatsu_forwarder.py 2.22 KB
Newer Older
lenekaethe's avatar
lenekaethe committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
DATA = {
    "thingId": "s3i:3154edfa-5b04-4a28-b803-d6ec46135c19",
    "policyId": "s3i:3154edfa-5b04-4a28-b803-d6ec46135c19",
    "attributes": {
        "class": "ml40::Thing",
        "name": "Komatsu Forwarder",
        "roles": [{"class": "fml40::Forwarder"}],
        "features": [
            {"class": "fml40::AcceptsProximityAlert"},
            {"class": "fml40::AcceptsForwardingJobs"},
            {"class": "fml40::Forwards"},
            {
                "class": "ml40::Location",
                "longitude": 6.2492276,
                "latitude": 50.808797
            },
            {
                "class": "ml40::Shared",
                "targets": ["s3i:..."]
            },
            {
                "class": "ml40::Composite",
                "targets": [
                    {
                        "class": "ml40::Thing",
                        "roles": ["ml40::Engine"],
                        "name": "Motor",
                        "identifier": "s3i:...",
                        "features": [{
                            "class": "ml40::RotationalSpeed",
                            "rpm": "3000"
                        }]
                    },
                    {
                        "class": "ml40::Thing",
                        "roles": ["ml40::Crane"],
                        "name": "Kran",
                        "identifier": "s3i:...",
                        "features": [{
                            "class": "ml40::Composite",
                            "targets": [{
                                "class": "ml40::Thing",
                                "roles": ["fml40::ForwarderCrane"],
                                "name": "Forwarder Kran",
                                "identifier": "s3i:...",
                                "features": [{"class": "fml40::Grabs"}]
                            }]
                        }]
                    },
                    {
                        "class": "ml40::Thing",
                        "roles": ["ml40::MachineUI"],
                        "name": "Bordcomputer",
                        "identifier": "s3i:..."
                    }
                ]
            }
        ]
    }
}


CLIENT_SECRET = "432f0bfc-9a13-4551-a4cd-b94b054cdadf"