mirror of
https://github.com/OpenMTC/OpenMTC.git
synced 2025-07-01 02:53:41 +00:00
Compare commits
6 Commits
creating-c
...
legacy-pyt
Author | SHA1 | Date | |
---|---|---|---|
c3ac4f9dfb | |||
7781b15c4e | |||
b9034a916f | |||
5257a11cf0 | |||
461698b32a | |||
734a51fb73 |
@ -12,6 +12,8 @@
|
|||||||

|

|
||||||
[](https://hub.docker.com/u/openmtc)
|
[](https://hub.docker.com/u/openmtc)
|
||||||
[](https://travis-ci.org/OpenMTC/OpenMTC)
|
[](https://travis-ci.org/OpenMTC/OpenMTC)
|
||||||
|
[](https://snyk.io/test/github/OpenMTC/OpenMTC?targetFile=openmtc-gevent%2Frequirements.txt)
|
||||||
|
[](https://coveralls.io/github/OpenMTC/OpenMTC?branch=master)
|
||||||
|
|
||||||
The OpenMTC SDK aims to provide developers with a convenient yet flexible tool
|
The OpenMTC SDK aims to provide developers with a convenient yet flexible tool
|
||||||
to write oneM2M compliant applications. This includes network applications
|
to write oneM2M compliant applications. This includes network applications
|
||||||
@ -28,6 +30,7 @@ check the FIWARE Catalogue entry for the
|
|||||||
- [Usage](#usage)
|
- [Usage](#usage)
|
||||||
- [API](#api)
|
- [API](#api)
|
||||||
- [Quality Assurance](#quality-assurance)
|
- [Quality Assurance](#quality-assurance)
|
||||||
|
- [Contributing](#contributing)
|
||||||
- [License](#license)
|
- [License](#license)
|
||||||
|
|
||||||
|
|
||||||
@ -89,7 +92,11 @@ follows:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Licence
|
## Contributing
|
||||||
|
|
||||||
|
Contribution guidelines are detailed in the [CONTRIBUTIONS](https://github.com/OpenMTC/OpenMTC/blob/master/CONTRIBUTIONS.md) file.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
The OpenMTC SDK is licensed under the Eclipse Public License (EPL)
|
The OpenMTC SDK is licensed under the Eclipse Public License (EPL)
|
||||||
version 1.
|
version 1.
|
||||||
|
@ -3,6 +3,7 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
from urlparse import urljoin
|
from urlparse import urljoin
|
||||||
import logging
|
import logging
|
||||||
|
from datetime import datetime
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
@ -92,7 +93,8 @@ class OrionAPI(LoggerMixin):
|
|||||||
"type": self._get_type(data_senml["v"]),
|
"type": self._get_type(data_senml["v"]),
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"timestamp": {
|
"timestamp": {
|
||||||
"value": data_senml["t"],
|
"value": datetime.fromtimestamp(float(data_senml["t"])).replace(microsecond=0).isoformat()
|
||||||
|
if data_senml["t"] != "none" else data_senml["t"],
|
||||||
"type": "String"
|
"type": "String"
|
||||||
},
|
},
|
||||||
"bn": {
|
"bn": {
|
||||||
|
1
openmtc-gevent/requirements.txt
Symbolic link
1
openmtc-gevent/requirements.txt
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
dependencies.txt
|
Reference in New Issue
Block a user