-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #114 from ymorin-orange/yem/its-vehicle
python/its-vehicle: new client
- Loading branch information
Showing
17 changed files
with
1,417 additions
and
3 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
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,31 @@ | ||
name: Python its-vehicle | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up python 3.10 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
run: | | ||
cd python/its-vehicle | ||
python -m pip install --upgrade pip | ||
pip install black wheel | ||
- name: Run black | ||
run: | | ||
cd python/its-vehicle | ||
black --diff --check . | ||
- name: Run package creation | ||
run: | | ||
cd python/its-vehicle | ||
python setup.py bdist_wheel | ||
- name: Archive package | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: its_vehicle | ||
path: python/its-vehicle/dist |
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
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
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 @@ | ||
pygeotile==1.0.6 |
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
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,102 @@ | ||
# Unless otherwise noted, all units are standard unit, i.e. distances | ||
# are in meters, latitudes and longitudes in degrees, times in seconds | ||
# and frequencies in hertz, etc... | ||
# Sections and keys that are commented out are optional (have a default) | ||
# while sections and keys that are not commented out are mandatory. | ||
|
||
[general] | ||
# Instance ID (universally unique) | ||
instance-id = ID | ||
|
||
# Type of ITS messages to send | ||
# - CAM | ||
# - VAM (not implemented) | ||
# - CPM (not implemented) | ||
type = CAM | ||
|
||
# Frequency to send ITS messages | ||
report-freq = FREQ | ||
|
||
# How to mirror the main broker; only useful if broker.mirror:host is defined | ||
# - with mirror-self==true: | ||
# when sending a message to broker.main, do not send it to broker.mirror; | ||
# when receiving our messages back from broker.main, mirror them to | ||
# broker.mirror. | ||
# - with mirror-self==false (the default): | ||
# when sending a message to broker.main, send it to broker.mirror; when | ||
# receiving our messages back from broker.main, ignore them. | ||
# mirror-self = BOOL | ||
|
||
# Prefix for topics to publish on; must end with a slash, e.g.: | ||
# - / | ||
# - root/ | ||
# - /root/ | ||
# - deep/prefix/ | ||
# - /deep/prefix/ | ||
topic-pub-prefix = PREFIX/ | ||
|
||
# Prefix for topics to subscribe on (see topic-pub-prefix, above) | ||
# Note: this is also the prefix used to publish on the mirror broker | ||
# when mirror-self==false | ||
topic-sub-prefix = PREFIX/ | ||
|
||
# Depth of the quadkeys to generate for MQTT topics | ||
depth = DEPTH | ||
|
||
# Types of ITS messages to subscribe to, space separated | ||
messages = cam cpm denm | ||
|
||
# Depth of the quadkeys to subscribe to, for each type of message above | ||
depth-sub-cam = DEPTH | ||
depth-sub-cpm = DEPTH | ||
depth-sub-denm = DEPTH | ||
|
||
# Speeds thresholds to lower the subscription level; each threshold | ||
# decreases the subscrption depth by one; set as many thresdholds as | ||
# needed, at least one, separated by a space | ||
speed-thresholds = SPEED[ SPEED [...]] | ||
|
||
[tracking] | ||
# Length of message ID, in bytes | ||
id-length = INT | ||
|
||
[broker.main] | ||
# There are two way to connect to the MQTT broker: | ||
# - TCP/IP: set host and port, and not socket-path | ||
# - a UNIX socket: set socket-path, not host and port | ||
# Hostname or IP of the MQTT broker to connect to | ||
host = HOSTNAME | ||
# Port of the MQTT broker; default: 1883 | ||
# port = PORT | ||
# Path of the UNIX socket | ||
# socket-path = PATH | ||
|
||
# Username and password to authenticate with against the broker; | ||
# leave username empty or unset for no authentication, and leave | ||
# password empty or unset for no password. | ||
# username = USERNAME | ||
# password = PASSWORD | ||
|
||
# Client ID to connect as; default: general:instance_id | ||
# client-id = ID | ||
|
||
[broker.mirror] | ||
# See broker.main, above, for descriptions | ||
# If neither host nor socket-path are set, no mirroring is done | ||
# host = HOST | ||
# port = PORT | ||
# socket-path = PATH | ||
# username = USERNAME | ||
# password = PASSWORD | ||
# client-id = ID | ||
|
||
[gpsd] | ||
# Host and port gpsd listens on; defaults: 127.0.0.1, 2947 | ||
# host = HOST | ||
# port = PORT | ||
# How long to keep the last measurement when no new one comes (e.g. when | ||
# in a tunnel...); default: 2.0 | ||
# persistence = SEC | ||
# Type of heuristic to gather messages, either "order" or "timestamp"; | ||
# "order" is almost always the most sensible (see code), default: "order" | ||
# heuristic = TYPE |
Empty file.
Oops, something went wrong.