-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
107 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
Metadata-Version: 2.2 | ||
Name: can2mqtt | ||
Version: 0.0.1 | ||
Summary: A python can to mqtt bridge | ||
Home-page: https://github.com/tillsc/can2mqtt | ||
Author: Till Schulte-Coerne | ||
Author-email: [email protected] | ||
Project-URL: Bug Reports, https://github.com/tillsc/can2mqtt/issues | ||
Classifier: Development Status :: 3 - Alpha | ||
Classifier: Intended Audience :: Developers | ||
Classifier: Topic :: Software Development :: | ||
Classifier: License :: OSI Approved :: MIT License | ||
Classifier: Programming Language :: Python :: 3 | ||
Requires-Python: !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4 | ||
Description-Content-Type: text/markdown | ||
Requires-Dist: python-can | ||
Requires-Dist: cantools | ||
Requires-Dist: paho-mqtt | ||
Requires-Dist: pyyaml | ||
Provides-Extra: dev | ||
Provides-Extra: test | ||
Requires-Dist: pytest; extra == "test" | ||
Dynamic: author | ||
Dynamic: author-email | ||
Dynamic: classifier | ||
Dynamic: description | ||
Dynamic: description-content-type | ||
Dynamic: home-page | ||
Dynamic: keywords | ||
Dynamic: project-url | ||
Dynamic: provides-extra | ||
Dynamic: requires-dist | ||
Dynamic: requires-python | ||
Dynamic: summary | ||
|
||
[DBC](http://socialledge.com/sjsu/index.php/DBC_Format) based CAN to MQTT brigde | ||
=== | ||
|
||
This is a generic CAN 2 MQTT bridge build with Python 3 | ||
|
||
### Setup | ||
|
||
This package is based upon the following dependencies: | ||
|
||
* [python-can](https://python-can.readthedocs.io/en/master/) | ||
* [cantools](https://github.com/eerimoq/cantools) | ||
* [phao](http://www.eclipse.org/paho/) | ||
|
||
Install all required Python 3 dependencies on a raspberry: | ||
|
||
sudo apt-get install python3-pip python3-can | ||
pip3 install paho-mqtt cantools | ||
|
||
### Usage | ||
|
||
Copy your DBC files into the root directory. | ||
|
||
Copy config.example.yaml to config.yaml and modify it. | ||
|
||
Run `./main.py` or `python3 main.py` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
README.md | ||
setup.py | ||
can2mqtt/__init__.py | ||
can2mqtt/app.py | ||
can2mqtt/can_listener.py | ||
can2mqtt/converter.py | ||
can2mqtt/mqtt_handler.py | ||
can2mqtt.egg-info/PKG-INFO | ||
can2mqtt.egg-info/SOURCES.txt | ||
can2mqtt.egg-info/dependency_links.txt | ||
can2mqtt.egg-info/entry_points.txt | ||
can2mqtt.egg-info/requires.txt | ||
can2mqtt.egg-info/top_level.txt | ||
can2mqtt/test/__init__.py | ||
can2mqtt/test/mqtt_dummy.py | ||
can2mqtt/test/test_main.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[console_scripts] | ||
run = run:main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
python-can | ||
cantools | ||
paho-mqtt | ||
pyyaml | ||
|
||
[dev] | ||
|
||
[test] | ||
pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
can2mqtt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
BO_ 500 IO_DEBUG: 4 IO | ||
SG_ IO_DEBUG_test_unsigned : 0|8@1+ (1,0) [0|0] "" DBG | ||
BO_ 500 IO_DEBUG_msg1: 4 IO | ||
SG_ IO_DEBUG_msg1_sig1 : 0|8@1+ (1,0) [0|0] "" DBG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters