Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sh4nks/tempserver
Sends and recieves temperatures over the can bus
https://github.com/sh4nks/tempserver
Last synced: 30 days ago
JSON representation
Sends and recieves temperatures over the can bus
- Host: GitHub
- URL: https://github.com/sh4nks/tempserver
- Owner: sh4nks
- License: bsd-3-clause
- Created: 2014-06-21T18:48:26.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-21T19:23:52.000Z (over 10 years ago)
- Last Synced: 2024-04-19T15:22:09.658Z (7 months ago)
- Language: Python
- Homepage:
- Size: 145 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# INTRODUCTION
This is a project for a lecture at our university.
The _tempserver_ manages the connection between RPi temperature sensor and
RPi LED display. The temperature is then being send over the CAN Bus.**Note:** This project is just for learning purposes.
# DEPENDENCIES
It depends on python >= 3.3 and on the [python-can](https://bitbucket.org/hardbyte/python-can) library.
# USAGE
The server provides two different types:
* **Reciever**The recieving server writes the value in a file, so that the Pi can read it
from there.* **Sender**
The sending server reads the value from the file in which the Pi's
sensor the temperature writes, and broadcasts it via a CAN Bus.```
usage: server.py [-h] [-t TYPE] -p PATH [-c CHANNEL]Sends or recieves messages from a CAN Bus.
optional arguments:
-h, --help show this help message and exit
-t TYPE, --type TYPE The server type. '--type send' sends the message and '
--type recieve' recieves the message
-p PATH, --path PATH The full path path to the file which should
contain/recieve the temperature
-c CHANNEL, --channel CHANNEL
The name of the CAN channel. For example, such a
channel could be named 'vcan0'. If not provided, it
defaults back to the channel which is defined in the
can.conf/ini
```