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
import crc16 | |
from collections import namedtuple | |
from time import sleep | |
import struct | |
#### Offsets from STX start | |
PACKET_STX = 0 | |
PACKET_ADDR_TO = 1 | |
PACKET_ADDR_FROM = 2 | |
PACKET_FLAGS = 3 |
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
import crc16 | |
from collections import namedtuple | |
from time import sleep | |
import struct | |
#### Offsets from STX start | |
PACKET_STX = 0 | |
PACKET_ADDR_TO = 1 | |
PACKET_ADDR_FROM = 2 | |
PACKET_FLAGS = 3 |
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
""" | |
Simulation of a RS485 network and its devices, for the purpose of testing | |
and implementing a protocol. | |
""" | |
import crc16 | |
from collections import namedtuple | |
from time import sleep | |
import struct |
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
""" | |
Simulation of a RS485 network and its devices, for the purpose of testing | |
and implementing a protocol. | |
""" | |
import crc16 | |
from collections import namedtuple | |
from time import sleep | |
import struct |
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
""" | |
Simulation of a RS485 network and its devices, for the purpose of testing | |
and implementing a protocol. | |
""" | |
import crc16 | |
from collections import namedtuple | |
from time import sleep | |
import struct | |
import random |
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
(Web Serie A)[autrilla@autrilla ~/Documents/Programming/FAVEGA/Web_Serie_A]$ pip install django | |
Downloading/unpacking django | |
Downloading Django-1.7.1-py2.py3-none-any.whl (7.4MB): 7.4MB downloaded | |
Installing collected packages: django | |
Cleaning up... | |
Exception: | |
Traceback (most recent call last): | |
File "/usr/lib/python3.4/site-packages/pip/basecommand.py", line 122, in main | |
status = self.run(options, args) | |
File "/usr/lib/python3.4/site-packages/pip/commands/install.py", line 283, in run |
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
# SETTINGS | |
# Tuple of tuples of directories to be watched and corresponding AWS S3 bucket | |
watch_directories = ( | |
('/home/autrilla/Documents/Scripts/test/', 's3://test/'), | |
) | |
aws_sqs_url = 'https://sqs.eu-west-1.amazonaws.com/198042352723/FAVEGASync' | |
sqs_update_interval = 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
# SETTINGS | |
# Tuple of tuples of directories to be watched and corresponding AWS S3 bucket | |
watch_dirs = ( | |
('/home/autrilla/Documents/Scripts/test/', 's3://tiendaganadera/'), | |
) | |
aws_sqs_url = 'https://sqs.eu-west-1.amazonaws.com/198042352723/FAVEGASync' | |
sqs_update_interval = 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
# SETTINGS | |
# Tuple of tuples of directories to be watched and corresponding AWS S3 bucket | |
watch_dirs = ( | |
('/home/autrilla/Documents/Scripts/test/', 's3://tiendaganadera/'), | |
) | |
aws_sqs_url = 'https://sqs.eu-west-1.amazonaws.com/198042352723/FAVEGASync' | |
sqs_update_interval = 5 |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title> | |
{% block title %} | |
</title> | |
</head> | |
<body> | |
<nav> |
OlderNewer